The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Public Attributes | List of all members
gui2::timer Struct Reference

Public Member Functions

 timer ()
 

Public Attributes

SDL_TimerID sdl_id
 
uint32_t interval
 
std::function< void(std::size_t id)> callback
 

Detailed Description

Definition at line 28 of file timer.cpp.

Constructor & Destructor Documentation

◆ timer()

gui2::timer::timer ( )
inline

Definition at line 30 of file timer.cpp.

Referenced by gui2::add_timer().

Member Data Documentation

◆ callback

std::function<void(std::size_t id)> gui2::timer::callback

Definition at line 36 of file timer.cpp.

Referenced by gui2::add_timer(), and gui2::execute_timer().

◆ interval

uint32_t gui2::timer::interval

Definition at line 35 of file timer.cpp.

Referenced by gui2::add_timer().

◆ sdl_id

SDL_TimerID gui2::timer::sdl_id

Definition at line 34 of file timer.cpp.

Referenced by gui2::add_timer().


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