Commit Graph

13 Commits

Author SHA1 Message Date
869f87dd4f Added a debug overlay. 2020-05-24 20:15:40 +02:00
16d4e26cd0 Exposed last known key modifiers in context. 2020-05-18 20:35:34 +02:00
e2472cffef Added default style if style is not set on Run{,Wait}.
Exposed Resources in Context as well.
2020-05-17 07:54:54 +02:00
b9534ee255 Made tooltip overlay switch visibility only when changed.
Added Tooltip.SetVisibility.
Fixed bug where no events where triggered for change in visibility.
2020-05-17 07:21:58 +02:00
3a18d3adf9 Added support for tooltips. 2020-05-15 16:53:57 +02:00
6db13c8f46 Added overlays. 2020-05-15 16:02:54 +02:00
3591e22c97 Added Fonts() to context similarly as Textures().
- Fonts are now managed by context instead of the implementation specific renderers.
2020-05-15 15:42:24 +02:00
b28b3e1838 Added Resources abstraction. 2020-05-15 14:20:07 +02:00
cdfb863ab0 Added SDL backend.
Added Action{,s}. List of actions that can be used to defer cleanup code (see NewRenderer implementations).
Added TextInputEvent (replaces the old KeyPressEvent) and added to new events KeyDown & KeyUp.
Added VSync to NewRendererOptions.
Removed IconScale from button.
Added ImageSource interface that replaces the Image/Texture method on the Texture interface. This makes converting back a texture to an image optional (since this is atypical for a hardware texture for instance).
Added new KeyModifier: OSCommand (Windows/Command key).
Added KeyState that can keep the state of keys (pressed or not).
Added KeyEnter, representing the Enter key.
Changed signatures of CreateTexture methods in Renderer.
Changed signatures of icon related method (removed factories).
Basic example now depends on sdlgui.
2020-05-15 09:20:44 +02:00
48aaf30182 Renamed Image{,s} to Texture{,s}. 2020-05-12 23:03:43 +02:00
c709d906d0 Improved synchronization with a quit signal. 2019-06-21 10:49:06 +02:00
fa7796a4ae Added support for animations. 2019-04-10 21:20:39 +02:00
19daffd110 Added UI elements.
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00