CanvasGrid
Object Hierarchy:
Description:
public class CanvasGrid : CanvasItemSimple, CanvasItem
GooCanvasGrid represents a grid item.
A grid consists of a number of equally-spaced horizontal and vertical grid lines, plus an optional border.
It is a subclass of CanvasItemSimple and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
It also implements the CanvasItem interface, so you can use the CanvasItem functions such as raise and rotate.
To create a CanvasGrid use CanvasGrid.
To get or set the properties of an existing CanvasGrid, use @get and @set.
The grid's position and size is specified with the x, y, width and height properties.
The x_step and y_step properties specify the distance between grid lines. The x_offset and y_offset properties specify the distance before the first grid lines.
The horizontal or vertical grid lines can be hidden using the show_horz_grid_lines and show_vert_grid_lines properties.
The width of the border can be set using the border_width property. The border is drawn outside the area specified with the x, y, width and height properties.
Other properties allow the colors and widths of the grid lines to be set. The grid line color and width properties override the standard stroke_color and line_width properties, enabling different styles for horizontal and vertical grid lines.