![]() |
![]() |
![]() |
Mx Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct MxWindow; MxWindow * mx_window_new (void
); MxWindow * mx_window_new_with_clutter_stage (ClutterStage *stage
); MxWindow * mx_window_get_for_stage (ClutterStage *stage
); ClutterActor * mx_window_get_child (MxWindow *window
); void mx_window_set_child (MxWindow *window
,ClutterActor *actor
); MxToolbar * mx_window_get_toolbar (MxWindow *window
); gboolean mx_window_get_has_toolbar (MxWindow *window
); void mx_window_set_has_toolbar (MxWindow *window
,gboolean toolbar
); gboolean mx_window_get_small_screen (MxWindow *window
); void mx_window_set_small_screen (MxWindow *window
,gboolean small_screen
); void mx_window_get_window_position (MxWindow *window
,gint *x
,gint *y
); void mx_window_set_window_position (MxWindow *window
,gint x
,gint y
); void mx_window_set_icon_name (MxWindow *window
,const gchar *icon_name
); void mx_window_set_icon_from_cogl_texture (MxWindow *window
,CoglHandle texture
); const gchar * mx_window_get_icon_name (MxWindow *window
); ClutterStage * mx_window_get_clutter_stage (MxWindow *window
);
"child" ClutterActor* : Read / Write "clutter-stage" ClutterStage* : Read / Write / Construct Only "has-toolbar" gboolean : Read / Write "icon-cogl-texture" gchar* : Write "icon-name" gchar* : Read / Write "small-screen" gboolean : Read / Write "toolbar" MxToolbar* : Read
struct MxWindow;
The contents of this structure is private and should only be accessed using the provided API.
MxWindow * mx_window_new_with_clutter_stage (ClutterStage *stage
);
Creates a new MxWindow, using stage
as the backing ClutterStage. This
function is meant for use primarily for embedding a MxWindow into
a foreign stage when using a Clutter toolkit integration library.
|
A ClutterStage |
Returns : |
A MxWindow |
MxWindow * mx_window_get_for_stage (ClutterStage *stage
);
Gets the MxWindow parent of the ClutterStage, if it exists.
|
A ClutterStage |
Returns : |
A MxWindow, or NULL
|
ClutterActor * mx_window_get_child (MxWindow *window
);
Get the primary child of the window. See mx_window_set_child()
.
|
A MxWindow |
Returns : |
A ClutterActor, or NULL
|
void mx_window_set_child (MxWindow *window
,ClutterActor *actor
);
Adds actor
to the window and sets it as the primary child. When the
stage managed in the window changes size, the child will be resized
to match it.
|
A MxWindow |
|
A ClutterActor |
MxToolbar * mx_window_get_toolbar (MxWindow *window
);
Retrieves the toolbar associated with the window.
gboolean mx_window_get_has_toolbar (MxWindow *window
);
Determines whether the window has a toolbar or not.
See mx_window_set_has_toolbar()
.
void mx_window_set_has_toolbar (MxWindow *window
,gboolean toolbar
);
Sets whether the window has a toolbar or not. If the window has a toolbar, client-side window decorations will be enabled.
gboolean mx_window_get_small_screen (MxWindow *window
);
Determines if the window is in small-screen mode.
See mx_window_set_small_screen()
.
void mx_window_set_small_screen (MxWindow *window
,gboolean small_screen
);
Enables or disables small-screen mode. This mode is meant primarily for platforms with limited screen-space, such as netbooks. When enabled, the window will take up all available room and will disable moving and resizing.
void mx_window_get_window_position (MxWindow *window
,gint *x
,gint *y
);
Retrieves the absolute position of the window on the screen.
|
an MxWindow |
|
A pointer for the x-coordinate. [out] |
|
A pointer for the y-coordinate. [out] |
void mx_window_set_window_position (MxWindow *window
,gint x
,gint y
);
Sets the absolute position of the window on the screen.
|
A MxWindow |
|
An x-coordinate |
|
A y-coordinate |
void mx_window_set_icon_name (MxWindow *window
,const gchar *icon_name
);
Set an icon-name to use for the window icon. The icon will be looked up from the default theme.
void mx_window_set_icon_from_cogl_texture (MxWindow *window
,CoglHandle texture
);
Sets the window icon from a texture. This will take precedence over any currently set icon-name.
|
A MxWindow |
|
A CoglHandle for a texture |
const gchar * mx_window_get_icon_name (MxWindow *window
);
Gets the currently set window icon name. This will be NULL
if there is none
set, or the icon was set with mx_window_set_icon_from_cogl_texture()
.
ClutterStage * mx_window_get_clutter_stage (MxWindow *window
);
Gets the ClutterStage managed by the window.
|
A MxWindow |
Returns : |
A ClutterStage |
"clutter-stage"
property"clutter-stage" ClutterStage* : Read / Write / Construct Only
ClutterStage to use as the window.
"has-toolbar"
property"has-toolbar" gboolean : Read / Write
Window should have a toolbar.
Default value: TRUE
"icon-cogl-texture"
property"icon-cogl-texture" gchar* : Write
CoglTexture to use for the window icon.
Default value: NULL
"icon-name"
property"icon-name" gchar* : Read / Write
Icon name to use for the window icon.
Default value: NULL
"small-screen"
property"small-screen" gboolean : Read / Write
Window should occupy the entire screen contents, without explicitly setting itself fullscreen.
Default value: FALSE