Crate ndk_glue

Source

Structs§

LockReadGuard
Rect

Enums§

Event

Constants§

NDK_GLUE_LOOPER_EVENT_PIPE_IDENT
ndk-glue macros register the reading end of an event pipe with the main ThreadLooper under this ident. When returned from ThreadLooper::poll_* an event can be retrieved from poll_events().
NDK_GLUE_LOOPER_INPUT_QUEUE_IDENT
The InputQueue received from Android is registered with the main ThreadLooper under this ident. When returned from ThreadLooper::poll_* an event can be retrieved from input_queue().

Functions§

android_log
content_rect
This function accesses a static variable internally and must only be used if you are sure there is exactly one version of ndk_glue in your dependency tree.
init
Safety
input_queue
Returns an InputQueue held inside a lock, preventing Android from freeing it immediately in its InputQueue destructor.
native_activity
This function accesses a static variable internally and must only be used if you are sure there is exactly one version of ndk_glue in your dependency tree.
native_window
Returns a NativeWindow held inside a lock, preventing Android from freeing it immediately in its NativeWindow destructor.
poll_events

Attribute Macros§

main