TabGroupPager Class Reference

Inherited by MenuTabPager, and ShrinkTabPager.

List of all members.

Public Member Functions

virtual int update_positions (TabGroup *g, int numchildren, int &selected, int &cumulated_width, int &available_width, int *tab_pos, int *tab_width)
virtual bool draw_tabs (TabGroup *g, int selected, int *tab_pos, int *tab_width)
virtual int which (TabGroup *g, int m_x, int m_y)=0
virtual TabGroupPagerclone () const =0
virtual const char * mode_name () const =0
virtual int id () const =0
virtual int available_width (TabGroup *g) const
int border () const
int slope () const
int extra_space () const
void border (int v)
void slope (int v)
void extra_space (int v)
int shift () const
void shift (int v)
int spacing () const
void noclip (bool v)


Detailed Description

This Helper class defines generically the TabGroup behavior when there is more tabs than available horizontal width, i.e it can generates a popup menu or shrink It opens the door to new Pagers creation as left- rights arrows scrolling pagers and others ... To create a new pager, inherits from TabGroupPager and redefines the pure virtual methods of this template.


Member Function Documentation

int TabGroupPager::available_width TabGroup g  )  const [virtual]
 

return max width available for drawing tab thumbnails

virtual TabGroupPager* TabGroupPager::clone  )  const [pure virtual]
 

virtual copy from a prototype

virtual bool TabGroupPager::draw_tabs TabGroup g,
int  selected,
int *  tab_pos,
int *  tab_width
[inline, virtual]
 

draw the tabs for this custom pager, return false means no custom draw is made

void TabGroupPager::noclip bool  v  )  [inline]
 

determines if we forbid partial tabs drawing with clipping

int TabGroupPager::shift  )  const [inline]
 

shifting to nth+1 tab to draw, permit to 'keep' a position while changing tabs and tab is in the interval

virtual int TabGroupPager::update_positions TabGroup g,
int  numchildren,
int &  selected,
int &  cumulated_width,
int &  available_width,
int *  tab_pos,
int *  tab_width
[inline, virtual]
 

this method must update the tab positions and width array, returns the selected tab

virtual int TabGroupPager::which TabGroup g,
int  m_x,
int  m_y
[pure virtual]
 

determine and return the index of the child group at the corresponding pos


The documentation for this class was generated from the following files:
Sun Jan 7 00:55:18 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.