GOffice.Pattern¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
back |
r/w |
background color. |
|
fore |
r/w |
foreground color. |
|
pattern |
r/w |
A |
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
Details¶
- class GOffice.Pattern¶
- classmethod as_str(pattern)¶
- Parameters:
pattern (
GOffice.PatternType) –- Return type:
- classmethod selector_new(initial_type, default_type)¶
- Parameters:
initial_type (
GOffice.PatternType) – pattern type initially selecteddefault_type (
GOffice.PatternType) – automatic pattern type
- Returns:
a new
Gtk.Widget.- Return type:
Creates a new pattern selector.
- classmethod selector_set_colors(selector, foreground, background)¶
- Parameters:
selector (
GOffice.Selector) – a patternGOffice.Selectorforeground (
int) – foreground colorbackground (
int) – background color
Updates swatch colors of selector.
- create_cairo_pattern(cr)¶
- Parameters:
cr (
cairo.Context) – a cairo context- Returns:
a cairo pattern object corresponding to self parameters.
- Return type:
- is_solid(color)¶