mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 14:49:07 -04:00
winit-core/window: wrap ImeCapabilities in struct
To prevent user from using `::all()` and thus writing not forward compatible code wrap the bitflags struct and provide simpler interface to it.
This commit is contained in:
@@ -1051,7 +1051,7 @@ impl CoreWindow for Window {
|
||||
};
|
||||
|
||||
if let Some((spot, size)) = request_data.cursor_area {
|
||||
if capabilities.contains(ImeCapabilities::CURSOR_AREA) {
|
||||
if capabilities.cursor_area() {
|
||||
let scale_factor = state.scale_factor;
|
||||
ImeContext::current(window.hwnd()).set_ime_cursor_area(
|
||||
spot,
|
||||
|
||||
Reference in New Issue
Block a user