| Meego Panel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
MplPanelClient; MplPanelClientClass; void mpl_panel_client_show (MplPanelClient *panel); void mpl_panel_client_hide (MplPanelClient *panel); void mpl_panel_client_set_height_request (MplPanelClient *panel,guint height); guint mpl_panel_client_get_height_request (MplPanelClient *panel); void mpl_panel_client_request_focus (MplPanelClient *panel); void mpl_panel_client_request_button_style (MplPanelClient *panel,const gchar *style); void mpl_panel_client_request_tooltip (MplPanelClient *panel,const gchar *tooltip); void mpl_panel_client_request_button_state (MplPanelClient *panel,MnbButtonState state); void mpl_panel_client_request_modality (MplPanelClient *panel,gboolean modal); void mpl_panel_client_unload (MplPanelClient *panel); gboolean mpl_panel_client_launch_application (MplPanelClient *panel,const gchar *commandline); gboolean mpl_panel_client_launch_application_from_desktop_file (MplPanelClient *panel,const gchar *desktop,GList *files); gboolean mpl_panel_client_launch_default_application_for_uri (MplPanelClient *panel,const gchar *uri); Window mpl_panel_client_get_xid (MplPanelClient *panel); void mpl_panel_client_ready (MplPanelClient *panel); gboolean mpl_panel_client_set_delayed_ready (MplPanelClient *panel,gboolean delayed); gboolean mpl_panel_client_is_windowless (MplPanelClient *panel); enum MnbButtonState; #define MPL_PANEL_DBUS_NAME_PREFIX #define MPL_PANEL_DBUS_PATH_PREFIX #define MPL_PANEL_DBUS_INTERFACE #define MPL_TOOLBAR_DBUS_PATH #define MPL_TOOLBAR_DBUS_NAME #define MPL_TOOLBAR_DBUS_INTERFACE #define MPL_PANEL_MYZONE #define MPL_PANEL_STATUS #define MPL_PANEL_ZONES #define MPL_PANEL_INTERNET #define MPL_PANEL_MEDIA #define MPL_PANEL_APPLICATIONS #define MPL_PANEL_PEOPLE #define MPL_PANEL_PASTEBOARD #define MPL_PANEL_NETWORK #define MPL_PANEL_BLUETOOTH #define MPL_PANEL_POWER #define MPL_PANEL_TEST
GObject +----MplPanelClient +----MplPanelClutter +----MplPanelGtk +----MplPanelWindowless
"button-style" gchar* : Read / Write / Construct "delayed-ready" gboolean : Read / Write / Construct "name" gchar* : Read / Write / Construct Only "stylesheet" gchar* : Read / Write / Construct Only "toolbar-service" gboolean : Read / Write / Construct Only "tooltip" gchar* : Read / Write / Construct "windowless" gboolean : Read / Write / Construct "xid" guint : Read / Write / Construct
"hide" : Run Last "hide-begin" : Run Last "hide-end" : Run Last "ready" : Run Last "request-button-state" : Run Last "request-button-style" : Run Last "request-focus" : Run Last "request-modality" : Run Last "request-tooltip" : Run Last "set-position" : Run First "set-size" : Run First "show" : Run Last "show-begin" : Run Last "show-end" : Run Last "unload" : Run Last
typedef struct {
/*
* Public signal closures.
*/
void (*unload) (MplPanelClient *panel);
void (*set_size) (MplPanelClient *panel, guint width, guint height);
void (*set_position) (MplPanelClient *panel, gint x, gint y);
void (*show) (MplPanelClient *panel);
void (*show_begin) (MplPanelClient *panel);
void (*show_end) (MplPanelClient *panel);
void (*hide) (MplPanelClient *panel);
void (*hide_begin) (MplPanelClient *panel);
void (*hide_end) (MplPanelClient *panel);
} MplPanelClientClass;
Base class for panels.
| signal closure for the "unload" signal | |
| signal closure for the "set-size" signal | |
| signal closure for the "set-position" signal | |
| signal closure for the "show" signal | |
| signal closure for the "show_begin" signal | |
| signal closure for the "show_end" signal | |
| signal closure for the "hide" signal | |
| signal closure for the "hide_begin" signal | |
| signal closure for the "hide_end" signal |
void mpl_panel_client_show (MplPanelClient *panel);
Shows the given panel.
|
MplPanelClient |
void mpl_panel_client_hide (MplPanelClient *panel);
Hides the given panel.
|
MplPanelClient |
void mpl_panel_client_set_height_request (MplPanelClient *panel,guint height);
Sets the height request for given panel; this is the size the panel wishes to be. This is a request only, i.e., the panel can be smaller if the request cannot be honored due to screen size, etc.
|
MplPanelClient |
|
height request |
guint mpl_panel_client_get_height_request (MplPanelClient *panel);
Returns the height request previously set with
mpl_panel_client_set_height_request().
|
MplPanelClient |
Returns : |
requested height in pixels. |
void mpl_panel_client_request_focus (MplPanelClient *panel);
Requests that the given panel be given keyboard focus.
|
MplPanelClient |
void mpl_panel_client_request_button_style (MplPanelClient *panel,const gchar *style);
Requests that the supplied style is applied to the Toolbar button associated with the given panel.
|
MplPanelClient |
|
css id of the style. |
void mpl_panel_client_request_tooltip (MplPanelClient *panel,const gchar *tooltip);
Requests that the string is used as the tooltip for the Toolbar button associated with the given panel.
|
MplPanelClient |
|
tooltip |
void mpl_panel_client_request_button_state (MplPanelClient *panel,MnbButtonState state);
Requests that the Toolbar button associated with the given panel is turned into the supplied state.
|
MplPanelClient |
|
MnbButtonState |
void mpl_panel_client_request_modality (MplPanelClient *panel,gboolean modal);
Requests that the given panel is put into a modal state; while a panel is in modal state, the user will not be able to close it.
|
MplPanelClient |
|
gboolean indicating whether panel should be modal |
void mpl_panel_client_unload (MplPanelClient *panel);
Unloads the given panel.
|
MplPanelClient |
gboolean mpl_panel_client_launch_application (MplPanelClient *panel,const gchar *commandline);
Launches the program specified by commandline with startup notification support.
|
MplPanelClient |
|
commandline |
Returns : |
TRUE if there was no error.
|
gboolean mpl_panel_client_launch_application_from_desktop_file (MplPanelClient *panel,const gchar *desktop,GList *files);
Launches the program specified by desktop file.
|
MplPanelClient |
|
path to desktop file |
|
GList of files to be passed as arugments, or NULL
|
Returns : |
TRUE if there was no error.
|
gboolean mpl_panel_client_launch_default_application_for_uri (MplPanelClient *panel,const gchar *uri);
Launches the default program handling the given uri type.
|
MplPanelClient |
|
path to desktop file |
Returns : |
TRUE if there was no error.
|
Window mpl_panel_client_get_xid (MplPanelClient *panel);
Returns the xid of the asociated window.
|
MplPanelClient |
Returns : |
associated window xid. |
void mpl_panel_client_ready (MplPanelClient *panel);
Calling this function indicates to the Toolbar object that the panel is
ready to be shown. This function should be used in conjunction with
mpl_panel_client_set_delayed_ready().
|
MplPanelClient |
gboolean mpl_panel_client_set_delayed_ready (MplPanelClient *panel,gboolean delayed);
Sets the value of the delayed-ready property. When this property is set to
TRUE the "ready" signal will not be emitted until the panel
application calls mpl_panel_client_ready().
Note: The delayed-ready property can only be set before the main loop is started; calling this function once the main loop has been started will result in a critical warning.
|
a MplPanelClient |
|
boolean value for the delayed-ready property. |
Returns : |
TRUE if the call was successful.
|
gboolean mpl_panel_client_is_windowless (MplPanelClient *panel);
Returns TRUE if the associate panel is windowless (windowless panels have
a non-interactive button on the Toolbar).
|
MplPanelClient |
Returns : |
TRUE if the panel does not have a panel associated with it.
|
typedef enum
{
MNB_BUTTON_NORMAL = 0,
MNB_BUTTON_HIDDEN = 0x1,
MNB_BUTTON_INSENSITIVE = 0x2
} MnbButtonState;
State of the Toolbar button; values are or-able.
#define MPL_PANEL_DBUS_NAME_PREFIX "com.meego.UX.Shell.Panels."
Common prefix used by Panel dbus service names. For example, service for panel 'foo' will have the name MPL_PANEL_DBUS_NAME_PREFIX + 'foo'.
#define MPL_PANEL_DBUS_PATH_PREFIX "/com/meego/UX/Shell/Panels/"
Common prefix used by Panel dbus object paths. For example, the dbus object for panel 'foo' will be found at MPL_PANEL_DBUS_PATH_PREFIX + 'foo'.
#define MPL_PANEL_DBUS_INTERFACE "com.meego.UX.Shell.Panel"
Dbus interface for Panel functionality.
#define MPL_TOOLBAR_DBUS_PATH "/com/meego/UX/Shell/Toolbar"
Path for the Toolbar dbus object.
#define MPL_TOOLBAR_DBUS_NAME "com.meego.UX.Shell.Toolbar"
Name of the dbus Toolbar service.
#define MPL_TOOLBAR_DBUS_INTERFACE "com.meego.UX.Shell.Toolbar"
Dbus interface for Toolbar functionality.
#define MPL_PANEL_APPLICATIONS "applications"
Canonical name of the applications panel.
#define MPL_PANEL_PASTEBOARD "pasteboard"
Canonical name of the pasteboard panel.
"button-style" property"button-style" gchar* : Read / Write / Construct
Button style.
Default value: NULL
"delayed-ready" property"delayed-ready" gboolean : Read / Write / Construct
Whether emission of 'ready' signal should be delayed until later.
Default value: FALSE
"stylesheet" property"stylesheet" gchar* : Read / Write / Construct Only
Stylesheet.
Default value: NULL
"toolbar-service" property"toolbar-service" gboolean : Read / Write / Construct Only
Whether toobar service should be enabled.
Default value: FALSE
"windowless" property"windowless" gboolean : Read / Write / Construct
Panel without window.
Default value: FALSE
"hide" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::show signal is emitted when the panel is about to be hidden; the actual hiding is implemented by the signal closure.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"hide-begin" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::hide-begin signal is emitted when the Toolbar is about to start the panel hide animation.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"hide-end" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::hide-end signal is emitted when the panel hide animation has finished.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"ready" signalvoid user_function (MplPanelClient *mplpanelclient, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"request-button-state" signalvoid user_function (MplPanelClient *mplpanelclient, gint arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"request-button-style" signalvoid user_function (MplPanelClient *mplpanelclient, gchar *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"request-focus" signalvoid user_function (MplPanelClient *mplpanelclient, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"request-modality" signalvoid user_function (MplPanelClient *mplpanelclient, gboolean arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"request-tooltip" signalvoid user_function (MplPanelClient *mplpanelclient, gchar *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"set-position" signalvoid user_function (MplPanelClient *panel, gint x, gint y, gpointer user_data) : Run First
The ::set-position signal is emitted when the panel is being moved; the actual moving of the panel is implemented by the signal closure.
|
panel that received the signal |
|
new x coordinate of the panel |
|
new y coordinate of the panel |
|
user data set when the signal handler was connected. |
"set-size" signalvoid user_function (MplPanelClient *panel, guint width, guint height, gpointer user_data) : Run First
The ::set-size signal is emitted when the panel is being resized; the actual resizing is implemented by the signal closure.
|
panel that received the signal |
|
new width of the panel |
|
new height of the panel |
|
user data set when the signal handler was connected. |
"show" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::show signal is emitted when the panel is about to be shown; the actual showing is implemented by the signal closure.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"show-begin" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::show-begin signal is emitted when the Toolbar is about to start the panel show animation.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"show-end" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::show-end signal is emitted when the panel show animation has finished.
|
panel that received the signal |
|
user data set when the signal handler was connected. |
"unload" signalvoid user_function (MplPanelClient *panel, gpointer user_data) : Run Last
The ::unload signal is emitted when the panel is being unloaded from memory; the actual unloading is done by the signal closure.
|
panel that received the signal. |
|
user data set when the signal handler was connected. |