Ardour  9.0-pre0-582-g084a23a80d
label.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_LABEL_H
4 #define _GTKMM_LABEL_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: label.hg,v 1.11 2006/06/21 20:04:25 murrayc Exp $ */
11 
12 /* Copyright(C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or(at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 #include <gtkmm/misc.h>
31 #include <pangomm/attrlist.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkLabel GtkLabel;
36 typedef struct _GtkLabelClass GtkLabelClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Label_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
45 class Menu;
46 
54 class Label : public Misc
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef Label CppObjectType;
59  typedef Label_Class CppClassType;
60  typedef GtkLabel BaseObjectType;
61  typedef GtkLabelClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~Label();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class Label_Class;
70  static CppClassType label_class_;
71 
72  // noncopyable
73  Label(const Label&);
74  Label& operator=(const Label&);
75 
76 protected:
77  explicit Label(const Glib::ConstructParams& construct_params);
78  explicit Label(GtkLabel* castitem);
79 
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 
82 public:
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84  static GType get_type() G_GNUC_CONST;
85 
86 
87  static GType get_base_type() G_GNUC_CONST;
88 #endif
89 
91  GtkLabel* gobj() { return reinterpret_cast<GtkLabel*>(gobject_); }
92 
94  const GtkLabel* gobj() const { return reinterpret_cast<GtkLabel*>(gobject_); }
95 
96 
97 public:
98  //C++ methods used to invoke GTK+ virtual functions:
99 
100 protected:
101  //GTK+ Virtual Functions (override these to change behaviour):
102 
103  //Default Signal Handlers::
105  virtual void on_populate_popup(Menu* menu);
106 
107 
108 private:
109 
110 
111 public:
112  Label();
113  explicit Label(const Glib::ustring& label, bool mnemonic = false);
114 
127  Label(const Glib::ustring& label, float xalign, float yalign, bool mnemonic = false);
128 
141  Label(const Glib::ustring& label, AlignmentEnum xalign, AlignmentEnum yalign = ALIGN_CENTER, bool mnemonic = false);
142 
143 
146  void set_text(const Glib::ustring & str);
147 
154  Glib::ustring get_text() const;
155 
156 
170  void set_attributes(Pango::AttrList& attrs);
171 
182  Pango::AttrList get_attributes() const;
183 
184 
192  void set_label(const Glib::ustring& str);
193 
200  Glib::ustring get_label() const;
201 
211  void set_markup(const Glib::ustring& str);
212 
218  void set_use_markup(bool setting = true);
219 
226  bool get_use_markup() const;
227 
233  void set_use_underline(bool setting = true);
234 
241  bool get_use_underline() const;
242 
243 
254  void set_markup_with_mnemonic(const Glib::ustring& str);
255 
262  guint get_mnemonic_keyval() const;
263 
282 
290 
297  const Widget* get_mnemonic_widget() const;
298 
307  void set_text_with_mnemonic(const Glib::ustring& str);
308 
319 
325 
326 
332  void set_ellipsize(Pango::EllipsizeMode mode);
333 
338  Pango::EllipsizeMode get_ellipsize() const;
339 
340 
345  void set_width_chars(int n_chars);
346 
352  int get_width_chars() const;
353 
354 
359  void set_max_width_chars(int n_chars);
360 
366  int get_max_width_chars() const;
367 
368 
369  void set_pattern(const Glib::ustring& pattern);
370 
383  void set_line_wrap(bool wrap = true);
384 
390  bool get_line_wrap() const;
391 
399 
405 
411  void set_selectable(bool setting = true);
412 
417  bool get_selectable() const;
418 
427  void set_angle(double angle);
428 
434  double get_angle() const;
435 
444  void select_region(int start_offset, int end_offset);
445 
453  void select_region(int start_offset);
454 
455 
463  bool get_selection_bounds(int& start, int& end) const;
464 
465 
472  Glib::RefPtr<Pango::Layout> get_layout();
473 
480  Glib::RefPtr<const Pango::Layout> get_layout() const;
481 
494  void get_layout_offsets(int& x, int& y) const;
495 
496 
501  void set_single_line_mode(bool single_line_mode = true);
502 
507  bool get_single_line_mode() const;
508 
509 
521  Glib::ustring get_current_uri() const;
522 
523 
529  void set_track_visited_links(bool track_links = true);
530 
537 
538 
545  Glib::SignalProxy1< void,Menu* > signal_populate_popup();
546 
547 
554  Glib::SignalProxy1< bool,const Glib::ustring& > signal_activate_link();
555 
556 
557  //Keybinding signals:
558 
559 
565  Glib::PropertyProxy< Glib::ustring > property_label() ;
566 
572  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const;
573 
579  Glib::PropertyProxy< Pango::AttrList > property_attributes() ;
580 
586  Glib::PropertyProxy_ReadOnly< Pango::AttrList > property_attributes() const;
587 
593  Glib::PropertyProxy< bool > property_use_markup() ;
594 
600  Glib::PropertyProxy_ReadOnly< bool > property_use_markup() const;
601 
607  Glib::PropertyProxy< bool > property_use_underline() ;
608 
614  Glib::PropertyProxy_ReadOnly< bool > property_use_underline() const;
615 
621  Glib::PropertyProxy< Justification > property_justify() ;
622 
628  Glib::PropertyProxy_ReadOnly< Justification > property_justify() const;
629 
635  Glib::PropertyProxy_WriteOnly< Glib::ustring > property_pattern() ;
636 
637 
643  Glib::PropertyProxy< bool > property_wrap() ;
644 
650  Glib::PropertyProxy_ReadOnly< bool > property_wrap() const;
651 
657  Glib::PropertyProxy< Pango::WrapMode > property_wrap_mode() ;
658 
664  Glib::PropertyProxy_ReadOnly< Pango::WrapMode > property_wrap_mode() const;
665 
671  Glib::PropertyProxy< bool > property_selectable() ;
672 
678  Glib::PropertyProxy_ReadOnly< bool > property_selectable() const;
679 
685  Glib::PropertyProxy_ReadOnly< guint > property_mnemonic_keyval() const;
686 
687 
693  Glib::PropertyProxy< Widget* > property_mnemonic_widget() ;
694 
700  Glib::PropertyProxy_ReadOnly< Widget* > property_mnemonic_widget() const;
701 
707  Glib::PropertyProxy_ReadOnly< int > property_cursor_position() const;
708 
709 
715  Glib::PropertyProxy_ReadOnly< int > property_selection_bound() const;
716 
717 
723  Glib::PropertyProxy< Pango::EllipsizeMode > property_ellipsize() ;
724 
730  Glib::PropertyProxy_ReadOnly< Pango::EllipsizeMode > property_ellipsize() const;
731 
737  Glib::PropertyProxy< int > property_width_chars() ;
738 
744  Glib::PropertyProxy_ReadOnly< int > property_width_chars() const;
745 
751  Glib::PropertyProxy< bool > property_single_line_mode() ;
752 
758  Glib::PropertyProxy_ReadOnly< bool > property_single_line_mode() const;
759 
765  Glib::PropertyProxy< double > property_angle() ;
766 
772  Glib::PropertyProxy_ReadOnly< double > property_angle() const;
773 
779  Glib::PropertyProxy< int > property_max_width_chars() ;
780 
786  Glib::PropertyProxy_ReadOnly< int > property_max_width_chars() const;
787 
793  Glib::PropertyProxy< bool > property_track_visited_links() ;
794 
800  Glib::PropertyProxy_ReadOnly< bool > property_track_visited_links() const;
801 
802 
803 };
804 
805 } // namespace Gtk
806 
807 
808 namespace Glib
809 {
818  Gtk::Label* wrap(GtkLabel* object, bool take_copy = false);
819 } //namespace Glib
820 
821 
822 #endif /* _GTKMM_LABEL_H */
823 
Glib::PropertyProxy_ReadOnly< bool > property_track_visited_links() const
Pango::WrapMode get_line_wrap_mode() const
void set_line_wrap_mode(Pango::WrapMode wrap_mode)
Glib::PropertyProxy< Pango::AttrList > property_attributes()
virtual void on_populate_popup(Menu *menu)
This is a default handler for the signal signal_populate_popup().
void set_single_line_mode(bool single_line_mode=true)
Glib::PropertyProxy_ReadOnly< bool > property_selectable() const
Glib::PropertyProxy< bool > property_single_line_mode()
Glib::PropertyProxy< bool > property_selectable()
Glib::SignalProxy1< bool, const Glib::ustring & > signal_activate_link()
void set_label(const Glib::ustring &str)
Pango::AttrList get_attributes() const
Glib::SignalProxy1< void, Menu * > signal_populate_popup()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const
void set_text(const Glib::ustring &str)
Glib::PropertyProxy_ReadOnly< guint > property_mnemonic_keyval() const
void set_angle(double angle)
double get_angle() const
Glib::PropertyProxy< bool > property_track_visited_links()
void set_track_visited_links(bool track_links=true)
Glib::PropertyProxy_ReadOnly< Pango::AttrList > property_attributes() const
Justification get_justify() const
Glib::PropertyProxy< Widget * > property_mnemonic_widget()
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_pattern()
Glib::RefPtr< const Pango::Layout > get_layout() const
Glib::PropertyProxy_ReadOnly< bool > property_single_line_mode() const
Glib::PropertyProxy_ReadOnly< Pango::WrapMode > property_wrap_mode() const
bool get_selectable() const
void set_selectable(bool setting=true)
Pango::EllipsizeMode get_ellipsize() const
const GtkLabel * gobj() const
Provides access to the underlying C GtkObject.
Definition: label.h:94
void set_markup(const Glib::ustring &str)
Glib::PropertyProxy< bool > property_wrap()
bool get_line_wrap() const
int get_max_width_chars() const
bool get_selection_bounds(int &start, int &end) const
Glib::PropertyProxy< int > property_max_width_chars()
void set_width_chars(int n_chars)
Glib::PropertyProxy< Glib::ustring > property_label()
virtual ~Label()
void set_justify(Justification jtype)
Glib::PropertyProxy_ReadOnly< Justification > property_justify() const
void set_max_width_chars(int n_chars)
Glib::PropertyProxy_ReadOnly< int > property_max_width_chars() const
bool get_use_underline() const
void set_attributes(Pango::AttrList &attrs)
Label(const Glib::ustring &label, bool mnemonic=false)
Glib::RefPtr< Pango::Layout > get_layout()
Glib::ustring get_text() const
guint get_mnemonic_keyval() const
Glib::PropertyProxy_ReadOnly< bool > property_use_markup() const
Label(const Glib::ustring &label, AlignmentEnum xalign, AlignmentEnum yalign=ALIGN_CENTER, bool mnemonic=false)
void set_text_with_mnemonic(const Glib::ustring &str)
Glib::PropertyProxy< int > property_width_chars()
void set_line_wrap(bool wrap=true)
Glib::PropertyProxy< Pango::WrapMode > property_wrap_mode()
Glib::PropertyProxy_ReadOnly< double > property_angle() const
Glib::PropertyProxy< Justification > property_justify()
Glib::PropertyProxy_ReadOnly< int > property_selection_bound() const
Glib::PropertyProxy_ReadOnly< bool > property_use_underline() const
Glib::ustring get_label() const
Glib::PropertyProxy_ReadOnly< Pango::EllipsizeMode > property_ellipsize() const
GtkLabel * gobj()
Provides access to the underlying C GtkObject.
Definition: label.h:91
const Widget * get_mnemonic_widget() const
void set_use_markup(bool setting=true)
void select_region(int start_offset, int end_offset)
void set_use_underline(bool setting=true)
void select_region(int start_offset)
Glib::PropertyProxy< Pango::EllipsizeMode > property_ellipsize()
Glib::PropertyProxy_ReadOnly< int > property_width_chars() const
bool get_track_visited_links() const
Widget * get_mnemonic_widget()
Glib::PropertyProxy_ReadOnly< int > property_cursor_position() const
void set_pattern(const Glib::ustring &pattern)
Glib::PropertyProxy< bool > property_use_markup()
Glib::PropertyProxy_ReadOnly< bool > property_wrap() const
Gtk::Label * wrap(GtkLabel *object, bool take_copy=false)
void get_layout_offsets(int &x, int &y) const
Glib::PropertyProxy< bool > property_use_underline()
int get_width_chars() const
bool get_single_line_mode() const
Glib::PropertyProxy_ReadOnly< Widget * > property_mnemonic_widget() const
void set_mnemonic_widget(Widget &widget)
void set_ellipsize(Pango::EllipsizeMode mode)
void set_markup_with_mnemonic(const Glib::ustring &str)
Label(const Glib::ustring &label, float xalign, float yalign, bool mnemonic=false)
bool get_use_markup() const
Glib::PropertyProxy< double > property_angle()
Glib::ustring get_current_uri() const
Definition: misc.h:57
PBD::PropertyDescriptor< timepos_t > start
Definition: ardour_ui.h:188