enum Adw::LengthUnit

Overview

Describes length units.

| Unit | Regular Text | Large Text | | ---- | ------------ | ---------- | | 1px | 1px | 1px | | 1pt | 1.333333px | 1.666667px | | 1sp | 1px | 1.25px |

New values may be added to this enumeration over time.

Defined in:

lib/gi-crystal/src/auto/adw-1/adw.cr

Enum Members

Px = 0_u32

pixels

Pt = 1_u32

points, changes with text scale factor

Sp = 2_u32

scale independent pixels, changes with text scale factor

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.


Instance Method Detail

def pt? #

def px? #

def sp? #