Maeomm Reference Documentation: hildon-libsmm
Main Page   Namespaces   Book  

Hildon::Grid Class Reference
[Widgets]

Inheritance diagram for Hildon::Grid:

Inheritance graph
[legend]
List of all members.

Detailed Description

Hildon::Grid is used wherever a number of single tap activatable items need to be presented, such as in the Control Panel.

Hildon::Grid is a set of application-defineable items that are presented in a table. There are two modes for the form of the table; large icon mode and small icon mode.

In large icon mode, the Grid View items are presented with large icons and labels underneath. In small icon mode, the items are presented with small icons and label on the right side of the icons.

The label has a solid background as wide as the maximum text width. This allows the text to have focus as well as be legible when displayed upon a black or dark background image. Long names are truncated, with an ellipsis ("...") appended.


Public Member Functions

void activate_child (GridItem& item)
 Sends a signal to indicate that this HildonGridItem is activated.
int get_scrollbar_pos () const
Glib::ustring get_style () const
 Returns the name of style currently used in HildonGrid.
const HildonGrid* gobj () const
 Provides access to the underlying C GtkObject.
HildonGrid* gobj ()
 Provides access to the underlying C GtkObject.
 Grid ()
void set_scrollbar_pos (int scrollbar_pos)
 Sets view (scrollbar) to specified position.
void set_style (const Glib::ustring& style_name)
 Sets style.
Glib::SignalProxy1< void,
GridItem* > 
signal_popup_context_menu ()
virtual ~Grid ()

Related Functions

(Note that these are not member functions.)

Hildon::Gridwrap (HildonGrid* object, bool take_copy=false)


Constructor & Destructor Documentation

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

Hildon::Grid::Grid (  ) 
 


Member Function Documentation

void Hildon::Grid::activate_child ( GridItem item  ) 
 

Sends a signal to indicate that this HildonGridItem is activated.

Parameters:
item Hildon::GridItem.

int Hildon::Grid::get_scrollbar_pos (  )  const
 

Returns:
Position of scrollbar (in pixels).

Glib::ustring Hildon::Grid::get_style (  )  const
 

Returns the name of style currently used in HildonGrid.

Returns:
Style name.

Reimplemented from Gtk::Widget.

const HildonGrid* Hildon::Grid::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

HildonGrid* Hildon::Grid::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

void Hildon::Grid::set_scrollbar_pos ( int  scrollbar_pos  ) 
 

Sets view (scrollbar) to specified position.

Parameters:
scrollbar_pos New position (in pixels).

void Hildon::Grid::set_style ( const Glib::ustring style_name  ) 
 

Sets style.

Setting style sets widget size, spacing, label position, number of columns, and icon size.

Parameters:
style_name Style name.

Glib::SignalProxy1<void,GridItem*> Hildon::Grid::signal_popup_context_menu (  ) 
 

Prototype:
void popup_context_menu(GridItem* item)


Friends And Related Function Documentation

Hildon::Grid* wrap ( HildonGrid*  object,
bool  take_copy = false
[related]
 

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 hildon-libsmm by Doxygen 1.4.2 © 1997-2001