Public Member Functions | |
virtual int | available_width (TabGroup *g) const |
void | border (int v) |
int | border () const |
virtual TabGroupPager * | clone () const =0 |
virtual bool | draw_tabs (TabGroup *g, int selected, int *tab_pos, int *tab_width) |
void | extra_space (int v) |
int | extra_space () const |
virtual int | id () const =0 |
virtual const char * | mode_name () const =0 |
void | noclip (bool v) |
void | shift (int v) |
int | shift () const |
void | slope (int v) |
int | slope () const |
int | spacing () const |
virtual int | update_positions (TabGroup *g, int numchildren, int &selected, int &cumulated_width, int &available_width, int *tab_pos, int *tab_width) |
virtual int | which (TabGroup *g, int m_x, int m_y)=0 |
virtual int fltk::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 bool fltk::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
virtual int fltk::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
Referenced by fltk::TabGroup::which().
virtual TabGroupPager* fltk::TabGroupPager::clone | ( | ) | const [pure virtual] |
virtual copy from a prototype
Referenced by fltk::TabGroup::default_pager(), fltk::TabGroup::pager(), and fltk::TabGroup::TabGroup().
int TabGroupPager::available_width | ( | TabGroup * | g | ) | const [virtual] |
return max width available for drawing tab thumbnails
References fltk::Rectangle::w().
int fltk::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
void fltk::TabGroupPager::noclip | ( | bool | v | ) | [inline] |
determines if we forbid partial tabs drawing with clipping