Maeomm Reference Documentation: hildonsmm |
Inheritance diagram for Hildon::Window:
It provides facilities to manage window menus and toolbars.
Each Hildon::Window can have its own menu and toolbars. The application can also have a common menu and toolbar, which are shared among all application windows. For more information, see Hildon::Program.
The following methods are particularly important:
Public Member Functions | ||||
void | add_toolbar (Gtk::Toolbar& toolbar) | |||
Adds a toolbar to the window. | ||||
void | add_with_scrollbar (Gtk::Widget& child) | |||
Adds the child to the HildonWindow and creates a scrollbar for it. | ||||
bool | get_is_topmost () const | |||
| ||||
const Gtk::Menu* | get_menu () const | |||
Gets the Gt::Menu assigned to the Hildon::Appview. | ||||
Gtk::Menu* | get_menu () | |||
Gets the Gt::Menu assigned to the Hildon::Appview. | ||||
const HildonWindow* | gobj () const | |||
Provides access to the underlying C GtkObject. | ||||
HildonWindow* | gobj () | |||
Provides access to the underlying C GtkObject. | ||||
void | remove_toolbar (Gtk::Toolbar& toolbar) | |||
Removes a toolbar from the window. | ||||
void | set_main_menu (Gtk::Menu& menu) | |||
void | set_menu (Gtk::Menu& menu) | |||
Sets the menu to be used for this window. | ||||
Window () | ||||
virtual | ~Window () | |||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Hildon::Window* | wrap (HildonWindow* object, bool take_copy=false) | |||
|
virtual Hildon::Window::~Window | ( | ) | [virtual] |
Reimplemented from Gtk::Window.
Hildon::Window::Window | ( | ) |
void Hildon::Window::add_toolbar | ( | Gtk::Toolbar & | toolbar | ) |
Adds a toolbar to the window.
Note that the toolbar is not automatically shown. You need to call gtk_widget_show_all on it to make it visible. It's also possible to hide the toolbar (without removing it) by calling gtk_widget_hide_all.
toolbar | A Gtk::Toolbar to add to the HildonWindow. |
void Hildon::Window::add_with_scrollbar | ( | Gtk::Widget & | child | ) |
Adds the child to the HildonWindow and creates a scrollbar for it.
Similar as adding first a GtkScrolledWindow and then the child to it.
child | A GtkWidget . |
bool Hildon::Window::get_is_topmost | ( | ) | const |
const Gtk::Menu* Hildon::Window::get_menu | ( | ) | const |
Gtk::Menu* Hildon::Window::get_menu | ( | ) |
const HildonWindow* Hildon::Window::gobj | ( | ) | const [inline] |
HildonWindow* Hildon::Window::gobj | ( | ) | [inline] |
void Hildon::Window::remove_toolbar | ( | Gtk::Toolbar & | toolbar | ) |
Removes a toolbar from the window.
Note that this decreases the refference count on the widget. If you want to keep the toolbar alive call g_object_ref before calling this function.
toolbar | A Gtk::Toolbar to remove from the HildonWindow. |
void Hildon::Window::set_main_menu | ( | Gtk::Menu & | menu | ) |
void Hildon::Window::set_menu | ( | Gtk::Menu & | menu | ) |
Sets the menu to be used for this window.
This menu overrides a program-wide menu that may have been set with hildon_program_set_common_menu. Pass 0
to remove the current menu. HildonWindow takes ownership of the passed menu and you're not supposed to free it yourself anymore.
menu | The Gtk::Menu to be used for this Hildon::Window. |
Hildon::Window* wrap | ( | HildonWindow * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |