slint.language
The KeyboardModifiers struct provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.
It is provided as part of KeyEvent's modifiers field.
Keyboard shortcuts on Apple platforms typically use the Command key (⌘), such as Command+C for "Copy". On other platforms the same shortcut is typically represented using Control+C. To make it easier to develop cross-platform applications, on macOS, Slint maps the Command key to the control modifier, and the Control key to the meta modifier.
On Windows, the Windows key is mapped to the meta modifier.
Create new instance of KeyboardModifiers(alt, control, shift, meta)
Represents a Pointer event sent by the windowing system.
This structure is passed to the pointer-event callback of the TouchArea element.
Represents a Pointer scroll (or wheel) event sent by the windowing system.
This structure is passed to the scroll-event callback of the TouchArea element.
This structure is generated and passed to the key press and release callbacks of the FocusScope element.
Represents an item in a StandardListView and a StandardTableView.