Main Page
Widgets
Namespaces
Book
Pango::Coverage Class Reference A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel .
More...
List of all members.
Public Methods
void reference () const
void unreference () const
PangoCoverage* gobj ()
const PangoCoverage* gobj () const
PangoCoverage* gobj_copy () const
CoverageLevel get (int index) const
Determine whether a particular index is covered by coverage.
void set (int index, CoverageLevel level)
Modify a particular index within coverage.
void max (const Glib::RefPtr <Coverage>& other) const
Set the coverage for each index in coverage to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other .
Glib::ArrayHandle < unsigned
char > to_bytes () const
Convert the coverage map into a flat binary format.
Static Public Methods
Glib::RefPtr <Coverage> create ()
Glib::RefPtr <Coverage> create (const guchar* bytes, int n_bytes)
Convert data generated from pango_converage_to_bytes() back to a Pango::Coverage.
Protected Methods
Coverage ()
void operator delete (void*, size_t)
Related Functions
(Note that these are not member functions.)
Glib::RefPtr <Pango::Coverage> wrap (PangoCoverage* object, bool take_copy=false)
Detailed Description
A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel .
It is often necessary in pango to determine if a particular font can represent a particular character, and also how well it can represent that character. Pango::Coverage holds this information.
Constructor & Destructor Documentation
Pango::Coverage::Coverage
(
)
[protected]
Member Function Documentation
Glib::RefPtr <Coverage> Pango::Coverage::create
(
const guchar*
bytes ,
int
n_bytes
)
[static]
Convert data generated from pango_converage_to_bytes() back to a Pango::Coverage.
Parameters:
bytes Binary data representing a Pango::Coverage.
n_bytes The size of bytes in bytes.
Returns: A newly allocated Pango::Coverage, or 0
if the data was invalid.
Determine whether a particular index is covered by coverage.
Parameters:
index_ The index to check.
const PangoCoverage* Pango::Coverage::gobj
(
)
const
PangoCoverage* Pango::Coverage::gobj
(
)
PangoCoverage* Pango::Coverage::gobj_copy
(
)
const
void Pango::Coverage::max
(
const Glib::RefPtr <Coverage>&
other
)
const
Set the coverage for each index in coverage to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other .
Parameters:
other Another Pango::Coverage.
void Pango::Coverage::operator delete
(
void*
,
size_t
)
[protected]
void Pango::Coverage::reference
(
)
const
Modify a particular index within coverage.
Parameters:
index_ The index to modify.
level The new level for index .
Convert the coverage map into a flat binary format.
Returns: An array of bytes representing the coverage map.
void Pango::Coverage::unreference
(
)
const
Friends And Related Function Documentation
Glib::RefPtr <Pango::Coverage> wrap
(
PangoCoverage*
object ,
bool
take_copy = false
)
[related]
The documentation for this class was generated from the following file:
Generated for gtkmm by
Doxygen 1.3-rc1 © 1997-2001