~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/gtkmm2/pango/pangomm/fontfamily.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _PANGOMM_FONTFAMILY_H
 
4
#define _PANGOMM_FONTFAMILY_H
 
5
 
 
6
#include <glibmm.h>
 
7
 
 
8
/* $Id$ */
 
9
 
 
10
/* fontfamily.h
 
11
 * 
 
12
 * Copyright 2001      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 Library General Public
 
16
 * License as published by the Free Software Foundation; either
 
17
 * version 2 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
 * Library General Public License for more details.
 
23
 *
 
24
 * You should have received a copy of the GNU Library 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 <glibmm/object.h>
 
31
#include <glibmm/arrayhandle.h>
 
32
#include <pangomm/fontface.h>
 
33
#include <pango/pango-font.h>
 
34
 
 
35
 
 
36
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
37
typedef struct _PangoFontFamily PangoFontFamily;
 
38
typedef struct _PangoFontFamilyClass PangoFontFamilyClass;
 
39
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
40
 
 
41
 
 
42
namespace Pango
 
43
{ class FontFamily_Class; } // namespace Pango
 
44
namespace Pango
 
45
{
 
46
 
 
47
/** A Pango::FontFamily is used to represent a family of related font faces.
 
48
 * The faces in a family share a common design, but differ in slant, weight, width and other aspects.
 
49
 */
 
50
 
 
51
class FontFamily : public Glib::Object
 
52
{
 
53
   
 
54
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
55
 
 
56
public:
 
57
  typedef FontFamily CppObjectType;
 
58
  typedef FontFamily_Class CppClassType;
 
59
  typedef PangoFontFamily BaseObjectType;
 
60
  typedef PangoFontFamilyClass BaseClassType;
 
61
 
 
62
private:  friend class FontFamily_Class;
 
63
  static CppClassType fontfamily_class_;
 
64
 
 
65
private:
 
66
  // noncopyable
 
67
  FontFamily(const FontFamily&);
 
68
  FontFamily& operator=(const FontFamily&);
 
69
 
 
70
protected:
 
71
  explicit FontFamily(const Glib::ConstructParams& construct_params);
 
72
  explicit FontFamily(PangoFontFamily* castitem);
 
73
 
 
74
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
75
 
 
76
public:
 
77
  virtual ~FontFamily();
 
78
 
 
79
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
80
  static GType get_type()      G_GNUC_CONST;
 
81
  static GType get_base_type() G_GNUC_CONST;
 
82
#endif
 
83
 
 
84
  ///Provides access to the underlying C GObject.
 
85
  PangoFontFamily*       gobj()       { return reinterpret_cast<PangoFontFamily*>(gobject_); }
 
86
 
 
87
  ///Provides access to the underlying C GObject.
 
88
  const PangoFontFamily* gobj() const { return reinterpret_cast<PangoFontFamily*>(gobject_); }
 
89
 
 
90
  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 
91
  PangoFontFamily* gobj_copy();
 
92
 
 
93
private:
 
94
 
 
95
   
 
96
public:
 
97
  /** Lists the different font faces that make up family.
 
98
   * The faces in a family share a common design, but differ in slant, weight, width and other aspects.
 
99
   * @return an array of pointers to Pango::FontFace objects.
 
100
   */
 
101
  Glib::ArrayHandle< Glib::RefPtr<FontFace> > list_faces() const;
 
102
 
 
103
  
 
104
  /** Gets the name of the family. The name is unique among all
 
105
   * fonts for the font backend and can be used in a Pango::FontDescription
 
106
   * to specify that a face from this family is desired.
 
107
   * @return The name of the family. This string is owned
 
108
   * by the family object and must not be modified or freed.
 
109
   */
 
110
  Glib::ustring get_name() const;
 
111
  
 
112
  /** A monospace font is a font designed for text display where the the
 
113
   * characters form a regular grid. For Western languages this would
 
114
   * mean that the advance width of all characters are the same, but
 
115
   * this categorization also includes Asian fonts which include
 
116
   * double-width characters: characters that occupy two grid cells.
 
117
   * Glib::unichar_iswide() returns a result that indicates whether a
 
118
   * character is typically double-width in a monospace font.
 
119
   * 
 
120
   * The best way to find out the grid-cell size is to call
 
121
   * pango_font_metrics_get_approximate_digit_width(), since the results
 
122
   * of pango_font_metrics_get_approximate_char_width() may be affected
 
123
   * by double-width characters.
 
124
   * @return <tt>true</tt> if the family is monospace.
 
125
   */
 
126
  bool is_monospace() const;
 
127
 
 
128
 
 
129
public:
 
130
 
 
131
public:
 
132
  //C++ methods used to invoke GTK+ virtual functions:
 
133
 
 
134
protected:
 
135
  //GTK+ Virtual Functions (override these to change behaviour):
 
136
 
 
137
  //Default Signal Handlers::
 
138
 
 
139
 
 
140
};
 
141
 
 
142
/*
 
143
struct FontFamilyRefPtrTraits
 
144
{
 
145
  typedef Glib::RefPtr<FontFamily> CppType;
 
146
  typedef PangoFontFamily *        CType;
 
147
  typedef PangoFontFamily *        CTypeNonConst;
 
148
 
 
149
  static CType   to_c_type      (const CppType& ptr) { return Glib::unwrap (ptr);                   }
 
150
  static CType   to_c_type      (CType          ptr) { return ptr;                                  }
 
151
  static CppType to_cpp_type    (CType          ptr) { return FontFamily::wrap_specific_type (ptr); }
 
152
  static void    release_c_type (CType          ptr) { g_object_unref (ptr);                        }
 
153
};
 
154
*/
 
155
 
 
156
} // namespace Pango
 
157
 
 
158
 
 
159
namespace Glib
 
160
{
 
161
  /** @relates Pango::FontFamily
 
162
   * @param object The C instance
 
163
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
164
   * @result A C++ instance that wraps this C instance.
 
165
   */
 
166
  Glib::RefPtr<Pango::FontFamily> wrap(PangoFontFamily* object, bool take_copy = false);
 
167
}
 
168
 
 
169
 
 
170
#endif /* _PANGOMM_FONTFAMILY_H */
 
171