Commit Graph
5 Commits
Author SHA1 Message Date
2c837d25a2 ✋ egui_winit: Allow getting the clipboard and allow_ime state (#3724)
The `egui_winit::State` contains both the `clipboard` and `allow_ime`,
but these are both private fields. In our implementation we use
`egui_winit` to do most of the lifting, but it would come really in
handy if we could access these values.

Instead of making the fields `pub` we opted for separate get/set
functions, that way calling side can't freely replace any of the values
fully and it's more in line with the style of the rest of the codebase.

---------

Co-authored-by: Marijn Suijten <marijn@traverseresearch.nl>
Co-authored-by: Marijn Suijten <marijns95@gmail.com>
2024-01-23 12:49:28 +01:00
Brian Janssen 4e75f4313e Fix typos in viewports docs (then vs than) (#3681)
I looked through the new viewport docs and noticed these small typos.
This PR fixes them.
2023-12-05 16:38:21 +01:00
Brian Janssen 2c7c59820e Expose area::State's Rect in Memory (#3161) 2023-08-16 12:52:36 +02:00
Brian Janssen 67ba4f2811 Add comment explaining Tab button (#2872) 2023-08-09 11:48:54 +02:00
Brian Janssen 5ccc71415e Replace show_index String with Into<TextWidget> (#2790) 2023-03-29 17:00:31 +02:00