GOffice.Marker¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GOffice.Marker(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod new()¶
- Return type:
- classmethod selector_new(initial_shape, default_shape)¶
- Parameters:
initial_shape (
GOffice.MarkerShape
) – marker shape intially selecteddefault_shape (
GOffice.MarkerShape
) – automatic marker shape
- Returns:
a new
Gtk.Widget
.- Return type:
Creates a new marker selector.
- classmethod selector_set_auto_fill(selector, auto_fill)¶
- Parameters:
selector (
GOffice.Selector
) – aGOffice.Selector
auto_fill (
bool
) – whether to use a transparent color for opened markers such as cross, x, or asterisk.
- classmethod selector_set_colors(selector, outline, fill)¶
- Parameters:
selector (
GOffice.Selector
) – aGOffice.Selector
outline (
int
) – outline colorfill (
int
) –GOffice.fill
color
Updates swatch colors of selector.
- classmethod selector_set_shape(selector, shape)¶
- Parameters:
selector (
GOffice.Selector
) – aGOffice.Selector
shape (
GOffice.MarkerShape
) – new marker shape
Updates marker shape of selector.
- classmethod shape_as_str(shape)¶
- Parameters:
shape (
GOffice.MarkerShape
) –- Return type:
- assign(src)¶
- Parameters:
src (
GOffice.Marker
) –
- create_cairo_surface(cr, scale, width, height)¶
- Parameters:
cr (
cairo.Context
) – a cairo contextscale (
float
) – current context scalewidth (
float
) – a placeholder for the surface widthheight (
float
) – a placeholder for the surface height
- Returns:
a newly created
cairo.Surface
. This surface should be destroyed using cairo_surface_destroy after use.- Return type:
Creates a new cairo surface similar to the current target of cr, and render self on it. center will contain the coordinate of the center of the surface.
- dup()¶
- Returns:
the duplicated marker.
- Return type:
Duplicates self.
- get_shape()¶
- Return type:
- render(cr, x, y, scale)¶
- Parameters:
cr (
cairo.Context
) – a cairo contextx (
float
) – x positiony (
float
) – y positionscale (
float
) – current scale
Renders self onto the cairo target, using x and y for the position.
- set_shape(shape)¶
- Parameters:
shape (
GOffice.MarkerShape
) –