12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simple <strong>Widget</strong>sToggle ActionsThe Toggle widget supports the following actions:• Switching the Toggle widget between the foreground and background colors withset and unset and toggle• Processing application callbacks with notify• Switching the internal border between highlighted and unhighlighted states withhighlight and unhighlightThe following are the default translation bindings used by the Toggle widget:Toggle Actions: highlight(Always): unhighlight(),: toggle() notify()The full list of actions supported by Toggle is:highlight(condition)unhighlight()set()unset()toggle()reset()Displays the internal highlight border in the color(foreground or background ) that contrasts with theinterior color of the Toggle widget. The conditionsWhenUnset and Always are understood by this actionprocedure. If no argument is passed then WhenUnsetis assumed.Displays the internal highlight border in the color(foreground or background ) that matches the interiorcolor of the Toggle widget.Enters the set state, in which notify is possible. Thisaction causes the Toggle widget to display its interiorin the foreground color. The label or bitmap is displayedin the background color.Cancels the set state and displays the interior of theToggle widget in the background color. The label orbitmap is displayed in the foreground color.Changes the current state of the Toggle widget, causingto be set if it was previously unset, and unset if itwas previously set. If the widget is to be set, and is ina radio group then this procedure may unset anotherToggle widget causing all routines on its callback listto be invoked. The callback routines for the Togglethat is to be unset will be called before the one thatis to be set.Cancels any set or highlight and displays the interiorof the Toggle widget in the background color,with the label displayed in the foreground color.55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!