Commit Graph

17 Commits

Author SHA1 Message Date
c0586c1d8f Added overridable text padding. 2021-07-19 07:58:46 +02:00
e5bfd1394c Added text changed event to TextBox. 2021-06-17 19:34:37 +02:00
11e37af9c2 Added shorthand method for retrieving default font for the control. 2020-12-13 07:40:58 +01:00
e7ada7fea0 Using normal cursor when control is disabled. 2020-05-18 20:28:13 +02:00
0c399a8d93 Only animate when textbox has focus. 2020-05-17 15:31:06 +02:00
75fce53716 Added Paragraph control.
Extended DesiredSize method with extra arguments that tells the control how much space is available for the parent control (note: this might not be the actual given size when Arrange is called on the control).
2020-05-16 15:37:53 +02:00
add33c6e7e Fixed bug where selection wasn't overwritten by typed character. 2020-05-16 13:47:25 +02:00
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