Bonobo API Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
|
The BonoboWindow class uses a
Example 1. Creating a BonoboWindow
BonoboUIContainer *ui_container; BonoboUIComponent *ui_component; BonoboWindow *win; win = BONOBO_WINDOW ( bonobo_window_new ("Win", "My Test Application")); ui_container = bonobo_ui_container_new(); bonobo_ui_container_set_win (ui_container, win); bonobo_ui_engine_config_set_path ( bonobo_window_get_ui_engine (win), "/my-application-name/UIConfig/kvps"); |
Example 2. Setting up the window UI
ui_component = bonobo_ui_component_new ("my-app"); /* Associate the |
|
Construct a new BonoboWindow
win : | the window to construct |
win_name : | the window name |
title : | the window's title for the title bar |
Returns : | a constructed window |
|
win_name : | the window name |
title : | the window's title for the title bar |
Returns : | a new BonoboWindow |
void bonobo_window_set_contents ( |
Insert a widget into the main window contents.
win : | the bonobo window |
contents : | the new widget for it to contain. |
|
win : | the bonobo window |
Returns : | the contained widget |
void bonobo_window_set_name ( |
Set the name of the window - used for configuration serialization.
win : | the bonobo window |
win_name : | the window name |
char* bonobo_window_get_name ( |
Gets the name of a window.
win : | the bonobo window |
Returns : | the name of the window |
|
win : | the bonobo window |
Returns : | the associated accelerator group for this window |
void bonobo_window_add_popup ( |
Add a popup menu at path
win : | the window |
popup : | |
path : | the path |
void bonobo_window_remove_popup ( |
Remove the popup at path
win : | the window |
path : | the path |