#include <Nux/FloatingWindow.h>
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] |
virtual void nux::FloatingWindow::Draw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
virtual void nux::FloatingWindow::DrawContent |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
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] |
virtual void nux::FloatingWindow::PostDraw |
( |
GraphicsEngine & |
GfxContext, |
|
|
bool |
force_draw |
|
) |
| [virtual] |
virtual long nux::FloatingWindow::PostLayoutManagement |
( |
long |
LayoutResult | ) |
[protected, virtual] |
virtual void nux::FloatingWindow::PreLayoutManagement |
( |
| ) |
[protected, virtual] |
virtual long nux::FloatingWindow::ProcessEvent |
( |
IEvent & |
ievent, |
|
|
long |
TraverseInfo, |
|
|
long |
ProcessEventInfo |
|
) |
| [virtual] |
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] |
Field Documentation
The documentation for this class was generated from the following file: