Class: GOffice::CanvasStyledItem
- Inherits:
-
CanvasItem
- Object
- CanvasItem
- GOffice::CanvasStyledItem
- Defined in:
- (unknown)
Direct Known Subclasses
CanvasArc, CanvasCircle, CanvasEllipse, CanvasLine, CanvasPath, CanvasPolygon, CanvasPolyline, CanvasRectangle, CanvasText
Instance Method Summary collapse
-
#cairo_line=(cr) ⇒ Boolean
Prepares the cairo context cr to draw a line according to the item style and canvas scale.
-
#scale_line_width ⇒ Boolean
This function returns true if the line width needs to be scaled.
- #scale_line_width=(scale_line_width) ⇒ Boolean
-
#scale_line_width? ⇒ Boolean
Scale-line-width.
-
#style ⇒ GOffice::Style
Style.
- #style=(style) ⇒ GOffice::Style
Methods inherited from CanvasItem
#bounds_changed, #canvas, #canvas=, #copy, #destroy, #distance, #draw, #draw_region, #duplicate, #get_bounds, #grab, #hide, #initialize, #invalidate, #is_visible, #lower, #lower_to_bottom, #operator, #operator=, #parent, #parent=, #raise, #raise_to_top, #set, #show, #style_context, #transform=, #ungrab, #visible=, #window
Constructor Details
This class inherits a constructor from GOffice::CanvasItem
Instance Method Details
#cairo_line=(cr) ⇒ Boolean
Prepares the cairo context cr to draw a line according to the item style and canvas scale. The line width is scaled only if the scale-line-width property is set to true. This function calls go_styled_object_set_cairo_line().
If the item drawing used goc_group_cairo_transform(), scale-line-width should be false to avoid scaling twice, or go_styled_object_set_cairo_line() should be called directly instead.
#scale_line_width ⇒ Boolean
This function returns true if the line width needs to be scaled. It will always return false if the line width is 0.
#scale_line_width=(scale_line_width) ⇒ Boolean
#scale_line_width? ⇒ Boolean
Returns scale-line-width.
#style ⇒ GOffice::Style
Returns style.