FbTk::FbWindow Class ReferenceWrapper for X window.
More...
#include <FbWindow.hh>
Inheritance diagram for FbTk::FbWindow:
List of all members.
|
Public Member Functions |
|
| FbWindow (const FbWindow &win_copy) |
|
| FbWindow (int screen_num, int x, int y, unsigned int width, unsigned int height, long eventmask, bool overrride_redirect=false, int depth=CopyFromParent, int class_type=InputOutput) |
|
| FbWindow (const FbWindow &parent, int x, int y, unsigned int width, unsigned int height, long eventmask, bool overrride_redirect=false, int depth=CopyFromParent, int class_type=InputOutput) |
|
virtual void | setBackgroundColor (const FbTk::Color &bg_color) |
|
virtual void | setBackgroundPixmap (Pixmap bg_pixmap) |
|
virtual void | setBorderColor (const FbTk::Color &border_color) |
|
virtual void | setBorderWidth (unsigned int size) |
|
void | setName (const char *name) |
| | set window name ("title")
|
|
void | setEventMask (long mask) |
|
virtual void | clear () |
| | clear window with background pixmap or color
|
|
virtual void | clearArea (int x, int y, unsigned int width, unsigned int height, bool exposures=false) |
| | exposures wheter Expose event should be generated
|
|
void | updateTransparent (int x=-1, int y=-1, unsigned int width=0, unsigned int height=0) |
|
void | setAlpha (unsigned char alpha) |
|
virtual FbWindow & | operator= (const FbWindow &win) |
|
virtual FbWindow & | operator= (Window win) |
| | assign a new X window to this
|
|
virtual void | hide () |
|
virtual void | show () |
|
virtual void | showSubwindows () |
|
virtual void | move (int x, int y) |
|
virtual void | resize (unsigned int width, unsigned int height) |
|
virtual void | moveResize (int x, int y, unsigned int width, unsigned int height) |
|
virtual void | lower () |
|
virtual void | raise () |
|
void | setInputFocus (int revert_to, int time) |
|
void | setCursor (Cursor cur) |
| | defines a cursor for this window
|
|
void | unsetCursor () |
| | uses the parents cursor instead
|
|
void | reparent (const FbWindow &parent, int x, int y) |
|
bool | property (Atom property, long long_offset, long long_length, bool do_delete, Atom req_type, Atom *actual_type_return, int *actual_format_return, unsigned long *nitems_return, unsigned long *bytes_after_return, unsigned char **prop_return) const |
|
void | changeProperty (Atom property, Atom type, int format, int mode, unsigned char *data, int nelements) |
|
const FbWindow * | parent () const |
| | parent FbWindow
|
|
Window | window () const |
| | real X window
|
|
Drawable | drawable () const |
| | drawable (the X window)
|
|
int | x () const |
|
int | y () const |
|
unsigned int | width () const |
|
unsigned int | height () const |
|
unsigned int | borderWidth () const |
|
int | depth () const |
|
int | screenNumber () const |
|
long | eventMask () const |
|
bool | operator== (Window win) const |
| | compare X window
|
|
bool | operator!= (Window win) const |
|
bool | operator== (const FbWindow &win) const |
| | compare two windows
|
|
bool | operator!= (const FbWindow &win) const |
Protected Member Functions |
|
| FbWindow (Window client) |
| | creates a window with x window client (m_window = client)
|
|
void | setBufferPixmap (Pixmap pm) |
|
void | updateGeometry () |
| | updates x,y, width, height and screen num from X window
|
Detailed Description
Wrapper for X window.
Example: FbWindow window(0, 10, 10, 100, 100, ExposeMask | ButtonPressMask);
this will create a window on screen 0, position 10 10, size 100 100
and with eventmask Expose and ButtonPress.
You need to register it to some eventhandler so you can catch events:
EventManager::instance()->add(your_eventhandler, window);
- See also:
- EventHandler
EventManager
Definition at line 49 of file FbWindow.hh. The documentation for this class was generated from the following files:
Fluxbox CVS-Jan-2003
|
|
|