List of all members.
Classes |
struct | WindowData |
Public Member Functions |
| GraphicsWindowX11 (osg::GraphicsContext::Traits *traits) |
virtual bool | isSameKindAs (const Object *object) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual bool | valid () const |
virtual bool | realizeImplementation () |
virtual bool | isRealizedImplementation () const |
virtual void | closeImplementation () |
virtual bool | makeCurrentImplementation () |
virtual bool | releaseContextImplementation () |
virtual void | swapBuffersImplementation () |
virtual void | checkEvents () |
virtual bool | setWindowDecorationImplementation (bool flag) |
virtual void | grabFocus () |
virtual void | grabFocusIfPointerInWindow () |
virtual void | raiseWindow () |
virtual void | requestWarpPointer (float x, float y) |
virtual bool | setWindowRectangleImplementation (int x, int y, int width, int height) |
virtual void | setWindowName (const std::string &name) |
virtual void | setCursor (MouseCursor cursor) |
Display * | getDisplay () const |
Display * | getEventDisplay () const |
Display * | getDisplayToUse () const |
Window & | getParent () |
Window & | getWindow () |
GLXContext & | getGLXContext () |
Cursor | getCurrentCursor () |
Protected Member Functions |
| ~GraphicsWindowX11 () |
Cursor | getOrCreateCursor (MouseCursor mouseShape) |
bool | createVisualInfo () |
bool | createWindow () |
bool | setWindow (Window window) |
void | init () |
bool | checkAndSendEventFullScreenIfNeeded (Display *display, int x, int y, int width, int height, bool windowDecoration) |
void | transformMouseXY (float &x, float &y) |
void | adaptKey (XKeyEvent &keyevent, int &keySymbol) |
void | forceKey (int key, double time, bool state) |
void | rescanModifierMapping () |
void | getModifierMap (char *keymap) const |
int | getModifierMask () const |
void | syncLocks () |
void | flushKeyEvents () |
Protected Attributes |
bool | _valid |
Display * | _display |
Display * | _eventDisplay |
Window | _parent |
Window | _window |
XVisualInfo * | _visualInfo |
GLXContext | _glxContext |
Cursor | _currentCursor |
Atom | _deleteWindow |
bool | _initialized |
bool | _realized |
bool | _ownsWindow |
double | _timeOfLastCheckEvents |
int | _lastEventType |
int | _modifierState |
int | _numLockMask |
char | _keyMap [32] |
std::map< MouseCursor, Cursor > | _mouseCursorMap |
Constructor & Destructor Documentation
osgViewer::GraphicsWindowX11::~GraphicsWindowX11 |
( |
|
) |
[protected] |
Member Function Documentation
void osgViewer::GraphicsWindowX11::adaptKey |
( |
XKeyEvent & |
keyevent, |
|
|
int & |
keySymbol | |
|
) |
| | [protected] |
bool osgViewer::GraphicsWindowX11::checkAndSendEventFullScreenIfNeeded |
( |
Display * |
display, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
windowDecoration | |
|
) |
| | [protected] |
virtual void osgViewer::GraphicsWindowX11::checkEvents |
( |
|
) |
[virtual] |
virtual const char* osgViewer::GraphicsWindowX11::className |
( |
|
) |
const [inline, virtual] |
virtual void osgViewer::GraphicsWindowX11::closeImplementation |
( |
|
) |
[virtual] |
bool osgViewer::GraphicsWindowX11::createVisualInfo |
( |
|
) |
[protected] |
bool osgViewer::GraphicsWindowX11::createWindow |
( |
|
) |
[protected] |
void osgViewer::GraphicsWindowX11::flushKeyEvents |
( |
|
) |
[protected] |
void osgViewer::GraphicsWindowX11::forceKey |
( |
int |
key, |
|
|
double |
time, |
|
|
bool |
state | |
|
) |
| | [protected] |
Cursor osgViewer::GraphicsWindowX11::getCurrentCursor |
( |
|
) |
[inline] |
Display* osgViewer::GraphicsWindowX11::getDisplay |
( |
|
) |
const [inline] |
Display* osgViewer::GraphicsWindowX11::getDisplayToUse |
( |
|
) |
const |
Display* osgViewer::GraphicsWindowX11::getEventDisplay |
( |
|
) |
const [inline] |
GLXContext& osgViewer::GraphicsWindowX11::getGLXContext |
( |
|
) |
[inline] |
void osgViewer::GraphicsWindowX11::getModifierMap |
( |
char * |
keymap |
) |
const [protected] |
int osgViewer::GraphicsWindowX11::getModifierMask |
( |
|
) |
const [protected] |
Cursor osgViewer::GraphicsWindowX11::getOrCreateCursor |
( |
MouseCursor |
mouseShape |
) |
[protected] |
Window& osgViewer::GraphicsWindowX11::getParent |
( |
|
) |
[inline] |
Window& osgViewer::GraphicsWindowX11::getWindow |
( |
|
) |
[inline] |
virtual void osgViewer::GraphicsWindowX11::grabFocus |
( |
|
) |
[virtual] |
virtual void osgViewer::GraphicsWindowX11::grabFocusIfPointerInWindow |
( |
|
) |
[virtual] |
void osgViewer::GraphicsWindowX11::init |
( |
|
) |
[protected] |
virtual bool osgViewer::GraphicsWindowX11::isRealizedImplementation |
( |
|
) |
const [inline, virtual] |
virtual bool osgViewer::GraphicsWindowX11::isSameKindAs |
( |
const Object * |
object |
) |
const [inline, virtual] |
virtual const char* osgViewer::GraphicsWindowX11::libraryName |
( |
|
) |
const [inline, virtual] |
virtual bool osgViewer::GraphicsWindowX11::makeCurrentImplementation |
( |
|
) |
[virtual] |
virtual void osgViewer::GraphicsWindowX11::raiseWindow |
( |
|
) |
[virtual] |
virtual bool osgViewer::GraphicsWindowX11::realizeImplementation |
( |
|
) |
[virtual] |
virtual bool osgViewer::GraphicsWindowX11::releaseContextImplementation |
( |
|
) |
[virtual] |
virtual void osgViewer::GraphicsWindowX11::requestWarpPointer |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | [virtual] |
requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking a aircrafts joystick.
Reimplemented from osgViewer::GraphicsWindow.
void osgViewer::GraphicsWindowX11::rescanModifierMapping |
( |
|
) |
[protected] |
virtual void osgViewer::GraphicsWindowX11::setCursor |
( |
MouseCursor |
cursor |
) |
[virtual] |
bool osgViewer::GraphicsWindowX11::setWindow |
( |
Window |
window |
) |
[protected] |
virtual bool osgViewer::GraphicsWindowX11::setWindowDecorationImplementation |
( |
bool |
flag |
) |
[virtual] |
virtual void osgViewer::GraphicsWindowX11::setWindowName |
( |
const std::string & |
name |
) |
[virtual] |
virtual bool osgViewer::GraphicsWindowX11::setWindowRectangleImplementation |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | [virtual] |
virtual void osgViewer::GraphicsWindowX11::swapBuffersImplementation |
( |
|
) |
[virtual] |
void osgViewer::GraphicsWindowX11::syncLocks |
( |
|
) |
[protected] |
void osgViewer::GraphicsWindowX11::transformMouseXY |
( |
float & |
x, |
|
|
float & |
y | |
|
) |
| | [protected] |
virtual bool osgViewer::GraphicsWindowX11::valid |
( |
|
) |
const [inline, virtual] |
Create a new mouse cursor from the usual bitmap data. Return whether a valid and usable GraphicsContext has been created.
Reimplemented from osgViewer::GraphicsWindow.
Member Data Documentation
The documentation for this class was generated from the following file: