Expand description
The native control behind each Nifty widget, and the objects that report its events.
StructsΒ§
EnumsΒ§
- Widget
Kind π AppKitholds targets and delegates weakly, so each widget owns its own.
ConstantsΒ§
- CARD_
BORDER_ πWIDTH - CARD_
CORNER_ πRADIUS - Matches the corner radius of macOSβs own grouped panels, such as System Settingsβ.
- DIVIDER_
SIZE π - FULL_
PROGRESS π - A progress bar is full at this value.
- MIN_
TEXT_ πFIELD_ WIDTH - Text fields have no useful natural width when empty, so they start at least this wide.
- MIN_
TRACK_ πWIDTH - Progress bars and sliders have no natural width, so they start at least this wide.
- NO_ITEM π
- The index that selects no item of a pop-up button.
- TEXT_
AREA_ πINSET - The space between a text areaβs border and its text, in points.
FunctionsΒ§
- behind_
window π - A translucent
materialthat shows the desktop through the window and dims with the window when it is inactive. - border_
on_ πhover - Draws no bezel until the pointer is over the button, as toolbar buttons do.
- click_
button π - A push button that tells
targetwhen it is clicked. - panel π
- A plain filled box.
NSBoxresolves its colors when it draws, so it follows dark mode and accessibility contrast without being told. - release_
after_ πevent - Hands the object to the run loopβs autorelease pool, which drains after each event.
- show_
title_ πbeside - Gives an icon-only button its title as its tooltip and what screen readers say. The
button itself keeps no title: setting one on an image-only button once it is shown
makes
AppKitdraw it over the image. - system_
font π - text_
alignment π AppKithas a natural alignment but no opposite of it, so the end follows the direction.- text_
area_ πsize - A text areaβs natural size: the text fieldβs least width, and
lineslines of its font inside its inset and border. - text_
color π