| #[doc = "Required features: `\"UI_ViewManagement\"`"] |
| #[cfg(feature = "UI_ViewManagement")] |
| pub trait ILauncherViewOptions_Impl: Sized { |
| fn DesiredRemainingView(&self) -> ::windows_core::Result<super::UI::ViewManagement::ViewSizePreference>; |
| fn SetDesiredRemainingView(&self, value: super::UI::ViewManagement::ViewSizePreference) -> ::windows_core::Result<()>; |
| } |
| #[cfg(feature = "UI_ViewManagement")] |
| impl ::windows_core::RuntimeName for ILauncherViewOptions { |
| const NAME: &'static str = "Windows.System.ILauncherViewOptions"; |
| } |
| #[cfg(feature = "UI_ViewManagement")] |
| impl ILauncherViewOptions_Vtbl { |
| pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: ILauncherViewOptions_Impl, const OFFSET: isize>() -> ILauncherViewOptions_Vtbl { |
| unsafe extern "system" fn DesiredRemainingView<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: ILauncherViewOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::UI::ViewManagement::ViewSizePreference) -> ::windows_core::HRESULT { |
| let this = (this as *const *const ()).offset(OFFSET) as *const Identity; |
| let this = (*this).get_impl(); |
| match this.DesiredRemainingView() { |
| ::core::result::Result::Ok(ok__) => { |
| ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); |
| ::windows_core::HRESULT(0) |
| } |
| ::core::result::Result::Err(err) => err.into(), |
| } |
| } |
| unsafe extern "system" fn SetDesiredRemainingView<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: ILauncherViewOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: super::UI::ViewManagement::ViewSizePreference) -> ::windows_core::HRESULT { |
| let this = (this as *const *const ()).offset(OFFSET) as *const Identity; |
| let this = (*this).get_impl(); |
| this.SetDesiredRemainingView(value).into() |
| } |
| Self { |
| base__: ::windows_core::IInspectable_Vtbl::new::<Identity, ILauncherViewOptions, OFFSET>(), |
| DesiredRemainingView: DesiredRemainingView::<Identity, Impl, OFFSET>, |
| SetDesiredRemainingView: SetDesiredRemainingView::<Identity, Impl, OFFSET>, |
| } |
| } |
| pub unsafe fn matches(iid: *const ::windows_core::GUID) -> bool { |
| *iid == <ILauncherViewOptions as ::windows_core::ComInterface>::IID |
| } |
| } |