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:
parent
08907148ec
commit
abed32eb80
6 changed files with 86 additions and 46 deletions
|
|
@ -1698,7 +1698,7 @@ impl WindowDelegate {
|
|||
};
|
||||
|
||||
if let Some((spot, size)) = request_data.cursor_area {
|
||||
if self.view().ime_capabilities().unwrap().contains(ImeCapabilities::CURSOR_AREA) {
|
||||
if self.view().ime_capabilities().unwrap().cursor_area() {
|
||||
let scale_factor = self.scale_factor();
|
||||
let logical_spot = spot.to_logical(scale_factor);
|
||||
let logical_spot = NSPoint::new(logical_spot.x, logical_spot.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue