GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
|
#include <Selection.H>
Public Member Functions | |
SelectionColumn (const char *title, int number_) | |
virtual | ~SelectionColumn (void) |
void | setTitleAlignment (float align) |
Set the alignment of the column title in the header Sets the alignment of the column heading to 0.0 for left and 1.0 for right, (0.5 center). More... | |
void | setAlignment (float xAlign, float yAlign) |
Set the alignment of the column contents Sets the alignment of the column contents - applies to all renderers. More... | |
SelectionColumn & | add (string *name, GType whichType, GtkCellRenderer *renderer, int source, gboolean expand=true) |
Set the justification of the text column contents Justify the text renderer contents with respect to the edges of the column. More... | |
SelectionColumn & | operator<< (pair< string *, GtkCellRendererText * > detail) |
SelectionColumn & | operator<< (pair< string *, GtkCellRendererPixbuf * > detail) |
GtkTreeViewColumn * | getColumn (void) |
int | getNumber (void) |
void | setSizing (GtkTreeViewColumnSizing sz) |
GtkTreeViewColumnSizing | getSizing (void) |
![]() | |
LinkList (void) | |
Initialiser This is for the first element - links to itself. More... | |
virtual | ~LinkList (void) |
Small cleanup ... More... | |
void | add (pair< string *, GType > *newElement) |
Adds as the current element ... Added to the next of the current lug. More... | |
pair< string *, GType > * | change (pair< string *, GType > *changeElement) |
exchange lugs The current lug is replaced with this lug. More... | |
pair< string *, GType > * | remove (void) |
remove the current lug from the LinkList The current lug is removed form the list and passed back to the caller. More... | |
pair< string *, GType > * | current (void) |
return a pointer to the current lug More... | |
pair< string *, GType > * | next (void) |
Return a pointer to the next lug and move on to that lug Increments according to dir (either forward or backwards). More... | |
pair< string *, GType > * | prev (void) |
Return a pointer to the previous lug and move to that lug Increments against dir (either forward or backwards). More... | |
pair< string *, GType > * | grab (int i) |
returns the i'th lug in the chain irrespective of direction More... | |
int | getCount (void) |
Private Attributes | |
GtkTreeViewColumn * | column |
int | number |
The number of this column. More... | |
Additional Inherited Members | |
![]() | |
enum | direction |
![]() | |
direction | dir |
The current direction. More... | |
Column setup for a Selection
Inherits from a LinkList of paired name and type. This allows each column to handle many renderers, with string and type identifiers Column title and contents default to center justification.
Definition at line 37 of file Selection.H.
|
inline |
Create an empty column with a title
title | The title to show for this column |
number_ | The column number to use, starting from 0 |
Definition at line 45 of file Selection.H.
|
inlinevirtual |
destructor
Definition at line 54 of file Selection.H.
|
inline |
Set the justification of the text column contents Justify the text renderer contents with respect to the edges of the column.
justification | The justification 0.0 for left and 1.0 for right, (0.5 center).Set the justification of the text column contents Justify the text renderer contents with respect to the edges of the column. |
justification | The justification PangoAlignment = {PANGO_ALIGN_LEFT, PANGO_ALIGN_CENTER, PANGO_ALIGN_RIGHT}; Add a renderer to the column Defaults with middle alignment. |
name | is the text identification of the renderer to be added to the column. |
renderer | is the GtkCellRenderer * to be use for rendering the item to the column |
source | is the column which contains the source data to be rendered in this column. This number may be a different column to the current column, if the source is the other column. |
expand | whether the expand within the column during render |
Definition at line 116 of file Selection.H.
|
inline |
Get the GtkTreeViewColumn *
Definition at line 159 of file Selection.H.
|
inline |
|
inline |
Get the way the columns are sizing.
Definition at line 188 of file Selection.H.
|
inline |
Add a renderer to the column.
This operator uses this column as the source, and doesn't expand during render
detail | get<0>(detail) is the name, get<1>(detail) is the renderer, get<2>(detail) is the source, get<3>(detail) is the expansion Add a renderer to the column. This operator uses this column as the source, and doesn't expand during render |
detail | get<0>(detail) is the name, get<1>(detail) is the renderer, get<2>(detail) is the source Add a text renderer to the column. This operator uses this column as the source, and doesn't expand during render |
detail | pair.first is the name, pair.second is the renderer |
Definition at line 144 of file Selection.H.
|
inline |
Add a GdkPixbuf renderer to the column.
This operator uses this column as the source, and doesn't expand during render
detail | pair.first is the name, pair.second is the renderer |
Definition at line 152 of file Selection.H.
Set the alignment of the column contents Sets the alignment of the column contents - applies to all renderers.
xAlign | The x alignment 0.0 for left and 1.0 for right, (0.5 center). |
yAlign | The y alignment 0.0 for left and 1.0 for right, (0.5 center). |
Definition at line 74 of file Selection.H.
|
inline |
Set the way the column changes size
sz,the | sizing style {GTK_TREE_VIEW_COLUMN_GROW_ONLY, GTK_TREE_VIEW_COLUMN_AUTOSIZE, GTK_TREE_VIEW_COLUMN_FIXED} |
Definition at line 180 of file Selection.H.
|
inline |
Set the alignment of the column title in the header Sets the alignment of the column heading to 0.0 for left and 1.0 for right, (0.5 center).
Definition at line 65 of file Selection.H.
|
private |
Definition at line 38 of file Selection.H.
|
private |
The number of this column.
Definition at line 39 of file Selection.H.