SdlBackend

Undocumented in source.

Constructors

this
this(int w, int h, string title)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
cursor
void cursor(Cursor value)
Undocumented in source. Be warned that the author may not have intended to support it.
cursor
Cursor cursor()
Undocumented in source. Be warned that the author may not have intended to support it.
invalidate
auto invalidate()
Undocumented in source. Be warned that the author may not have intended to support it.
logger
Logger logger()
Undocumented in source. Be warned that the author may not have intended to support it.
onBeforeLoopStart
void onBeforeLoopStart(void delegate() dg)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose(bool delegate() dg)
Undocumented in source. Be warned that the author may not have intended to support it.
onVisibleForTheFirstTime
void onVisibleForTheFirstTime()
Undocumented in source.
run
void run()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_sdlApp
SdlApp _sdlApp;
Undocumented in source.
action
MouseAction action;
Undocumented in source.
btn
MouseButton btn;
Undocumented in source.
ctx
NanoContext ctx;
Undocumented in source.
mCursorSet
SDL_Cursor*[6] mCursorSet;
Undocumented in source.
modifiers
int modifiers;
Undocumented in source.

Inherited Members

From Screen

currTime
auto currTime()
Undocumented in source. Be warned that the author may not have intended to support it.
currTime
void currTime(long value)
Undocumented in source. Be warned that the author may not have intended to support it.
lastInteraction
auto lastInteraction()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(NanoContext ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonCallbackEvent
bool mouseButtonCallbackEvent(MouseButton button, MouseAction action, int modifiers, long timestamp)
Undocumented in source. Be warned that the author may not have intended to support it.
mousePos
Vector2i mousePos()

Return the last observed mouse position value

updateFocus
void updateFocus(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
cursorPosCallbackEvent
bool cursorPosCallbackEvent(double x, double y, long last_interaction)
Undocumented in source. Be warned that the author may not have intended to support it.
moveWindowToFront
void moveWindowToFront(Window window)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollCallbackEvent
bool scrollCallbackEvent(double x, double y, long timestamp)
Undocumented in source. Be warned that the author may not have intended to support it.
keyboardEvent
bool keyboardEvent(int key, int scancode, KeyAction action, int modifiers)
Undocumented in source. Be warned that the author may not have intended to support it.
keyboardCharacterEvent
bool keyboardCharacterEvent(dchar codepoint)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeEvent
bool resizeEvent(Vector2i size)

Window resize event handler

logger
Logger logger()
Undocumented in source. Be warned that the author may not have intended to support it.
pixelRatio
float pixelRatio()

Return the ratio between pixel and device coordinates (e.g. >= 2 on Mac Retina displays)

clearEnabled
bool clearEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
clearEnabled
void clearEnabled(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
needToPerfomLayout
bool needToPerfomLayout()
Undocumented in source. Be warned that the author may not have intended to support it.
needToPerfomLayout
void needToPerfomLayout(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
blinkingCursorIsVisibleNow
bool blinkingCursorIsVisibleNow()
Undocumented in source. Be warned that the author may not have intended to support it.
resetBlinkingCursor
void resetBlinkingCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
addGLCanvas
void addGLCanvas(GLCanvas dw)
Undocumented in source. Be warned that the author may not have intended to support it.
removeGLCanvas
void removeGLCanvas(GLCanvas dw)
Undocumented in source. Be warned that the author may not have intended to support it.
mBlinkingCursorVisible
bool mBlinkingCursorVisible;
Undocumented in source.
mBlinkingCursorTimestamp
long mBlinkingCursorTimestamp;
Undocumented in source.
mMousePos
Vector2i mMousePos;
Undocumented in source.
mModifiers
int mModifiers;
Undocumented in source.
mMouseState
MouseButton mMouseState;
Undocumented in source.
mLastInteraction
long mLastInteraction;
Undocumented in source.
mFocusPath
Array!Widget mFocusPath;
Undocumented in source.
mDragActive
bool mDragActive;
Undocumented in source.
mDragWidget
Widget mDragWidget;
Undocumented in source.
mNeedToDraw
bool mNeedToDraw;
mNeedToPerfomLayout
bool mNeedToPerfomLayout;
Undocumented in source.
mTimestamp
long mTimestamp;
Undocumented in source.
mTooltipShown
bool mTooltipShown;
Undocumented in source.
mCursor
Cursor mCursor;
Undocumented in source.
mPixelRatio
float mPixelRatio;
Undocumented in source.
mResizeCallback
void delegate(Vector2i) mResizeCallback;
Undocumented in source.
mGLCanvases
Array!GLCanvas mGLCanvases;
Undocumented in source.
mClearEnabled
bool mClearEnabled;
Undocumented in source.

Meta