VGUI::Slider Class Reference

#include <slider.h>

Inheritance diagram for VGUI::Slider:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Slider ()
 Slider (Widget *w)
 ~Slider ()
void Draw ()
void Draw (float opacity)
void Save ()
bool MouseOver (float x, float y)
string MousePress (float x, float y)
string MouseRelease (float x, float y)
void ResetValue ()
float GetValue ()
float GetDefaultValue ()
void SetValue (float new_value)
void SetDefaultValue (float new_value)
void SetSetting (string new_setting)
void IncValuePress ()
void DecValuePress ()
void IncValueRelease ()
void DecValueRelease ()
void Release ()

Private Attributes

TEXTURE_HANDLE slider
TEXTURE_HANDLE cursor
float value
float default_value
string setting
float wedge_tex_width
float wedge_width
float wedge_height
float cursor_width
float cursor_height
float cursor_offset

Detailed Description

Definition at line 9 of file slider.h.


Constructor & Destructor Documentation

VGUI::Slider::Slider  )  [inline]
 

Definition at line 12 of file slider.h.

Slider::Slider Widget w  ) 
 

Definition at line 6 of file slider.cpp.

References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cursor, cursor_height, cursor_offset, cursor_width, default_value, 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(), SETTINGS::GetSkinPath(), 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, TEXTURE_HANDLE::Load(), VGUI::Widget::name, VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, setting, settings, slider, VGUI::Widget::text, VGUI::Widget::tip, VGUI::Widget::type, value, wedge_height, wedge_tex_width, wedge_width, and VGUI::Widget::width_auto.

Slider::~Slider  ) 
 

Definition at line 54 of file slider.cpp.


Member Function Documentation

void Slider::DecValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 109 of file slider.cpp.

References value.

void Slider::DecValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 121 of file slider.cpp.

void Slider::Draw float  opacity  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 63 of file slider.cpp.

References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, cursor, cursor_offset, cursor_width, UTILITY::Draw2D(), VGUI::Widget::enabled, font, VGUI::Widget::font_size, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), FONT::Height(), FONT::Print(), VGUI::Widget::rel_height, VGUI::Widget::rel_width, VGUI::Widget::selected, slider, VGUI::Widget::text, VGUI::Widget::tip, utility, value, wedge_height, wedge_tex_width, wedge_width, and FONT::Width().

void Slider::Draw  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 58 of file slider.cpp.

float VGUI::Slider::GetDefaultValue  )  [inline]
 

Definition at line 24 of file slider.h.

References default_value.

float VGUI::Slider::GetValue  )  [inline]
 

Definition at line 23 of file slider.h.

References value.

void Slider::IncValuePress  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 93 of file slider.cpp.

References value.

void Slider::IncValueRelease  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 105 of file slider.cpp.

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

Reimplemented from VGUI::Widget.

Definition at line 138 of file slider.cpp.

References VGUI::Widget::center, VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), VGUI::Widget::rel_height, and VGUI::Widget::rel_width.

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

Reimplemented from VGUI::Widget.

Definition at line 149 of file slider.cpp.

References VGUI::Widget::center, VGUI::Location::GetXPercent(), VGUI::Widget::rel_width, SetValue(), value, and wedge_width.

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

Reimplemented from VGUI::Widget.

Definition at line 176 of file slider.cpp.

void VGUI::Slider::Release void   )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 32 of file slider.h.

void Slider::ResetValue  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 131 of file slider.cpp.

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

void Slider::Save  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 125 of file slider.cpp.

References default_value, SETTINGS::Set(), setting, settings, and value.

void VGUI::Slider::SetDefaultValue float  new_value  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 26 of file slider.h.

References default_value.

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

Reimplemented from VGUI::Widget.

Definition at line 27 of file slider.h.

References setting.

void VGUI::Slider::SetValue float  new_value  )  [inline, virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 25 of file slider.h.

References value.

Referenced by MousePress(), and ResetValue().


Member Data Documentation

TEXTURE_HANDLE VGUI::Slider::cursor [private]
 

Definition at line 35 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::cursor_height [private]
 

Definition at line 38 of file slider.h.

Referenced by Slider().

float VGUI::Slider::cursor_offset [private]
 

Definition at line 38 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::cursor_width [private]
 

Definition at line 38 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::default_value [private]
 

Definition at line 36 of file slider.h.

Referenced by GetDefaultValue(), Save(), SetDefaultValue(), and Slider().

string VGUI::Slider::setting [private]
 

Definition at line 37 of file slider.h.

Referenced by ResetValue(), Save(), SetSetting(), and Slider().

TEXTURE_HANDLE VGUI::Slider::slider [private]
 

Definition at line 35 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::value [private]
 

Definition at line 36 of file slider.h.

Referenced by DecValuePress(), Draw(), GetValue(), IncValuePress(), MousePress(), Save(), SetValue(), and Slider().

float VGUI::Slider::wedge_height [private]
 

Definition at line 38 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::wedge_tex_width [private]
 

Definition at line 38 of file slider.h.

Referenced by Draw(), and Slider().

float VGUI::Slider::wedge_width [private]
 

Definition at line 38 of file slider.h.

Referenced by Draw(), MousePress(), and Slider().


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