VGUI::Image Class Reference

#include <image.h>

Inheritance diagram for VGUI::Image:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Image ()
 Image (Widget *w)
 ~Image ()
void Draw ()
void Draw (float opacity)
string GetFilename ()
void SetFilename (string new_filename)

Private Member Functions

void Load ()

Private Attributes

string filename
TEXTURE_HANDLE img_tex

Detailed Description

Definition at line 9 of file image.h.


Constructor & Destructor Documentation

VGUI::Image::Image  )  [inline]
 

Definition at line 12 of file image.h.

Image::Image Widget w  ) 
 

Definition at line 6 of file image.cpp.

References VGUI::Widget::center, VGUI::Widget::color_b, VGUI::Widget::color_g, VGUI::Widget::color_r, VGUI::Widget::enabled, filename, 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, 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.

Image::~Image  ) 
 

Definition at line 29 of file image.cpp.


Member Function Documentation

void Image::Draw float  opacity  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 53 of file image.cpp.

References VGUI::Widget::center, UTILITY::Draw2D(), VGUI::Location::GetXPercent(), VGUI::Location::GetYPercent(), img_tex, VGUI::Widget::rel_height, VGUI::Widget::rel_width, and utility.

void Image::Draw  )  [virtual]
 

Reimplemented from VGUI::Widget.

Definition at line 48 of file image.cpp.

string VGUI::Image::GetFilename  )  [inline]
 

Definition at line 18 of file image.h.

References filename.

void Image::Load  )  [private]
 

Definition at line 33 of file image.cpp.

References filename, VGUI::Widget::height_auto, img_tex, TEXTURE_HANDLE::Load(), VGUI::Widget::rel_height, VGUI::Widget::rel_width, and VGUI::Widget::width_auto.

Referenced by SetFilename().

void VGUI::Image::SetFilename string  new_filename  )  [inline]
 

Definition at line 19 of file image.h.

References filename, and Load().


Member Data Documentation

string VGUI::Image::filename [private]
 

Definition at line 22 of file image.h.

Referenced by GetFilename(), Image(), Load(), and SetFilename().

TEXTURE_HANDLE VGUI::Image::img_tex [private]
 

Definition at line 23 of file image.h.

Referenced by Draw(), and Load().


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