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.
The enum reports what happened to the PointerEventButton in the event
This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
A button that is none of left, right, middle, back or forward. For example, this is used for the task button on a mouse with many buttons.
This enum indicates the color scheme used by the widget style. Use this to explicitly switch between dark and light schemes, or choose Unknown to fall back to the system default.
The scheme is not known and a system wide setting configures this. This could mean that the widgets are shown in a dark or light scheme, but it could also be a custom color scheme.
The style chooses light colors for the background and dark for the foreground.
The style chooses dark colors for the background and light for the foreground.
This enum describes the action negotiated between the source of a drag (DragArea)
and its target (DropArea) during a drag-and-drop operation. The source declares
which actions it permits, the target picks one in its can-drop callback, and the
chosen action is reported back to the source via drag-finished so that, for
example, a move source can remove the original data. The same enum is used for
drags that come from another application or window once native drag-and-drop is
in play.
The data is moved to the target; the source should remove it once the operation completes.
A link to the source data is created at the target; neither side gives up ownership.