#include <DrawBorder.h>

Public Member Functions | |
| void | draw () |
| Does the actual drawing in the view. | |
| void | drawKnob (double x, double y) |
| Draws a knob centered at x, y. | |
| ViewBase * | getView () |
| Gets the view object. | |
| void | setView (ViewBase *view) |
| Sets the View object. | |
Static Public Member Functions | |
| static DrawBorder * | instance () |
| Returns the pointer to the singleton instance. | |
Private Member Functions | |
| DrawBorder () | |
| A default constructor for avoiding creation except by itself. | |
| DrawBorder (const DrawBorder &) | |
| A private copy constructor to avoid copying. | |
Private Attributes | |
| ViewBase * | m_view |
| The View object. | |
Static Private Attributes | |
| static DrawBorder * | s_instance = 0 |
| The instance of the application. | |
Definition at line 23 of file DrawBorder.h.
| DrawBorder | ( | const DrawBorder & | ) | [private] |
| DrawBorder | ( | ) | [private] |
A default constructor for avoiding creation except by itself.
Definition at line 30 of file DrawBorder.cxx.
Referenced by DrawBorder::instance().
| void draw | ( | ) |
Does the actual drawing in the view.
Definition at line 57 of file DrawBorder.cxx.
References DrawBorder::drawKnob(), ViewBase::drawViewLines(), ViewBase::getDrawRect(), Rect::getHeight(), Rect::getWidth(), DrawBorder::m_view, and hippodraw::Line::Solid.
Referenced by QtView::draw(), and QtGroupView::draw().
| void drawKnob | ( | double | x, | |
| double | y | |||
| ) |
Draws a knob centered at x, y.
Definition at line 107 of file DrawBorder.cxx.
References ViewBase::drawViewLines(), DrawBorder::m_view, num_util::size(), and hippodraw::Line::Solid.
Referenced by DrawBorder::draw().
| ViewBase * getView | ( | ) |
| DrawBorder * instance | ( | ) | [static] |
Returns the pointer to the singleton instance.
Definition at line 39 of file DrawBorder.cxx.
References DrawBorder::DrawBorder(), and DrawBorder::s_instance.
Referenced by QtView::draw(), and QtGroupView::draw().
| void setView | ( | ViewBase * | view | ) |
Sets the View object.
Definition at line 47 of file DrawBorder.cxx.
References DrawBorder::m_view.
Referenced by QtView::draw(), and QtGroupView::draw().
The View object.
Definition at line 34 of file DrawBorder.h.
Referenced by DrawBorder::draw(), DrawBorder::drawKnob(), DrawBorder::getView(), and DrawBorder::setView().
DrawBorder * s_instance = 0 [static, private] |
The instance of the application.
Definition at line 28 of file DrawBorder.h.
Referenced by DrawBorder::instance().