JNIEXPORT jint JNICALL ATK_NATIVE(_1ATK_1SELECTION_1GET_1IFACE) (JNIEnv *env, jclass that, jint arg0) { jint rc = 0; ATK_NATIVE_ENTER(env, that, _1ATK_1SELECTION_1GET_1IFACE_FUNC); rc = (jint)ATK_SELECTION_GET_IFACE(arg0); ATK_NATIVE_EXIT(env, that, _1ATK_1SELECTION_1GET_1IFACE_FUNC); return rc; }
/** * atk_selection_select_all_selection: * @selection: a #GObject instance that implements AtkSelectionIface * * Causes every child of the object to be selected if the object * supports multiple selections. * * Returns: TRUE if success, FALSE otherwise. **/ gboolean atk_selection_select_all_selection (AtkSelection *obj) { AtkSelectionIface *iface; g_return_val_if_fail (ATK_IS_SELECTION (obj), FALSE); iface = ATK_SELECTION_GET_IFACE (obj); if (iface->select_all_selection) return (iface->select_all_selection) (obj); else return FALSE; }
/** * atk_selection_get_selection_count: * @selection: a #GObject instance that implements AtkSelectionIface * * Gets the number of accessible children currently selected. * Note: callers should not rely on %NULL 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 @selection does not implement this interface. **/ gint atk_selection_get_selection_count (AtkSelection *obj) { AtkSelectionIface *iface; g_return_val_if_fail (ATK_IS_SELECTION (obj), 0); iface = ATK_SELECTION_GET_IFACE (obj); if (iface->get_selection_count) return (iface->get_selection_count) (obj); else return 0; }
/** * atk_selection_is_child_selected: * @selection: a #GObject instance that implements AtkSelectionIface * @i: a #gint specifying the child index. * * Determines if the current child of this object is selected * Note: callers should not rely on %NULL 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 gboolean representing the specified child is selected, or 0 * if @selection does not implement this interface. **/ gboolean atk_selection_is_child_selected (AtkSelection *obj, gint i) { AtkSelectionIface *iface; g_return_val_if_fail (ATK_IS_SELECTION (obj), FALSE); iface = ATK_SELECTION_GET_IFACE (obj); if (iface->is_child_selected) return (iface->is_child_selected) (obj, i); else return FALSE; }
/** * atk_selection_ref_selection: * @selection: a #GObject instance that implements AtkSelectionIface * @i: a #gint specifying the index in the selection set. (e.g. the * ith selection as opposed to the ith child). * * Gets a reference to the accessible object representing the specified * selected child of the object. * Note: callers should not rely on %NULL 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: (transfer full): an #AtkObject representing the selected * accessible , or %NULL if @selection does not implement this interface. **/ AtkObject* atk_selection_ref_selection (AtkSelection *obj, gint i) { AtkSelectionIface *iface; g_return_val_if_fail (ATK_IS_SELECTION (obj), NULL); iface = ATK_SELECTION_GET_IFACE (obj); if (iface->ref_selection) return (iface->ref_selection) (obj, i); else return NULL; }