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

Method GetProperty

ExplorerTAP/effects/FloodEffect.cpp:44–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44HRESULT FloodEffect::GetProperty(UINT index, ABI::Windows::Foundation::IPropertyValue** value) noexcept try
45{
46 if (value == nullptr) [[unlikely]]
47 {
48 return E_INVALIDARG;
49 }
50
51 switch (index)
52 {
53 case D2D1_FLOOD_PROP_COLOR:
54 *value = wf::PropertyValue::CreateSingleArray({ Color.x, Color.y, Color.z, Color.w }).as<ABI::Windows::Foundation::IPropertyValue>().detach();
55 break;
56
57 default:
58 return E_BOUNDS;
59 }
60
61 return S_OK;
62}
63catch (...)
64{
65 return winrt::to_hresult();
66}
67
68HRESULT FloodEffect::GetSource(UINT, awge::IGraphicsEffectSource** source) noexcept
69{

Callers

nothing calls this directly

Calls 1

detachMethod · 0.80

Tested by

no test coverage detected