SdlBackend

Undocumented in source.

Constructors

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

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.
gl
auto gl()
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.
onKeyDown
void onKeyDown(const(SDL_Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyUp
void onKeyUp(const(SDL_Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseDown
void onMouseDown(const(SDL_Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMotion
void onMouseMotion(const(SDL_Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseUp
void onMouseUp(const(SDL_Event) event)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseWheel
void onMouseWheel(const(SDL_Event) event)
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

_gl
OpenGL _gl;
Undocumented in source.
_log
Logger _log;
Undocumented in source.
_sdl2
SDL2 _sdl2;
Undocumented in source.
action
MouseAction action;
Undocumented in source.
btn
MouseButton btn;
Undocumented in source.
ctx
NanoContext ctx;
Undocumented in source.
height
int height;
Undocumented in source.
mCursorSet
SDL_Cursor*[6] mCursorSet;
Undocumented in source.
modifiers
int modifiers;
Undocumented in source.
width
int width;
Undocumented in source.
window
SDL2Window window;
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

pixelRatio
float pixelRatio()

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

needToDraw
bool needToDraw()
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.
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.

Meta