nux-1.16.0
nux::ClientArea Class Reference
Inheritance diagram for nux::ClientArea:
nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Introspectable

List of all members.

Public Member Functions

 ClientArea (NUX_FILE_LINE_PROTO)
virtual void BeginDraw (GraphicsEngine &GfxContext, bool force_draw)
virtual void Draw (GraphicsEngine &GfxContext, bool force_draw)
virtual void DrawContent (GraphicsEngine &GfxContext, bool force_draw)
virtual void PostDraw (GraphicsEngine &GfxContext, bool force_draw)
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
virtual void QueueDraw ()
 Causes a redraw. The widget parameter _need_redraw is set to true. The widget Draw(), DrawContent() and PostDraw() are called.
void EnableClientDraw (bool b)
bool IsClientDrawEnabled () const
virtual void ClientDraw (GraphicsEngine &GfxContext, DrawAreaContext &ctx, bool force_draw)
virtual void RecvMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
virtual void RecvMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags)
virtual void RecvMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
virtual void RecvMouseMove (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
virtual void RecvKeyEvent (unsigned long, unsigned long, unsigned long, const TCHAR *, unsigned short)
void SetClientViewport (GraphicsEngine &GfxContext)
void Setup2DMode (GraphicsEngine &GfxContext)
ObjectPtr
< IOpenGLFrameBufferObject > & 
GetWindowFrameBufferObject ()

Public Attributes

sigc::signal< void,
DrawAreaContext, bool > 
sigClientDraw
ObjectPtr
< IOpenGLFrameBufferObject
m_FrameBufferObject

Protected Member Functions

virtual bool AcceptKeyNavFocus ()

Detailed Description

Definition at line 44 of file ClientArea.h.


Member Function Documentation

void nux::ClientArea::QueueDraw ( ) [virtual]

Causes a redraw. The widget parameter _need_redraw is set to true. The widget Draw(), DrawContent() and PostDraw() are called.

Emits the signal OnQueueDraw.

Reimplemented from nux::View.

Definition at line 281 of file ClientArea.cpp.

  {
    //GetWindowCompositor()..AddToDrawList(this);
    WindowThread* application = GetWindowThread ();
    if(application)
    {
      application->AddToDrawList(this);
      application->RequestRedraw();
      //GetWindowCompositor().AddToDrawList(this);
    }
    _need_redraw = true;
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends