Public Member Functions | |
TabArray () | |
TabArray (PangoTabArray* gobject, bool make_a_copy=true) | |
TabArray (const TabArray& other) | |
TabArray& | operator= (const TabArray& other) |
~TabArray () | |
void | swap (TabArray& other) |
PangoTabArray* | gobj () |
Provides access to the underlying C instance. | |
const PangoTabArray* | gobj () const |
Provides access to the underlying C instance. | |
PangoTabArray* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
TabArray (int initial_size, bool positions_in_pixels=true) | |
int | get_size () const |
Gets the number of tab stops in tab_array. | |
void | resize (int new_size) |
Resizes a tab array. | |
void | set_tab (int tab_index, TabAlign alignment, int location) |
Sets the alignment and location of a tab stop. | |
std::pair< TabAlign, int > | get_tab (int tab_index) const |
Gets the alignment and position of a tab stop. | |
Glib::ArrayHandle< std::pair < TabAlign, int > > | get_tabs () const |
Gets an array of std::pairs containing the tab stop alignments and tab positions. | |
bool | get_positions_in_pixels () const |
Return value: whether positions are in pixels. | |
Protected Attributes | |
PangoTabArray* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (TabArray& lhs, TabArray& rhs) |
Pango::TabArray | wrap (PangoTabArray* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Each tab stop has an alignment and a position.
Pango::TabArray::TabArray | ( | ) |
Pango::TabArray::TabArray | ( | PangoTabArray * | gobject, | |
bool | make_a_copy = true | |||
) | [explicit] |
Pango::TabArray::TabArray | ( | const TabArray& | other | ) |
Pango::TabArray::~TabArray | ( | ) |
Pango::TabArray::TabArray | ( | int | initial_size, | |
bool | positions_in_pixels = true | |||
) | [explicit] |
bool Pango::TabArray::get_positions_in_pixels | ( | ) | const |
Return value: whether positions are in pixels.
int Pango::TabArray::get_size | ( | ) | const |
Gets the number of tab stops in tab_array.
Gets the alignment and position of a tab stop.
Glib::ArrayHandle< std::pair<TabAlign,int> > Pango::TabArray::get_tabs | ( | ) | const |
Gets an array of std::pairs containing the tab stop alignments and tab positions.
const PangoTabArray* Pango::TabArray::gobj | ( | ) | const [inline] |
Provides access to the underlying C instance.
PangoTabArray* Pango::TabArray::gobj | ( | ) | [inline] |
Provides access to the underlying C instance.
PangoTabArray* Pango::TabArray::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
void Pango::TabArray::resize | ( | int | new_size | ) |
Resizes a tab array.
You must subsequently initialize any tabs that were added as a result of growing the array.
new_size | New size of the array. |
void Pango::TabArray::set_tab | ( | int | tab_index, | |
TabAlign | alignment, | |||
int | location | |||
) |
Sets the alignment and location of a tab stop.
alignment must always be Pango::TAB_LEFT in the current implementation.
tab_index | The index of a tab stop. | |
alignment | Tab alignment. | |
location | Tab location in Pango units. |
void Pango::TabArray::swap | ( | TabArray& | other | ) |
lhs | The left-hand side | |
rhs | The right-hand side |
Pango::TabArray wrap | ( | PangoTabArray * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
PangoTabArray* Pango::TabArray::gobject_ [protected] |