TextAlignmentUtil
Implementation of the text alignment utilities
TextAlignmentUtil
Canonical path: Utils.TextAlignmentUtil.TextAlignmentUtil
Implementation of the text alignment utilities
get_ref_point_button_index_from_text_alignment
staticmethod
get_ref_point_button_index_from_text_alignment(
text_align: TextAlignment,
) -> int
get the text point position from the text alignment
Parameters:
-
text_align(TextAlignment) –text alignment
Returns:
-
int–reference point button index
get_text_alignment_from_ref_point_button_index
staticmethod
get_text_alignment_from_ref_point_button_index(
ref_point_button_index: RefPointPosition,
) -> TextAlignment
get the text alignment from the text point position
Parameters:
-
ref_point_button_index(RefPointPosition) –ref point button index
Returns:
-
TextAlignment–text alignment
get_text_alignment_from_text_point_position
staticmethod
get_text_alignment_from_text_point_position(
ref_point_position: TextReferencePointPosition,
) -> TextAlignment
get the text alignment from the text point position
Parameters:
-
ref_point_position(TextReferencePointPosition) –ref point position
Returns:
-
TextAlignment–text alignment
Placeholder