|
NXWidgets
1.19
|
#include <iscrollable.hxx>

Public Member Functions | |
| virtual | ~IScrollable (void) |
| virtual const int32_t | getCanvasX (void) const =0 |
| virtual const int32_t | getCanvasY (void) const =0 |
| virtual const int32_t | getCanvasWidth (void) const =0 |
| virtual const int32_t | getCanvasHeight (void) const =0 |
| virtual void | scroll (int32_t dx, int32_t dy)=0 |
| virtual void | jump (int32_t x, int32_t y)=0 |
| virtual bool | allowsVerticalScroll (void) const =0 |
| virtual bool | allowsHorizontalScroll (void) const =0 |
| virtual void | setAllowsVerticalScroll (bool allow)=0 |
| virtual void | setAllowsHorizontalScroll (bool allow)=0 |
| virtual void | setCanvasWidth (const int32_t width)=0 |
| virtual void | setCanvasHeight (const int32_t height)=0 |
Abstract class defining basic functionality of scrolling widgets. Scrolling regions are modelled as a virtual "canvas", or rectangular region, with height/width dimensions and x/y coordinates.
Definition at line 102 of file iscrollable.hxx.
|
inlinevirtual |
A virtual destructor is required in order to override the IScrollable destructor. We do this because if we delete IScrollable, we want the destructor of the class that inherits from IScrollable to run, not this one.
Definition at line 112 of file iscrollable.hxx.
|
pure virtual |
Returns true if horizontal scrolling is allowed.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Returns true if vertical scrolling is allowed.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Gets the height of the virtual canvas.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Gets the width of the virtual canvas.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Gets the x coordinate of the virtual canvas.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Gets the y coordinate of the virtual canvas.
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Repositions the virtual canvas to the specified coordinates.
| x | New x coordinate of the virtual canvas. |
| y | New y coordinate of the virtual canvas. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Scrolls the virtual canvas by the specified amounts.
| dx | Distance to scroll horizontally. |
| dy | Distance to scroll vertically. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Set whether or not horizontal scrolling is allowed.
| allow | True to allow horizontal scrolling; false to deny it. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Set whether or not horizontal scrolling is allowed.
| allow | True to allow horizontal scrolling; false to deny it. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Sets the height of the virtual canvas.
| height | The height of the virtual canvas. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
|
pure virtual |
Sets the width of the virtual canvas.
| width | The width of the virtual canvas. |
Implemented in NXWidgets::CScrollingTextBox, NXWidgets::CScrollingPanel, and NXWidgets::CScrollbarPanel.
1.8.13