Commit Graph

  • 5c29e37e68 Added support for go.mod. master Sander 2023-06-14 13:22:30 +0200
  • f56c5dd389 Added support for getting & setting location of Renderer. Sander Schobers 2022-05-01 12:05:17 +0000
  • ddf9476920 Added support for borderless windows. Sander Schobers 2022-05-01 12:40:09 +0200
  • eb46741165 Added support for scrolling a control into view (Overflow, only vertically currently). Sander Schobers 2021-08-19 12:27:34 +0200
  • a6415a1d60 Added UserCache{File,Dir} and renamed User{File,Dir} to UserConfig{File,Dir}. Sander Schobers 2021-08-09 19:15:08 +0200
  • 5e4afbe038 Removed drop dependency from allg5ui renderer. Sander Schobers 2021-08-09 11:13:20 +0200
  • 98a75206bc Add alignment to FPS control. Sander Schobers 2021-08-09 09:33:26 +0200
  • 12a9f5ee39 Last visibile item in StackPanel is now clipped to maximum available area. Sander Schobers 2021-07-19 17:55:43 +0200
  • de8ce3e7bc Added text overflow to label. Generalised text fitting (to width) and implemented binary search. Sander Schobers 2021-07-19 17:55:10 +0200
  • 5dcecb8cc1 Added clipping for Overflow/ScrollControl. Sander Schobers 2021-07-19 07:59:02 +0200
  • c0586c1d8f Added overridable text padding. Sander Schobers 2021-07-19 07:58:46 +0200
  • 764f2a0dd2 Added rendering of bounds in debug mode. Sander Schobers 2021-07-18 22:48:48 +0200
  • 5a4dcd52b0 Added embedres. - Exposes embed.FS (native) as a ui.Resources. Sander Schobers 2021-07-18 22:47:34 +0200
  • bcd32f8372 Fixed panic in Overflow. Sander Schobers 2021-06-17 20:18:23 +0200
  • e5bfd1394c Added text changed event to TextBox. Sander Schobers 2021-06-17 19:34:37 +0200
  • 7fa5601307 Added Pos methods to DisplayDrag{Enter,Move}Event. Sander Schobers 2021-06-07 07:48:24 +0200
  • b63fc999e1 Fixed example 02_drop. Sander Schobers 2021-06-04 20:14:56 +0200
  • 6839870055 Fixed bug with Line (sdlui.Renderer). Sander Schobers 2021-06-04 17:17:41 +0200
  • 3c89748eac Added drag & drop addon. - Drop addon is based on WM_DROPFILES, dragdrop addon is based on the OLE IDragDrop interface and thus can registerer more interactions. - The allg5ui implementation will try to fall back on the drop addon (because the dragdrop addon wouldn't work properly). - Drop addon is refactored to use the same interface as the dragdrop addon. Sander Schobers 2021-06-04 17:17:22 +0200
  • 302ae1c338 Added simple drop (files) addon. Sander Schobers 2021-06-01 21:14:51 +0200
  • 4cff23cd37 Mouse wheel now increments/decrements the slider value by 1. - With shift pressed it moves the value 10. - With control pressed it moves the value with 0.1 (does nothing when the Integer flag is enabled). Sander Schobers 2021-05-11 08:25:15 +0200
  • 72138bb8e3 Added Line to Renderer. Sander Schobers 2021-03-23 12:31:31 +0100
  • 7aa88e2dc6 Fixed bug in slider when maximum equal to or less than the minimum was supplied. Sander Schobers 2021-01-14 11:44:17 +0100
  • dbeacc3794 Split rendering of buffer & blitting it to the display. Sander Schobers 2021-01-12 20:35:07 +0100
  • 480e864b53 Show event wasn't invoked on overlay when visibility was set to true on add. Sander Schobers 2021-01-09 17:08:35 +0100
  • 9dc301eed8 Fixed two issues with slider. Value was always set back to original value. Events were always handled by slider (handle). Sander Schobers 2021-01-09 17:07:10 +0100
  • 102c187566 Added generic margin. Sander Schobers 2020-12-13 07:43:00 +0100
  • 11e37af9c2 Added shorthand method for retrieving default font for the control. Sander Schobers 2020-12-12 14:47:25 +0100
  • 5babda0ca9 Added (optional) dropshadow for label. Sander Schobers 2020-12-12 14:46:52 +0100
  • b1cdbea90f Changed colors of button text a bit. Sander Schobers 2020-12-12 14:46:06 +0100
  • 7d5168614e Added override for scrollbar color. Sander Schobers 2020-12-12 14:43:07 +0100
  • b0a13d1a3c ContainerBase now provides a DesiredSize (maximum of all children, if any). Sander Schobers 2020-12-12 14:41:44 +0100
  • cc32cf5bc3 Added scaled ImageSource. Sander Schobers 2020-12-12 14:41:14 +0100
  • 0f03760e66 Added Resize & SetIcon to Renderer. Refactored Size (on Renderer) to return geom.Point instead of geom.PointF32. Refactored Width and Height (on Texture) to return int instead of float32. Sander Schobers 2020-12-12 14:40:50 +0100
  • de87c5d3aa Try casting to PhysicalResources first when setting resource provider. SetResourceProvider accepts Resources instead of factory method to it. Sander Schobers 2020-07-07 18:19:34 +0200
  • 67e73a8671 Resources only exposes OpenResource (and Destroy). PhysicalResources derives from Resources and exposes FetchResource. Made dependency specific resource addons. Extended the available resource options (fallback, path, refactored copy). NewRenderer provides DefaultResources to the created renderer. Sander Schobers 2020-05-25 22:24:06 +0200
  • 869f87dd4f Added a debug overlay. Sander Schobers 2020-05-24 20:15:40 +0200
  • 43d49a0dbb Fixed bug where spacing was not respecting a fixed width/height when asking its proxied control for its desired size. Sander Schobers 2020-05-24 19:15:45 +0200
  • 352984d6d9 Overlays must be handled & rendered in their order. Sander Schobers 2020-05-24 18:42:22 +0200
  • cdc999ad42 Added option to Pan using tile coordinates. Fixed incorrect panning. Sander Schobers 2020-05-23 11:02:12 +0200
  • 7793fe823f Added IsometricProjection. Sander Schobers 2020-05-23 10:19:10 +0200
  • 2238f8749a Changed allg5ui.font.Measure() implementation to be more consistent with the sdlui implementation. Sander Schobers 2020-05-23 08:28:21 +0200
  • b434a71f00 Added Animation.IsActive. Sander Schobers 2020-05-23 08:20:20 +0200
  • 3bab08a0a6 Added support for rendering a partial texture. Sander Schobers 2020-05-23 08:20:04 +0200
  • 23115b8a0f Added support for rendering text to a texture. Sander Schobers 2020-05-22 17:42:02 +0200
  • 9371a8738e Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer. Sander Schobers 2020-05-22 09:08:50 +0200
  • a2cb2d03ca Allegro CreateTexture{Go,Path} didn't respect source flag. Sander Schobers 2020-05-20 19:45:45 +0200
  • 39766e9f01 SDL surface is created from non-alpha-premultiplied colors. Sander Schobers 2020-05-20 19:45:16 +0200
  • 0fe9a2ce63 Added FPS counter. Sander Schobers 2020-05-18 21:01:17 +0200
  • 7dde894bf0 Fixed two bugs with overlay visibility. - Toggle didn't toggle but hide. - Hide hid the overlay but didn't trigger any callbacks/events. Sander Schobers 2020-05-18 20:59:05 +0200
  • 16d4e26cd0 Exposed last known key modifiers in context. Sander Schobers 2020-05-18 20:35:34 +0200
  • e7ada7fea0 Using normal cursor when control is disabled. Sander Schobers 2020-05-18 20:28:13 +0200
  • ea5e1a4989 Added DisabledColor to button. Sander Schobers 2020-05-18 12:37:42 +0200
  • 7f2e155edd Renderers now respect Location of NewRendererOptions. Sander Schobers 2020-05-17 21:02:38 +0200
  • 32c53eb947 Fixed tooltip flickering when not blocking on events. Sander Schobers 2020-05-17 21:02:07 +0200
  • 0f54224cc7 Removed OverlayProxy and incorporated logic into Proxy. Sander Schobers 2020-05-17 20:07:52 +0200
  • bcf3093c87 Overlays all handle the same events but if a overlay handles the event then the content won't get the event. Sander Schobers 2020-05-17 16:11:47 +0200
  • 0c399a8d93 Only animate when textbox has focus. Sander Schobers 2020-05-17 15:31:06 +0200
  • 8560204c39 Added display move event. - The Allegro (alui) implementation only provides emulation of the event (comparing the position every time other events are handled). Sander Schobers 2020-05-17 15:30:52 +0200
  • 22cc3ce444 Added support for a fixed icon height on buttons. Sander Schobers 2020-05-17 14:59:28 +0200
  • c78c4052d0 Refactored DrawTexture on Renderer to favor rendering using destination rectangle instead of a point. Sander Schobers 2020-05-17 11:12:45 +0200
  • f20397c684 Moved default NewRendererOptions to generic part instead of in specific renderers. Sander Schobers 2020-05-17 08:29:02 +0200
  • e2472cffef Added default style if style is not set on Run{,Wait}. Exposed Resources in Context as well. Sander Schobers 2020-05-17 07:54:54 +0200
  • b78f215c8c Fixed bug where nil was stored as a scaled texture. Sander Schobers 2020-05-17 07:54:19 +0200
  • b9534ee255 Made tooltip overlay switch visibility only when changed. Added Tooltip.SetVisibility. Fixed bug where no events where triggered for change in visibility. Sander Schobers 2020-05-17 07:21:58 +0200
  • 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). Sander Schobers 2020-05-16 15:37:53 +0200
  • add33c6e7e Fixed bug where selection wasn't overwritten by typed character. Sander Schobers 2020-05-16 13:47:25 +0200
  • ae46d2a1f2 Added Disabled to controls. Sander Schobers 2020-05-16 13:46:07 +0200
  • d673653d3f Renamed EventFn to EventEmptyFn and EventStateFn to EventFn (both in ui and zntg packages). Sander Schobers 2020-05-16 12:07:13 +0200
  • 8c48c949e9 Renamed Overlay callbacks & extended interface of Overlay (must be a Control as well). Sander Schobers 2020-05-16 10:57:14 +0200
  • 9af85d79a6 Added callbacks & events when visibility of an overlay changes. Added proxy that proxies overlay callbacks as well (on top of control callbacks). Sander Schobers 2020-05-16 10:12:54 +0200
  • 7f3d836254 Added a generic Events struct in zntg (without ui.Context). Refactored ui.Events to re-use zntg.Events. Sander Schobers 2020-05-16 09:36:04 +0200
  • ff4b04262c Moved fs addon as res addon. Sander Schobers 2020-05-16 09:22:32 +0200
  • 661a11fecd Added tests for HexColor. Sander Schobers 2020-05-16 08:54:45 +0200
  • d742fba7e9 Added Events and changed event handlers of controls. Removed EventHandlers from Control interface. Sander Schobers 2020-05-15 19:00:43 +0200
  • 4e37f4b23e Added secondary colors to palette. Sander Schobers 2020-05-15 17:02:18 +0200
  • 3a18d3adf9 Added support for tooltips. Sander Schobers 2020-05-15 16:39:53 +0200
  • 6db13c8f46 Added overlays. Sander Schobers 2020-05-15 16:02:54 +0200
  • 3591e22c97 Added Fonts() to context similarly as Textures(). - Fonts are now managed by context instead of the implementation specific renderers. Sander Schobers 2020-05-15 15:42:24 +0200
  • 02ee819a99 Favoring Context.Textures() over direct texture assignment to controls. Sander Schobers 2020-05-15 14:44:55 +0200
  • b28b3e1838 Added Resources abstraction. Sander Schobers 2020-05-15 14:20:07 +0200
  • a0660a9650 Moved clipboard to addons. Sander Schobers 2020-05-15 13:14:08 +0200
  • 5d297c98b8 Keeping state of a drag operation separately. Sander Schobers 2020-05-15 12:15:44 +0200
  • c0c5235d5a Added methods to retrieve the path to the user configuration dir. Sander Schobers 2020-05-15 11:38:21 +0200
  • 5a1e5f6f7f Added image & JSON encoding/decoding facilities. Sander Schobers 2020-05-15 11:33:33 +0200
  • cf12afe2bb Added hexadecimal color string conversions. Sander Schobers 2020-05-15 11:32:47 +0200
  • 744c639abd Added animation. Sander Schobers 2020-05-15 10:58:02 +0200
  • 9b04eeb7a3 Added documentation for Action{,Err,s}. Sander Schobers 2020-05-15 10:57:38 +0200
  • 893bf513ad Few mouse interaction extensions for sdlui. - Added Mouse{Enter,Leave}Event support. - Simulating MouseWheel for MouseMotionEvent. Sander Schobers 2020-05-15 09:59:53 +0200
  • 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. Sander Schobers 2020-05-15 09:20:44 +0200
  • f618c55b25 Embedded Allegro font struct directly inside font wrapped. Sander Schobers 2020-05-13 16:49:45 +0200
  • 8c11aec276 Renamed image.go to texture.go. Sander Schobers 2020-05-13 16:36:46 +0200
  • 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. Sander Schobers 2020-05-13 15:57:04 +0200
  • 48aaf30182 Renamed Image{,s} to Texture{,s}. Sander Schobers 2020-05-12 23:03:43 +0200
  • 2c9007ce9b Added renderer factory. - Removes dependency on the specific backend from an application point-of-view. Sander Schobers 2020-05-12 22:46:58 +0200
  • 5ecfd10754 Made cache more generic. Sander Schobers 2020-05-12 20:58:42 +0200
  • 280b4842e8 Moved allg5ui package one layer up. Sander Schobers 2020-05-12 17:38:37 +0200
  • 4ca400d985 Moved allg5 package to separate repository. Sander Schobers 2019-12-19 07:07:43 +0100
  • 4ae1db7969 Added support for audio recording. Added unhandled event handler. Sander Schobers 2019-10-12 09:01:46 +0200
  • 06a38d8e4a Updated example. Sander Schobers 2019-07-22 20:02:57 +0200