/usr/share/gtk-doc/html/pygoocanvas/class-canvas-grid.html is in python-pygoocanvas 0.14.1-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>goocanvas.Grid</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="PyGooCanvas Reference Manual"><link rel="up" href="pygoocanvas-std-items.html" title="PyGooCanvas Standard Canvas Items Reference"><link rel="prev" href="class-canvas-ellipse.html" title="goocanvas.Ellipse"><link rel="next" href="class-canvas-image.html" title="goocanvas.Image"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">goocanvas.Grid</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-canvas-ellipse.html">Prev</a> </td><th width="60%" align="center">PyGooCanvas Standard Canvas Items Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-canvas-image.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-canvas-grid"></a><div class="titlepage"></div><div class="refnamediv"><h2>goocanvas.Grid</h2><p>goocanvas.Grid — A grid item.</p></div><div class="refsect1"><a name="idm6357"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">goocanvas.Grid</span></span>(<span class="ooclass"><span class="classname">goocanvas.ItemSimple</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-canvas-grid.html#constructor-canvas-grid" title="Constructor">goocanvas.Grid</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>properties</code></strong></span><span class="initializer">=None</span></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="idm6370"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
+-- <a class="link" href="class-canvas-item-simple.html" title="goocanvas.ItemSimple">goocanvas.ItemSimple</a>
+-- <a class="link" href="class-canvas-grid.html" title="goocanvas.Grid">goocanvas.Grid</a>
</pre></div><div class="refsect1"><a name="properties-goocanvasgrid"></a><h2>goocanvas.Grid Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table class="informaltable" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"border_color"</td><td valign="top">Write</td><td valign="top">The color to use for the border. Default value: <code class="literal">None</code>.</td></tr><tr valign="top"><td valign="top">"border-color-rgba"</td><td valign="top">Read/Write</td><td valign="top">The color to use for the border, specified as a 32-bit integer value. Default value: 0.</td></tr><tr valign="top"><td valign="top">"border-pattern"</td><td valign="top">Read/Write</td><td valign="top">The cairo pattern to paint the border with.</td></tr><tr valign="top"><td valign="top">"border-pixbuf"</td><td valign="top">Write</td><td valign="top">The pixbuf to use to draw the border.</td></tr><tr valign="top"><td valign="top">"border-width"</td><td valign="top">Read/Write</td><td valign="top">The width of the border around the grid. Default value: -1.</td></tr><tr valign="top"><td valign="top">"height"</td><td valign="top">Read/Write</td><td valign="top">The height of the grid. Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"horz-grid-line-color"</td><td valign="top">Write</td><td valign="top">The color to use for the horizontal grid lines. Default value: <code class="literal">None</code>.</td></tr><tr valign="top"><td valign="top">"horz-grid-line-color-rgba"</td><td valign="top">Read/Write</td><td valign="top">The color to use for the horizontal grid lines, specified as a 32-bit
integer value. Default value: 0.</td></tr><tr valign="top"><td valign="top">"horz-grid-line-pattern"</td><td valign="top">Read/Write</td><td valign="top">The cairo pattern to paint the horizontal grid lines with.</td></tr><tr valign="top"><td valign="top">"horz-grid-line-pixbuf"</td><td valign="top">Write</td><td valign="top">The pixbuf to use to draw the horizontal grid lines.</td></tr><tr valign="top"><td valign="top">"show-horz-grid-lines"</td><td valign="top">Read/Write</td><td valign="top">If the horizontal grid lines are shown. Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"show-vert-grid-lines"</td><td valign="top">Read/Write</td><td valign="top">If the vertical grid lines are shown. Default value: <code class="literal">True</code>.</td></tr><tr valign="top"><td valign="top">"horz-grid-line-width"</td><td valign="top">Read/Write</td><td valign="top">The width of the horizontal grid lines. Default value: -1.</td></tr><tr valign="top"><td valign="top">"vert-grid-line-color"</td><td valign="top">Write</td><td valign="top">The color to use for the vertical grid lines. Default value: <code class="literal">None</code>.</td></tr><tr valign="top"><td valign="top">"vert-grid-line-color-rgba"</td><td valign="top">Read/Write</td><td valign="top">The color to use for the vertical grid lines, specified as a 32-bit
integer value. Default value: 0.</td></tr><tr valign="top"><td valign="top">"vert-grid-line-pattern"</td><td valign="top">Read/Write</td><td valign="top">The cairo pattern to paint the vertical grid lines with.</td></tr><tr valign="top"><td valign="top">"vert-grid-line-pixbuf"</td><td valign="top">Write</td><td valign="top">The pixbuf to use to draw the vertical grid lines.</td></tr><tr valign="top"><td valign="top">"vert-grid-line-width"</td><td valign="top">Read/Write</td><td valign="top">The width of the vertical grid lines. Default value: -1.</td></tr><tr valign="top"><td valign="top">"width"</td><td valign="top">Read/Write</td><td valign="top">The width of the grid. Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"x"</td><td valign="top">Read/Write</td><td valign="top">The x coordinate of the grid. Default value: 0.</td></tr><tr valign="top"><td valign="top">"x-offset"</td><td valign="top">Read/Write</td><td valign="top">The distance before the first vertical grid line.
Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"x-step"</td><td valign="top">Read/Write</td><td valign="top">The distance between the vertical grid lines.
Allowed values: >= 0. Default value: 10.</td></tr><tr valign="top"><td valign="top">"y"</td><td valign="top">Read/Write</td><td valign="top">The y coordinate of the grid. Default value: 0.</td></tr><tr valign="top"><td valign="top">"y-offset"</td><td valign="top">Read/Write</td><td valign="top">The distance before the first horizontal grid line.
Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"y-step"</td><td valign="top">Read/Write</td><td valign="top">The distance between the horizontal grid lines.
Allowed values: >= 0. Default value: 10.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1"><a name="idm6490"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-canvas-grid.html" title="goocanvas.Grid"><code class="classname">goocanvas.Grid</code></a>
implements
<a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a>
</p></div><div class="refsect1"><a name="idm6497"></a><h2>Description</h2><a class="link" href="class-canvas-grid.html" title="goocanvas.Grid"><code class="classname">goocanvas.Grid</code></a> represents a grid item.
It is a subclass of <a class="link" href="class-canvas-item-simple.html" title="goocanvas.ItemSimple"><code class="classname">goocanvas.ItemSimple</code></a>
and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
It also implements the <a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a>
interface, so you can use the <a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a>
functions such as <code class="methodname"><a class="link" href="class-canvas-item.html#method-goocanvasitem--raise-" title="goocanvas.Item.raise_">goocanvas.Item.raise_()</a></code>
and <code class="methodname"><a class="link" href="class-canvas-item.html#method-goocanvasitem--rotate" title="goocanvas.Item.rotate">goocanvas.Item.rotate()</a></code></div><div class="refsect1"><a name="constructor-canvas-grid"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">goocanvas.Grid</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>properties</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>properties</code></strong> :</span></p></td><td>A comma separated list of properties.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>A new
<a class="link" href="class-canvas-grid.html" title="goocanvas.Grid"><code class="classname">goocanvas.Grid</code></a>
</td></tr></tbody></table><p>
Creates a new canvas grid item.
</p><p>
Here's an example showing how to create a grid:
</p><pre class="programlisting">
grid = goocanvas.Grid(parent=root,
x=100,
y=100,
width=400,
height=200,
x_step=20,
Y_step=20,
x_offset=10,
y_offset=10,
horz_grid_line_width=4.0,
horz_grid_line_color="yellow",
vert_grid_line_width=2.0,
vert_grid_line_color="red",
border_width=3.0,
border_color="white",
fill_color="blue"
)
</pre></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-canvas-ellipse.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pygoocanvas-std-items.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-canvas-image.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">goocanvas.Ellipse </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> goocanvas.Image</td></tr></table></div></body></html>
|