Sparkle 0.0.1
Loading...
Searching...
No Matches
spk::Module::UpdateModule Class Referencefinal

Forwards update ticks to the bound widget. More...

#include <spk_update_module.hpp>

Collaboration diagram for spk::Module::UpdateModule:
Collaboration graph

Public Member Functions

void setWidget (spk::Widget *p_widget)
 Associates the module with a widget.
void update (spk::UpdateEvent p_event)
 Dispatches an update event to the widget if present.

Detailed Description

Forwards update ticks to the bound widget.

See also
PaintModule

Member Function Documentation

◆ setWidget()

void spk::Module::UpdateModule::setWidget ( spk::Widget * p_widget)

Associates the module with a widget.

Parameters
p_widgetWidget receiving update events; may be null to detach.

◆ update()

void spk::Module::UpdateModule::update ( spk::UpdateEvent p_event)

Dispatches an update event to the widget if present.

Parameters
p_eventUpdate event containing timing information.

The documentation for this class was generated from the following files:
  • includes/structure/application/module/spk_update_module.hpp
  • srcs/structure/application/module/spk_update_module.cpp