Lumiera  0.pre.03
»edit your freedom«
flash-deco.hpp File Reference

Go to the source code of this file.

Description

Decorator to add the ability to display a visual flash action to a GTK widget.

The protocol for operating UI elements connected to the UI-Bus includes a message to make the receiving widget flash for a short time, to mandate the user's attention. The visual change itself is effected by adding a CSS class, while adding a timeout callback to revert to normal display after a short timespan. In itself, this modification sequence is entirely generic, and can thus be added by decorating the widget to affect; moreover, adding such a callback need to be done properly, to avoid a crash in case the widget is destroyed during the timeout period.

See also
UI-Element protocol
usage example

Definition in file flash-deco.hpp.

Classes

class  FlashDeco< WIT >
 Decorator for a Gtk::Widget to add a visual flash action. More...
 

Namespaces

 stage
 Lumiera GTK UI implementation root.
 
 stage::model
 The Lumiera GTK-GUI uses a thin proxy layer data model on top of the actual "high-level-model", which lives in the Steam-Layer below.