ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_widget_keyboard_ops Struct Reference

#include <ra8_widget_keyboard.h>

Data Fields

void * user
 Opaque keyboard handle passed back to every callback below.
uint8_t(* count )(void *user)
 Number of keys in the active layer.
void(* key_info )(void *user, uint8_t idx, ra8_widget_key_info_t *out)
 Fill out with key idx's rect + glyph / label for drawing.
uint8_t(* hit )(void *user, int32_t x, int32_t y)
 Map a tap to a key index, or k_ra8_widget_key_no_hit.
bool(* apply )(void *user, uint8_t idx)
 Apply key idx; return true iff the query is now committed.

Detailed Description

Definition at line 90 of file ra8_widget_keyboard.h.

Field Documentation

◆ apply

bool(* ra8_widget_keyboard_ops::apply) (void *user, uint8_t idx)

Apply key idx; return true iff the query is now committed.

Definition at line 100 of file ra8_widget_keyboard.h.

◆ count

uint8_t(* ra8_widget_keyboard_ops::count) (void *user)

Number of keys in the active layer.

Definition at line 94 of file ra8_widget_keyboard.h.

◆ hit

uint8_t(* ra8_widget_keyboard_ops::hit) (void *user, int32_t x, int32_t y)

Map a tap to a key index, or k_ra8_widget_key_no_hit.

Definition at line 98 of file ra8_widget_keyboard.h.

◆ key_info

void(* ra8_widget_keyboard_ops::key_info) (void *user, uint8_t idx, ra8_widget_key_info_t *out)

Fill out with key idx's rect + glyph / label for drawing.

Definition at line 96 of file ra8_widget_keyboard.h.

◆ user

void* ra8_widget_keyboard_ops::user

Opaque keyboard handle passed back to every callback below.

Definition at line 92 of file ra8_widget_keyboard.h.


The documentation for this struct was generated from the following file: