#include <rootwindow.h>
Inheritance diagram for wftk::RootWindow:
Public Member Functions | |
RootWindow (int resX, int resY, int bpp=0, bool fullscreen=false, bool resizeable=true, const Surface &icon=Surface(), Uint32 extra_flags=0, unsigned padding=10) | |
Constructor. | |
void | sync () |
immediate display content update | |
void | setTitle (const std::string &title, const std::string &icon_name="") |
Set title, as displayed by window manager. | |
ScreenSurface * | screen () |
Return a surface representing the entire root window. | |
bool | fullscreen () const |
return fullscreen state | |
bool | isIconified () |
true if application is minimized / iconified | |
void | resize (Uint16 w, Uint16 h) |
resize the screen | |
void | resize () |
resize the screen to fit the widgets | |
void | updateMouse () |
to be called by Mouse | |
void | convertSurface () |
for openGL only | |
void | addSurface (Surface *) |
Static Public Member Functions | |
RootWindow * | instance () |
return a pointer to the singleton RootWindow | |
int | modeAvailable (int resX, int resY, int bpp, bool fullscreen) |
Check if this video mode is possible. | |
bool | handleEvent (const SDL_Event *) |
This is static for when we have multiple root windows. | |
Public Attributes | |
SigC::Signal0< void > | iconified |
application minimized / iconified | |
SigC::Signal0< void > | restored |
application restored (uniconified) | |
SigC::Signal2< void, int, int > | resized |
application window has been resized | |
Protected Member Functions | |
virtual void | drawAfter (Surface &target, const Point &offset, const Region &r) |
The area drawn to must lie within the given region. | |
virtual void | packingUpdateParent () |
In RootWindow, instead of telling its (nonexistent) parent we need to update the packing information, we actually do the repacking. |
|
The area drawn to must lie within the given region. This is protected so derived classes can call their parents' drawAfter() in their own implementations. Reimplemented from wftk::Widget.
|
|
Check if this video mode is possible. If SDL will emulate the requested pixeldepth, true_bpp (if != NULL) will contain the bitdepth of the actually used video mode. This is static so you can call it before the root window is created. Returns the value for bpp that will actually be used, or 0 on failure. |
|
In RootWindow, instead of telling its (nonexistent) parent we need to update the packing information, we actually do the repacking. We don't resize the window, letting the user control that. Reimplemented from wftk::ScreenArea.
|
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.