A singleton class to draw the border with knobies around the selected display. More...
#include <DrawBorder.h>

Public Member Functions | |
| void | draw () |
| Does the actual drawing in the view. More... | |
| void | drawKnob (double x, double y) |
| Draws a knob centered at x, y. More... | |
| ViewBase * | getView () |
| Gets the view object. More... | |
| void | setView (ViewBase *view) |
| Sets the View object. More... | |
Static Public Member Functions | |
| static DrawBorder * | instance () |
| Returns the pointer to the singleton instance. More... | |
Private Member Functions | |
| DrawBorder (const DrawBorder &) | |
| A private copy constructor to avoid copying. More... | |
| DrawBorder () | |
| A default constructor for avoiding creation except by itself. More... | |
Private Attributes | |
| ViewBase * | m_view |
| The View object. More... | |
Static Private Attributes | |
| static DrawBorder * | s_instance = 0 |
| The instance of the application. More... | |
A singleton class to draw the border with knobies around the selected display.
Definition at line 23 of file DrawBorder.h.
|
private |
A private copy constructor to avoid copying.
Definition at line 34 of file DrawBorder.cxx.
|
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 QtGroupView::draw(), and QtView::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 | ( | ) |
|
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 QtGroupView::draw(), and QtView::draw().
| void setView | ( | ViewBase * | view | ) |
Sets the View object.
Definition at line 47 of file DrawBorder.cxx.
References DrawBorder::m_view.
Referenced by QtGroupView::draw(), and QtView::draw().
|
private |
The View object.
Definition at line 34 of file DrawBorder.h.
Referenced by DrawBorder::draw(), DrawBorder::drawKnob(), DrawBorder::getView(), and DrawBorder::setView().
|
staticprivate |
The instance of the application.
Definition at line 28 of file DrawBorder.h.
Referenced by DrawBorder::instance().