GLWFileView Class Reference

#include <GLWFileView.h>

Inheritance diagram for GLWFileView:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWFileView (char *fileName="", float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWFileView ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void mouseUp (int button, float x, float y, bool &skipRest)
virtual void mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest)
virtual void mouseWheel (float x, float y, float z, bool &skipRest)
 REGISTER_CLASS_HEADER (GLWFileView)

Protected Attributes

GLWScrollW scroll_
FileLines lines_


Detailed Description

Definition at line 28 of file GLWFileView.h.


Constructor & Destructor Documentation

GLWFileView::GLWFileView ( char *  fileName = "",
float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 27 of file GLWFileView.cpp.

References FileLines::getLines(), GLWScrollW::getMax(), GLWidget::h_, lines_, FileLines::readFile(), scroll_, GLWScrollW::setCurrent(), GLWScrollW::setMax(), and GLWScrollW::setSee().

GLWFileView::~GLWFileView (  )  [virtual]

Definition at line 40 of file GLWFileView.cpp.


Member Function Documentation

void GLWFileView::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 49 of file GLWFileView.cpp.

References GLWScrollW::draw(), GLWidget::drawShadedRoundBox(), GLFont2d::drawWidth(), S3D::formatStringBuffer(), GLWScrollW::getCurrent(), GLWFont::getGameFont(), FileLines::getLines(), GLWScrollW::getMax(), GL_LINE_LOOP, glBegin(), glEnd(), GLWidget::h_, GLWFont::instance(), int(), lines_, scroll_, GLWidget::w_, GLWFont::widgetFontColor, GLWidget::x_, and GLWidget::y_.

void GLWFileView::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 44 of file GLWFileView.cpp.

References scroll_, and GLWScrollW::simulate().

void GLWFileView::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 71 of file GLWFileView.cpp.

References GLWScrollW::mouseDown(), and scroll_.

void GLWFileView::mouseUp ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 76 of file GLWFileView.cpp.

References GLWScrollW::mouseUp(), and scroll_.

void GLWFileView::mouseDrag ( int  button,
float  mx,
float  my,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 81 of file GLWFileView.cpp.

References GLWScrollW::mouseDrag(), and scroll_.

void GLWFileView::mouseWheel ( float  x,
float  y,
float  z,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 86 of file GLWFileView.cpp.

References GLWScrollW::getCurrent(), GLWidget::h_, GLWidget::inBox(), scroll_, GLWScrollW::setCurrent(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

GLWFileView::REGISTER_CLASS_HEADER ( GLWFileView   ) 


Member Data Documentation

GLWScrollW GLWFileView::scroll_ [protected]

Definition at line 47 of file GLWFileView.h.

Referenced by draw(), GLWFileView(), mouseDown(), mouseDrag(), mouseUp(), mouseWheel(), and simulate().

FileLines GLWFileView::lines_ [protected]

Definition at line 48 of file GLWFileView.h.

Referenced by draw(), and GLWFileView().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3