Trait atk::prelude::SelectionExt
source · [−]pub trait SelectionExt: 'static {
fn add_selection(&self, i: i32) -> bool;
fn clear_selection(&self) -> bool;
fn selection_count(&self) -> i32;
fn is_child_selected(&self, i: i32) -> bool;
fn ref_selection(&self, i: i32) -> Option<Object>;
fn remove_selection(&self, i: i32) -> bool;
fn select_all_selection(&self) -> bool;
fn connect_selection_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn add_selection(&self, i: i32) -> bool
fn add_selection(&self, i: i32) -> bool
sourcefn clear_selection(&self) -> bool
fn clear_selection(&self) -> bool
Clears the selection in the object so that no children in the object are selected.
Returns
TRUE if success, FALSE otherwise.
sourcefn selection_count(&self) -> i32
fn selection_count(&self) -> i32
Gets the number of accessible children currently selected.
Note: callers should not rely on None
or on a zero value for
indication of whether AtkSelectionIface is implemented, they should
use type checking/interface checking macros or the
atk_get_accessible_value()
convenience method.
Returns
a gint representing the number of items selected, or 0
if self
does not implement this interface.
sourcefn is_child_selected(&self, i: i32) -> bool
fn is_child_selected(&self, i: i32) -> bool
Determines if the current child of this object is selected
Note: callers should not rely on None
or on a zero value for
indication of whether AtkSelectionIface is implemented, they should
use type checking/interface checking macros or the
atk_get_accessible_value()
convenience method.
i
a gint
specifying the child index.
Returns
a gboolean representing the specified child is selected, or 0
if self
does not implement this interface.
sourcefn ref_selection(&self, i: i32) -> Option<Object>
fn ref_selection(&self, i: i32) -> Option<Object>
Gets a reference to the accessible object representing the specified
selected child of the object.
Note: callers should not rely on None
or on a zero value for
indication of whether AtkSelectionIface is implemented, they should
use type checking/interface checking macros or the
atk_get_accessible_value()
convenience method.
i
a gint
specifying the index in the selection set. (e.g. the
ith selection as opposed to the ith child).
Returns
an Object
representing the
selected accessible, or None
if self
does not implement this
interface.
sourcefn remove_selection(&self, i: i32) -> bool
fn remove_selection(&self, i: i32) -> bool
sourcefn select_all_selection(&self) -> bool
fn select_all_selection(&self) -> bool
Causes every child of the object to be selected if the object supports multiple selections.
Returns
TRUE if success, FALSE otherwise.
sourcefn connect_selection_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_selection_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
The “selection-changed” signal is emitted by an object which implements AtkSelection interface when the selection changes.