Enums¶
Details¶
- class GooCanvas.CairoAntialias(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoAntialias
is simply a wrapper for thecairo.Antialias
type, allowing it to be used forGObject.Object
properties.See the
cairo.Antialias
documentation.- DEFAULT = 0¶
- NONE = 1¶
- GRAY = 2¶
- SUBPIXEL = 3¶
- class GooCanvas.CairoFillRule(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoFillRule
is simply a wrapper for thecairo.FillRule
type, allowing it to be used forGObject.Object
properties.See the
cairo.FillRule
documentation.- WINDING = 0¶
- EVEN_ODD = 1¶
- class GooCanvas.CairoHintMetrics(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoHintMetrics
is simply a wrapper for thecairo.HintMetrics
type, allowing it to be used forGObject.Object
properties.See the
cairo.HintMetrics
documentation.- DEFAULT = 0¶
- OFF = 1¶
- ON = 2¶
- class GooCanvas.CairoLineCap(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoLineCap
is simply a wrapper for thecairo.LineCap
type, allowing it to be used forGObject.Object
properties.See the
cairo.LineCap
documentation.- BUTT = 0¶
- ROUND = 1¶
- SQUARE = 2¶
- class GooCanvas.CairoLineJoin(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoLineJoin
is simply a wrapper for thecairo.LineJoin
type, allowing it to be used forGObject.Object
properties.See the
cairo.LineJoin
documentation.- MITER = 0¶
- ROUND = 1¶
- BEVEL = 2¶
- class GooCanvas.CairoOperator(value)¶
Bases:
GObject.GEnum
GooCanvas.CairoOperator
is simply a wrapper for thecairo.Operator
type, allowing it to be used forGObject.Object
properties.See the
cairo.Operator
documentation.- CLEAR = 0¶
- SOURCE = 1¶
- DEST_ATOP = 10¶
- XOR = 11¶
- ADD = 12¶
- SATURATE = 13¶
- OVER = 2¶
- IN = 3¶
- OUT = 4¶
- ATOP = 5¶
- DEST = 6¶
- DEST_OVER = 7¶
- DEST_IN = 8¶
- DEST_OUT = 9¶
- class GooCanvas.CanvasAnchorType(value)¶
Bases:
GObject.GEnum
GooCanvas.CanvasAnchorType
is used to specify the positions of objects relative to a particular anchor point.- CENTER = 0¶
the anchor is in the center of the object.
- N = 1¶
- NORTH = 1¶
the anchor is at the top of the object, centered horizontally.
- NORTH_WEST = 2¶
the anchor is at the top-left of the object.
- NW = 2¶
- NE = 3¶
- NORTH_EAST = 3¶
the anchor is at the top-right of the object.
- S = 4¶
- SOUTH = 4¶
the anchor is at the bottom of the object, centered horizontally.
- SOUTH_WEST = 5¶
the anchor is at the bottom-left of the object.
- SW = 5¶
- SE = 6¶
- SOUTH_EAST = 6¶
the anchor is at the bottom-right of the object.
- W = 7¶
- WEST = 7¶
the anchor is on the left of the object, centered vertically.
- E = 8¶
- EAST = 8¶
the anchor is on the right of the object, centered vertically.
- class GooCanvas.CanvasAnimateType(value)¶
Bases:
GObject.GEnum
GooCanvas.CanvasAnimateType
is used to specify what happens when the end of an animation is reached.- FREEZE = 0¶
the item remains in the final position.
- RESET = 1¶
the item is moved back to the initial position.
- RESTART = 2¶
the animation is restarted from the initial position.
- BOUNCE = 3¶
the animation bounces back and forth between the start and end positions.
- class GooCanvas.CanvasItemVisibility(value)¶
Bases:
GObject.GEnum
The
GooCanvas.CanvasItemVisibility
enumeration is used to specify when a canvas item is visible.- HIDDEN = 0¶
the item is invisible, and is not allocated any space in layout container items such as
GooCanvas.CanvasTable
.
- INVISIBLE = 1¶
the item is invisible, but it is still allocated space in layout container items.
- VISIBLE = 2¶
the item is visible.
- VISIBLE_ABOVE_THRESHOLD = 3¶
the item is visible when the canvas scale setting is greater than or equal to the item’s visibility threshold setting.
- class GooCanvas.CanvasPathCommandType(value)¶
Bases:
GObject.GEnum
GooCanvas.CanvasPathCommandType
specifies the type of each command in the path. See the path element in the Scalable Vector Graphics (SVG) specification for more details.- MOVE_TO = 0¶
move to the given point.
- CLOSE_PATH = 1¶
close the current path, drawing a line from the current position to the start of the path.
- LINE_TO = 2¶
draw a line to the given point.
- HORIZONTAL_LINE_TO = 3¶
draw a horizontal line to the given x coordinate.
- VERTICAL_LINE_TO = 4¶
draw a vertical line to the given y coordinate.
- CURVE_TO = 5¶
draw a bezier
GooCanvas.curve
using two control points to the given point.
- SMOOTH_CURVE_TO = 6¶
draw a bezier
GooCanvas.curve
using a reflection of the last control point of the lastGooCanvas.curve
as the first control point, and one new control point, to the given point.
- QUADRATIC_CURVE_TO = 7¶
draw a quadratic bezier
GooCanvas.curve
using a single control point to the given point.
- SMOOTH_QUADRATIC_CURVE_TO = 8¶
draw a quadratic bezier
GooCanvas.curve
using a reflection of the control point from the previousGooCanvas.curve
as the control point, to the given point.
- ELLIPTICAL_ARC = 9¶
draw an elliptical
GooCanvas.arc
, using the given 2 radii, the x axis rotation, and the 2 flags to disambiguate theGooCanvas.arc
, to the given point.