X11Window

Undocumented in source.
static if(BACKEND_X11)
class X11Window : DWindow {}

Constructors

this
this(X11Platform platform, dstring caption, DWindow parent, uint flags, uint width, uint height)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

_NET_WM_STATE_REMOVE
anonymousenum _NET_WM_STATE_REMOVE
Undocumented in source.

Functions

changeWindowState
void changeWindowState(int action, Atom firstProperty, Atom secondProperty)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()

close window

convertKeyCode
uint convertKeyCode(uint keyCode)
Undocumented in source. Be warned that the author may not have intended to support it.
convertKeyFlags
uint convertKeyFlags(uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
convertMouseButton
MouseButton convertMouseButton(uint button)
Undocumented in source. Be warned that the author may not have intended to support it.
convertMouseFlags
ushort convertMouseFlags(uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
drawUsingBitmap
void drawUsingBitmap()
Undocumented in source. Be warned that the author may not have intended to support it.
drawUsingOpengl
void drawUsingOpengl()
Undocumented in source. Be warned that the author may not have intended to support it.
handleTimer
bool handleTimer()
Undocumented in source. Be warned that the author may not have intended to support it.
handleWindowActivityChange
void handleWindowActivityChange(bool isWindowActive)
Undocumented in source. Be warned that the author may not have intended to support it.
handleWindowStateChange
void handleWindowStateChange(WindowState newState, Rect newWindowRect)
Undocumented in source. Be warned that the author may not have intended to support it.
invalidate
void invalidate()

request window redraw

postEvent
void postEvent(CustomEvent event)

post event to handle in UI thread (this method can be used from background thread)

processKeyEvent
bool processKeyEvent(KeyAction action, uint keyCode, uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
processMouseEvent
void processMouseEvent(MouseAction action, uint button, uint state, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
processTextInput
bool processTextInput(dstring ds, uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
redraw
void redraw()
Undocumented in source. Be warned that the author may not have intended to support it.
scheduleAnimation
void scheduleAnimation()

after drawing, call to schedule redraw if animation is active

scheduleSystemTimer
void scheduleSystemTimer(long intervalMillis)

schedule timer for interval in milliseconds - call window.onTimer when finished

setCursorType
void setCursorType(uint cursorType)

sets cursor type for window

setWindowState
bool setWindowState(WindowState newState, bool activate, Rect newWindowRect)
Undocumented in source. Be warned that the author may not have intended to support it.
show
void show()

show window

Properties

isActive
bool isActive [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
parentWindow
DWindow parentWindow [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowCaption
dstring windowCaption [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowCaption
dstring windowCaption [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
windowIcon
DrawBufRef windowIcon [@property setter]

sets window icon

Variables

_cachedHeight
int _cachedHeight;
Undocumented in source.
_cachedWidth
int _cachedWidth;
Undocumented in source.
_caption
dstring _caption;
Undocumented in source.
_children
X11Window[] _children;
Undocumented in source.
_drawbuf
ColorDrawBuf _drawbuf;
Undocumented in source.
_gc
GC _gc;
Undocumented in source.
_glc
GLXContext _glc;
Undocumented in source.
_keyFlags
uint _keyFlags;
Undocumented in source.
_lastCursorType
uint _lastCursorType;
Undocumented in source.
_lbutton
ButtonDetails _lbutton;
Undocumented in source.
_mbutton
ButtonDetails _mbutton;
Undocumented in source.
_needRedraw
bool _needRedraw;
Undocumented in source.
_parent
X11Window _parent;
Undocumented in source.
_platform
X11Platform _platform;
Undocumented in source.
_rbutton
ButtonDetails _rbutton;
Undocumented in source.
_win
XWindow _win;
Undocumented in source.
lastFlags
ushort lastFlags;
Undocumented in source.
lastx
short lastx;
Undocumented in source.
lasty
short lasty;
Undocumented in source.
timer
TimerThread timer;
Undocumented in source.

Meta