NutdartBindings class
Bindings for src/nutdart.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- NutdartBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
NutdartBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cu_keyboard_key_down(
Pointer< Char> key) → void -
cu_keyboard_key_tap(
Pointer< Char> key) → void - Keyboard functions (using libnut-core key names)
-
cu_keyboard_key_tap_with_flags(
Pointer< Char> key, Pointer<Char> flags) → void -
cu_keyboard_key_up(
Pointer< Char> key) → void -
cu_keyboard_type_string(
Pointer< Char> text) → void -
cu_mouse_click(
int button) → void -
cu_mouse_double_click(
int button) → void -
cu_mouse_drag(
int fromX, int fromY, int toX, int toY, int button) → void -
cu_mouse_get_position(
) → CUPoint -
cu_mouse_move(
int x, int y) → void - Mouse functions
-
cu_mouse_scroll(
int deltaX, int deltaY) → void -
cu_mouse_toggle(
int down, int button) → void -
cu_screen_capture_full(
) → Pointer< CUBitmap> -
cu_screen_capture_full_jpeg(
int maxSmallDim, int maxLargeDim, int quality, Pointer< Int64> outSize) → Pointer<Uint8> -
cu_screen_capture_region(
int x, int y, int width, int height) → Pointer< CUBitmap> -
cu_screen_capture_region_jpeg(
int x, int y, int width, int height, int maxSmallDim, int maxLargeDim, int quality, Pointer< Int64> outSize) → Pointer<Uint8> - JPEG screenshot functions with resizing maxSmallDim/maxLargeDim: -1 means no limit quality: 0-100 (JPEG quality) outSize: pointer to receive the size of the returned JPEG data
-
cu_screen_free_capture(
Pointer< CUBitmap> bitmap) → void -
cu_screen_free_jpeg(
Pointer< Uint8> data) → void -
cu_screen_get_size(
) → CUSize - Screen functions
-
cu_sleep_ms(
int milliseconds) → void - Utility functions
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited