Commit Graph

12 Commits

Author SHA1 Message Date
02ee819a99 Favoring Context.Textures() over direct texture assignment to controls. 2020-05-15 14:44:55 +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
2c9007ce9b Added renderer factory.
- Removes dependency on the specific backend from an application point-of-view.
2020-05-12 22:46:58 +02:00
280b4842e8 Moved allg5ui package one layer up. 2020-05-12 17:38:37 +02:00
4ca400d985 Moved allg5 package to separate repository. 2019-12-19 07:07:43 +01:00
06a38d8e4a Updated example. 2019-07-22 20:02:57 +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
d072e202ab Added checkbox.
Added utility methods for generating icons.
2019-04-11 21:23:51 +02:00
fcf31b381b Added TextBox.
Updated basic example.
2019-04-11 08:44:38 +02:00
ff51378aff Added button types.
Go image can be reconstructed from ui.Image/allg5.Bitmap.
Changed allg5.Scale from interface to struct.
2019-03-13 19:49:00 +01:00
19daffd110 Added UI elements.
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00