enum Gtk::ConstraintStrength

Overview

The strength of a constraint, expressed as a symbolic constant.

The strength of a #Constraint can be expressed with any positive integer; the values of this enumeration can be used for readability.

Defined in:

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

Enum Members

Required = 1001001000_u32

The constraint is required towards solving the layout

Strong = 1000000000_u32

A strong constraint

Medium = 1000_u32

A medium constraint

Weak = 1_u32

A weak constraint

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 medium? #

[View source]
def required? #

[View source]
def strong? #

[View source]
def weak? #

[View source]