Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorLayout::PendingLayoutSourceProvider Struct Reference

One pending layout-source-provider registration. More...

#include <phosphor-layout-api/include/PhosphorLayoutApi/LayoutSourceProviderRegistry.h>

Public Attributes

QString name
 
int priority = 100
 
std::function< std::unique_ptr< ILayoutSourceFactory >(const FactoryContext &)> builder
 

Detailed Description

One pending layout-source-provider registration.

The builder lambda runs at LayoutSourceBundle::buildFromRegistered time, with the composition root's FactoryContext. Returning nullptr means "this engine isn't applicable to this composition root" (e.g. composition root didn't supply a registry the engine needs) — the bundle silently skips that provider.

Member Data Documentation

◆ builder

std::function<std::unique_ptr<ILayoutSourceFactory>(const FactoryContext&)> PhosphorLayout::PendingLayoutSourceProvider::builder

◆ name

QString PhosphorLayout::PendingLayoutSourceProvider::name

◆ priority

int PhosphorLayout::PendingLayoutSourceProvider::priority = 100

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