pangomm: Pango::GlyphItem Class Reference

A Pango::GlyphItem is a pair of a Pango::Item and the glyphs resulting from shaping the text corresponding to an item. More...

#include <pangomm/glyphitem.h>

Public Member Functions

 GlyphItem ()
 
 GlyphItem (PangoGlyphItem* gobject, bool make_a_copy=true)
 
 GlyphItem (const GlyphItem& other)
 
GlyphItemoperator= (const GlyphItem& other)
 
 GlyphItem (GlyphItem&& other) noexcept
 
GlyphItemoperator= (GlyphItem&& other) noexcept
 
 ~GlyphItem () noexcept
 
void swap (GlyphItem& other) noexcept
 
PangoGlyphItem* gobj ()
 Provides access to the underlying C instance. More...

 
const PangoGlyphItem* gobj () const
 Provides access to the underlying C instance. More...

 
PangoGlyphItem* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. More...

 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...

 

Protected Attributes

PangoGlyphItem* gobject_
 

Related Functions

(Note that these are not member functions.)

void swap (GlyphItem& lhs, GlyphItem& rhs) noexcept
 
Pango::GlyphItem wrap (PangoGlyphItem* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...

 

Detailed Description

A Pango::GlyphItem is a pair of a Pango::Item and the glyphs resulting from shaping the text corresponding to an item.

As an example of the usage of Pango::GlyphItem, the results of shaping text with Pango::Layout is a list of Pango::LayoutLine, each of which contains a list of Pango::GlyphItem.

For backward compatibility PangoLayoutRun is an alias for PangoGlyphItem in pango's C code. There is no Pango::LayoutRun in this version of pangomm.

Since pangomm 2.48:

Constructor & Destructor Documentation

Pango::GlyphItem::GlyphItem ( )
Pango::GlyphItem::GlyphItem ( PangoGlyphItem *  gobject,
bool  make_a_copy = true 
)
explicit
Pango::GlyphItem::GlyphItem ( const GlyphItem other)
Pango::GlyphItem::GlyphItem ( GlyphItem&&  other)
noexcept
Pango::GlyphItem::~GlyphItem ( )
noexcept

Member Function Documentation

static GType Pango::GlyphItem::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

PangoGlyphItem* Pango::GlyphItem::gobj ( )
inline

Provides access to the underlying C instance.

const PangoGlyphItem* Pango::GlyphItem::gobj ( ) const
inline

Provides access to the underlying C instance.

PangoGlyphItem* Pango::GlyphItem::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

GlyphItem& Pango::GlyphItem::operator= ( const GlyphItem other)
GlyphItem& Pango::GlyphItem::operator= ( GlyphItem&&  other)
noexcept
void Pango::GlyphItem::swap ( GlyphItem other)
noexcept

Friends And Related Function Documentation

void swap ( GlyphItem lhs,
GlyphItem rhs 
)
related
Parameters
lhsThe left-hand side
rhsThe right-hand side
Pango::GlyphItem wrap ( PangoGlyphItem *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

Member Data Documentation

PangoGlyphItem* Pango::GlyphItem::gobject_
protected