nux-0.9.46

nux::FloatingWindow Class Reference

#include <Nux/FloatingWindow.h>

Inheritance diagram for nux::FloatingWindow:
nux::BaseWindow nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Dialog nux::PopUpWindow nux::ColorPickerDialog

Public Member Functions

 FloatingWindow (const TCHAR *WindowName=TEXT(""), NUX_FILE_LINE_PROTO)
 ~FloatingWindow ()
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 SetVisibleSizeGrip (bool b)
bool IsVisibleSizeGrip ()
void EnableTitleBar (bool b)
bool HasTitleBar () const
void OnSizeGrigMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void OnSizeGrigMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
void RecvCloseButtonClick (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvTitleBarMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvTitleBarMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
void SetWindowTitle (const char *title)
NString GetWindowTitle ()
virtual bool CanBreakLayout ()
 Return true if this object can break the layout.

Protected Member Functions

virtual void PreLayoutManagement ()
virtual long PostLayoutManagement (long LayoutResult)
virtual void PositionChildLayout (float offsetX, float offsetY)
virtual void LayoutWindowElements ()
 Layout the window elements.

Protected Attributes

int m_SizeGripDragPositionX
int m_SizeGripDragPositionY

Friends

class PopUpWindow
class ComboBox_Logic_WindowView
class WindowCompositor

Constructor & Destructor Documentation

nux::FloatingWindow::FloatingWindow ( const TCHAR WindowName = TEXT(""),
NUX_FILE_LINE_PROTO   
)
nux::FloatingWindow::~FloatingWindow ( )

Member Function Documentation

virtual bool nux::FloatingWindow::CanBreakLayout ( ) [inline, virtual]

Return true if this object can break the layout.

Reimplemented from nux::View.

References nux::BaseWindow::IsSizeMatchContent().

virtual void nux::FloatingWindow::Draw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::BaseWindow.

virtual void nux::FloatingWindow::DrawContent ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::BaseWindow.

void nux::FloatingWindow::EnableTitleBar ( bool  b)
NString nux::FloatingWindow::GetWindowTitle ( )
bool nux::FloatingWindow::HasTitleBar ( ) const
bool nux::FloatingWindow::IsVisibleSizeGrip ( ) [inline]
virtual void nux::FloatingWindow::LayoutWindowElements ( ) [protected, virtual]

Layout the window elements.

Layout elements such as button on the title bar, and the resize widget according to the current geometry of the window. Also initiate the computation of the child layout if there is one.

Reimplemented from nux::BaseWindow.

void nux::FloatingWindow::OnSizeGrigMouseDown ( int  x,
int  y,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::FloatingWindow::OnSizeGrigMouseDrag ( int  x,
int  y,
int  dx,
int  dy,
unsigned long  button_flags,
unsigned long  key_flags 
)
virtual void nux::FloatingWindow::PositionChildLayout ( float  offsetX,
float  offsetY 
) [protected, virtual]

Reimplemented from nux::BaseWindow.

virtual void nux::FloatingWindow::PostDraw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::BaseWindow.

virtual long nux::FloatingWindow::PostLayoutManagement ( long  LayoutResult) [protected, virtual]

Reimplemented from nux::BaseWindow.

virtual void nux::FloatingWindow::PreLayoutManagement ( ) [protected, virtual]

Reimplemented from nux::BaseWindow.

virtual long nux::FloatingWindow::ProcessEvent ( IEvent ievent,
long  TraverseInfo,
long  ProcessEventInfo 
) [virtual]

Reimplemented from nux::BaseWindow.

void nux::FloatingWindow::RecvCloseButtonClick ( int  x,
int  y,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::FloatingWindow::RecvTitleBarMouseDown ( int  x,
int  y,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::FloatingWindow::RecvTitleBarMouseDrag ( int  x,
int  y,
int  dx,
int  dy,
unsigned long  button_flags,
unsigned long  key_flags 
)
void nux::FloatingWindow::SetVisibleSizeGrip ( bool  b) [inline]
void nux::FloatingWindow::SetWindowTitle ( const char *  title)

Friends And Related Function Documentation

friend class ComboBox_Logic_WindowView [friend]

Reimplemented from nux::BaseWindow.

friend class PopUpWindow [friend]

Reimplemented from nux::BaseWindow.

friend class WindowCompositor [friend]

Reimplemented from nux::BaseWindow.


Field Documentation


The documentation for this class was generated from the following file: