Hildon::Caption Class Reference

#include <caption.h>

Inheritance diagram for Hildon::Caption:

EventBox List of all members.

Public Member Functions

virtual ~Caption ()
HildonCaption * gobj ()
 Provides access to the underlying C GtkObject.
const HildonCaption * gobj () const
 Provides access to the underlying C GtkObject.
 Caption (Gtk::SizeGroup &group, const Glib::ustring &value, Gtk::Widget &child, Gtk::Widget &icon, CaptionStatus flag=CAPTION_OPTIONAL)
bool is_mandatory () const
 Query Hildon::Caption whether this captioned control is a mandatory one.
void set_status (CaptionStatus flag)
 Sets Hildon::Caption status.
CaptionStatus get_status () const
 Gets Hildon::Caption status.
void set_icon_image (Gtk::Widget &icon)
 Sets the icon to be used by this hildon_caption widget.
Gtk::Widget * get_icon_image ()
 Gets icon of Hildon::Caption.
const Gtk::Widget * get_icon_image () const
 Gets icon of Hildon::Caption.
void set_label (const Glib::ustring &label)
 Sets the label text that appears before the control.
Glib::ustring get_label () const
 Gets label of Hildon::Caption.
void set_separator (const Glib::ustring &separator)
 Sets the separator character that appears after the label.
Glib::ustring get_separator () const
 Gets separator string of Hildon::Caption.
void set_label_alignment (float alignment)
 Sets the vertical alignment to be used for the text part of the caption.
float get_label_alignment () const
 Gets current vertical alignment for the text part.
void set_child_expand (bool expand=true)
 Sets child expandability.
bool get_child_expand () const
 Gets childs expandability.
Glib::SignalProxy0< void > signal_activate ()

Related Functions

(Note that these are not member functions.)

Hildon::Captionwrap (HildonCaption *object, bool take_copy=false)

Constructor & Destructor Documentation

virtual Hildon::Caption::~Caption  )  [virtual]
 

Hildon::Caption::Caption Gtk::SizeGroup &  group,
const Glib::ustring &  value,
Gtk::Widget &  child,
Gtk::Widget &  icon,
CaptionStatus  flag = CAPTION_OPTIONAL
 


Member Function Documentation

bool Hildon::Caption::get_child_expand  )  const
 

Gets childs expandability.

Returns : wheter the child is expandable or not.

const Gtk::Widget* Hildon::Caption::get_icon_image  )  const
 

Gets icon of Hildon::Caption.

Returns : the Gtk::Image that is being used as the icon by the hildon_caption, or 0 if no icon is in use

Gtk::Widget* Hildon::Caption::get_icon_image  ) 
 

Gets icon of Hildon::Caption.

Returns : the Gtk::Image that is being used as the icon by the hildon_caption, or 0 if no icon is in use

Glib::ustring Hildon::Caption::get_label  )  const
 

Gets label of Hildon::Caption.

Returns : the text currently being used as the label of the caption control. The string is owned by the label and the caller should never free or modify this value.

float Hildon::Caption::get_label_alignment  )  const
 

Gets current vertical alignment for the text part.

Returns:
Vertical alignment
Since: 0.12.0.

Glib::ustring Hildon::Caption::get_separator  )  const
 

Gets separator string of Hildon::Caption.

Returns : the text currently being used as the separator of the caption control. The string is owned by the caption control and the caller should never free or modify this value.

CaptionStatus Hildon::Caption::get_status  )  const
 

Gets Hildon::Caption status.

Returns : one of the values from Hildon::CaptionStatus

const HildonCaption* Hildon::Caption::gobj  )  const [inline]
 

Provides access to the underlying C GtkObject.

HildonCaption* Hildon::Caption::gobj  )  [inline]
 

Provides access to the underlying C GtkObject.

bool Hildon::Caption::is_mandatory  )  const
 

Query Hildon::Caption whether this captioned control is a mandatory one.

Returns : is this captioned control a mandatory one?

void Hildon::Caption::set_child_expand bool  expand = true  ) 
 

Sets child expandability.

Parameters:
expand bool to determine is the child expandable.

void Hildon::Caption::set_icon_image Gtk::Widget &  icon  ) 
 

Sets the icon to be used by this hildon_caption widget.

Parameters:
icon The Gtk::Image to use as the icon. calls gtk_widget_show on the icon if !GTK_WIDGET_VISIBLE(icon).

void Hildon::Caption::set_label const Glib::ustring &  label  ) 
 

Sets the label text that appears before the control.

Separator character is added to the end of the label string. By default the separator is ":".

Parameters:
label The text to use.

void Hildon::Caption::set_label_alignment float  alignment  ) 
 

Sets the vertical alignment to be used for the text part of the caption.

Applications need to align the child control themselves.

Since: 0.12.0

Parameters:
alignment New vertical alignment.

void Hildon::Caption::set_separator const Glib::ustring &  separator  ) 
 

Sets the separator character that appears after the label.

The default seaparator character is ":" separately.

Parameters:
separator The separator to use.

void Hildon::Caption::set_status CaptionStatus  flag  ) 
 

Sets Hildon::Caption status.

Parameters:
flag One of the values from Hildon::CaptionStatus.

Glib::SignalProxy0< void > Hildon::Caption::signal_activate  ) 
 


Friends And Related Function Documentation

Hildon::Caption * wrap HildonCaption *  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 on Wed Nov 8 17:20:41 2006 for hildon-libsmm by  doxygen 1.4.6