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