VGUI::MultiImage Class Reference

#include <multi_image.h>

Inheritance diagram for VGUI::MultiImage:

Inheritance graph
[legend]
Collaboration diagram for VGUI::MultiImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MultiImage ()
 MultiImage (Widget *w)
 ~MultiImage ()
void Draw ()
void Draw (float opacity)
bool MouseOver (float x, float y)
string MousePress (float x, float y)
string MouseRelease (float x, float y)
void ResetValue ()
void HookIncValuePress ()
void HookDecValuePress ()
void HookIncValueRelease ()
void HookDecValueRelease ()
void Release ()
vector< string > GetFilenameList ()
vector< string > GetValueList ()
string GetValue ()
string GetSetting ()
void SetFilenameList (vector< string > new_filename_list)
void SetValueList (vector< string > new_value_list)
void SetValue (string new_value)
void SetSetting (string new_setting)

Private Member Functions

void Load ()

Private Attributes

vector< string > filename_list
vector< string > value_list
vector< TEXTURE_HANDLEimg_tex_list
unsigned int cur_option
unsigned int last_option
string setting
bool l_down
bool r_down
Uint32 press_time

Detailed Description

Definition at line 9 of file multi_image.h.


Constructor & Destructor Documentation

VGUI::MultiImage::MultiImage  )  [inline]
 

Definition at line 12 of file multi_image.h.

MultiImage::MultiImage Widget w  ) 
 

Definition at line 6 of file multi_image.cpp.

References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cur_option, VGUI::Widget::enabled, VGUI::Widget::font_size, VGUI::Widget::GetCancel(), VGUI::Widget::GetCenter(), VGUI::Widget::GetColorB(), VGUI::Widget::GetColorG(), VGUI::Widget::GetColorR(), VGUI::Widget::GetDefault(), VGUI::Widget::GetEnabled(), VGUI::Widget::GetFontSize(), VGUI::Widget::GetHasIcon(), VGUI::Widget::GetHeightAuto(), VGUI::Widget::GetName(), VGUI::Widget::GetRelHeight(), VGUI::Widget::GetRelWidth(), VGUI::Widget::GetSelected(), VGUI::Widget::GetText(), VGUI::Widget::GetTip(), VGUI::Widget::GetType(), VGUI::Widget::GetWidthAuto(), VGUI::Widget::has_icon, VGUI::Widget::height_auto, VGUI::Widget::is_cancel, VGUI::Widget::is_default, last_option, VGUI::Widget::name, VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, VGUI::Widget::text, VGUI::Widget::tip, VGUI::Widget::type, and VGUI::Widget::width_auto.

MultiImage::~MultiImage  ) 
 

Definition at line 30 of file multi_image.cpp.


Member Function Documentation

void MultiImage::Draw float  opacity  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 75 of file multi_image.cpp.

References VGUI::Widget::center, cur_option, UTILITY::Draw2D(), VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), img_tex_list, last_option, press_time, VGUI::Widget::rel_height, VGUI::Widget::rel_width, and utility.

void MultiImage::Draw  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 70 of file multi_image.cpp.

vector<string> VGUI::MultiImage::GetFilenameList  )  [inline]
 

Definition at line 27 of file multi_image.h.

References filename_list.

string VGUI::MultiImage::GetSetting  )  [inline]
 

Definition at line 30 of file multi_image.h.

References setting.

string VGUI::MultiImage::GetValue  )  [inline]
 

Definition at line 29 of file multi_image.h.

References cur_option, and value_list.

vector<string> VGUI::MultiImage::GetValueList  )  [inline]
 

Definition at line 28 of file multi_image.h.

References value_list.

void MultiImage::HookDecValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 121 of file multi_image.cpp.

References l_down, press_time, and Release().

void MultiImage::HookDecValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 128 of file multi_image.cpp.

References cur_option, last_option, press_time, and Release().

void MultiImage::HookIncValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 104 of file multi_image.cpp.

References r_down, and Release().

void MultiImage::HookIncValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 110 of file multi_image.cpp.

References cur_option, filename_list, last_option, press_time, and Release().

void MultiImage::Load  )  [private]
 

Definition at line 34 of file multi_image.cpp.

References filename_list, SETTINGS::GetDataDir(), img_tex_list, and settings.

Referenced by SetFilenameList().

bool MultiImage::MouseOver float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 144 of file multi_image.cpp.

string MultiImage::MousePress float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 156 of file multi_image.cpp.

string MultiImage::MouseRelease float  x,
float  y
[virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 181 of file multi_image.cpp.

void MultiImage::Release  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 139 of file multi_image.cpp.

References l_down, and r_down.

Referenced by HookDecValuePress(), HookDecValueRelease(), HookIncValuePress(), and HookIncValueRelease().

void MultiImage::ResetValue  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 63 of file multi_image.cpp.

References SETTINGS::Get(), setting, settings, and SetValue().

void VGUI::MultiImage::SetFilenameList vector< string >  new_filename_list  )  [inline]
 

Definition at line 31 of file multi_image.h.

References filename_list, and Load().

void VGUI::MultiImage::SetSetting string  new_setting  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 34 of file multi_image.h.

References setting.

void VGUI::MultiImage::SetValue string  new_value  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 33 of file multi_image.h.

References cur_option, and filename_list.

Referenced by ResetValue().

void VGUI::MultiImage::SetValueList vector< string >  new_value_list  )  [inline]
 

Definition at line 32 of file multi_image.h.

References value_list.


Member Data Documentation

unsigned int VGUI::MultiImage::cur_option [private]
 

Definition at line 42 of file multi_image.h.

Referenced by Draw(), GetValue(), HookDecValueRelease(), HookIncValueRelease(), MultiImage(), and SetValue().

vector<string> VGUI::MultiImage::filename_list [private]
 

Definition at line 39 of file multi_image.h.

Referenced by GetFilenameList(), HookIncValueRelease(), Load(), SetFilenameList(), and SetValue().

vector<TEXTURE_HANDLE> VGUI::MultiImage::img_tex_list [private]
 

Definition at line 41 of file multi_image.h.

Referenced by Draw(), and Load().

bool VGUI::MultiImage::l_down [private]
 

Definition at line 44 of file multi_image.h.

Referenced by HookDecValuePress(), and Release().

unsigned int VGUI::MultiImage::last_option [private]
 

Definition at line 42 of file multi_image.h.

Referenced by Draw(), HookDecValueRelease(), HookIncValueRelease(), and MultiImage().

Uint32 VGUI::MultiImage::press_time [private]
 

Definition at line 45 of file multi_image.h.

Referenced by Draw(), HookDecValuePress(), HookDecValueRelease(), and HookIncValueRelease().

bool VGUI::MultiImage::r_down [private]
 

Definition at line 44 of file multi_image.h.

Referenced by HookIncValuePress(), and Release().

string VGUI::MultiImage::setting [private]
 

Definition at line 43 of file multi_image.h.

Referenced by GetSetting(), ResetValue(), and SetSetting().

vector<string> VGUI::MultiImage::value_list [private]
 

Definition at line 40 of file multi_image.h.

Referenced by GetValue(), GetValueList(), and SetValueList().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:14:21 2006 by  doxygen 1.4.6