blob: a66c1f89a88fc6bc4d071b4e2e1007ebb50e59c7 [file] [log] [blame]
#[doc(hidden)]
#[repr(transparent)]
pub struct ICompositionDebugHeatMaps(::windows_core::IUnknown);
unsafe impl ::windows_core::Interface for ICompositionDebugHeatMaps {
type Vtable = ICompositionDebugHeatMaps_Vtbl;
}
impl ::core::clone::Clone for ICompositionDebugHeatMaps {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
unsafe impl ::windows_core::ComInterface for ICompositionDebugHeatMaps {
const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0xe49c90ac_2ff3_5805_718c_b725ee07650f);
}
#[repr(C)]
#[doc(hidden)]
pub struct ICompositionDebugHeatMaps_Vtbl {
pub base__: ::windows_core::IInspectable_Vtbl,
pub Hide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT,
pub ShowMemoryUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT,
pub ShowOverdraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void, contentkinds: CompositionDebugOverdrawContentKinds) -> ::windows_core::HRESULT,
pub ShowRedraw: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subtree: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT,
}
#[doc(hidden)]
#[repr(transparent)]
pub struct ICompositionDebugSettings(::windows_core::IUnknown);
unsafe impl ::windows_core::Interface for ICompositionDebugSettings {
type Vtable = ICompositionDebugSettings_Vtbl;
}
impl ::core::clone::Clone for ICompositionDebugSettings {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
unsafe impl ::windows_core::ComInterface for ICompositionDebugSettings {
const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x2831987e_1d82_4d38_b7b7_efd11c7bc3d1);
}
#[repr(C)]
#[doc(hidden)]
pub struct ICompositionDebugSettings_Vtbl {
pub base__: ::windows_core::IInspectable_Vtbl,
pub HeatMaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT,
}
#[doc(hidden)]
#[repr(transparent)]
pub struct ICompositionDebugSettingsStatics(::windows_core::IUnknown);
unsafe impl ::windows_core::Interface for ICompositionDebugSettingsStatics {
type Vtable = ICompositionDebugSettingsStatics_Vtbl;
}
impl ::core::clone::Clone for ICompositionDebugSettingsStatics {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
unsafe impl ::windows_core::ComInterface for ICompositionDebugSettingsStatics {
const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x64ec1f1e_6af8_4af8_b814_c870fd5a9505);
}
#[repr(C)]
#[doc(hidden)]
pub struct ICompositionDebugSettingsStatics_Vtbl {
pub base__: ::windows_core::IInspectable_Vtbl,
pub TryGetSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT,
}
#[doc = "*Required features: `\"UI_Composition_Diagnostics\"`*"]
#[repr(transparent)]
pub struct CompositionDebugHeatMaps(::windows_core::IUnknown);
impl CompositionDebugHeatMaps {
pub fn Hide<P0>(&self, subtree: P0) -> ::windows_core::Result<()>
where
P0: ::windows_core::TryIntoParam<super::Visual>,
{
let this = self;
unsafe { (::windows_core::Interface::vtable(this).Hide)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() }
}
pub fn ShowMemoryUsage<P0>(&self, subtree: P0) -> ::windows_core::Result<()>
where
P0: ::windows_core::TryIntoParam<super::Visual>,
{
let this = self;
unsafe { (::windows_core::Interface::vtable(this).ShowMemoryUsage)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() }
}
pub fn ShowOverdraw<P0>(&self, subtree: P0, contentkinds: CompositionDebugOverdrawContentKinds) -> ::windows_core::Result<()>
where
P0: ::windows_core::TryIntoParam<super::Visual>,
{
let this = self;
unsafe { (::windows_core::Interface::vtable(this).ShowOverdraw)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi(), contentkinds).ok() }
}
pub fn ShowRedraw<P0>(&self, subtree: P0) -> ::windows_core::Result<()>
where
P0: ::windows_core::TryIntoParam<super::Visual>,
{
let this = self;
unsafe { (::windows_core::Interface::vtable(this).ShowRedraw)(::windows_core::Interface::as_raw(this), subtree.try_into_param()?.abi()).ok() }
}
}
impl ::core::cmp::PartialEq for CompositionDebugHeatMaps {
fn eq(&self, other: &Self) -> bool {
self.0 == other.0
}
}
impl ::core::cmp::Eq for CompositionDebugHeatMaps {}
impl ::core::fmt::Debug for CompositionDebugHeatMaps {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("CompositionDebugHeatMaps").field(&self.0).finish()
}
}
impl ::windows_core::RuntimeType for CompositionDebugHeatMaps {
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.Diagnostics.CompositionDebugHeatMaps;{e49c90ac-2ff3-5805-718c-b725ee07650f})");
}
impl ::core::clone::Clone for CompositionDebugHeatMaps {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
unsafe impl ::windows_core::Interface for CompositionDebugHeatMaps {
type Vtable = ICompositionDebugHeatMaps_Vtbl;
}
unsafe impl ::windows_core::ComInterface for CompositionDebugHeatMaps {
const IID: ::windows_core::GUID = <ICompositionDebugHeatMaps as ::windows_core::ComInterface>::IID;
}
impl ::windows_core::RuntimeName for CompositionDebugHeatMaps {
const NAME: &'static str = "Windows.UI.Composition.Diagnostics.CompositionDebugHeatMaps";
}
::windows_core::imp::interface_hierarchy!(CompositionDebugHeatMaps, ::windows_core::IUnknown, ::windows_core::IInspectable);
unsafe impl ::core::marker::Send for CompositionDebugHeatMaps {}
unsafe impl ::core::marker::Sync for CompositionDebugHeatMaps {}
#[doc = "*Required features: `\"UI_Composition_Diagnostics\"`*"]
#[repr(transparent)]
pub struct CompositionDebugSettings(::windows_core::IUnknown);
impl CompositionDebugSettings {
pub fn HeatMaps(&self) -> ::windows_core::Result<CompositionDebugHeatMaps> {
let this = self;
unsafe {
let mut result__ = ::std::mem::zeroed();
(::windows_core::Interface::vtable(this).HeatMaps)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__)
}
}
pub fn TryGetSettings<P0>(compositor: P0) -> ::windows_core::Result<CompositionDebugSettings>
where
P0: ::windows_core::IntoParam<super::Compositor>,
{
Self::ICompositionDebugSettingsStatics(|this| unsafe {
let mut result__ = ::std::mem::zeroed();
(::windows_core::Interface::vtable(this).TryGetSettings)(::windows_core::Interface::as_raw(this), compositor.into_param().abi(), &mut result__).from_abi(result__)
})
}
#[doc(hidden)]
pub fn ICompositionDebugSettingsStatics<R, F: FnOnce(&ICompositionDebugSettingsStatics) -> ::windows_core::Result<R>>(callback: F) -> ::windows_core::Result<R> {
static SHARED: ::windows_core::imp::FactoryCache<CompositionDebugSettings, ICompositionDebugSettingsStatics> = ::windows_core::imp::FactoryCache::new();
SHARED.call(callback)
}
}
impl ::core::cmp::PartialEq for CompositionDebugSettings {
fn eq(&self, other: &Self) -> bool {
self.0 == other.0
}
}
impl ::core::cmp::Eq for CompositionDebugSettings {}
impl ::core::fmt::Debug for CompositionDebugSettings {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("CompositionDebugSettings").field(&self.0).finish()
}
}
impl ::windows_core::RuntimeType for CompositionDebugSettings {
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"rc(Windows.UI.Composition.Diagnostics.CompositionDebugSettings;{2831987e-1d82-4d38-b7b7-efd11c7bc3d1})");
}
impl ::core::clone::Clone for CompositionDebugSettings {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
unsafe impl ::windows_core::Interface for CompositionDebugSettings {
type Vtable = ICompositionDebugSettings_Vtbl;
}
unsafe impl ::windows_core::ComInterface for CompositionDebugSettings {
const IID: ::windows_core::GUID = <ICompositionDebugSettings as ::windows_core::ComInterface>::IID;
}
impl ::windows_core::RuntimeName for CompositionDebugSettings {
const NAME: &'static str = "Windows.UI.Composition.Diagnostics.CompositionDebugSettings";
}
::windows_core::imp::interface_hierarchy!(CompositionDebugSettings, ::windows_core::IUnknown, ::windows_core::IInspectable);
unsafe impl ::core::marker::Send for CompositionDebugSettings {}
unsafe impl ::core::marker::Sync for CompositionDebugSettings {}
#[doc = "*Required features: `\"UI_Composition_Diagnostics\"`*"]
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
pub struct CompositionDebugOverdrawContentKinds(pub u32);
impl CompositionDebugOverdrawContentKinds {
pub const None: Self = Self(0u32);
pub const OffscreenRendered: Self = Self(1u32);
pub const Colors: Self = Self(2u32);
pub const Effects: Self = Self(4u32);
pub const Shadows: Self = Self(8u32);
pub const Lights: Self = Self(16u32);
pub const Surfaces: Self = Self(32u32);
pub const SwapChains: Self = Self(64u32);
pub const All: Self = Self(4294967295u32);
}
impl ::core::marker::Copy for CompositionDebugOverdrawContentKinds {}
impl ::core::clone::Clone for CompositionDebugOverdrawContentKinds {
fn clone(&self) -> Self {
*self
}
}
impl ::core::default::Default for CompositionDebugOverdrawContentKinds {
fn default() -> Self {
Self(0)
}
}
impl ::windows_core::TypeKind for CompositionDebugOverdrawContentKinds {
type TypeKind = ::windows_core::CopyType;
}
impl ::core::fmt::Debug for CompositionDebugOverdrawContentKinds {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("CompositionDebugOverdrawContentKinds").field(&self.0).finish()
}
}
impl CompositionDebugOverdrawContentKinds {
pub const fn contains(&self, other: Self) -> bool {
self.0 & other.0 == other.0
}
}
impl ::core::ops::BitOr for CompositionDebugOverdrawContentKinds {
type Output = Self;
fn bitor(self, other: Self) -> Self {
Self(self.0 | other.0)
}
}
impl ::core::ops::BitAnd for CompositionDebugOverdrawContentKinds {
type Output = Self;
fn bitand(self, other: Self) -> Self {
Self(self.0 & other.0)
}
}
impl ::core::ops::BitOrAssign for CompositionDebugOverdrawContentKinds {
fn bitor_assign(&mut self, other: Self) {
self.0.bitor_assign(other.0)
}
}
impl ::core::ops::BitAndAssign for CompositionDebugOverdrawContentKinds {
fn bitand_assign(&mut self, other: Self) {
self.0.bitand_assign(other.0)
}
}
impl ::core::ops::Not for CompositionDebugOverdrawContentKinds {
type Output = Self;
fn not(self) -> Self {
Self(self.0.not())
}
}
impl ::windows_core::RuntimeType for CompositionDebugOverdrawContentKinds {
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.Diagnostics.CompositionDebugOverdrawContentKinds;u4)");
}