Skip to content

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:

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:

Returns:

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:

Returns: