gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#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) |
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) |
Public Member Functions inherited from LinkList< pair< string *, GType > *> | |
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) |
pair< string *, GType > * | getEnd () |
Private Attributes | |
GtkTreeViewColumn * | column |
int | number |
The number of this column. More... | |
Additional Inherited Members | |
Public Types inherited from LinkList< pair< string *, GType > *> | |
enum | direction |
Public Attributes inherited from LinkList< pair< string *, GType > *> | |
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 40 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 48 of file Selection.H.
|
inlinevirtual |
destructor
Definition at line 57 of file Selection.H.
|
inline |
Add a renderer to the column. Defaults with middle alignment.
name | is the text identification of the renderer to be added to the column. |
whichType | The GType of the column which is to be added. |
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 121 of file Selection.H.
|
inline |
Get the GtkTreeViewColumn *
Definition at line 164 of file Selection.H.
|
inline |
|
inline |
Get the way the columns are sizing.
Definition at line 193 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 149 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 157 of file Selection.H.
|
inline |
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 77 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 185 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 68 of file Selection.H.
|
private |
Definition at line 41 of file Selection.H.
|
private |
The number of this column.
Definition at line 42 of file Selection.H.
GTK+ IOStream
Beta
|