fluidvis
|
#include <SXWidget.h>
Signals | |
EXW void | finishedRendering () |
EXW void | wheelRotates (float degrees) |
Public Member Functions | |
EXW | SXWidget () |
EXW | ~SXWidget () |
EXW void | renderPeriodically (float time) |
EXW void | stopRenderPeriodically () |
EXW void | addRenderListener (SXRenderListener &l) |
EXW void | deleteRenderListener (SXRenderListener &l) |
EXW void | deleteRenderListeners () |
EXW double | getTime () const |
EXW double | getDeltaTime () const |
EXW int | getMouseX () const |
EXW int | getMouseY () const |
EXW double | getMouseDeltaX () const |
EXW double | getMouseDeltaY () const |
EXW bool | hasKey (int key) const |
EXW bool | hasMouseKey (MouseButton key) const |
EXW int | getWidth () const |
EXW int | getHeight () const |
EXW void | stopRendering () |
EXW void | setMousePointer (int x, int y) |
EXW void | setShowCursor (bool showCursor) |
Friends | |
class | SXInternalWidget |
a Widget offering an environment for SXRenderListeners
EXW sx::SXWidget::SXWidget | ( | ) |
constructor
EXW sx::SXWidget::~SXWidget | ( | ) |
deconstructor
EXW void sx::SXWidget::addRenderListener | ( | SXRenderListener & | l | ) |
Adds a listener. The listener is removed, when the widget is removed.
EXW void sx::SXWidget::deleteRenderListener | ( | SXRenderListener & | l | ) |
Removes a listener, if it's part of the widget. Otherwise the listener is not removed.
EXW void sx::SXWidget::deleteRenderListeners | ( | ) |
removes all listeners, if the widget has not stopped rendering yet
|
signal |
fires after method stopRendering() deallocated all render listeners
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
EXW void sx::SXWidget::renderPeriodically | ( | float | time | ) |
Makes the SXWidget render repeatedly. Parameter time specifies the amount of time from one frame to another in seconds.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
|
virtual |
Implements sx::SXRenderArea.
EXW void sx::SXWidget::stopRenderPeriodically | ( | ) |
Makes the SXWidget stop rendering repeatedly.
|
signal |
Fires when the user rotates the mousewheel. The value of parameter degrees is equal to the angle the user rotated the mousewheel away from its position before in degrees. A positive value indicates, that the user rotated the wheel was rotated away from the user.