123
123
<p><b>Boolean State.</b> An action with a boolean state will most typically be used with a "toggle" or "switch" menu item. The state can be set directly, but activating the action (with no parameter) results in the state being toggled. Selecting a toggle menu item will activate the action. The menu item should be rendered as "checked" when the state is true.</p>
124
124
<p><b>String Parameter and State.</b> Actions with string parameters and state will most typically be used to represent an enumerated choice over the items available for a group of radio menu items. Activating the action with a string parameter is equivalent to setting that parameter as the state. Radio menu items, in addition to being associated with the action, will have a target value. Selecting that menu item will result in activation of the action with the target value as the parameter. The menu item should be rendered as "selected" when the state of the action is equal to the target value of the menu item.</p>
125
125
<p>See the C API docs for a graphical example. </p>
127
127
</div><hr/><h2>Constructor & Destructor Documentation</h2>
128
128
<a class="anchor" id="aa50e7a927c5798cfa94d38a50b919c64"></a><!-- doxytag: member="Gio::MenuModel::~MenuModel" ref="aa50e7a927c5798cfa94d38a50b919c64" args="()" -->