MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetNamedPropertyMapping

Method GetNamedPropertyMapping

ExplorerTAP/effects/FloodEffect.cpp:14–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14HRESULT FloodEffect::GetNamedPropertyMapping(LPCWSTR name, UINT* index, awge::GRAPHICS_EFFECT_PROPERTY_MAPPING* mapping) noexcept
15{
16 if (index == nullptr || mapping == nullptr) [[unlikely]]
17 {
18 return E_INVALIDARG;
19 }
20
21 const std::wstring_view nameView(name);
22 if (nameView == L"Color")
23 {
24 *index = D2D1_FLOOD_PROP_COLOR;
25 *mapping = awge::GRAPHICS_EFFECT_PROPERTY_MAPPING_DIRECT;
26
27 return S_OK;
28 }
29
30 return E_INVALIDARG;
31}
32
33HRESULT FloodEffect::GetPropertyCount(UINT* count) noexcept
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected