Commit Graph

10 Commits

Author SHA1 Message Date
ae46d2a1f2 Added Disabled to controls. 2020-05-16 13:46:07 +02:00
d742fba7e9 Added Events and changed event handlers of controls.
Removed EventHandlers from Control interface.
2020-05-15 19:00:43 +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
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
1aad3bf11a Added keys.
Fixed bug where copy/cut/paste/select all weren't executed.
Fixed bug where start/end of selection wasn't properly set when typing.
Removed SetClipboard.
2020-05-13 15:57:04 +02:00
dbc017507c Added Parent to Controls.
Fixed issue where events of partially and invisible controls where incorrectly handled.
2019-04-11 23:38:32 +02:00
99c76545ef Added RenderOutline to ControlBase.
Added HoverColor to Button.
2019-04-11 23:27:25 +02:00
6bcab622ae Added support for Home and End buttons in TextBox.
Fixed scaling of icon in Button.
2019-04-11 22:22:23 +02:00
28af8aba06 Changed palette (added PrimaryDark color and changed PrimaryHighlight and PrimaryLight colors). 2019-04-11 20:02:15 +02:00
fcf31b381b Added TextBox.
Updated basic example.
2019-04-11 08:44:38 +02:00