Commit Graph

21 Commits

Author SHA1 Message Date
f56c5dd389 Added support for getting & setting location of Renderer. 2022-05-01 12:05:17 +00:00
ddf9476920 Added support for borderless windows. 2022-05-01 12:40:09 +02:00
6839870055 Fixed bug with Line (sdlui.Renderer). 2021-06-04 17:17:41 +02:00
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.
2021-06-04 17:17:22 +02:00
302ae1c338 Added simple drop (files) addon. 2021-06-01 21:14:51 +02:00
72138bb8e3 Added Line to Renderer. 2021-03-23 12:31:31 +01:00
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.

Refactored texture dimensions to be represented by ints instead of float32s.
2020-12-13 07:40:19 +01:00
de87c5d3aa Try casting to PhysicalResources first when setting resource provider.
SetResourceProvider accepts Resources instead of factory method to it.
2020-07-07 18:19:34 +02:00
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.
2020-05-25 22:24:06 +02:00
3bab08a0a6 Added support for rendering a partial texture. 2020-05-23 08:20:04 +02:00
23115b8a0f Added support for rendering text to a texture. 2020-05-22 17:42:02 +02:00
39766e9f01 SDL surface is created from non-alpha-premultiplied colors. 2020-05-20 19:45:16 +02:00
7f2e155edd Renderers now respect Location of NewRendererOptions. 2020-05-17 21:02:38 +02:00
32c53eb947 Fixed tooltip flickering when not blocking on events. 2020-05-17 21:02:07 +02:00
8560204c39 Added display move event.
- The Allegro (alui) implementation only provides emulation of the event (comparing the position every time other events are handled).
2020-05-17 15:30:52 +02:00
c78c4052d0 Refactored DrawTexture on Renderer to favor rendering using destination rectangle instead of a point. 2020-05-17 11:12:45 +02:00
f20397c684 Moved default NewRendererOptions to generic part instead of in specific renderers. 2020-05-17 08:29:02 +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
b28b3e1838 Added Resources abstraction. 2020-05-15 14:20:07 +02:00
893bf513ad Few mouse interaction extensions for sdlui.
- Added Mouse{Enter,Leave}Event support.
- Simulating MouseWheel for MouseMotionEvent.
2020-05-15 09:59:53 +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