SANDAL2
A SDL2 Wrapper in C
Public Attributes | List of all members
EventWindow Struct Reference

Behaviors of a window to events. More...

#include <Window.h>

Public Attributes

void(* action )(void)
 
void(* onClick )(int)
 
void(* unClick )(int)
 
void(* keyPress )(SDL_Keycode c)
 
void(* keyReleased )(SDL_Keycode c)
 
void(* onWheel )(int)
 
void(* onFocus )(void)
 
void(* unFocus )(void)
 
void(* onMouseMotion )(int, int)
 

Detailed Description

Behaviors of a window to events.

Member Data Documentation

◆ action

void(* EventWindow::action) (void)

function called when update

◆ keyPress

void(* EventWindow::keyPress) (SDL_Keycode c)

function called when a key is pressed

◆ keyReleased

void(* EventWindow::keyReleased) (SDL_Keycode c)

function called when a key is released

◆ onClick

void(* EventWindow::onClick) (int)

function called when the element is clicked

◆ onFocus

void(* EventWindow::onFocus) (void)

function called when window gain focus

◆ onMouseMotion

void(* EventWindow::onMouseMotion) (int, int)

function called when the mouse move on the window

◆ onWheel

void(* EventWindow::onWheel) (int)

function called when a wheel motion occures

◆ unClick

void(* EventWindow::unClick) (int)

function called when the element is unclicked

◆ unFocus

void(* EventWindow::unFocus) (void)

function called when window lose focus


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