ooodev.format.proto.structs.hatch_struct_t module

protocol ooodev.format.proto.structs.hatch_struct_t.HatchStructT[source]

Bases: StyleT, Protocol

Hatch Struct Protocol

Classes that implement this protocol must have the following methods / attributes:

__init__(*, style=Ellipsis, color=Ellipsis, distance=Ellipsis, angle=Ellipsis)[source]
Parameters:
  • style (HatchStyle) –

  • color (Color) –

  • distance (float | UnitT) –

  • angle (Angle | int) –

Return type:

None

from_obj(obj: Any) HatchStructT
from_obj(obj: Any, **kwargs) HatchStructT
from_obj(**kwds)

Helper for @overload to raise when called.

get_uno_struct()[source]

Gets UNO Hatch from instance.

Returns:

Hatch instance

Return type:

Hatch

__protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'from_obj', 'get_attrs', 'get_props', 'get_uno_struct', '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_angle', 'prop_color', 'prop_distance', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_parent', 'prop_style', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
property prop_angle: Angle

Gets/Sets angle of the hatch.

Return type:

Angle

property prop_color: Color

Gets/Sets the color of the hatch lines.

Return type:

NewType()(Color, int)

property prop_distance: UnitMM

Gets/Sets the distance between the lines in the hatch (in mm units).

Return type:

UnitMM

property prop_style: HatchStyle

Gets/Sets the style of the hatch.

Return type:

HatchStyle