linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / CheckBox.schelp
blobde735014ee61ff52aea4c44b70b31e0d329a4ba1
1 CLASS:: CheckBox
2 redirect:: implClass
3 summary:: A view that toggles between two states.
4 categories:: GUI>Views
6 DESCRIPTION::
8 A view that toggles between two states when clicked, displaying or hiding a check mark accordingly.
10 CLASSMETHODS::
12 PRIVATE:: key
16 INSTANCEMETHODS::
20 SUBSECTION:: Data
24 METHOD:: value
25         Stating which of the two states the view is currently in, false meaning unchecked and true meaning checked. Default to false.
27         argument::
28                 A Boolean.
30 METHOD:: valueAction
31         Sets link::#-value:: and triggeres link::#-action::.
33         argument::
34                 A Boolean.
36 METHOD:: string
37         The text displayed next to the check mark.
41 SUBSECTION:: Actions
43 METHOD:: action
44         The action object evaluated whenever the user toggles the state.
48 SUBSECTION:: Drag and drop
50 METHOD:: defaultGetDrag
51         returns::
52                 The link::#-value::.
54 METHOD:: defaultCanReceiveDrag
55         returns::
56                 True if the current drag data is a Boolean.
58 METHOD:: defaultReceiveDrag
59         Sets link::#-valueAction:: to the current drag data.