MityDSP Documentation Index

MityDSP::tcGuiListbox Class Reference

#include <ggui/gui_listbox.h>

Inheritance diagram for MityDSP::tcGuiListbox:
MityDSP::tcGuiObject

List of all members.

Public Member Functions

 tcGuiListbox (const char *name, tcBench *bench, int idd)
 ~tcGuiListbox ()
virtual bool ParseXML (TiXmlElement *ahDom)
void create ()
void set_text_x_pos (int x)
void set_text_y_pos (int y)
void set_normal_fg_color (tsRgb color)
void set_normal_bg_color (tsRgb color)
void set_list_fg_color (tsRgb color)
void set_list_bg_color (tsRgb color)
void set_select_fg_color (tsRgb color)
void set_select_bg_color (tsRgb color)
void set_hilite_fg_color (tsRgb color)
void set_hilite_bg_color (tsRgb color)
void set_rail_bg_color (tsRgb color)
void get_index_text (int index, const char *&str)
void set_str_list (const char **sl, int len)
void clear ()
void add_str (const char *str, bool redraw=false)
void add_str_front (const char *str, bool redraw=false)
void remove_last (bool redraw=false)
void reserve (int capacity)
void set_multi_select (bool ms)
void set_selection (int index, bool selected=true, bool callback=false)
void set_scroll_enable (bool enable)
void scroll_page (bool down, bool move_selection, bool callback=false)
int get_selection ()
void get_selection_text (const char *&str)
bool lbutton_down (int x, int y)
void lbutton_up (int x, int y)
void mouse_move (int x, int y, int flags)
void mouse_hover (int x, int y, int flags)
void double_click (int x, int y)
bool does_hover_mouse ()
bool does_double_click ()
void draw (tcGuiDspDisplay &pd)
void set_listbox_callbacks (LISTBOX_SELECT_CB select_cb, LISTBOX_MULTISELECT_CB multi_select_cb)

Detailed Description

The tcGuiListbox class is a derived tcGuiObject class that implements a skinnable text listbox widget for the GGUI graphics library.

See also:
tcGuiListbox Page

Constructor & Destructor Documentation

MityDSP::tcGuiListbox::tcGuiListbox ( const char *  name,
tcBench bench,
int  idd 
)
MityDSP::tcGuiListbox::~tcGuiListbox (  ) 

Member Function Documentation

virtual bool MityDSP::tcGuiListbox::ParseXML ( TiXmlElement *  apElement  )  [virtual]

Parse common XML elements from the DOM.

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::create (  )  [virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::set_text_x_pos ( int  x  )  [inline, virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::set_text_y_pos ( int  y  )  [inline, virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::set_normal_fg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_normal_bg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_list_fg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_list_bg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_select_fg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_select_bg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_hilite_fg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_hilite_bg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::set_rail_bg_color ( tsRgb  color  )  [inline]
void MityDSP::tcGuiListbox::get_index_text ( int  index,
const char *&  str 
)
void MityDSP::tcGuiListbox::set_str_list ( const char **  sl,
int  len 
)
void MityDSP::tcGuiListbox::clear (  ) 
void MityDSP::tcGuiListbox::add_str ( const char *  str,
bool  redraw = false 
)
void MityDSP::tcGuiListbox::add_str_front ( const char *  str,
bool  redraw = false 
)
void MityDSP::tcGuiListbox::remove_last ( bool  redraw = false  ) 
void MityDSP::tcGuiListbox::reserve ( int  capacity  ) 
void MityDSP::tcGuiListbox::set_multi_select ( bool  ms  ) 
void MityDSP::tcGuiListbox::set_selection ( int  index,
bool  selected = true,
bool  callback = false 
)
void MityDSP::tcGuiListbox::set_scroll_enable ( bool  enable  )  [inline]
void MityDSP::tcGuiListbox::scroll_page ( bool  down,
bool  move_selection,
bool  callback = false 
)
int MityDSP::tcGuiListbox::get_selection (  )  [inline]
void MityDSP::tcGuiListbox::get_selection_text ( const char *&  str  ) 
bool MityDSP::tcGuiListbox::lbutton_down ( int  x,
int  y 
) [virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::lbutton_up ( int  x,
int  y 
) [virtual]

Empty method for handling left mouse button up events. Should be overridden by objects requiring left button up events.

Parameters:
x x screen coordinate of up event
y y screen coordinate of up event

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::mouse_move ( int  x,
int  y,
int  flags 
) [virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::mouse_hover ( int  x,
int  y,
int  flags 
)
void MityDSP::tcGuiListbox::double_click ( int  x,
int  y 
)
bool MityDSP::tcGuiListbox::does_hover_mouse (  )  [inline]
bool MityDSP::tcGuiListbox::does_double_click (  )  [inline]
void MityDSP::tcGuiListbox::draw ( tcGuiDspDisplay pd  )  [virtual]

Reimplemented from MityDSP::tcGuiObject.

void MityDSP::tcGuiListbox::set_listbox_callbacks ( LISTBOX_SELECT_CB  select_cb,
LISTBOX_MULTISELECT_CB  multi_select_cb 
) [inline]

  
Generated on Wed Mar 17 18:24:43 2010 for MityDSP Skinnable Graphics User Interface (GGUI) by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.