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

Method GetProperty

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

Source from the content-addressed store, hash-verified

42}
43
44HRESULT CompositeEffect::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_COMPOSITE_PROP_MODE:
54 *value = wf::PropertyValue::CreateUInt32((UINT32)Mode).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 CompositeEffect::GetSource(UINT index, awge::IGraphicsEffectSource** source) noexcept try
69{

Callers

nothing calls this directly

Calls 1

detachMethod · 0.80

Tested by

no test coverage detected