Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::StyleTarget Struct Reference

Owned subject metadata, supplied explicitly for built-in or custom widget types. More...

#include <style.hpp>

Public Member Functions

 ~StyleTarget ()=default
 Destroy owned values. Deliberately suppress implicit noexcept moves: checked MSVC container moves can allocate; copy-based transfers allow allocation failure to propagate.

Public Attributes

std::string type {""}
 Case-sensitive type name, for example Button or Table.
std::string id {""}
 Optional case-sensitive application identity, independent of NodeId.
std::vector< std::string > classes
 Case-sensitive class names; all selector classes must match.
bool control {false}
 Also match Control selectors; explicit targets opt in independently of their type name.
std::vector< std::string > baseTypes
 Nearest-base-first owning names, at most MAX_STYLE_BASE_TYPES; no empty, wildcard, duplicate or self names.

Detailed Description

Owned subject metadata, supplied explicitly for built-in or custom widget types.

Member Data Documentation

◆ baseTypes

std::vector<std::string> portals::StyleTarget::baseTypes
Initial value:
= std::vector<std::string>(
0)

Nearest-base-first owning names, at most MAX_STYLE_BASE_TYPES; no empty, wildcard, duplicate or self names.

◆ classes

std::vector<std::string> portals::StyleTarget::classes
Initial value:
=
std::vector<std::string>(0)

Case-sensitive class names; all selector classes must match.


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