GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

GcList Class Reference

#include <GcList.h>

Inheritance diagram for GcList:

Gwidget Gobject List of all members.

Public Methods

 GcList (int cols)
 GcList (Glist *titles)
 ~GcList ()
void Append (Glist *text)
void Remove (int row)
Gstring GetText (int row)
Gstring GetText (int row, int column)
void SetText (Gstring text, int row, int column)
void SetForegroundColor (int row, Gcolor color)
int GetSelectedRow ()
virtual void OnEvent (GdkEvent *e, void *user_data)

Detailed Description

A columned list.
Author(s):
Thibaut Nicolas
Version:
0.1.0
See also:
Glist
Examples:

clist.cpp.


Constructor & Destructor Documentation

GcList::GcList ( int cols )
 

A new GcList with the given number of columns

GcList::GcList ( Glist * titles )
 

A new GcList with the given titles. the Glist titles must contains Gstring pointers


Member Function Documentation

void GcList::Append ( Glist * text )
 

Append items to the list. The <it>text</it> Glist must contains Gstrings

Examples:
clist.cpp.

int GcList::GetSelectedRow ( )
 

return the selected row

Examples:
clist.cpp.

Gstring GcList::GetText ( int row,
int column )
 

Return the text at selected row and column

Gstring GcList::GetText ( int row )
 

return the text in the first item at row

Examples:
clist.cpp.

virtual void GcList::OnEvent ( GdkEvent * e,
void * user_data ) [virtual]
 

Action performed when an event occur

Reimplemented from Gwidget.

void GcList::Remove ( int row )
 

Remove items a row

Examples:
clist.cpp.

void GcList::SetForegroundColor ( int row,
Gcolor color )
 

Set the color og the row. Color is preserved

void GcList::SetText ( Gstring text,
int row,
int column )
 

Set the text at the given row and column


The documentation for this class was generated from the following file:

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002