ooodev.format.proto.write.fill.transparent.gradient_t module
- protocol ooodev.format.proto.write.fill.transparent.gradient_t.GradientT[source]
Bases:
StyleMultiT
,Protocol
Fill Gradient Protocol
Classes that implement this protocol must have the following methods / attributes:
- __init__(*, style=Ellipsis, step_count=Ellipsis, offset=Ellipsis, angle=Ellipsis, border=Ellipsis, grad_color=Ellipsis, grad_intensity=Ellipsis, name=Ellipsis)[source]
Constructor
- Parameters:
style (GradientStyle, optional) – Specifies the style of the gradient. Defaults to
GradientStyle.LINEAR
.step_count (int, optional) – Specifies the number of steps of change color. Defaults to
0
.offset (Offset, int, optional) – Specifies the X and Y coordinate, where the gradient begins. X is effectively the center of the
RADIAL
,ELLIPTICAL
,SQUARE
andRECT
style gradients. Defaults toOffset(50, 50)
.angle (Angle, int, optional) – Specifies angle of the gradient. Defaults to
0
.border (int, optional) – Specifies percent of the total width where just the start color is used. Defaults to
0
.grad_color (ColorRange, optional) – Specifies the color at the start point and stop point of the gradient. Defaults to
ColorRange(Color(0), Color(16777215))
.grad_intensity (IntensityRange, optional) – Specifies the intensity at the start point and stop point of the gradient. Defaults to
IntensityRange(100, 100)
.name (str, optional) – Specifies the Fill Gradient Name.
- Return type:
None
- from_obj(obj: Any) GradientT
- from_obj(obj: Any, **kwargs) GradientT
- from_obj(**kwds)
Helper for @overload to raise when called.
- __protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'default', 'from_obj', 'get_attrs', 'get_props', 'get_update_obj', 'has_update_obj', 'on_applied', 'on_applying', 'on_property_backed_up', 'on_property_backing_up', 'on_property_restore_set', 'on_property_restore_setting', 'on_property_set', 'on_property_set_error', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_inner', 'prop_parent', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
- property prop_inner: GradientStruct
Gets Fill styles instance
- Return type: