|
libui-ng
A portable GUI library for C
|
Custom drawing control that receives drawing and input events through a uiAreaHandler. More...
#include <ui.h>
Public Member Functions | |
| void | uiAreaSetSize (uiArea *a, int width, int height) |
| Changes the size of a scrolling area's drawing space. More... | |
| void | uiAreaQueueRedrawAll (uiArea *a) |
| Queues the entire area for redraw. More... | |
| void | uiAreaScrollTo (uiArea *a, double x, double y, double width, double height) |
| Scrolls the minimum distance needed to make a rectangle visible. More... | |
Custom drawing control that receives drawing and input events through a uiAreaHandler.
| void uiAreaQueueRedrawAll | ( | uiArea * | a | ) |
Queues the entire area for redraw.
| a | uiArea instance. |
| void uiAreaScrollTo | ( | uiArea * | a, |
| double | x, | ||
| double | y, | ||
| double | width, | ||
| double | height | ||
| ) |
Scrolls the minimum distance needed to make a rectangle visible.
Negative width and height values extend the rectangle in the opposite direction. For example, (110, 100, -100, -80) describes the same rectangle as (10, 20, 100, 80).
| a | Scrolling uiArea instance created with uiNewScrollingArea(). |
| x | Rectangle origin in drawing space coordinates. |
| y | Rectangle origin in drawing space coordinates. |
| width | Rectangle width in drawing space units. |
| height | Rectangle height in drawing space units. |
| void uiAreaSetSize | ( | uiArea * | a, |
| int | width, | ||
| int | height | ||
| ) |
Changes the size of a scrolling area's drawing space.
| a | Scrolling uiArea instance created with uiNewScrollingArea(). |
| width | Width in drawing space units. |
| height | Height in drawing space units. |