ae46d2a1f2
Added Disabled to controls.
2020-05-16 13:46:07 +02:00
d673653d3f
Renamed EventFn to EventEmptyFn and EventStateFn to EventFn (both in ui and zntg packages).
2020-05-16 12:07:13 +02:00
8c48c949e9
Renamed Overlay callbacks & extended interface of Overlay (must be a Control as well).
2020-05-16 10:57:14 +02:00
9af85d79a6
Added callbacks & events when visibility of an overlay changes.
...
Added proxy that proxies overlay callbacks as well (on top of control callbacks).
2020-05-16 10:12:54 +02:00
7f3d836254
Added a generic Events struct in zntg (without ui.Context).
...
Refactored ui.Events to re-use zntg.Events.
2020-05-16 09:36:04 +02:00
d742fba7e9
Added Events and changed event handlers of controls.
...
Removed EventHandlers from Control interface.
2020-05-15 19:00:43 +02:00
4e37f4b23e
Added secondary colors to palette.
2020-05-15 17:02:18 +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
02ee819a99
Favoring Context.Textures() over direct texture assignment to controls.
2020-05-15 14:44:55 +02:00
b28b3e1838
Added Resources abstraction.
2020-05-15 14:20:07 +02:00
a0660a9650
Moved clipboard to addons.
2020-05-15 13:14:08 +02:00
5d297c98b8
Keeping state of a drag operation separately.
2020-05-15 12:15:44 +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
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
5ecfd10754
Made cache more generic.
2020-05-12 20:58:42 +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
4ae1db7969
Added support for audio recording.
...
Added unhandled event handler.
2019-10-12 09:01:46 +02:00
06a38d8e4a
Updated example.
2019-07-22 20:02:57 +02:00
52d22e7a18
Added value changed event for slider.
...
Added flag for snapping to integer values.
2019-07-09 19:08:40 +02:00
757758d8e9
Fixed right/center alignment of labels.
2019-07-09 19:07:40 +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
36d620108c
Optimized rendering a lot of labels.
...
- Added caching of the desired size of a label.
2019-07-04 22:15:32 +02:00
9e577ab1aa
Optimizations for rendering large number of items (in a stack panel) and improved visualization of scrollbar.
2019-07-04 22:06:48 +02:00
3adf44a516
Added some extra display related functions.
2019-07-04 22:05:08 +02:00
3bd4001cc3
Fixed mouse cursor bug.
...
If the Run loop was non-blocking (wait set to false) the cursor was reset back to the default.
2019-07-04 22:03:29 +02:00
a6bb05794f
Added mouse enter/leave event.
2019-06-24 21:56:52 +02:00
e867925de8
Added (horizontal) text alignment.
2019-06-24 20:58:14 +02:00
ff064bbf1f
Added TextPositive & TextNegative colors.
2019-06-24 20:57:58 +02:00
c709d906d0
Improved synchronization with a quit signal.
2019-06-21 10:49:06 +02:00
eee707c4ec
Added overloads to add an image to the Images container.
2019-05-01 09:42:09 +02:00
6a71720b71
Init function can return an error.
2019-05-01 09:40:59 +02:00
7f9f10075f
Replaced implementation of WidthOf by TextWidth.
...
- TextDimensions (the underlying al_get_text_dimensions) returns the dimensions of the printable characters (non-whitespace) which gives weird results when measuring spaces.
2019-04-13 10:18:00 +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
3e7e2ab682
Added OnSelectedChanged to Checkbox.
...
Updated graphics for Checkbox.
2019-04-11 23:30:26 +02:00
99c76545ef
Added RenderOutline to ControlBase.
...
Added HoverColor to Button.
2019-04-11 23:27:25 +02:00
8d78083583
Moved Shadow and added Background control.
2019-04-11 22:33:31 +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
15f02d4d0e
Infinite margins should not be taken into account for DesiredSize.
2019-04-11 20:05:30 +02:00
70d9e23b0c
Added shadow control.
2019-04-11 20:03:36 +02:00
8f17c02634
Fixed incorrect bounds being returned by Overflow control.
2019-04-11 20:03:26 +02:00
28af8aba06
Changed palette (added PrimaryDark color and changed PrimaryHighlight and PrimaryLight colors).
2019-04-11 20:02:15 +02:00
3390d46f34
Moved scaling by height to Images.
2019-04-11 20:00:26 +02:00
3acb3f09af
Added scaled images to image cache.
2019-04-10 22:41:28 +02:00
f550220120
Added (OS specific) clipboard implementation.
...
- Based on github.com/atotto/clipboard.
2019-04-11 08:44:38 +02:00
fcf31b381b
Added TextBox.
...
Updated basic example.
2019-04-11 08:44:38 +02:00
eb0e8322ef
Changed Length.Zero to return value instead of Length.
...
Spacing shorthand methods now returns Spacing object instead of Control interface.
2019-04-11 08:44:38 +02:00
04779d6588
Changed Buffer.Render signature.
...
Added BufferControl on top of Buffer.
2019-04-11 08:44:01 +02:00
67658d3bee
Added key event.
...
Some small additions/changes.
2019-04-10 21:23:56 +02:00
71cdc234ee
Added clipboard.
...
- Default implementation only copies to application memory. Is open for using external implementation.
2019-04-10 21:21:55 +02:00
fa7796a4ae
Added support for animations.
2019-04-10 21:20:39 +02:00
552de0c748
Fixed padding of button.
2019-04-09 20:32:59 +02:00
2ffb579340
Factored out (render) buffer.
2019-04-09 20:32:42 +02:00
c024416702
Added ui.RefreshEvent.
...
- Refresh signal is now propagated to controls.
2019-03-13 21:20:31 +01:00
a6718e335d
Fixed bug in StackPanel
...
- Children now get actual bounds, might be outside of the parent's bounds.
2019-03-13 20:18:15 +01:00
4d518849e5
Added IconScale for Button.
2019-03-13 20:16:54 +01: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
a3aa398909
Restructered spacing controls & added margin helpers.
2019-03-13 19:03:06 +01:00
3ea0d76efb
Created unified spacing control.
...
Build control methods now accept nil as visitor method.
2019-03-12 21:11:43 +01:00
d14a9bd0e7
Fixed bugs in Overflow control.
...
- Tries to take as much space as possible.
- Draw buffer should be exactly size needed.
2019-03-12 20:08:47 +01:00
f31cd28771
Added color to palette.
...
Added comments to palette.
2019-03-12 19:50:34 +01:00
c83a6d5aad
Added FontStyle on ControlBase.
...
Forced putting text on integer coordinates.
2019-03-12 19:43:52 +01:00
c973305b6d
Cleanup of (font) resources on destroy.
2019-03-12 19:23:47 +01:00
1d6587adbd
Added changing the mouse cursor.
2019-03-11 17:30:41 +01:00
0387e313de
Added user events & possibility to 'refresh'.
...
- Refresh unblocks event loop for the next redraw.
2019-03-06 18:23:53 +01:00
c08474a01c
Added display resize event.
2019-03-06 18:23:53 +01:00
ff2ece7d06
Added mouse wheel implementation (scrollbar & overflow).
...
Fixed bug in length of scrollbar handle.
2019-03-06 18:22:30 +01:00
19daffd110
Added UI elements.
...
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00