SparkStartGuideReferencePlatformsCompare GitHub

Reference

Generated out of parse.c, dom.c and spark.h — the source that decides these answers — so this page cannot drift from the code.

Tags, and what they become

tagmacOSWindowsLinux
<button>NSButtonBUTTONdrawn + hit-tested
<field>NSTextFieldEDITEDIT-alike
<check>NSButton switchBUTTON BS_CHECKBOXdrawn
<sep>NSBoxa linea line
<text>NSTextFieldSTATICXft
<scroll>NSScrollViewa clipping windowdrawn
<list>NSTableViewSysListView32drawn
<item>a rowa rowa row
<area>NSTextViewEDIT ES_MULTILINEdrawn
<select>NSPopUpButtonCOMBOBOXdrawn
<radio>NSButton radioBUTTON BS_RADIOBUTTONdrawn
<slider>NSSlidermsctls_trackbar32drawn
<progress>NSProgressIndicatormsctls_progress32drawn
<spin>NSSteppermsctls_updown32drawn
<image>NSImageViewGDI+Spark's own painter
<link>NSButton linkdrawndrawn
<password>NSSecureTextFieldEDIT ES_PASSWORDdrawn
<search>NSSearchFieldEDITdrawn
<toggle>NSSwitchdrawndrawn
<togglebutton>NSButton push-onBUTTON BS_PUSHLIKEdrawn
<spinner>NSProgressIndicator spinningdrawndrawn
<menu>NSMenuHMENU
<menuitem>NSMenuItema menu entry
<tabs>NSTabViewSysTabControl32drawn
<tab>a taba taba tab
<tree>NSOutlineViewSysTreeView32drawn
<date>NSDatePickerSysDateTimePick32drawn
<toolbar>a rowa rowa row
<table>NSTableViewSysListView32drawn
<column>NSTableColumna columna column
<stack>layered viewslayered windowslayered
<tip>a styled windowa styled windowa styled window
<bar>a bara bara bar
<surface>a drawn viewan owner-drawn controlthe canvas
<fill>a shapea shapea shape
<picture>a shapea shapea shape

Attributes (50)

Settable from markup and from a script by the same name, and readable back as what they are.

gappadmin-sizemax-sizeresizablealways-on-topframelessfullscreenatrotateopacityscalebundleanimatefromtocolsmin-colwhgrowalignselfsizebolditalictext-alignvalignshadowshadow-ygradient-xgradientcaret-colorselection-colormodaldisabledcolorbgradiusborderaccent-hoveraccentborder-color-hoverborder-colorbg-hoverbg-activebg-disabledplaceholderlabelvalue

Events

clickchangeinputfocusblurmouseentermouseleaveresizeframekeytrayhotkeydropmessage

Services

What the system already runs, asked for by name. Each answers null where the system has no such thing.

servicewhat it is
alert confirmopen save dialogs
clip-get clip-setclipboard
window-size window-titlethe window
runa program, returning its output
open-urlhand a URL to the system browser
tray <icon> <tooltip>an icon in the system's status area
notify <title> <body>a message in the system's own centre
hotkey <combo>a key the system reports while we sleep
window-open <file>a second window, running that document
window-tell <text>hand a line to every other window
sound <file>play it, through whatever the system has
update-check <manifest>what version is out there, or nothing
update-apply <manifest>fetch it and put it in place