minwin
app
button
canvas
combo
component
dialog
event
font
geometry
group
icon
image
label
layout
listbox
menu
multidg
paint
peer
peerimpl
scroll
text
window
|
minwin.button
Various button classes like PushButtons.
- class AbstractButton: minwin.component.WindowChild;
- Abstract button base class.
- int cmd;
- The command to send when this button is pressed (activated).
- MultiDelegate!(Component) actionDelegate;
- Delegates to fire when the button is pressed.
- char[] text;
- Read/write property for the text to display in the button.
- Icon icon;
- Read/write property for the icon to display in the button (if supported).
- void doCommand(int cmd);
- Fire the actionDelegate if the command is the button activation command.
If the button's cmd value is non-zero call the parent's doCommand function.
- class AbstractToggleButton: minwin.button.AbstractButton;
- Abstract base class of buttons that toggle on and off.
- bool selected;
- Read/write property for if the button is selected or not.
- class Button: minwin.button.AbstractButton;
- A pushbutton.
- this(Component parent, char[] text, char[] name = "");
- Construct a pushbutton with given parent and text and optional name.
- class CheckBox: minwin.button.AbstractToggleButton;
- A checkbox.
- this(Component parent, char[] text, char[] name = "");
- Construct a checkbox with given parent and text and optional name.
- class RadioButton: minwin.button.AbstractToggleButton;
- A radio button.
- this(Component parent, char[] text, char[] name = "");
- Construct a radio button with given parent and text and optional name.
- class ToggleButton: minwin.button.AbstractToggleButton;
- A toggle button.
- this(Component parent, char[] text, char[] name = "");
- Construct a toggle button with given parent and text and optional name.
- class ToggleGroup;
- A collection of mutually-exclusive AbstractToggleButtons.
- AbstractToggleButton[] buttons;
- The buttons in the group.
- void addButton(AbstractToggleButton[] b...);
- Adds the button to the group of buttons managed by this ToggleGroup.
- void select(Component c);
- Select c and deselect the other buttons in the group.
- void select(int n);
- Select the buttons[n] and deselect the other buttons in the group.
- int selected;
- Return the index of the selected button.
|