bark_view_event(3)Bark

NAME

bark_view_event - Normalized input event passed to bark_view_on_event() callbacks.

SYNOPSIS

#include <view.h>

Public Attributes

bark_ev_type_t type
int32_t x
int32_t y
float dx
float dy
int32_t button
int32_t action
int32_t mods
uint32_t codepoint
char key_code [32]
const char * text

Detailed Description

Normalized input event passed to bark_view_on_event() callbacks.

Member Data Documentation

int32_t bark_view_event::action

0 = release, 1 = press, 2 = repeat.

int32_t bark_view_event::button

Button constant (BARK_MOUSE_*).

uint32_t bark_view_event::codepoint

Unicode codepoint for BARK_EV_CHAR.

float bark_view_event::dx

Horizontal scroll or motion delta.

float bark_view_event::dy

Vertical scroll or motion delta.

char bark_view_event::key_code[32]

W3C KeyboardEvent.code (e.g. "Space", "Escape").

int32_t bark_view_event::mods

Modifier bitmask (BARK_MOD_*).

const char* bark_view_event::text

Dropped file path for BARK_EV_FILE_DROP.

bark_ev_type_t bark_view_event::type

Event kind.

int32_t bark_view_event::x

Pointer X or viewport width.

int32_t bark_view_event::y

Pointer Y or viewport height.

Author

Generated automatically by Doxygen for Bark from the source code.