Constants

These are the constants used throughout xibless.

Font Family constants

These represent their NSFont constructor counterparts. For example, a font with FontFamily.Label will be created as [NSFont labelFontOfSize:<size>]

FontFamily.System
FontFamily.Label
FontFamily.Menu
FontFamily.Menubar
FontFamily.Message
FontFamily.Palette
FontFamily.Titlebar
FontFamily.Tooltips

Font Size constants

The first 3 constants are translated to their corresponding NSFont class methods (for example, [NSFont systemFontSize]) and the last 3 are translated to [NSFont systemFontSizeForControlSize:<const>] (for example, [NSFont systemFontSizeForControlSize:NSRegularControlSize]).

FontSize.System
FontSize.SmallSystem
FontSize.Label
FontSize.RegularControl
FontSize.SmallControl
FontSize.MiniControl

Font Trait constants

FontTrait.Bold
FontTrait.Italic

Corner constants

Pack.UpperLeft
Pack.UpperRight
Pack.LowerLeft
Pack.LowerRight

Side constants

Pack.Left
Pack.Right
Pack.Above
Pack.Below

PanelStyle constants

PanelStyle.Regular
PanelStyle.Utility
PanelStyle.HUD

TextAlignment constants

TextAlignment.Left
TextAlignment.Right
TextAlignment.Center
TextAlignment.Justified
TextAlignment.Natural

ControlSize constants

ControlSize.Regular
ControlSize.Small
ControlSize.Mini

NumberStyle constants

NumberStyle.NoStyle
NumberStyle.Decimal
NumberStyle.Currency
NumberStyle.Percent
NumberStyle.Scientific
NumberStyle.SpellOut

Special shortcut keys

Menu shortcuts with special keys can be created with these special itentifiers:

return
enter
backspace
esc
arrowup
arrowdown
arrowleft
arrowright