ooodev.format.proto.draw.position_size.position_t module
- protocol ooodev.format.proto.draw.position_size.position_t.PositionT[source]
Bases:
PositionT
,Protocol
Fill Image Protocol
Classes that implement this protocol must have the following methods / attributes:
- __init__(*, pos_x, pos_y, base_point=Ellipsis)[source]
Constructor
- Parameters:
pos_x (float | UnitT) – Specifies the x-coordinate of the position of the shape (in
mm
units) or Class UnitT.pos_y (float | UnitT) – Specifies the y-coordinate of the position of the shape (in
mm
units) or Class UnitT.base_point (ShapeBasePointKind) – Specifies the base point of the shape used to calculate the X and Y coordinates. Default is
TOP_LEFT
.
- Return type:
None
- __protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', '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_base_point', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_parent', 'prop_pos_x', 'prop_pos_y', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
- property prop_base_point: ShapeBasePointKind
Gets/Sets the base point of the shape used to calculate the X and Y coordinates.
- Returns:
Base point.
- Return type: