logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Label Class Reference
[Widgets]

A widget that displays a small to medium amount of text. More...

Inheritance diagram for Gtk::Label:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Label ()
GtkLabel* gobj ()
 Provides access to the underlying C GtkObject.

const GtkLabel* gobj () const
 Provides access to the underlying C GtkObject.

 Label ()
 Label (const Glib::ustring& label, bool mnemonic=false)
 Label (const Glib::ustring& label, float xalign, float yalign, bool mnemonic=false)
 This constructor is a shortcut for often used code when you want to create a label with alignment different than default one.

 Label (const Glib::ustring& label, AlignmentEnum xalign, AlignmentEnum yalign=ALIGN_CENTER, bool mnemonic=false)
 This constructor is a shortcut for often used code when you want to create a label with alignment different than default one.

void set_text (const Glib::ustring& str)
 Doesn't use markup.

Glib::ustring get_text () const
void set_attributes (Pango::AttrList& attrs)
Pango::AttrList get_attributes () const
void set_label (const Glib::ustring& str)
Glib::ustring get_label () const
void set_markup (const Glib::ustring& str)
void set_use_markup (bool setting=true)
bool get_use_markup () const
void set_use_underline (bool setting=true)
bool get_use_underline () const
void set_markup_with_mnemonic (const Glib::ustring& str)
guint get_mnemonic_keyval () const
void set_mnemonic_widget (Widget& widget)
Widgetget_mnemonic_widget ()
const Widgetget_mnemonic_widget () const
void set_text_with_mnemonic (const Glib::ustring& str)
void set_justify (Justification jtype)
Justification get_justify () const
void set_pattern (const Glib::ustring& pattern)
void set_line_wrap (bool wrap=true)
bool get_line_wrap () const
void set_selectable (bool setting=true)
bool get_selectable () const
void select_region (int start_offset, int end_offset)
bool get_selection_bounds (int& start, int& end) const
Glib::RefPtr<Pango::Layoutget_layout ()
Glib::RefPtr<const Pango::Layoutget_layout () const
void get_layout_offsets (int& x, int& y) const
Glib::SignalProxy1< void,
Menu* > 
signal_populate_popup ()
Glib::PropertyProxy<Glib::ustringproperty_label ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Pango::AttrListproperty_attributes ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_use_markup ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_use_underline ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Justificationproperty_justify ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_WriteOnly<
Glib::ustring
property_pattern ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_wrap ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_selectable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
guint > 
property_mnemonic_keyval ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Widget*> property_mnemonic_widget ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
int > 
property_cursor_position ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
int > 
property_selection_bound ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.


Protected Member Functions

virtual void on_populate_popup (Menu* menu)

Related Functions

(Note that these are not member functions.)

Gtk::Labelwrap (GtkLabel* object, bool take_copy=false)

Detailed Description

A widget that displays a small to medium amount of text.

A simple setable widget for holding a Glib::ustring.


Constructor & Destructor Documentation

virtual Gtk::Label::~Label (  )  [virtual]
 

Gtk::Label::Label (  ) 
 

Gtk::Label::Label ( const Glib::ustring label,
bool  mnemonic = false
[explicit]
 

Gtk::Label::Label ( const Glib::ustring label,
float  xalign,
float  yalign,
bool  mnemonic = false
 

This constructor is a shortcut for often used code when you want to create a label with alignment different than default one.

 Gtk::Label label(text, x, y, mnemonic);
is equivalent to:
 Gtk::Label label(text, mnemonic);
 label.set_alignment(x, y);

Gtk::Label::Label ( const Glib::ustring label,
AlignmentEnum  xalign,
AlignmentEnum  yalign = ALIGN_CENTER,
bool  mnemonic = false
 

This constructor is a shortcut for often used code when you want to create a label with alignment different than default one.

 Gtk::Label label(text, x, y, mnemonic);
is equivalent to:
 Gtk::Label label(text, mnemonic);
 label.set_alignment(x, y);


Member Function Documentation

Pango::AttrList Gtk::Label::get_attributes (  )  const
 

Justification Gtk::Label::get_justify (  )  const
 

Glib::ustring Gtk::Label::get_label (  )  const
 

Glib::RefPtr<const Pango::Layout> Gtk::Label::get_layout (  )  const
 

Glib::RefPtr<Pango::Layout> Gtk::Label::get_layout (  ) 
 

void Gtk::Label::get_layout_offsets ( int&  x,
int&  y
const
 

bool Gtk::Label::get_line_wrap (  )  const
 

guint Gtk::Label::get_mnemonic_keyval (  )  const
 

const Widget* Gtk::Label::get_mnemonic_widget (  )  const
 

Widget* Gtk::Label::get_mnemonic_widget (  ) 
 

bool Gtk::Label::get_selectable (  )  const
 

bool Gtk::Label::get_selection_bounds ( int&  start,
int&  end
const
 

Glib::ustring Gtk::Label::get_text (  )  const
 

bool Gtk::Label::get_use_markup (  )  const
 

bool Gtk::Label::get_use_underline (  )  const
 

const GtkLabel* Gtk::Label::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Misc.

Reimplemented in Gtk::AccelLabel.

GtkLabel* Gtk::Label::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Misc.

Reimplemented in Gtk::AccelLabel.

virtual void Gtk::Label::on_populate_popup ( Menu menu  )  [protected, virtual]
 

Glib::PropertyProxy<Pango::AttrList> Gtk::Label::property_attributes (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<int> Gtk::Label::property_cursor_position (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Justification> Gtk::Label::property_justify (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::ustring> Gtk::Label::property_label (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<guint> Gtk::Label::property_mnemonic_keyval (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Widget*> Gtk::Label::property_mnemonic_widget (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_WriteOnly<Glib::ustring> Gtk::Label::property_pattern (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Label::property_selectable (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<int> Gtk::Label::property_selection_bound (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Label::property_use_markup (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Label::property_use_underline (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Label::property_wrap (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

void Gtk::Label::select_region ( int  start_offset,
int  end_offset
 

void Gtk::Label::set_attributes ( Pango::AttrList attrs  ) 
 

void Gtk::Label::set_justify ( Justification  jtype  ) 
 

void Gtk::Label::set_label ( const Glib::ustring str  ) 
 

void Gtk::Label::set_line_wrap ( bool  wrap = true  ) 
 

void Gtk::Label::set_markup ( const Glib::ustring str  ) 
 

void Gtk::Label::set_markup_with_mnemonic ( const Glib::ustring str  ) 
 

void Gtk::Label::set_mnemonic_widget ( Widget widget  ) 
 

void Gtk::Label::set_pattern ( const Glib::ustring pattern  ) 
 

void Gtk::Label::set_selectable ( bool  setting = true  ) 
 

void Gtk::Label::set_text ( const Glib::ustring str  ) 
 

Doesn't use markup.

void Gtk::Label::set_text_with_mnemonic ( const Glib::ustring str  ) 
 

void Gtk::Label::set_use_markup ( bool  setting = true  ) 
 

void Gtk::Label::set_use_underline ( bool  setting = true  ) 
 

Glib::SignalProxy1<void,Menu*> Gtk::Label::signal_populate_popup (  ) 
 

Prototype:
void populate_popup(Menu* menu)


Friends And Related Function Documentation

Gtk::Label* wrap ( GtkLabel*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001