class ScrollArea brief A Container that provides scrolling to a single child.
More...
#include <ScrollArea.h>
|
|
| ScrollArea () |
| | Constructor.
|
| |
|
void | scrollIndicatorsOff () |
| | Timer callback to turn scroll indicators off.
|
| |
|
void | draw (sdl::Renderer &renderer, Rectangle parentRect) override |
| | See Widget::draw.
|
| |
| Rectangle | widgetLayout (sdl::Renderer &renderer, Rectangle available, uint layoutStage) override |
| | Determine the desired size of the child widgets. More...
|
| |
| void | setScrollOffset (Position scrollOffset) |
| | Set the scroll offset of the ScrollArea. More...
|
| |
| std::shared_ptr< Widget > | findWidget (const Position &pos) override |
| | Find the Widget which uniquely contains the position. More...
|
| |
| Position | getScrollOffset () const |
| | Get the current scroll offset of the ScrollArea. More...
|
| |
|
bool | mouseEnterEvent (const Position &p, bool enter) override |
| | Handle a mouse enter event.
|
| |
|
bool | mouseButtonEvent (const Position &mousePos, int button, bool down, int modifiers) override |
| | Handle a mouse button event (default implementation: propagate to children)
|
| |
|
bool | mouseMotionEvent (const Position &cursorPosition, const Position &rel, int button, int modifiers) override |
| | Handle a mouse motion event (default implementation: propagate to children)
|
| |
|
bool | mouseDragEvent (const Position &mousePos, const Position &rel, int button, int modifiers) override |
| | Handle a mouse drag event (default implementation: do nothing)
|
| |
|
bool | scrollEvent (const Position &mousePos, int32_t x, int32_t y) override |
| | Handle a mouse scroll event (default implementation: propagate to children)
|
| |
|
bool | keyboardCharacterEvent (unsigned int codepoint) override |
| | Handle text input (UTF-32 format) (default implementation: do nothing)
|
| |
class ScrollArea brief A Container that provides scrolling to a single child.
◆ findWidget()
| std::shared_ptr< Widget > rose::ScrollArea::findWidget |
( |
const Position & |
pos | ) |
|
|
override |
Find the Widget which uniquely contains the position.
This version translates positions across scrolled boundaries.
- Parameters
-
| pos | the position the Widget must contain. |
- Returns
- A reference to the Widget found, if any.
◆ getScrollOffset()
| Position rose::ScrollArea::getScrollOffset |
( |
| ) |
const |
|
inline |
Get the current scroll offset of the ScrollArea.
- Returns
- the scroll offset position.
◆ setScrollOffset()
| void rose::ScrollArea::setScrollOffset |
( |
Position |
scrollOffset | ) |
|
|
inline |
Set the scroll offset of the ScrollArea.
- Parameters
-
| scrollOffset | the offset position. |
◆ TimerCallbackStub()
| static Uint32 rose::ScrollArea::TimerCallbackStub |
( |
Uint32 |
interval, |
|
|
void * |
param |
|
) |
| |
|
inlinestatic |
The SDL_Timer callback.
- Parameters
-
| interval | The timer interval in milliseconds. |
| param | A pointer to the ScrollArea |
- Returns
- the interval.
◆ widgetLayout()
Determine the desired size of the child widgets.
If not overridden the default is to call widgetLayout() for each child and return the current value of mSize of the Container.
- Parameters
-
| renderer | The Renderer to use |
| available | The Rectangle available to layout in. |
- Returns
The documentation for this class was generated from the following files: