31
class TextureArea : public View
29
class TextureArea: public View
33
NUX_DECLARE_OBJECT_TYPE (TextureArea, View);
31
NUX_DECLARE_OBJECT_TYPE(TextureArea, View);
35
TextureArea (NUX_FILE_LINE_PROTO);
33
TextureArea(NUX_FILE_LINE_PROTO);
36
34
virtual ~TextureArea();
40
38
It \a layer was allocated on the heap, it must be deleted later.
41
39
@param layer A pointer to a BaseTexture class.
43
void SetTexture (BaseTexture *texture);
41
void SetTexture(BaseTexture *texture);
46
44
Set the paint layer of this area. The \a layer argument to this function is cloned by this object.
47
45
It \a layer was allocated on the heap, it must be deleted later.
48
46
@param layer A pointer to a concrete class that inherit from AbstractPaintLayer.
50
void SetPaintLayer (AbstractPaintLayer *layer);
48
void SetPaintLayer(AbstractPaintLayer *layer);
52
50
//! Convenience function to set a 2D rotation when rendering the area.
54
52
The rotation is only used for rendering. It should not be used for something else.
56
void Set2DRotation (float angle);
54
void Set2DRotation(float angle);
58
Matrix4 Get2DRotation () const;
56
Matrix4 Get2DRotation() const;
60
58
sigc::signal<void, int, int> sigMouseDown; //!< Signal emmitted when a mouse button is pressed over this area.
61
59
sigc::signal<void, int, int> sigMouseDrag; //!< Signal emmitted when the mouse is dragged over this area.
64
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo);
65
62
virtual void Draw (GraphicsEngine &GfxContext, bool force_draw);
66
63
virtual void DrawContent (GraphicsEngine &GfxContext, bool force_draw);
67
64
virtual void PostDraw (GraphicsEngine &GfxContext, bool force_draw);
68
66
void RecvMouseDown (int x, int y, long button_flags, long key_flags);
69
67
void RecvMouseUp (int x, int y, long button_flags, long key_flags);
70
68
void RecvMouseEnter (int x, int y, long button_flags, long key_flags);