gi-gtk-declarative-0.1.0: Declarative GTK+ programming in Haskell

Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Declarative.CSS

Description

Helpers for modifying CSS classes in StyleContext objects.

Synopsis

Documentation

type ClassSet = HashSet Text Source #

A set of CSS classes.

addClasses Source #

Arguments

:: IsWidget w 
=> w

The widget to add classes to.

-> ClassSet

New classes to add.

-> IO () 

Add the classes to the widget's style context.

replaceClasses Source #

Arguments

:: IsWidget w 
=> w

The widget to replace classes in.

-> ClassSet

Old classes to replace.

-> ClassSet

New classes to replace with.

-> IO () 

Replace all classes in old with the ones in old in the widget's style context.