Maeomm Reference Documentation: hildonsmm |
This menu opens from the top of the screen and contains a number of entries (Gtk::Button) organized in one or two columns, depending on the size of the screen (the number of columns changes automatically if the screen is resized). Entries are added left to right and top to bottom.
Besides that, the Hildon::AppMenu can contain a group of filter buttons (Gtk::ToggleButton or Gtk::RadioButton).
To use a Hildon::AppMenu, add it to a Hildon::Window using Hildon::Window::set_app_menu(). The menu will appear when the user presses the window title bar. Alternatively, you can show it by hand using Hildon::AppMenu::popup().
The menu will be automatically hidden when one of its buttons is clicked.
Public Member Functions | |
void | add_filter (Gtk::Button& filter) |
void | append (Gtk::Button& item) |
AppMenu () | |
Glib::ListHandle< const Gtk::Button* > | get_filters () const |
Glib::ListHandle<Gtk::Button*> | get_filters () |
Glib::ListHandle< const Gtk::Button* > | get_items () const |
Glib::ListHandle<Gtk::Button*> | get_items () |
const HildonAppMenu* | gobj () const |
Provides access to the underlying C GtkObject. | |
HildonAppMenu* | gobj () |
Provides access to the underlying C GtkObject. | |
void | insert (Gtk::Button& item, int position) |
void | popup (Gtk::Window& parent_window) |
void | prepend (Gtk::Button& item) |
void | reorder_child (Gtk::Button& item, int position) |
virtual | ~AppMenu () |
Related Functions | |
(Note that these are not member functions.) | |
Hildon::AppMenu* | wrap (HildonAppMenu* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Hildon::AppMenu::~AppMenu | ( | ) | [virtual] |
Hildon::AppMenu::AppMenu | ( | ) |
void Hildon::AppMenu::add_filter | ( | Gtk::Button & | filter | ) |
void Hildon::AppMenu::append | ( | Gtk::Button & | item | ) |
Glib::ListHandle<const Gtk::Button*> Hildon::AppMenu::get_filters | ( | ) | const |
Glib::ListHandle<Gtk::Button*> Hildon::AppMenu::get_filters | ( | ) |
Glib::ListHandle<const Gtk::Button*> Hildon::AppMenu::get_items | ( | ) | const |
Glib::ListHandle<Gtk::Button*> Hildon::AppMenu::get_items | ( | ) |
const HildonAppMenu* Hildon::AppMenu::gobj | ( | ) | const [inline] |
HildonAppMenu* Hildon::AppMenu::gobj | ( | ) | [inline] |
void Hildon::AppMenu::insert | ( | Gtk::Button & | item, | |
int | position | |||
) |
void Hildon::AppMenu::popup | ( | Gtk::Window & | parent_window | ) |
void Hildon::AppMenu::prepend | ( | Gtk::Button & | item | ) |
void Hildon::AppMenu::reorder_child | ( | Gtk::Button & | item, | |
int | position | |||
) |
Hildon::AppMenu* wrap | ( | HildonAppMenu * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
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. |