CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::window_events Namespace Reference

Typedefs

using window_map = std::map<std::size_t, fabric::async::async_bus_t*>
 

Functions

void dispatch_window_event (window_map *busses, const SDL_WindowEvent &event)
 
void dispatch_display_event (window_map *busses, const SDL_DisplayEvent &event)
 
void dispatch_event (fabric::async::async_bus_t *app_bus, window_map *busses, const SDL_Event &event)
 
void task (fabric::async::async_bus_t *app_bus, window_map *busses)
 
void cydui::window_events::poll_events (fabric::async::async_bus_t *app_bus, window_map *busses)
 

Variables

std::unique_ptr< std::thread > thread_ptr {nullptr}
 
std::atomic_flag running {}
 
struct { 
 
   std::unordered_map< std::size_t, std::pair< float, float > >   cydui::window_events::accs {} 
 
motion_accumulator 
 
struct { 
 
   std::unordered_map< std::size_t, std::pair< float, float > >   cydui::window_events::accs {} 
 
resize_accumulator 
 
struct { 
 
   std::unordered_set< std::size_t >   cydui::window_events::accs {} 
 
redraw_accumulator 
 

Typedef Documentation

◆ window_map

using cydui::window_events::window_map = std::map<std::size_t, fabric::async::async_bus_t*>

Definition at line 30 of file window_events.cppm.

Function Documentation

◆ dispatch_display_event()

void cydui::window_events::dispatch_display_event ( window_map * busses,
const SDL_DisplayEvent & event )

Definition at line 161 of file window_events.cppm.

+ Here is the caller graph for this function:

◆ dispatch_event()

void cydui::window_events::dispatch_event ( fabric::async::async_bus_t * app_bus,
window_map * busses,
const SDL_Event & event )

Definition at line 185 of file window_events.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dispatch_window_event()

void cydui::window_events::dispatch_window_event ( window_map * busses,
const SDL_WindowEvent & event )

Definition at line 131 of file window_events.cppm.

+ Here is the caller graph for this function:

◆ poll_events()

void cydui::window_events::poll_events ( fabric::async::async_bus_t * app_bus,
window_map * busses )
export

Definition at line 325 of file window_events.cppm.

+ Here is the call graph for this function:

◆ task()

void cydui::window_events::task ( fabric::async::async_bus_t * app_bus,
window_map * busses )

Definition at line 300 of file window_events.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ accs

std::unordered_set<std::size_t> cydui::window_events::accs {}

Definition at line 33 of file window_events.cppm.

◆ [struct]

struct { ... } cydui::window_events::motion_accumulator

◆ [struct]

struct { ... } cydui::window_events::redraw_accumulator

◆ [struct]

struct { ... } cydui::window_events::resize_accumulator

◆ running

std::atomic_flag cydui::window_events::running {}

Definition at line 28 of file window_events.cppm.

◆ thread_ptr

std::unique_ptr<std::thread> cydui::window_events::thread_ptr {nullptr}

Definition at line 27 of file window_events.cppm.