MLX42 1.0
MLX42
Loading...
Searching...
No Matches
mlx_srcoll Struct Reference

#include <MLX42_Int.h>

Collaboration diagram for mlx_srcoll:
Collaboration graph

Data Fields

voidparam
 
mlx_scrollfunc func
 

Detailed Description

There are 2 types of hooks, special and generics.

Specials: Specials are specific callback functions to a specific action such as window resizing or key presses. These are attached to the callbacks of glfw. In case MLX itself needs the callback we call the specials in that callback since there can only ever be a single callback.

Generics: Generics are MLX42 specific hooks and can have multiple hooks at the same time, these are executed every frame and can be used as an alternative for keypresses or animations for instance.

NOTE: Hooks could be achieved with va_args to have any amount of args sized functor but we can't/don't want to let the user deal with va_args and having to look up what args are what, etc...

We want to keep it straightforward with functors already describing what params they have.

Definition at line 114 of file MLX42_Int.h.

Field Documentation

◆ func

mlx_scrollfunc mlx_srcoll::func

Definition at line 117 of file MLX42_Int.h.

◆ param

void* mlx_srcoll::param

Definition at line 116 of file MLX42_Int.h.


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