Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gmenumodel.h File Reference
#include <glib-object.h>
#include <gio/giotypes.h>

Go to the source code of this file.

Data Structures

struct  _GMenuModel
 
struct  _GMenuModelClass
 
struct  _GMenuAttributeIter
 
struct  _GMenuAttributeIterClass
 
struct  _GMenuLinkIter
 
struct  _GMenuLinkIterClass
 

Macros

#define G_MENU_ATTRIBUTE_ACTION   "action"
 
#define G_MENU_ATTRIBUTE_ACTION_NAMESPACE   "action-namespace"
 
#define G_MENU_ATTRIBUTE_TARGET   "target"
 
#define G_MENU_ATTRIBUTE_LABEL   "label"
 
#define G_MENU_ATTRIBUTE_ICON   "icon"
 
#define G_MENU_LINK_SUBMENU   "submenu"
 
#define G_MENU_LINK_SECTION   "section"
 
#define G_TYPE_MENU_MODEL   (g_menu_model_get_type ())
 
#define G_MENU_MODEL(inst)
 
#define G_MENU_MODEL_CLASS(class)
 
#define G_IS_MENU_MODEL(inst)
 
#define G_IS_MENU_MODEL_CLASS(class)
 
#define G_MENU_MODEL_GET_CLASS(inst)
 
#define G_TYPE_MENU_ATTRIBUTE_ITER   (g_menu_attribute_iter_get_type ())
 
#define G_MENU_ATTRIBUTE_ITER(inst)
 
#define G_MENU_ATTRIBUTE_ITER_CLASS(class)
 
#define G_IS_MENU_ATTRIBUTE_ITER(inst)
 
#define G_IS_MENU_ATTRIBUTE_ITER_CLASS(class)
 
#define G_MENU_ATTRIBUTE_ITER_GET_CLASS(inst)
 
#define G_TYPE_MENU_LINK_ITER   (g_menu_link_iter_get_type ())
 
#define G_MENU_LINK_ITER(inst)
 
#define G_MENU_LINK_ITER_CLASS(class)
 
#define G_IS_MENU_LINK_ITER(inst)
 
#define G_IS_MENU_LINK_ITER_CLASS(class)
 
#define G_MENU_LINK_ITER_GET_CLASS(inst)
 

Typedefs

typedef struct _GMenuModelPrivate GMenuModelPrivate
 
typedef struct _GMenuModelClass GMenuModelClass
 
typedef struct _GMenuAttributeIterPrivate GMenuAttributeIterPrivate
 
typedef struct _GMenuAttributeIterClass GMenuAttributeIterClass
 
typedef struct _GMenuAttributeIter GMenuAttributeIter
 
typedef struct _GMenuLinkIterPrivate GMenuLinkIterPrivate
 
typedef struct _GMenuLinkIterClass GMenuLinkIterClass
 
typedef struct _GMenuLinkIter GMenuLinkIter
 

Functions

GIO_AVAILABLE_IN_2_32 GType g_menu_model_get_type (void) G_GNUC_CONST
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_model_is_mutable (GMenuModel *model)
 
GIO_AVAILABLE_IN_2_32 gint g_menu_model_get_n_items (GMenuModel *model)
 
GIO_AVAILABLE_IN_2_32 GMenuAttributeIterg_menu_model_iterate_item_attributes (GMenuModel *model, gint item_index)
 
GIO_AVAILABLE_IN_2_32 GVariantg_menu_model_get_item_attribute_value (GMenuModel *model, gint item_index, const gchar *attribute, const GVariantType *expected_type)
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_model_get_item_attribute (GMenuModel *model, gint item_index, const gchar *attribute, const gchar *format_string,...)
 
GIO_AVAILABLE_IN_2_32 GMenuLinkIterg_menu_model_iterate_item_links (GMenuModel *model, gint item_index)
 
GIO_AVAILABLE_IN_2_32 GMenuModelg_menu_model_get_item_link (GMenuModel *model, gint item_index, const gchar *link)
 
GIO_AVAILABLE_IN_2_32 void g_menu_model_items_changed (GMenuModel *model, gint position, gint removed, gint added)
 
GIO_AVAILABLE_IN_2_32 GType g_menu_attribute_iter_get_type (void) G_GNUC_CONST
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_attribute_iter_get_next (GMenuAttributeIter *iter, const gchar **out_name, GVariant **value)
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_attribute_iter_next (GMenuAttributeIter *iter)
 
GIO_AVAILABLE_IN_2_32 const gcharg_menu_attribute_iter_get_name (GMenuAttributeIter *iter)
 
