nux-0.9.46
|
#include <Nux/TextureArea.h>
Public Member Functions | |
TextureArea (NUX_FILE_LINE_PROTO) | |
virtual | ~TextureArea () |
void | SetTexture (BaseTexture *texture) |
void | SetPaintLayer (AbstractPaintLayer *layer) |
void | Set2DRotation (float angle) |
Convenience function to set a 2D rotation when rendering the area. | |
Matrix4 | Get2DRotation () const |
Data Fields | |
sigc::signal< void, int, int > | sigMouseDown |
Signal emmitted when a mouse button is pressed over this area. | |
sigc::signal< void, int, int > | sigMouseDrag |
Signal emmitted when the mouse is dragged over this area. | |
Protected Member Functions | |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
void | RecvMouseDown (int x, int y, long button_flags, long key_flags) |
void | RecvMouseUp (int x, int y, long button_flags, long key_flags) |
void | RecvMouseEnter (int x, int y, long button_flags, long key_flags) |
void | RecvMouseLeave (int x, int y, long button_flags, long key_flags) |
void | RecvMouseClick (int x, int y, long button_flags, long key_flags) |
void | RecvMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
nux::TextureArea::TextureArea | ( | NUX_FILE_LINE_PROTO | ) |
virtual nux::TextureArea::~TextureArea | ( | ) | [virtual] |
virtual void nux::TextureArea::Draw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [protected, virtual] |
Implements nux::View.
virtual void nux::TextureArea::DrawContent | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [protected, virtual] |
Reimplemented from nux::View.
Matrix4 nux::TextureArea::Get2DRotation | ( | ) | const |
virtual void nux::TextureArea::PostDraw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [protected, virtual] |
Reimplemented from nux::View.
virtual long nux::TextureArea::ProcessEvent | ( | IEvent & | ievent, |
long | TraverseInfo, | ||
long | ProcessEventInfo | ||
) | [protected, virtual] |
Implements nux::View.
void nux::TextureArea::RecvMouseClick | ( | int | x, |
int | y, | ||
long | button_flags, | ||
long | key_flags | ||
) | [protected] |
void nux::TextureArea::RecvMouseDown | ( | int | x, |
int | y, | ||
long | button_flags, | ||
long | key_flags | ||
) | [protected] |
void nux::TextureArea::RecvMouseDrag | ( | int | x, |
int | y, | ||
int | dx, | ||
int | dy, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) | [protected] |
void nux::TextureArea::RecvMouseEnter | ( | int | x, |
int | y, | ||
long | button_flags, | ||
long | key_flags | ||
) | [protected] |
void nux::TextureArea::RecvMouseLeave | ( | int | x, |
int | y, | ||
long | button_flags, | ||
long | key_flags | ||
) | [protected] |
void nux::TextureArea::RecvMouseUp | ( | int | x, |
int | y, | ||
long | button_flags, | ||
long | key_flags | ||
) | [protected] |
void nux::TextureArea::Set2DRotation | ( | float | angle | ) |
Convenience function to set a 2D rotation when rendering the area.
The rotation is only used for rendering. It should not be used for something else.
void nux::TextureArea::SetPaintLayer | ( | AbstractPaintLayer * | layer | ) |
Set the paint layer of this area. The layer argument to this function is cloned by this object. It layer was allocated on the heap, it must be deleted later.
layer | A pointer to a concrete class that inherit from AbstractPaintLayer. |
void nux::TextureArea::SetTexture | ( | BaseTexture * | texture | ) |
Render this area with a Texture. The reference count of the device texture which is cached by texture is increased by 1. It layer was allocated on the heap, it must be deleted later.
layer | A pointer to a BaseTexture class. |
sigc::signal<void, int, int> nux::TextureArea::sigMouseDown |
Signal emmitted when a mouse button is pressed over this area.
sigc::signal<void, int, int> nux::TextureArea::sigMouseDrag |
Signal emmitted when the mouse is dragged over this area.