Sparkle 0.0.1
Loading...
Searching...
No Matches
spk::PaintEvent Struct Reference

Event emitted when a drawable region needs repainting. More...

#include <spk_paint_event.hpp>

Inheritance diagram for spk::PaintEvent:
Inheritance graph
Collaboration diagram for spk::PaintEvent:
Collaboration graph

Static Public Member Functions

static PaintEvent create ()
 Builds a paint event with a fresh identifier.

Additional Inherited Members

Public Attributes inherited from spk::IEvent
bool isConsumed = false
 Indicates whether the event has been handled.
Timestamp timestamp = spk::TimeUtils::getTime()
 Timestamp when the event was created.

Detailed Description

Event emitted when a drawable region needs repainting.

void onPaint(spk::PaintEvent &event)
{
redraw();
}
Event emitted when a drawable region needs repainting.
Definition spk_paint_event.hpp:19

Member Function Documentation

◆ create()

PaintEvent spk::PaintEvent::create ( )
static

Builds a paint event with a fresh identifier.

Returns
Newly created paint event instance.

The documentation for this struct was generated from the following files:
  • includes/structure/system/event/spk_paint_event.hpp
  • srcs/structure/system/event/spk_paint_event.cpp