GIO_AVAILABLE_IN_2_32 GVariantg_menu_attribute_iter_get_value (GMenuAttributeIter *iter)
 
GIO_AVAILABLE_IN_2_32 GType g_menu_link_iter_get_type (void) G_GNUC_CONST
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_link_iter_get_next (GMenuLinkIter *iter, const gchar **out_link, GMenuModel **value)
 
GIO_AVAILABLE_IN_2_32 gboolean g_menu_link_iter_next (GMenuLinkIter *iter)
 
GIO_AVAILABLE_IN_2_32 const gcharg_menu_link_iter_get_name (GMenuLinkIter *iter)
 
GIO_AVAILABLE_IN_2_32 GMenuModelg_menu_link_iter_get_value (GMenuLinkIter *iter)
 

Macro Definition Documentation

◆ G_IS_MENU_ATTRIBUTE_ITER

#define G_IS_MENU_ATTRIBUTE_ITER ( inst)
Value:
#define G_TYPE_MENU_ATTRIBUTE_ITER
Definition gmenumodel.h:222
#define G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type)
Definition gtype.h:541

Definition at line 227 of file gmenumodel.h.

227#define G_IS_MENU_ATTRIBUTE_ITER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
228 G_TYPE_MENU_ATTRIBUTE_ITER))

◆ G_IS_MENU_ATTRIBUTE_ITER_CLASS

#define G_IS_MENU_ATTRIBUTE_ITER_CLASS ( class)
Value:
#define G_TYPE_CHECK_CLASS_TYPE(g_class, g_type)
Definition gtype.h:610

Definition at line 229 of file gmenumodel.h.

229#define G_IS_MENU_ATTRIBUTE_ITER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
230 G_TYPE_MENU_ATTRIBUTE_ITER))

◆ G_IS_MENU_LINK_ITER

#define G_IS_MENU_LINK_ITER ( inst)
Value:
#define G_TYPE_MENU_LINK_ITER
Definition gmenumodel.h:264

Definition at line 269 of file gmenumodel.h.

269#define G_IS_MENU_LINK_ITER(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
270 G_TYPE_MENU_LINK_ITER))

◆ G_IS_MENU_LINK_ITER_CLASS

#define G_IS_MENU_LINK_ITER_CLASS ( class)
Value:

Definition at line 271 of file gmenumodel.h.

271#define G_IS_MENU_LINK_ITER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
272 G_TYPE_MENU_LINK_ITER))

◆ G_IS_MENU_MODEL

#define G_IS_MENU_MODEL ( inst)
Value:
#define G_TYPE_MENU_MODEL
Definition gmenumodel.h:115

Definition at line 120 of file gmenumodel.h.

120#define G_IS_MENU_MODEL(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
121 G_TYPE_MENU_MODEL))

◆ G_IS_MENU_MODEL_CLASS

#define G_IS_MENU_MODEL_CLASS ( class)
Value:

Definition at line 122 of file gmenumodel.h.

122#define G_IS_MENU_MODEL_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
123 G_TYPE_MENU_MODEL))

◆ G_MENU_ATTRIBUTE_ACTION

#define G_MENU_ATTRIBUTE_ACTION   "action"

G_MENU_ATTRIBUTE_ACTION:

The menu item attribute which holds the action name of the item. Action names are namespaced with an identifier for the action group in which the action resides. For example, "win." for window-specific actions and "app." for application-wide actions.

See also g_menu_model_get_item_attribute() and g_menu_item_set_attribute().

Since: 2.32

Definition at line 43 of file gmenumodel.h.

◆ G_MENU_ATTRIBUTE_ACTION_NAMESPACE

#define G_MENU_ATTRIBUTE_ACTION_NAMESPACE   "action-namespace"

G_MENU_ATTRIBUTE_ACTION_NAMESPACE:

The menu item attribute that holds the namespace for all action names in menus that are linked from this item.

Since: 2.36

Definition at line 53 of file gmenumodel.h.

◆ G_MENU_ATTRIBUTE_ICON

#define G_MENU_ATTRIBUTE_ICON   "icon"

G_MENU_ATTRIBUTE_ICON:

The menu item attribute which holds the icon of the item.

The icon is stored in the format returned by g_icon_serialize().

This attribute is intended only to represent 'noun' icons such as favicons for a webpage, or application icons. It should not be used for 'verbs' (ie: stock icons).

Since: 2.38

Definition at line 89 of file gmenumodel.h.

◆ G_MENU_ATTRIBUTE_ITER

#define G_MENU_ATTRIBUTE_ITER ( inst)
Value:
#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)
Definition gtype.h:528

