Commit Graph

11 Commits

Author SHA1 Message Date
c78c4052d0 Refactored DrawTexture on Renderer to favor rendering using destination rectangle instead of a point. 2020-05-17 11:12:45 +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
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
48aaf30182 Renamed Image{,s} to Texture{,s}. 2020-05-12 23:03:43 +02:00
432281f08d Added Slider.
Refactored Icon related methods & added alpha support for icon/image generation.
2019-07-08 19:17:11 +02:00
4d05127c6d Removed Context and Control from event handlers. 2019-07-06 07:42:40 +02:00
3e7e2ab682 Added OnSelectedChanged to Checkbox.
Updated graphics for Checkbox.
2019-04-11 23:30:26 +02:00
d072e202ab Added checkbox.
Added utility methods for generating icons.
2019-04-11 21:23:51 +02:00