Class: GOffice::Marker
- Inherits:
-
Object
- Object
- GOffice::Marker
- Defined in:
- (unknown)
Class Method Summary collapse
-
.selector_set_auto_fill(selector, auto_fill) ⇒ nil
cross, x, or asterisk.
-
.selector_set_colors(selector, outline, fill) ⇒ nil
Updates swatch colors of selector.
-
.selector_set_shape(selector, shape) ⇒ nil
Updates marker shape of selector.
- .shape_as_str(shape) ⇒ String
- .shape_from_str(name) ⇒ GOffice::MarkerShape
Instance Method Summary collapse
- #assign(src) ⇒ nil
-
#create_cairo_surface(cr, scale, width, height) ⇒ cairo::Surface
Creates a new cairo surface similar to the current target of cr, and render marker on it.
-
#dup ⇒ GOffice::Marker
Duplicates src.
- #fill_color ⇒ GOffice::Color
- #fill_color=(color) ⇒ nil
-
#initialize(initial_shape, default_shape) ⇒ Gtk::Widget
constructor
Creates a new marker selector.
- #is_closed_shape ⇒ Boolean
- #outline_color ⇒ GOffice::Color
- #outline_color=(color) ⇒ nil
- #outline_width ⇒ Float
-
#render(cr, x, y, scale) ⇒ nil
Renders marker onto the cairo target, using x and y for the position.
- #shape ⇒ GOffice::MarkerShape
- #shape=(shape) ⇒ nil
- #size ⇒ Integer
- #size=(size) ⇒ nil
Constructor Details
#initialize(initial_shape, default_shape) ⇒ Gtk::Widget
Creates a new marker selector.
Class Method Details
.selector_set_auto_fill(selector, auto_fill) ⇒ nil
cross, x, or asterisk.
.selector_set_colors(selector, outline, fill) ⇒ nil
Updates swatch colors of selector.
.selector_set_shape(selector, shape) ⇒ nil
Updates marker shape of selector.
.shape_as_str(shape) ⇒ String
.shape_from_str(name) ⇒ GOffice::MarkerShape
Instance Method Details
#assign(src) ⇒ nil
#create_cairo_surface(cr, scale, width, height) ⇒ cairo::Surface
Creates a new cairo surface similar to the current target of cr, and render marker on it. center will contain the coordinate of the center of the surface.
#dup ⇒ GOffice::Marker
Duplicates src.
#fill_color ⇒ GOffice::Color
#fill_color=(color) ⇒ nil
#is_closed_shape ⇒ Boolean
#outline_color ⇒ GOffice::Color
#outline_color=(color) ⇒ nil
#outline_width ⇒ Float
#render(cr, x, y, scale) ⇒ nil
Renders marker onto the cairo target, using x and y for the position.