public class CheckButton extends ToggleButton
CheckButtons are similar to ToggleButtons, but look very different. Contrary to ToggleButtons, which are Buttons with text inside them, they are small check squares, with descriptive text beside them. As with ToggleButtons, they can be used to toggle options on or off.
CheckButtons derive from ToggleButtons and hence behave somewhat similarly.
See in particular the TOGGLED
Signal inherited
from ToggleButton to detect changes in state to the CheckButton.
The choice between a CheckButton and a ToggleButton
is left to the
developer's discretion. A CheckButton can take considerably lesser space
than a ToggleButton. A CheckButton is more useful when you have a list of
related options that need to be set or unset. A ToggleButton could be used
when a single option needs to be toggled.
ToggleButton.Toggled
Button.Clicked
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent
Constructor and Description |
---|
CheckButton()
Construct a new CheckButton.
|
CheckButton(String label)
Construct a new CheckButton containing a label with the given text.
|
connect, getActive, setActive
connect, emitClicked, getAlignmentX, getAlignmentY, getImage, getLabel, getRelatedAction, getRelief, setAlignment, setFocusOnClick, setImage, setLabel, setRelatedAction, setRelief
add, getChildren, remove, setBorderWidth
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll