Ardour  8.7-14-g57a6773833
fontselection.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_FONTSELECTION_H
4 #define _GTKMM_FONTSELECTION_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: fontselection.hg,v 1.2 2003/01/22 23:04:19 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/box.h>
31 #include <gtkmm/dialog.h>
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkFontSelection GtkFontSelection;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 
38 
39 namespace Gtk
40 { class FontSelection_Class; } // namespace Gtk
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
45 
46 
47 namespace Gtk
48 { class FontSelectionDialog_Class; } // namespace Gtk
49 namespace Gtk
50 {
51 
52 class Button;
53 class Entry;
54 class TreeView;
55 class RadioButton;
56 
57 
68 class FontSelection : public VBox
69 {
70  public:
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72  typedef FontSelection CppObjectType;
73  typedef FontSelection_Class CppClassType;
74  typedef GtkFontSelection BaseObjectType;
75  typedef GtkFontSelectionClass BaseClassType;
76 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
77 
78  virtual ~FontSelection();
79 
80 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81 
82 private:
83  friend class FontSelection_Class;
84  static CppClassType fontselection_class_;
85 
86  // noncopyable
88  FontSelection& operator=(const FontSelection&);
89 
90 protected:
91  explicit FontSelection(const Glib::ConstructParams& construct_params);
92  explicit FontSelection(GtkFontSelection* castitem);
93 
94 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
95 
96 public:
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
98  static GType get_type() G_GNUC_CONST;
99 
100 
101  static GType get_base_type() G_GNUC_CONST;
102 #endif
103 
105  GtkFontSelection* gobj() { return reinterpret_cast<GtkFontSelection*>(gobject_); }
106 
108  const GtkFontSelection* gobj() const { return reinterpret_cast<GtkFontSelection*>(gobject_); }
109 
110 
111 public:
112  //C++ methods used to invoke GTK+ virtual functions:
113 
114 protected:
115  //GTK+ Virtual Functions (override these to change behaviour):
116 
117  //Default Signal Handlers::
118 
119 
120 private:
121 
122  //deprecated
123 public:
125 
126 
133 
139  const TreeView* get_family_list() const;
140 
141 
148 
154  const TreeView* get_face_list() const;
155 
156 
163 
169  const Entry* get_size_entry() const;
170 
171 
177 
182  const TreeView* get_size_list() const;
183 
184 
190 
195  const Entry* get_preview_entry() const;
196 
197 
205  Glib::RefPtr<Pango::FontFamily> get_family();
206 
214  Glib::RefPtr<const Pango::FontFamily> get_family() const;
215 
216 
224  Glib::RefPtr<Pango::FontFace> get_face();
225 
233  Glib::RefPtr<const Pango::FontFace> get_face() const;
234 
235 
241  int get_size() const;
242 
243 
256  Glib::ustring get_font_name() const;
257 
269  bool set_font_name(const Glib::ustring& fontname);
270 
277  Glib::ustring get_preview_text() const;
278 
284  void set_preview_text(const Glib::ustring& text);
285 
286  //TODO: Remove these accessors when we can break ABI.
287  //They probably all return null now anyway.
288 
289 
290 #ifndef GTKMM_DISABLE_DEPRECATED
291 
295  const Entry* get_font_entry() const;
296 
300  const Entry* get_font_style_entry() const;
301 
306 
311 
315  const Button* get_filter_button() const;
316  #endif // GTKMM_DISABLE_DEPRECATED
317 
318 
319  //Note: The GdkFont "font" property is deprecated, or should be.
325  Glib::PropertyProxy< Glib::ustring > property_font_name() ;
326 
332  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font_name() const;
333 
339  Glib::PropertyProxy< Glib::ustring > property_preview_text() ;
340 
346  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_preview_text() const;
347 
348 
349 };
350 
359 {
360  public:
361 #ifndef DOXYGEN_SHOULD_SKIP_THIS
362  typedef FontSelectionDialog CppObjectType;
363  typedef FontSelectionDialog_Class CppClassType;
364  typedef GtkFontSelectionDialog BaseObjectType;
365  typedef GtkFontSelectionDialogClass BaseClassType;
366 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
367 
369 
370 #ifndef DOXYGEN_SHOULD_SKIP_THIS
371 
372 private:
373  friend class FontSelectionDialog_Class;
374  static CppClassType fontselectiondialog_class_;
375 
376  // noncopyable
378  FontSelectionDialog& operator=(const FontSelectionDialog&);
379 
380 protected:
381  explicit FontSelectionDialog(const Glib::ConstructParams& construct_params);
382  explicit FontSelectionDialog(GtkFontSelectionDialog* castitem);
383 
384 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
385 
386 public:
387 #ifndef DOXYGEN_SHOULD_SKIP_THIS
388  static GType get_type() G_GNUC_CONST;
389 
390 
391  static GType get_base_type() G_GNUC_CONST;
392 #endif
393 
395  GtkFontSelectionDialog* gobj() { return reinterpret_cast<GtkFontSelectionDialog*>(gobject_); }
396 
398  const GtkFontSelectionDialog* gobj() const { return reinterpret_cast<GtkFontSelectionDialog*>(gobject_); }
399 
400 
401 public:
402  //C++ methods used to invoke GTK+ virtual functions:
403 
404 protected:
405  //GTK+ Virtual Functions (override these to change behaviour):
406 
407  //Default Signal Handlers::
408 
409 
410 private:
411 
412 
413 public:
414 
416  explicit FontSelectionDialog(const Glib::ustring& title);
417 
418 
425  bool set_font_name(const Glib::ustring& fontname);
426 
439  Glib::ustring get_font_name() const;
440 
447  Glib::ustring get_preview_text() const;
448 
453  void set_preview_text(const Glib::ustring& text);
454 
455 
462 
468  const Button* get_ok_button() const;
469 
470 
477 
483  const Button* get_cancel_button() const;
484 
485 
493 
500  const Button* get_apply_button() const;
501 
502 
503 };
504 
505 } // namespace Gtk
506 
507 
508 namespace Glib
509 {
518  Gtk::FontSelection* wrap(GtkFontSelection* object, bool take_copy = false);
519 } //namespace Glib
520 
521 
522 namespace Glib
523 {
532  Gtk::FontSelectionDialog* wrap(GtkFontSelectionDialog* object, bool take_copy = false);
533 } //namespace Glib
534 
535 
536 #endif /* _GTKMM_FONTSELECTION_H */
537 
const Button * get_apply_button() const
const Button * get_cancel_button() const
const Button * get_ok_button() const
Glib::ustring get_preview_text() const
const GtkFontSelectionDialog * gobj() const
Provides access to the underlying C GtkObject.
bool set_font_name(const Glib::ustring &fontname)
Gtk::FontSelectionDialog * wrap(GtkFontSelectionDialog *object, bool take_copy=false)
Glib::ustring get_font_name() const
FontSelectionDialog(const Glib::ustring &title)
void set_preview_text(const Glib::ustring &text)
GtkFontSelectionDialog * gobj()
Provides access to the underlying C GtkObject.
GtkFontSelection * gobj()
Provides access to the underlying C GtkObject.
const Entry * get_font_style_entry() const
Entry * get_font_style_entry()
Glib::ustring get_font_name() const
Glib::RefPtr< const Pango::FontFamily > get_family() const
const TreeView * get_family_list() const
const Button * get_filter_button() const
Entry * get_font_entry()
const GtkFontSelection * gobj() const
Provides access to the underlying C GtkObject.
virtual ~FontSelection()
Glib::PropertyProxy< Glib::ustring > property_font_name()
RadioButton * get_pixels_button()
Button * get_filter_button()
const RadioButton * get_points_button() const
TreeView * get_size_list()
int get_size() const
Entry * get_preview_entry()
Glib::ustring get_preview_text() const
const TreeView * get_size_list() const
const Entry * get_preview_entry() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font_name() const
TreeView * get_family_list()
Glib::RefPtr< const Pango::FontFace > get_face() const
Gtk::FontSelection * wrap(GtkFontSelection *object, bool take_copy=false)
bool set_font_name(const Glib::ustring &fontname)
RadioButton * get_points_button()
Glib::RefPtr< Pango::FontFamily > get_family()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_preview_text() const
const Entry * get_size_entry() const
Entry * get_size_entry()
const Entry * get_font_entry() const
Glib::RefPtr< Pango::FontFace > get_face()
const TreeView * get_face_list() const
TreeView * get_face_list()
Glib::PropertyProxy< Glib::ustring > property_preview_text()
void set_preview_text(const Glib::ustring &text)
const RadioButton * get_pixels_button() const
Definition: ardour_ui.h:188