Definition at line 223 of file gmenumodel.h.

223#define G_MENU_ATTRIBUTE_ITER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
224 G_TYPE_MENU_ATTRIBUTE_ITER, GMenuAttributeIter))

◆ G_MENU_ATTRIBUTE_ITER_CLASS

#define G_MENU_ATTRIBUTE_ITER_CLASS ( class)
Value:
#define G_TYPE_CHECK_CLASS_CAST(g_class, g_type, c_type)
Definition gtype.h:597

Definition at line 225 of file gmenumodel.h.

225#define G_MENU_ATTRIBUTE_ITER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
226 G_TYPE_MENU_ATTRIBUTE_ITER, GMenuAttributeIterClass))

◆ G_MENU_ATTRIBUTE_ITER_GET_CLASS

#define G_MENU_ATTRIBUTE_ITER_GET_CLASS ( inst)
Value:
#define G_TYPE_INSTANCE_GET_CLASS(instance, g_type, c_type)
Definition gtype.h:571

Definition at line 231 of file gmenumodel.h.

231#define G_MENU_ATTRIBUTE_ITER_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
232 G_TYPE_MENU_ATTRIBUTE_ITER, GMenuAttributeIterClass))

◆ G_MENU_ATTRIBUTE_LABEL

#define G_MENU_ATTRIBUTE_LABEL   "label"

G_MENU_ATTRIBUTE_LABEL:

The menu item attribute which holds the label of the item.

Since: 2.32

Definition at line 74 of file gmenumodel.h.

◆ G_MENU_ATTRIBUTE_TARGET

#define G_MENU_ATTRIBUTE_TARGET   "target"

G_MENU_ATTRIBUTE_TARGET:

The menu item attribute which holds the target with which the item's action will be activated.

See also g_menu_item_set_action_and_target()

Since: 2.32

Definition at line 65 of file gmenumodel.h.

◆ G_MENU_LINK_ITER

#define G_MENU_LINK_ITER ( inst)
Value:

Definition at line 265 of file gmenumodel.h.

265#define G_MENU_LINK_ITER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
266 G_TYPE_MENU_LINK_ITER, GMenuLinkIter))

◆ G_MENU_LINK_ITER_CLASS

#define G_MENU_LINK_ITER_CLASS ( class)
Value:

Definition at line 267 of file gmenumodel.h.

267#define G_MENU_LINK_ITER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
268 G_TYPE_MENU_LINK_ITER, GMenuLinkIterClass))

◆ G_MENU_LINK_ITER_GET_CLASS

#define G_MENU_LINK_ITER_GET_CLASS ( inst)
Value:

Definition at line 273 of file gmenumodel.h.

273#define G_MENU_LINK_ITER_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
274 G_TYPE_MENU_LINK_ITER, GMenuLinkIterClass))

◆ G_MENU_LINK_SECTION

#define G_MENU_LINK_SECTION   "section"

G_MENU_LINK_SECTION:

The name of the link that associates a menu item with a section. The linked menu will usually be shown in place of the menu item, using the item's label as a header.

See also g_menu_item_set_link().

Since: 2.32

Definition at line 113 of file gmenumodel.h.

◆ G_MENU_LINK_SUBMENU

#define G_MENU_LINK_SUBMENU   "submenu"

G_MENU_LINK_SUBMENU:

The name of the link that associates a menu item with a submenu.

See also g_menu_item_set_link().

Since: 2.32

Definition at line 100 of file gmenumodel.h.

◆ G_MENU_MODEL

#define G_MENU_MODEL ( inst)
Value:

Definition at line 116 of file gmenumodel.h.

116#define G_MENU_MODEL(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
117 G_TYPE_MENU_MODEL, GMenuModel))

◆ G_MENU_MODEL_CLASS

#define G_MENU_MODEL_CLASS ( class)
Value:

Definition at line 118 of file gmenumodel.h.

118#define G_MENU_MODEL_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
119 G_TYPE_MENU_MODEL, GMenuModelClass))

◆ G_MENU_MODEL_GET_CLASS

#define G_MENU_MODEL_GET_CLASS ( inst)
Value:

Definition at line 124 of file gmenumodel.h.

124#define G_MENU_MODEL_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
125 G_TYPE_MENU_MODEL, GMenuModelClass))

◆ G_TYPE_MENU_ATTRIBUTE_ITER

#define G_TYPE_MENU_ATTRIBUTE_ITER   (g_menu_attribute_iter_get_type ())

Definition at line 222 of file gmenumodel.h.

◆ G_TYPE_MENU_LINK_ITER

#define G_TYPE_MENU_LINK_ITER   (g_menu_link_iter_get_type ())

