Types

Types — Types that are used by both client and server.

Stability Level

Unstable, unless otherwise indicated

Functions

Types and Values

Includes

#include <libdbusmenu-glib/types.h>

Description

Enums that are used to describe states of the server across the bus. They are sent over dbus using their nicks but then turned back into enums by the client.

Functions

dbusmenu_status_get_nick ()

const gchar *
dbusmenu_status_get_nick (DbusmenuStatus value);

Looks up in the enum table for the nick of value .

Parameters

value

The value of DbusmenuStatus to get the nick of

 

Returns

The nick for the given value or NULL on error


dbusmenu_status_get_type ()

GType
dbusmenu_status_get_type (void);

Builds a GLib type for the DbusmenuStatus enumeration.

Returns

A unique GType for the DbusmenuStatus enum.


dbusmenu_status_get_value_from_nick ()

DbusmenuStatus
dbusmenu_status_get_value_from_nick (const gchar *nick);

Looks up in the enum table for the value of nick .

Parameters

nick

The enum nick to lookup

 

Returns

The value for the given nick


dbusmenu_text_direction_get_nick ()

const gchar *
dbusmenu_text_direction_get_nick (DbusmenuTextDirection value);

Looks up in the enum table for the nick of value .

Parameters

value

The value of DbusmenuTextDirection to get the nick of

 

Returns

The nick for the given value or NULL on error


dbusmenu_text_direction_get_type ()

GType
dbusmenu_text_direction_get_type (void);

Builds a GLib type for the DbusmenuTextDirection enumeration.

Returns

A unique GType for the DbusmenuTextDirection enum.


dbusmenu_text_direction_get_value_from_nick ()

DbusmenuTextDirection
dbusmenu_text_direction_get_value_from_nick
                               (const gchar *nick);

Looks up in the enum table for the value of nick .

Parameters

nick

The enum nick to lookup

 

Returns

The value for the given nick

Types and Values

DBUSMENU_TYPE_STATUS

#define DBUSMENU_TYPE_STATUS (dbusmenu_status_get_type())

Gets the GType value for the type associated with the DbusmenuStatus enumerated type.


DBUSMENU_TYPE_TEXT_DIRECTION

#define DBUSMENU_TYPE_TEXT_DIRECTION (dbusmenu_text_direction_get_type())

Gets the GType value for the type associated with the DbusmenuTextDirection enumerated type.


enum DbusmenuStatus

Tracks how the menus should be presented to the user.

Members

DBUSMENU_STATUS_NORMAL

Everything is normal

 

DBUSMENU_STATUS_NOTICE

The menus should be shown at a higher priority

 

enum DbusmenuTextDirection

The direction of text that the strings that this server will be sending strings as.

Members

DBUSMENU_TEXT_DIRECTION_NONE

Unspecified text direction

 

DBUSMENU_TEXT_DIRECTION_LTR

Left-to-right text direction

 

DBUSMENU_TEXT_DIRECTION_RTL

Right-to-left text direction