#include <VirtualScrollableSurface.hh>
Inheritance diagram for VirtualScrollableSurface:

Public Member Functions | |
| VirtualScrollableSurface (const std::string &name, Input &input, const Point &real_size, const Point &virtual_size) | |
| VirtualScrollableSurface (const std::string &name, Input &input, SDL_Surface *surf, const Point &virtual_size) | |
| void | setAutomaticAdjust (bool enable) |
| virtual Rect | getScreenRect () const |
| Get the absolute surface from the point (0, 0) on the screen. | |
| virtual void | setPos (const Point &to) |
| virtual void | update () |
| Method called each frame, to perfom user custom code. | |
| virtual void | blit (Surface &to) |
| virtual void | blit (Surface &to, const Rect &to_rect, const Rect &from_rect) |
| Rect VirtualScrollableSurface::getScreenRect | ( | ) | const [virtual] |
Get the absolute surface from the point (0, 0) on the screen.
This is where the surface is render and visible by the user on the screen. This should only be used for events, ie. to compare mouse position (which has absolute position) with this surface position.
Reimplemented from Surface.
| void VirtualScrollableSurface::setAutomaticAdjust | ( | bool | enable | ) |
| enable | Switch on/off. |
| void VirtualScrollableSurface::update | ( | ) | [virtual] |
Method called each frame, to perfom user custom code.
You should override it.
Since a parent is assigned to the surface (and this parent is itself attached by other means to the root screen), this method is called at each frame. It is not called if this surface or one of its parent is disabled. In this method you can do what you want with your object, like processing input, updating other programs attributes, changing surface property, ...
Reimplemented from VirtualSurface.
Reimplemented in sdlvisu::VisuField.
1.4.7