scistag.imagestag.text_alignment_definitions.HTextAlignment

class HTextAlignment(value)[source]

Bases: IntEnum

Defines the horizontal text alignment

Methods

Attributes

LEFT

Text is written to the right of ax x starting point

CENTER

Text is written to the left of an x starting point

RIGHT

Text is centered equally to the left and right of an x starting point

__doc__

__members__

__module__

classmethod _missing_(value)[source]

Returns the value for given short code

Parameters

value (str) – Either an alignment to copy or one of the following string codes: - “l” / “left” for LEFT aligned text - “c” / “center” for CENTERED text - “r” / “right” for RIGHT aligned text

Return type

int

Returns

The enum for value representing the code provided

CENTER = 1

Text is written to the left of an x starting point

LEFT = 0

Text is written to the right of ax x starting point

RIGHT = 2

Text is centered equally to the left and right of an x starting point