#include <GLWFileView.h>

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_ |
Definition at line 28 of file GLWFileView.h.
| 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.
| 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 | ) |
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] |
1.5.3