Definition at line 264 of file gmenumodel.h.

◆ G_TYPE_MENU_MODEL

#define G_TYPE_MENU_MODEL   (g_menu_model_get_type ())

Definition at line 115 of file gmenumodel.h.

Typedef Documentation

◆ GMenuAttributeIter

Definition at line 132 of file gmenumodel.h.

◆ GMenuAttributeIterClass

Definition at line 131 of file gmenumodel.h.

◆ GMenuAttributeIterPrivate

typedef struct _GMenuAttributeIterPrivate GMenuAttributeIterPrivate

Definition at line 130 of file gmenumodel.h.

◆ GMenuLinkIter

typedef struct _GMenuLinkIter GMenuLinkIter

Definition at line 136 of file gmenumodel.h.

◆ GMenuLinkIterClass

Definition at line 135 of file gmenumodel.h.

◆ GMenuLinkIterPrivate

typedef struct _GMenuLinkIterPrivate GMenuLinkIterPrivate

Definition at line 134 of file gmenumodel.h.

◆ GMenuModelClass

Definition at line 128 of file gmenumodel.h.

◆ GMenuModelPrivate

typedef struct _GMenuModelPrivate GMenuModelPrivate

Definition at line 127 of file gmenumodel.h.

Function Documentation

◆ g_menu_attribute_iter_get_name()

GIO_AVAILABLE_IN_2_32 const gchar * g_menu_attribute_iter_get_name ( GMenuAttributeIter * iter)

◆ g_menu_attribute_iter_get_next()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_attribute_iter_get_next ( GMenuAttributeIter * iter,
const gchar ** out_name,
GVariant ** value )

◆ g_menu_attribute_iter_get_type()

GIO_AVAILABLE_IN_2_32 GType g_menu_attribute_iter_get_type ( void )

◆ g_menu_attribute_iter_get_value()

GIO_AVAILABLE_IN_2_32 GVariant * g_menu_attribute_iter_get_value ( GMenuAttributeIter * iter)

◆ g_menu_attribute_iter_next()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_attribute_iter_next ( GMenuAttributeIter * iter)

◆ g_menu_link_iter_get_name()

GIO_AVAILABLE_IN_2_32 const gchar * g_menu_link_iter_get_name ( GMenuLinkIter * iter)

◆ g_menu_link_iter_get_next()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_link_iter_get_next ( GMenuLinkIter * iter,
const gchar ** out_link,
GMenuModel ** value )

◆ g_menu_link_iter_get_type()

GIO_AVAILABLE_IN_2_32 GType g_menu_link_iter_get_type ( void )

◆ g_menu_link_iter_get_value()

GIO_AVAILABLE_IN_2_32 GMenuModel * g_menu_link_iter_get_value ( GMenuLinkIter * iter)

◆ g_menu_link_iter_next()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_link_iter_next ( GMenuLinkIter * iter)

◆ g_menu_model_get_item_attribute()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_model_get_item_attribute ( GMenuModel * model,
gint item_index,
const gchar * attribute,
const gchar * format_string,
... )

◆ g_menu_model_get_item_attribute_value()

GIO_AVAILABLE_IN_2_32 GVariant * g_menu_model_get_item_attribute_value ( GMenuModel * model,
gint item_index,
const gchar * attribute,
const GVariantType * expected_type )

◆ g_menu_model_get_item_link()

GIO_AVAILABLE_IN_2_32 GMenuModel * g_menu_model_get_item_link ( GMenuModel * model,
gint item_index,
const gchar * link )

◆ g_menu_model_get_n_items()

GIO_AVAILABLE_IN_2_32 gint g_menu_model_get_n_items ( GMenuModel * model)

◆ g_menu_model_get_type()

GIO_AVAILABLE_IN_2_32 GType g_menu_model_get_type ( void )

◆ g_menu_model_is_mutable()

GIO_AVAILABLE_IN_2_32 gboolean g_menu_model_is_mutable ( GMenuModel * model)

◆ g_menu_model_items_changed()

GIO_AVAILABLE_IN_2_32 void g_menu_model_items_changed ( GMenuModel * model,
gint position,
gint removed,
gint added )

◆ g_menu_model_iterate_item_attributes()

GIO_AVAILABLE_IN_2_32 GMenuAttributeIter * g_menu_model_iterate_item_attributes ( GMenuModel * model,
gint item_index )

◆ g_menu_model_iterate_item_links()

GIO_AVAILABLE_IN_2_32 GMenuLinkIter * g_menu_model_iterate_item_links ( GMenuModel * model,
gint item_index )