Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internal helpers for applying attributes and signal handlers to GTK+ widgets.
Synopsis
- type CollectedProperties widget = HashMap Text (CollectedProperty widget)
- data Collected widget event = Collected {}
- collectAttributes :: Vector (Attribute widget event) -> Collected widget event
- constructProperties :: Collected widget event -> [AttrOp widget AttrConstruct]
- updateProperties :: widget -> CollectedProperties widget -> CollectedProperties widget -> IO ()
- updateClasses :: StyleContext -> ClassSet -> ClassSet -> IO ()
Documentation
type CollectedProperties widget = HashMap Text (CollectedProperty widget) Source #
A collected map of key/value pairs, where the type-level property
names are represented as Text
values. This is used to calculate
differences in old and new property sets when patching.
data Collected widget event Source #
All the collected properties and classes for a widget. These are based
on the Attribute
list in the declarative markup, but collected separately
into more efficient data structures, optimized for patching.
collectAttributes :: Vector (Attribute widget event) -> Collected widget event Source #
Collect declarative markup attributes to the patching-optimized
Collected
data structure.
constructProperties :: Collected widget event -> [AttrOp widget AttrConstruct] Source #
Create a list of GTK construct operations based on collected properties, used when creating new widgets.
updateProperties :: widget -> CollectedProperties widget -> CollectedProperties widget -> IO () Source #
Update the changed properties of a widget, based on the old and new collected properties.