enum Eagle::TextAlign

Overview

Horizontal alignment for Graphics#print and Graphics#printf. With Center and Right, the x you pass is the center or right edge of the text.

Defined in:

eagle/graphics/graphics.cr

Enum Members

Left = 0

Align the left edge to x.

Center = 1

Center the text on x.

Right = 2

Align the right edge to x.

Instance Method Summary

Instance Method Detail

def center? #

Returns true if this enum value equals Center


def left? #

Returns true if this enum value equals Left


def right? #

Returns true if this enum value equals Right