gtk.CellView.CellView Class Reference

Inheritance diagram for gtk.CellView.CellView:

gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkCellViewgetCellViewStruct ()
 this (GtkCellView *gtkCellView)
 Sets our main struct and passes it to the parent class.
 this (char[] text, bit markup=true)
 Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes its show text.
int getUseFg ()
 Get whether the GtkCellView hints the cell renderer that foreground colors should be used when rendering text.
void setUseFg (int useFg)
 Sets whether to hint the cell renderer that foreground colors should be used when rendering text.
 this ()
 Creates a new GtkCellView widget.
 this (Pixbuf pixbuf)
 Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf to it, and makes its show pixbuf.
void setModel (TreeModel model)
 Sets the model for cell_view.
void setDisplayedRow (TreePath path)
 Sets the row of the model that is currently displayed by the GtkCellView.
TreePath getDisplayedRow ()
 Returns a GtkTreePath referring to the currently displayed row.
int getSizeOfRow (TreePath path, GtkRequisition *requisition)
 Sets requisition to the size needed by cell_view to display the model row pointed to by path.
void setBackgroundColor (Color color)
 Sets the background color of view.
ListG getCellRenderers ()
 Returns the cell renderers which have been added to cell_view.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkCellViewgtkCellView
 the main Gtk struct

Constructor & Destructor Documentation

gtk.CellView.CellView.this ( GtkCellView gtkCellView  ) 

Sets our main struct and passes it to the parent class.

gtk.CellView.CellView.this ( char[]  text,
bit  markup = true 
)

Creates a new GtkCellView widget, adds a GtkCellRendererText to it, and makes its show text.

If markup is true the text can be marked up with the Pango text markup language. text: the text to display in the cell view Returns: A newly created GtkCellView widget. Since 2.6

gtk.CellView.CellView.this (  ) 

Creates a new GtkCellView widget.

Returns: A newly created GtkCellView widget. Since 2.6

gtk.CellView.CellView.this ( Pixbuf  pixbuf  ) 

Creates a new GtkCellView widget, adds a GtkCellRendererPixbuf to it, and makes its show pixbuf.

pixbuf: the image to display in the cell view Returns: A newly created GtkCellView widget. Since 2.6


Member Function Documentation

ListG gtk.CellView.CellView.getCellRenderers (  ) 

Returns the cell renderers which have been added to cell_view.

cell_view: a GtkCellView Returns: a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with g_list_free() when no longer needed. Since 2.6 Property Details The "background" property "background" gchararray : Write Background color as a string. Default value: NULL

GtkCellView* gtk.CellView.CellView.getCellViewStruct (  ) 

TreePath gtk.CellView.CellView.getDisplayedRow (  ) 

Returns a GtkTreePath referring to the currently displayed row.

If no row is currently displayed, NULL is returned. cell_view: a GtkCellView Returns: the currently displayed row or NULL Since 2.6

int gtk.CellView.CellView.getSizeOfRow ( TreePath  path,
GtkRequisition requisition 
)

Sets requisition to the size needed by cell_view to display the model row pointed to by path.

cell_view: a GtkCellView path: a GtkTreePath requisition: return location for the size Returns: TRUE Since 2.6

void* gtk.CellView.CellView.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Widget.Widget.

int gtk.CellView.CellView.getUseFg (  ) 

Get whether the GtkCellView hints the cell renderer that foreground colors should be used when rendering text.

See gtk_cell_view_set_use_fg(). cell_view: a GtkCellView Returns: The value of the "use-fg" property Since 2.12

void gtk.CellView.CellView.setBackgroundColor ( Color  color  ) 

Sets the background color of view.

cell_view: a GtkCellView color: the new background color Since 2.6

void gtk.CellView.CellView.setDisplayedRow ( TreePath  path  ) 

Sets the row of the model that is currently displayed by the GtkCellView.

If the path is unset, then the contents of the cellview "stick" at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the GtkCellView becomes temporarily empty. cell_view: a GtkCellView path: a GtkTreePath or NULL to unset. Since 2.6

void gtk.CellView.CellView.setModel ( TreeModel  model  ) 

Sets the model for cell_view.

If cell_view already has a model set, it will remove it before setting the new model. If model is NULL, then it will unset the old model. cell_view: a GtkCellView model: a GtkTreeModel Since 2.6

void gtk.CellView.CellView.setUseFg ( int  useFg  ) 

Sets whether to hint the cell renderer that foreground colors should be used when rendering text.

cell_view: a GtkCellView use_fg: TRUE if foreground colors should be used for text Since 2.12


Member Data Documentation

GtkCellView* gtk.CellView.CellView.gtkCellView [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo