Commit graph

99 commits

Author SHA1 Message Date
Jonathan Johnson
71f699ccda
WindowHandle::execute 2024-09-11 16:29:04 -07:00
Jonathan Johnson
2becb92f04
WrapperWidget::root_behavior default passthrough 2024-09-11 14:44:47 -07:00
Jonathan Johnson
8eaf0f414f
serde feature 2024-09-11 06:19:35 -07:00
Jonathan Johnson
7e69846909
Shortcut fallback, ShortcutMap 2024-09-10 07:46:34 -07:00
Jonathan Johnson
c2d07344d9
Keyboard shortcut handling 2024-09-09 15:05:02 -07:00
Jonathan Johnson
448482e7bf
Fullscreen example 2024-09-09 08:12:59 -07:00
Jonathan Johnson
0f866009b8
app_name, fullscreen, focused
Finally finished removing WindowAttributes.
2024-09-09 07:49:21 -07:00
Jonathan Johnson
8d653c2d6c
Modifiers support
Closes #162
2024-09-09 06:49:04 -07:00
Jonathan Johnson
14d2069fec
MakeWindow + easy window centering 2024-09-08 13:19:55 -07:00
Jonathan Johnson
dd4c544ba6
Window sync edge cases
- synchronize_platform_window is now called prior to the first redraw.
  This allows the `visible` attribute to be changed from false to true.
- Some window attributes are automatically set based on the incoming
  dynamic.
- Some initial window values are delayed until after the first layout to
  minimze "noisy" values.

All of these changes now allow a window that is resize_to_fit to be
initially hidden and show itself centered after being initially resized
without any flashing or on-screen movement/resizing.
2024-09-08 11:29:29 -07:00
Jonathan Johnson
bbbc8151c4
cushy::main attribute macro 2024-09-08 09:31:35 -07:00
Jonathan Johnson
0953e5ab40
Window::icon 2024-09-07 10:13:48 -07:00
Jonathan Johnson
531e6c9ab6
Window positioning properties
Closes #165
2024-09-07 09:31:40 -07:00
Jonathan Johnson
bf78da333d
App::monitors + run()/on_startup()
Closes #163
2024-09-06 11:50:35 -07:00
Jonathan Johnson
634a4b7af8
Added most window settings from winit
Refs #160
2024-09-05 20:31:01 -07:00
Jonathan Johnson
9304165981
PendingWindow in PendingApp fix + resize_to_fit 2024-09-04 08:29:13 -07:00
Jonathan Johnson
6a346ea3ef
Added Watcher type 2024-09-02 09:23:52 -07:00
Jonathan Johnson
0dd18826c9
Switcher unmounts in all windows
Fixes #139
2024-08-28 08:49:26 -07:00
Jonathan Johnson
53d3c58cbb
Added missing to_ variants 2024-08-28 07:42:11 -07:00
Jonathan Johnson
94e473cdd3
Fixing nested collapse animations 2024-08-27 09:56:14 -07:00
Jonathan Johnson
9a148b8765
Making all easing functions themable 2024-08-27 08:32:51 -07:00
Jonathan Johnson
e773bc123a
Updated changelog 2024-08-20 16:05:26 -07:00
Jonathan Johnson
ba8d73b6b7
Bumping version 2024-08-20 12:30:41 -07:00
Jonathan Johnson
f660e1138d
bistream-io via ravif via image causing MSRV bump 2024-08-20 12:15:26 -07:00
Jonathan Johnson
06e9072a23
Noting Easing change 2024-08-20 12:13:09 -07:00
Jonathan Johnson
9b3e6c13f4
Fixed remounting WidgetInstances 2024-08-20 10:31:47 -07:00
Jonathan Johnson
f0c1aec40e
Fixing selecting before/after the text 2024-07-26 09:33:33 -07:00
Jonathan Johnson
459dc3f96a
Renaming CushyWindowBuilder to Standalone
Closes #155
2024-07-26 09:20:39 -07:00
Jonathan Johnson
ffb1475e30
Fixing padding/shadow calculations on Container
Fixes #158
2024-07-26 08:58:59 -07:00
Jonathan Johnson
ba3a4b9b02
Added Zoom factor
Closes #146
2024-07-25 11:31:38 -07:00
Jonathan Johnson
3de9d0597f
Updating kludgine and figures 2024-07-22 08:06:03 -07:00
Jonathan Johnson
66b37bb88d
Updated msrv from wgpu update 2024-07-22 07:29:10 -07:00
Jonathan Johnson
60c7ef8859
Honoring Window::inner_size's initial value
Refs #160
2024-07-08 16:50:50 -07:00
Jonathan Johnson
24291772de
Added Window::on_close_requested
Closes #161
2024-07-08 16:06:45 -07:00
Jonathan Johnson
6a1f7f5462
Fixed deadlock with DynamicMutexGuard::unlocked
During the change callback process, unlocked is called to allow the
change callbacks to run while the dynamic is unlocked. The error with
the previous version of this code is that the during_callback_state was
always overwritten when being returned. The problem is that another
thread could currently have the mutex locked and could have stored its
own state -- which can happen if two threads are both trying to invoke
change callbacks at the same time.

By moving the state saving and reloading to only happen when the mutex
guard is acquired, we can ensure that interleaving threads will work
correctly.
2024-06-13 09:16:13 -07:00
Jonathan Johnson
7bd13e2a0a
Added for_each_subsequent
Refs #156

The ForEach trait currently doesn't have a subsequent version, but given
the discussion in the related issue I think that's OK.
2024-06-07 09:08:14 -07:00
Jonathan Johnson
8c8dca63ba
Clarified some window builder documentation
Really the functions should be renamed -- see #155
2024-05-17 15:00:24 -07:00
Jonathan Johnson
3da08bca62
Fixed a crash in Switcher
I'm not sure exactly what caused this that other simpler cases were not,
but essentially nodes were already removed once by the time this loop is
evaluated, so we can skip adding them back to the list again.
2024-05-13 08:39:43 -07:00
Jonathan Johnson
774a846210
animate_mouse_button + more example recordings 2024-05-12 19:12:01 -07:00
Jonathan Johnson
568f2ca327
Added plotters example capture + animate_keypress 2024-05-12 14:23:29 -07:00
Jonathan Johnson
db2296c626
Preparing v0.3.0 2024-05-12 08:30:43 -07:00
Jonathan Johnson
a3903463ea
Added note in changelog for appit fix 2024-05-12 06:45:27 -07:00
Jonathan Johnson
b57188f80f
Added optional tokio integration
Closes #147
2024-05-11 21:25:54 -07:00
Jonathan Johnson
07f1febe9f
Removed ChosenMenuItem
Also updated the changelog
2024-05-10 12:15:33 -07:00
Jonathan Johnson
1c8d4e0176
ButtonClick + Overlays at locations
The overlay example now supports right-clicking to open overlays at the
clicked location, showing how a context menu widget can begin being
built.
2024-05-08 08:38:26 -07:00
Jonathan Johnson
ecf0d45bfa
Updating MSRV 2024-05-02 07:07:13 -07:00
Jonathan Johnson
da6440a9a6
Updated changelog 2024-05-01 12:49:30 -07:00
Jonathan Johnson
74034760ce
OverlayLayer::dismiss_all 2024-03-20 11:40:20 -07:00
Jonathan Johnson
a63af0f9de
Exposing ModifiersExt 2024-03-19 10:17:28 -07:00
Jonathan Johnson
18abfc66f2
Added ability to disable vsync 2024-03-17 08:44:02 -07:00