ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::FilterRegistry Class Reference

Per-context map from CSS filter name to FilterDef. More...

#include <FilterRegistry.hpp>

Public Member Functions

 FilterRegistry ()
 Construct the registry and populate builtin filters.
void add (FilterDef def)
 Register or replace a filter definition.
void addCustom (std::string name, FilterCustomFn fn)
 Register a custom (shader-less) filter.
const FilterDef * find (const std::string &name) const
 Look up a filter by name; returns nullptr if not found.
void registerBuiltins ()
 Register the builtin filters (blur, drop-shadow) if absent.
void clear ()
 Remove all registered filters, including builtins.
void reset ()
 Clear all filters and re-register only the builtins.

Detailed Description

Per-context map from CSS filter name to FilterDef.

Owned by UIContext::filters. Default construction automatically registers the builtin filters (blur, drop-shadow).


The documentation for this class was generated from the following file: