enum Gtk::ConstraintAttribute

Overview

The widget attributes that can be used when creating a #Constraint.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/gtk.cr

Enum Members

None = 0_u32

No attribute, used for constant relations

Left = 1_u32

The left edge of a widget, regardless of text direction

Right = 2_u32

The right edge of a widget, regardless of text direction

Top = 3_u32

The top edge of a widget

Bottom = 4_u32

The bottom edge of a widget

Start = 5_u32

The leading edge of a widget, depending on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_LEFT for LTR languages, and %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for RTL ones

End = 6_u32

The trailing edge of a widget, depending on text direction; equivalent to %GTK_CONSTRAINT_ATTRIBUTE_RIGHT for LTR languages, and %GTK_CONSTRAINT_ATTRIBUTE_LEFT for RTL ones

Width = 7_u32

The width of a widget

Height = 8_u32

The height of a widget

CenterX = 9_u32

The center of a widget, on the horizontal axis

CenterY = 10_u32

The center of a widget, on the vertical axis

Baseline = 11_u32

The baseline of a widget

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def baseline? #

[View source]
def bottom? #

[View source]
def center_x? #

[View source]
def center_y? #

[View source]
def end? #

[View source]
def height? #

[View source]
def left? #

[View source]
def none? #

[View source]
def right? #

[View source]
def start? #

[View source]
def top? #

[View source]
def width? #

[View source]