ooodev.adapter.awt.point_struct_generic_comp module
- class ooodev.adapter.awt.point_struct_generic_comp.PointStructGenericComp(component, unit, prop_name, event_provider=None)[source]
Bases:
StructBase
[Point
],Generic
[_T
]Generic Point Struct.
This class raises an event before and after a property is changed if it has been passed an event provider.
The event raised before the property is changed is called
generic_com_sun_star_awt_Point_changing
. The event raised after the property is changed is calledgeneric_com_sun_star_awt_Point_changed
.The event args for before the property is changed is of type
KeyValCancelArgs
. The event args for after the property is changed is of typeKeyValArgs
.- property x: _T
Gets/Sets the x-coordinate.
When setting the value can be a
int
in1/100th mm
units or aUnitT
measurement unit.- Returns:
UnitT
measurement unit.- Return type:
_T
- property y: _T
Gets/Sets the the y-coordinate.
When setting the value can be a
int
in1/100th mm
units or aUnitT
measurement unit.- Returns:
UnitT
measurement unit.- Return type:
_T