Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Table_Base Class Reference

Fl_Table_Base.. More...

#include <Fl_Table_Base.h>

Inheritance diagram for Fl_Table_Base:

Fl_Widget Fl_ListView Fl_File_Browser List of all members.

Public Types

enum  RowColFlags { NONE = 0, INVISIBLE = 1, NON_RESIZABLE = 2 }
enum  TableContext {
  CONTEXT_NONE = 0, CONTEXT_BEGIN, CONTEXT_END, CONTEXT_ROW_HEADER,
  CONTEXT_COL_HEADER, CONTEXT_CELL, CONTEXT_TABLE, CONTEXT_SCROLLED
}
enum  TypeValues {
  HORIZONTAL = 1, VERTICAL = 2, BOTH = 3, ALWAYS_ON = 4,
  HORIZONTAL_ALWAYS = 5, VERTICAL_ALWAYS = 6, BOTH_ALWAYS = 7, TRANSPARENT_RESIZE = 8
}
enum  ResizeFlag {
  RESIZE_NONE = 0, RESIZE_COL_LEFT = 1, RESIZE_COL_RIGHT = 2, RESIZE_ROW_ABOVE = 3,
  RESIZE_ROW_BELOW = 4
}

Public Methods

 Fl_Table_Base (int X, int Y, int W, int H, const char *l=0)
 Fl_Table_Base (const char *l=0, int layout_size=30, Fl_Align layout_al=FL_ALIGN_TOP, int label_w=-1)
virtual ~Fl_Table_Base ()
virtual int handle (int e)
virtual void layout ()
virtual void draw ()
bool transparent_resize () const
void transparent_resize (bool v)
void get_bounds (TableContext context, int &X, int &Y, int &W, int &H)
TableContext cursor2rowcol (unsigned &R, unsigned &C, ResizeFlag &resizeflag)
bool find_cell (TableContext context, unsigned R, unsigned C, int &X, int &Y, int &W, int &H)
bool row_col_clamp (unsigned &R, unsigned &C)
bool row_col_clamp (int &R, int &C)
int row_scroll_position (unsigned row)
int col_scroll_position (unsigned col)
void position2rowcol (int x, int y, int &R, int &C) const
void row_resize (bool flag)
bool row_resize () const
void col_resize (bool flag)
bool col_resize () const
void col_resize_min (unsigned val)
int col_resize_min () const
void row_resize_min (unsigned val)
int row_resize_min () const
void row_header (bool flag)
bool row_header () const
void col_header (bool flag)
bool col_header () const
void col_header_height (int height)
int col_header_height () const
void row_header_width (int width)
int row_header_width () const
void row_height (unsigned row, int height)
int row_height (unsigned row) const
void col_width (unsigned col, int width)
int col_width (unsigned col) const
void row_height_all (int height)
void col_width_all (int width)
void top_row (unsigned row)
void left_col (unsigned col)
bool show_row (unsigned row)
bool show_col (unsigned col)
void yposition (int Y)
int yposition () const
void xposition (int X)
int xposition () const
int totalheight () const
int totalwidth () const
void row_flags (int row, uchar flags)
uchar row_flags (int row) const
void col_flags (int row, uchar flags)
uchar col_flags (int row) const
bool visible_row (int row) const
void visible_row (int row, bool val)
bool visible_col (int col) const
void visible_col (int col, bool val)
bool resizable_row (int row) const
void resizable_row (int row, bool val)
bool resizable_col (int col) const
void resizable_col (int col, bool val)

Protected Methods

virtual void row_count (unsigned count)
unsigned row_count () const
virtual void col_count (unsigned count)
unsigned col_count () const
int default_col_width () const
void default_col_width (int w)
int default_row_height () const
void default_row_height (int h)
virtual void table_draw (TableContext context, unsigned R, unsigned C, int X, int Y, int W, int H)=0
virtual void table_layout (TableContext context, unsigned row, unsigned col)
virtual int table_handle (TableContext context, unsigned row, unsigned col, int event)
void recalc_row_lookup ()
unsigned find_safe_top (int ypos, int &y) const
void recalc_dimensions ()
void change_cursor (Fl_Cursor newcursor)

Static Protected Methods

void cb_vscrollbar (Fl_Scrollbar *s, Fl_Table_Base *d)
void cb_hscrollbar (Fl_Scrollbar *s, Fl_Table_Base *d)

Protected Attributes

int table_w
int table_h
unsigned toprow
unsigned leftcol
unsigned toprow_y
unsigned leftcol_x
int tix
int tiy
int tiw
int tih
int wix
int wiy
int wiw
int wih
Fl_Scrollbarvscrollbar
Fl_Scrollbarhscrollbar

Detailed Description

Fl_Table_Base..

Docos to do..

Fl_Table_Base is inspired by the Fl_Table from Greg Ercolano, but is mostly rewritten.

Definition at line 36 of file Fl_Table_Base.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:53 2003 for eFLTK by doxygen1.2.15