Maeomm Reference Documentation: hildonsmm
Main Page   Namespaces   Book  

Hildon::AppMenu Class Reference

Inheritance diagram for Hildon::AppMenu:

Inheritance graph
[legend]

List of all members.


Detailed Description

The application menu in the Hildon framework.

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::AppMenuwrap (HildonAppMenu* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Constructor & Destructor Documentation

virtual Hildon::AppMenu::~AppMenu (  )  [virtual]

Hildon::AppMenu::AppMenu (  ) 


Member Function Documentation

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]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Window.

HildonAppMenu* Hildon::AppMenu::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Window.

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 
)


Friends And Related Function Documentation

Hildon::AppMenu* wrap ( HildonAppMenu *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
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.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:

Generated for hildonmm by Doxygen 1.5.6 © 1997-2001