1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[repr(transparent)] 3 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4 pub struct Block(::windows::runtime::IInspectable); 5 impl Block { TextAlignment(&self) -> ::windows::runtime::Result<super::TextAlignment>6 pub fn TextAlignment(&self) -> ::windows::runtime::Result<super::TextAlignment> { 7 let this = self; 8 unsafe { 9 let mut result__: super::TextAlignment = ::std::mem::zeroed(); 10 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::TextAlignment>(result__) 11 } 12 } SetTextAlignment(&self, value: super::TextAlignment) -> ::windows::runtime::Result<()>13 pub fn SetTextAlignment(&self, value: super::TextAlignment) -> ::windows::runtime::Result<()> { 14 let this = self; 15 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 16 } LineHeight(&self) -> ::windows::runtime::Result<f64>17 pub fn LineHeight(&self) -> ::windows::runtime::Result<f64> { 18 let this = self; 19 unsafe { 20 let mut result__: f64 = ::std::mem::zeroed(); 21 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 22 } 23 } SetLineHeight(&self, value: f64) -> ::windows::runtime::Result<()>24 pub fn SetLineHeight(&self, value: f64) -> ::windows::runtime::Result<()> { 25 let this = self; 26 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 27 } LineStackingStrategy(&self) -> ::windows::runtime::Result<super::LineStackingStrategy>28 pub fn LineStackingStrategy(&self) -> ::windows::runtime::Result<super::LineStackingStrategy> { 29 let this = self; 30 unsafe { 31 let mut result__: super::LineStackingStrategy = ::std::mem::zeroed(); 32 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::LineStackingStrategy>(result__) 33 } 34 } SetLineStackingStrategy(&self, value: super::LineStackingStrategy) -> ::windows::runtime::Result<()>35 pub fn SetLineStackingStrategy(&self, value: super::LineStackingStrategy) -> ::windows::runtime::Result<()> { 36 let this = self; 37 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 38 } Margin(&self) -> ::windows::runtime::Result<super::Thickness>39 pub fn Margin(&self) -> ::windows::runtime::Result<super::Thickness> { 40 let this = self; 41 unsafe { 42 let mut result__: super::Thickness = ::std::mem::zeroed(); 43 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Thickness>(result__) 44 } 45 } SetMargin<'a, Param0: ::windows::runtime::IntoParam<'a, super::Thickness>>(&self, value: Param0) -> ::windows::runtime::Result<()>46 pub fn SetMargin<'a, Param0: ::windows::runtime::IntoParam<'a, super::Thickness>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 47 let this = self; 48 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 49 } TextAlignmentProperty() -> ::windows::runtime::Result<super::DependencyProperty>50 pub fn TextAlignmentProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 51 Self::IBlockStatics(|this| unsafe { 52 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 53 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 54 }) 55 } LineHeightProperty() -> ::windows::runtime::Result<super::DependencyProperty>56 pub fn LineHeightProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 57 Self::IBlockStatics(|this| unsafe { 58 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 59 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 60 }) 61 } LineStackingStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty>62 pub fn LineStackingStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 63 Self::IBlockStatics(|this| unsafe { 64 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 65 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 66 }) 67 } MarginProperty() -> ::windows::runtime::Result<super::DependencyProperty>68 pub fn MarginProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 69 Self::IBlockStatics(|this| unsafe { 70 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 71 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 72 }) 73 } HorizontalTextAlignment(&self) -> ::windows::runtime::Result<super::TextAlignment>74 pub fn HorizontalTextAlignment(&self) -> ::windows::runtime::Result<super::TextAlignment> { 75 let this = &::windows::runtime::Interface::cast::<IBlock2>(self)?; 76 unsafe { 77 let mut result__: super::TextAlignment = ::std::mem::zeroed(); 78 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::TextAlignment>(result__) 79 } 80 } SetHorizontalTextAlignment(&self, value: super::TextAlignment) -> ::windows::runtime::Result<()>81 pub fn SetHorizontalTextAlignment(&self, value: super::TextAlignment) -> ::windows::runtime::Result<()> { 82 let this = &::windows::runtime::Interface::cast::<IBlock2>(self)?; 83 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 84 } HorizontalTextAlignmentProperty() -> ::windows::runtime::Result<super::DependencyProperty>85 pub fn HorizontalTextAlignmentProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 86 Self::IBlockStatics2(|this| unsafe { 87 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 88 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 89 }) 90 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>91 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 92 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 93 unsafe { 94 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 95 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 96 } 97 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>98 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 99 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 100 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 101 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>102 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 103 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 104 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 105 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>106 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 107 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 108 unsafe { 109 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 110 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 111 } 112 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>113 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 114 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 115 unsafe { 116 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 117 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 118 } 119 } 120 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>121 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 122 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 123 unsafe { 124 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 125 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 126 } 127 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>128 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 129 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 130 unsafe { 131 let mut result__: i64 = ::std::mem::zeroed(); 132 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 133 } 134 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>135 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 136 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 137 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 138 } Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>139 pub fn Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 140 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 141 unsafe { 142 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 143 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 144 } 145 } FontSize(&self) -> ::windows::runtime::Result<f64>146 pub fn FontSize(&self) -> ::windows::runtime::Result<f64> { 147 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 148 unsafe { 149 let mut result__: f64 = ::std::mem::zeroed(); 150 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 151 } 152 } SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()>153 pub fn SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()> { 154 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 155 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 156 } 157 #[cfg(feature = "UI_Xaml_Media")] FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily>158 pub fn FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily> { 159 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 160 unsafe { 161 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 162 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::FontFamily>(result__) 163 } 164 } 165 #[cfg(feature = "UI_Xaml_Media")] SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()>166 pub fn SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 167 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 168 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 169 } 170 #[cfg(feature = "UI_Text")] FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight>171 pub fn FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight> { 172 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 173 unsafe { 174 let mut result__: super::super::Text::FontWeight = ::std::mem::zeroed(); 175 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontWeight>(result__) 176 } 177 } 178 #[cfg(feature = "UI_Text")] SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()>179 pub fn SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 180 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 181 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 182 } 183 #[cfg(feature = "UI_Text")] FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle>184 pub fn FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle> { 185 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 186 unsafe { 187 let mut result__: super::super::Text::FontStyle = ::std::mem::zeroed(); 188 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStyle>(result__) 189 } 190 } 191 #[cfg(feature = "UI_Text")] SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()>192 pub fn SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()> { 193 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 194 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value).ok() } 195 } 196 #[cfg(feature = "UI_Text")] FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch>197 pub fn FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch> { 198 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 199 unsafe { 200 let mut result__: super::super::Text::FontStretch = ::std::mem::zeroed(); 201 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStretch>(result__) 202 } 203 } 204 #[cfg(feature = "UI_Text")] SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()>205 pub fn SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()> { 206 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 207 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 208 } CharacterSpacing(&self) -> ::windows::runtime::Result<i32>209 pub fn CharacterSpacing(&self) -> ::windows::runtime::Result<i32> { 210 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 211 unsafe { 212 let mut result__: i32 = ::std::mem::zeroed(); 213 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 214 } 215 } SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()>216 pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()> { 217 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 218 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), value).ok() } 219 } 220 #[cfg(feature = "UI_Xaml_Media")] Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush>221 pub fn Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush> { 222 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 223 unsafe { 224 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 225 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::Brush>(result__) 226 } 227 } 228 #[cfg(feature = "UI_Xaml_Media")] SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()>229 pub fn SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 230 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 231 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 232 } Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>233 pub fn Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 234 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 235 unsafe { 236 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 237 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 238 } 239 } SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>240 pub fn SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 241 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 242 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 243 } ContentStart(&self) -> ::windows::runtime::Result<TextPointer>244 pub fn ContentStart(&self) -> ::windows::runtime::Result<TextPointer> { 245 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 246 unsafe { 247 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 248 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 249 } 250 } ContentEnd(&self) -> ::windows::runtime::Result<TextPointer>251 pub fn ContentEnd(&self) -> ::windows::runtime::Result<TextPointer> { 252 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 253 unsafe { 254 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 255 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 256 } 257 } ElementStart(&self) -> ::windows::runtime::Result<TextPointer>258 pub fn ElementStart(&self) -> ::windows::runtime::Result<TextPointer> { 259 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 260 unsafe { 261 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 262 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 263 } 264 } ElementEnd(&self) -> ::windows::runtime::Result<TextPointer>265 pub fn ElementEnd(&self) -> ::windows::runtime::Result<TextPointer> { 266 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 267 unsafe { 268 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 269 (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 270 } 271 } FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>272 pub fn FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 273 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 274 unsafe { 275 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 276 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 277 } 278 } IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool>279 pub fn IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool> { 280 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 281 unsafe { 282 let mut result__: bool = ::std::mem::zeroed(); 283 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 284 } 285 } SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()>286 pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 287 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 288 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 289 } OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()>290 pub fn OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()> { 291 let this = &::windows::runtime::Interface::cast::<ITextElementOverrides>(self)?; 292 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 293 } AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool>294 pub fn AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool> { 295 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 296 unsafe { 297 let mut result__: bool = ::std::mem::zeroed(); 298 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 299 } 300 } SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()>301 pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()> { 302 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 303 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 304 } AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>305 pub fn AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 306 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 307 unsafe { 308 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 309 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 310 } 311 } SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>312 pub fn SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 313 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 314 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 315 } ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool>316 pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool> { 317 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 318 unsafe { 319 let mut result__: bool = ::std::mem::zeroed(); 320 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 321 } 322 } SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()>323 pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()> { 324 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 325 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 326 } 327 #[cfg(feature = "UI_Text")] TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations>328 pub fn TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations> { 329 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 330 unsafe { 331 let mut result__: super::super::Text::TextDecorations = ::std::mem::zeroed(); 332 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::TextDecorations>(result__) 333 } 334 } 335 #[cfg(feature = "UI_Text")] SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()>336 pub fn SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()> { 337 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 338 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 339 } IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool>340 pub fn IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool> { 341 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 342 unsafe { 343 let mut result__: bool = ::std::mem::zeroed(); 344 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 345 } 346 } SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()>347 pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()> { 348 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 349 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 350 } AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject>351 pub fn AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject> { 352 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 353 unsafe { 354 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 355 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 356 } 357 } SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>358 pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 359 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 360 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 361 } 362 #[cfg(feature = "UI_Xaml_Input")] KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode>363 pub fn KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode> { 364 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 365 unsafe { 366 let mut result__: super::Input::KeyTipPlacementMode = ::std::mem::zeroed(); 367 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::KeyTipPlacementMode>(result__) 368 } 369 } 370 #[cfg(feature = "UI_Xaml_Input")] SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()>371 pub fn SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()> { 372 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 373 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 374 } KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64>375 pub fn KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64> { 376 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 377 unsafe { 378 let mut result__: f64 = ::std::mem::zeroed(); 379 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 380 } 381 } SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()>382 pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 383 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 384 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 385 } KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64>386 pub fn KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64> { 387 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 388 unsafe { 389 let mut result__: f64 = ::std::mem::zeroed(); 390 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 391 } 392 } SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()>393 pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 394 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 395 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 396 } 397 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>398 pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 399 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 400 unsafe { 401 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 402 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 403 } 404 } 405 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>406 pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 407 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 408 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 409 } 410 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>411 pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 412 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 413 unsafe { 414 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 415 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 416 } 417 } 418 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>419 pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 420 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 421 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 422 } 423 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>424 pub fn AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 425 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 426 unsafe { 427 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 428 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 429 } 430 } 431 #[cfg(feature = "Foundation")] RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>432 pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 433 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 434 unsafe { (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 435 } XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot>436 pub fn XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot> { 437 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 438 unsafe { 439 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 440 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::XamlRoot>(result__) 441 } 442 } SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()>443 pub fn SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 444 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 445 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 446 } IBlockStatics<R, F: FnOnce(&IBlockStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>447 pub fn IBlockStatics<R, F: FnOnce(&IBlockStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 448 static mut SHARED: ::windows::runtime::FactoryCache<Block, IBlockStatics> = ::windows::runtime::FactoryCache::new(); 449 unsafe { SHARED.call(callback) } 450 } IBlockStatics2<R, F: FnOnce(&IBlockStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>451 pub fn IBlockStatics2<R, F: FnOnce(&IBlockStatics2) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 452 static mut SHARED: ::windows::runtime::FactoryCache<Block, IBlockStatics2> = ::windows::runtime::FactoryCache::new(); 453 unsafe { SHARED.call(callback) } 454 } 455 } 456 unsafe impl ::windows::runtime::RuntimeType for Block { 457 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.Block;{4bce0016-dd47-4350-8cb0-e171600ac896})"); 458 } 459 unsafe impl ::windows::runtime::Interface for Block { 460 type Vtable = IBlock_abi; 461 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1271791638, 56647, 17232, [140, 176, 225, 113, 96, 10, 200, 150]); 462 } 463 impl ::windows::runtime::RuntimeName for Block { 464 const NAME: &'static str = "Windows.UI.Xaml.Documents.Block"; 465 } 466 impl ::std::convert::From<Block> for ::windows::runtime::IUnknown { from(value: Block) -> Self467 fn from(value: Block) -> Self { 468 unsafe { ::std::mem::transmute(value) } 469 } 470 } 471 impl ::std::convert::From<&Block> for ::windows::runtime::IUnknown { from(value: &Block) -> Self472 fn from(value: &Block) -> Self { 473 ::std::convert::From::from(::std::clone::Clone::clone(value)) 474 } 475 } 476 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for Block { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>477 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 478 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 479 } 480 } 481 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &Block { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>482 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 483 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 484 } 485 } 486 impl ::std::convert::From<Block> for ::windows::runtime::IInspectable { from(value: Block) -> Self487 fn from(value: Block) -> Self { 488 value.0 489 } 490 } 491 impl ::std::convert::From<&Block> for ::windows::runtime::IInspectable { from(value: &Block) -> Self492 fn from(value: &Block) -> Self { 493 value.0.clone() 494 } 495 } 496 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for Block { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>497 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 498 ::windows::runtime::Param::Owned(self.0) 499 } 500 } 501 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a Block { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>502 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 503 ::windows::runtime::Param::Borrowed(&self.0) 504 } 505 } 506 impl ::std::convert::From<Block> for TextElement { from(value: Block) -> Self507 fn from(value: Block) -> Self { 508 ::std::convert::Into::<TextElement>::into(&value) 509 } 510 } 511 impl ::std::convert::From<&Block> for TextElement { from(value: &Block) -> Self512 fn from(value: &Block) -> Self { 513 ::windows::runtime::Interface::cast(value).unwrap() 514 } 515 } 516 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for Block { into_param(self) -> ::windows::runtime::Param<'a, TextElement>517 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 518 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(self)) 519 } 520 } 521 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for &Block { into_param(self) -> ::windows::runtime::Param<'a, TextElement>522 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 523 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(::std::clone::Clone::clone(self))) 524 } 525 } 526 impl ::std::convert::From<Block> for super::DependencyObject { from(value: Block) -> Self527 fn from(value: Block) -> Self { 528 ::std::convert::Into::<super::DependencyObject>::into(&value) 529 } 530 } 531 impl ::std::convert::From<&Block> for super::DependencyObject { from(value: &Block) -> Self532 fn from(value: &Block) -> Self { 533 ::windows::runtime::Interface::cast(value).unwrap() 534 } 535 } 536 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for Block { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>537 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 538 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 539 } 540 } 541 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &Block { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>542 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 543 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 544 } 545 } 546 unsafe impl ::std::marker::Send for Block {} 547 unsafe impl ::std::marker::Sync for Block {} 548 #[cfg(feature = "Foundation_Collections")] 549 #[repr(transparent)] 550 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 551 pub struct BlockCollection(::windows::runtime::IInspectable); 552 #[cfg(feature = "Foundation_Collections")] 553 impl BlockCollection { 554 #[cfg(feature = "Foundation_Collections")] GetAt(&self, index: u32) -> ::windows::runtime::Result<Block>555 pub fn GetAt(&self, index: u32) -> ::windows::runtime::Result<Block> { 556 let this = self; 557 unsafe { 558 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 559 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), index, &mut result__).from_abi::<Block>(result__) 560 } 561 } 562 #[cfg(feature = "Foundation_Collections")] Size(&self) -> ::windows::runtime::Result<u32>563 pub fn Size(&self) -> ::windows::runtime::Result<u32> { 564 let this = self; 565 unsafe { 566 let mut result__: u32 = ::std::mem::zeroed(); 567 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 568 } 569 } 570 #[cfg(feature = "Foundation_Collections")] GetView(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<Block>>571 pub fn GetView(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<Block>> { 572 let this = self; 573 unsafe { 574 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 575 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<Block>>(result__) 576 } 577 } 578 #[cfg(feature = "Foundation_Collections")] IndexOf<'a, Param0: ::windows::runtime::IntoParam<'a, Block>>(&self, value: Param0, index: &mut u32) -> ::windows::runtime::Result<bool>579 pub fn IndexOf<'a, Param0: ::windows::runtime::IntoParam<'a, Block>>(&self, value: Param0, index: &mut u32) -> ::windows::runtime::Result<bool> { 580 let this = self; 581 unsafe { 582 let mut result__: bool = ::std::mem::zeroed(); 583 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi(), index, &mut result__).from_abi::<bool>(result__) 584 } 585 } 586 #[cfg(feature = "Foundation_Collections")] SetAt<'a, Param1: ::windows::runtime::IntoParam<'a, Block>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()>587 pub fn SetAt<'a, Param1: ::windows::runtime::IntoParam<'a, Block>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()> { 588 let this = self; 589 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), index, value.into_param().abi()).ok() } 590 } 591 #[cfg(feature = "Foundation_Collections")] InsertAt<'a, Param1: ::windows::runtime::IntoParam<'a, Block>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()>592 pub fn InsertAt<'a, Param1: ::windows::runtime::IntoParam<'a, Block>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()> { 593 let this = self; 594 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), index, value.into_param().abi()).ok() } 595 } 596 #[cfg(feature = "Foundation_Collections")] RemoveAt(&self, index: u32) -> ::windows::runtime::Result<()>597 pub fn RemoveAt(&self, index: u32) -> ::windows::runtime::Result<()> { 598 let this = self; 599 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), index).ok() } 600 } 601 #[cfg(feature = "Foundation_Collections")] Append<'a, Param0: ::windows::runtime::IntoParam<'a, Block>>(&self, value: Param0) -> ::windows::runtime::Result<()>602 pub fn Append<'a, Param0: ::windows::runtime::IntoParam<'a, Block>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 603 let this = self; 604 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 605 } 606 #[cfg(feature = "Foundation_Collections")] RemoveAtEnd(&self) -> ::windows::runtime::Result<()>607 pub fn RemoveAtEnd(&self) -> ::windows::runtime::Result<()> { 608 let this = self; 609 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this)).ok() } 610 } 611 #[cfg(feature = "Foundation_Collections")] Clear(&self) -> ::windows::runtime::Result<()>612 pub fn Clear(&self) -> ::windows::runtime::Result<()> { 613 let this = self; 614 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this)).ok() } 615 } 616 #[cfg(feature = "Foundation_Collections")] GetMany(&self, startindex: u32, items: &mut [<Block as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<u32>617 pub fn GetMany(&self, startindex: u32, items: &mut [<Block as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<u32> { 618 let this = self; 619 unsafe { 620 let mut result__: u32 = ::std::mem::zeroed(); 621 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), startindex, items.len() as u32, ::std::mem::transmute_copy(&items), &mut result__).from_abi::<u32>(result__) 622 } 623 } 624 #[cfg(feature = "Foundation_Collections")] ReplaceAll(&self, items: &[<Block as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<()>625 pub fn ReplaceAll(&self, items: &[<Block as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<()> { 626 let this = self; 627 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), items.len() as u32, ::std::mem::transmute(items.as_ptr())).ok() } 628 } 629 #[cfg(feature = "Foundation_Collections")] First(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IIterator<Block>>630 pub fn First(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IIterator<Block>> { 631 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IIterable<Block>>(self)?; 632 unsafe { 633 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 634 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IIterator<Block>>(result__) 635 } 636 } 637 } 638 #[cfg(feature = "Foundation_Collections")] 639 unsafe impl ::windows::runtime::RuntimeType for BlockCollection { 640 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.BlockCollection;pinterface({913337e9-11a1-4345-a3a2-4e7f956e222d};rc(Windows.UI.Xaml.Documents.Block;{4bce0016-dd47-4350-8cb0-e171600ac896})))"); 641 } 642 #[cfg(feature = "Foundation_Collections")] 643 unsafe impl ::windows::runtime::Interface for BlockCollection { 644 type Vtable = super::super::super::Foundation::Collections::IVector_abi<Block>; 645 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_signature(<super::super::super::Foundation::Collections::IVector<Block> as ::windows::runtime::RuntimeType>::SIGNATURE); 646 } 647 #[cfg(feature = "Foundation_Collections")] 648 impl ::windows::runtime::RuntimeName for BlockCollection { 649 const NAME: &'static str = "Windows.UI.Xaml.Documents.BlockCollection"; 650 } 651 #[cfg(feature = "Foundation_Collections")] 652 impl ::std::convert::From<BlockCollection> for ::windows::runtime::IUnknown { from(value: BlockCollection) -> Self653 fn from(value: BlockCollection) -> Self { 654 unsafe { ::std::mem::transmute(value) } 655 } 656 } 657 #[cfg(feature = "Foundation_Collections")] 658 impl ::std::convert::From<&BlockCollection> for ::windows::runtime::IUnknown { from(value: &BlockCollection) -> Self659 fn from(value: &BlockCollection) -> Self { 660 ::std::convert::From::from(::std::clone::Clone::clone(value)) 661 } 662 } 663 #[cfg(feature = "Foundation_Collections")] 664 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>665 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 666 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 667 } 668 } 669 #[cfg(feature = "Foundation_Collections")] 670 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>671 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 672 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 673 } 674 } 675 #[cfg(feature = "Foundation_Collections")] 676 impl ::std::convert::From<BlockCollection> for ::windows::runtime::IInspectable { from(value: BlockCollection) -> Self677 fn from(value: BlockCollection) -> Self { 678 value.0 679 } 680 } 681 #[cfg(feature = "Foundation_Collections")] 682 impl ::std::convert::From<&BlockCollection> for ::windows::runtime::IInspectable { from(value: &BlockCollection) -> Self683 fn from(value: &BlockCollection) -> Self { 684 value.0.clone() 685 } 686 } 687 #[cfg(feature = "Foundation_Collections")] 688 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>689 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 690 ::windows::runtime::Param::Owned(self.0) 691 } 692 } 693 #[cfg(feature = "Foundation_Collections")] 694 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>695 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 696 ::windows::runtime::Param::Borrowed(&self.0) 697 } 698 } 699 #[cfg(feature = "Foundation_Collections")] 700 impl ::std::convert::From<BlockCollection> for super::super::super::Foundation::Collections::IVector<Block> { from(value: BlockCollection) -> Self701 fn from(value: BlockCollection) -> Self { 702 unsafe { ::std::mem::transmute(value) } 703 } 704 } 705 #[cfg(feature = "Foundation_Collections")] 706 impl ::std::convert::From<&BlockCollection> for super::super::super::Foundation::Collections::IVector<Block> { from(value: &BlockCollection) -> Self707 fn from(value: &BlockCollection) -> Self { 708 ::std::convert::From::from(::std::clone::Clone::clone(value)) 709 } 710 } 711 #[cfg(feature = "Foundation_Collections")] 712 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVector<Block>> for BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<Block>>713 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<Block>> { 714 ::windows::runtime::Param::Owned(::std::convert::Into::<super::super::super::Foundation::Collections::IVector<Block>>::into(self)) 715 } 716 } 717 #[cfg(feature = "Foundation_Collections")] 718 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVector<Block>> for &BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<Block>>719 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<Block>> { 720 ::windows::runtime::Param::Owned(::std::convert::Into::<super::super::super::Foundation::Collections::IVector<Block>>::into(::std::clone::Clone::clone(self))) 721 } 722 } 723 #[cfg(feature = "Foundation_Collections")] 724 impl ::std::convert::TryFrom<BlockCollection> for super::super::super::Foundation::Collections::IIterable<Block> { 725 type Error = ::windows::runtime::Error; try_from(value: BlockCollection) -> ::windows::runtime::Result<Self>726 fn try_from(value: BlockCollection) -> ::windows::runtime::Result<Self> { 727 ::std::convert::TryFrom::try_from(&value) 728 } 729 } 730 #[cfg(feature = "Foundation_Collections")] 731 impl ::std::convert::TryFrom<&BlockCollection> for super::super::super::Foundation::Collections::IIterable<Block> { 732 type Error = ::windows::runtime::Error; try_from(value: &BlockCollection) -> ::windows::runtime::Result<Self>733 fn try_from(value: &BlockCollection) -> ::windows::runtime::Result<Self> { 734 ::windows::runtime::Interface::cast(value) 735 } 736 } 737 #[cfg(feature = "Foundation_Collections")] 738 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<Block>> for BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<Block>>739 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<Block>> { 740 ::windows::runtime::IntoParam::into_param(&self) 741 } 742 } 743 #[cfg(feature = "Foundation_Collections")] 744 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<Block>> for &BlockCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<Block>>745 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<Block>> { 746 ::std::convert::TryInto::<super::super::super::Foundation::Collections::IIterable<Block>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 747 } 748 } 749 #[cfg(feature = "Foundation_Collections")] 750 unsafe impl ::std::marker::Send for BlockCollection {} 751 #[cfg(feature = "Foundation_Collections")] 752 unsafe impl ::std::marker::Sync for BlockCollection {} 753 #[cfg(all(feature = "Foundation_Collections"))] 754 impl ::std::iter::IntoIterator for BlockCollection { 755 type Item = Block; 756 type IntoIter = super::super::super::Foundation::Collections::VectorIterator<Self::Item>; into_iter(self) -> Self::IntoIter757 fn into_iter(self) -> Self::IntoIter { 758 ::std::iter::IntoIterator::into_iter(&self) 759 } 760 } 761 #[cfg(all(feature = "Foundation_Collections"))] 762 impl ::std::iter::IntoIterator for &BlockCollection { 763 type Item = Block; 764 type IntoIter = super::super::super::Foundation::Collections::VectorIterator<Self::Item>; into_iter(self) -> Self::IntoIter765 fn into_iter(self) -> Self::IntoIter { 766 super::super::super::Foundation::Collections::VectorIterator::new(::std::convert::TryInto::try_into(self).ok()) 767 } 768 } 769 #[repr(transparent)] 770 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 771 pub struct Bold(::windows::runtime::IInspectable); 772 impl Bold { new() -> ::windows::runtime::Result<Self>773 pub fn new() -> ::windows::runtime::Result<Self> { 774 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 775 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>776 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 777 static mut SHARED: ::windows::runtime::FactoryCache<Bold, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 778 unsafe { SHARED.call(callback) } 779 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>780 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 781 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 782 unsafe { 783 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 784 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 785 } 786 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>787 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 788 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 789 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 790 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>791 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 792 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 793 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 794 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>795 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 796 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 797 unsafe { 798 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 799 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 800 } 801 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>802 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 803 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 804 unsafe { 805 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 806 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 807 } 808 } 809 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>810 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 811 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 812 unsafe { 813 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 814 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 815 } 816 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>817 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 818 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 819 unsafe { 820 let mut result__: i64 = ::std::mem::zeroed(); 821 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 822 } 823 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>824 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 825 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 826 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 827 } 828 #[cfg(feature = "Foundation_Collections")] Inlines(&self) -> ::windows::runtime::Result<InlineCollection>829 pub fn Inlines(&self) -> ::windows::runtime::Result<InlineCollection> { 830 let this = &::windows::runtime::Interface::cast::<ISpan>(self)?; 831 unsafe { 832 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 833 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<InlineCollection>(result__) 834 } 835 } 836 #[cfg(feature = "Foundation_Collections")] SetInlines<'a, Param0: ::windows::runtime::IntoParam<'a, InlineCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()>837 pub fn SetInlines<'a, Param0: ::windows::runtime::IntoParam<'a, InlineCollection>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 838 let this = &::windows::runtime::Interface::cast::<ISpan>(self)?; 839 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 840 } Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>841 pub fn Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 842 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 843 unsafe { 844 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 845 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 846 } 847 } FontSize(&self) -> ::windows::runtime::Result<f64>848 pub fn FontSize(&self) -> ::windows::runtime::Result<f64> { 849 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 850 unsafe { 851 let mut result__: f64 = ::std::mem::zeroed(); 852 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 853 } 854 } SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()>855 pub fn SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()> { 856 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 857 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 858 } 859 #[cfg(feature = "UI_Xaml_Media")] FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily>860 pub fn FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily> { 861 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 862 unsafe { 863 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 864 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::FontFamily>(result__) 865 } 866 } 867 #[cfg(feature = "UI_Xaml_Media")] SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()>868 pub fn SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 869 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 870 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 871 } 872 #[cfg(feature = "UI_Text")] FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight>873 pub fn FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight> { 874 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 875 unsafe { 876 let mut result__: super::super::Text::FontWeight = ::std::mem::zeroed(); 877 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontWeight>(result__) 878 } 879 } 880 #[cfg(feature = "UI_Text")] SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()>881 pub fn SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 882 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 883 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 884 } 885 #[cfg(feature = "UI_Text")] FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle>886 pub fn FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle> { 887 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 888 unsafe { 889 let mut result__: super::super::Text::FontStyle = ::std::mem::zeroed(); 890 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStyle>(result__) 891 } 892 } 893 #[cfg(feature = "UI_Text")] SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()>894 pub fn SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()> { 895 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 896 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value).ok() } 897 } 898 #[cfg(feature = "UI_Text")] FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch>899 pub fn FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch> { 900 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 901 unsafe { 902 let mut result__: super::super::Text::FontStretch = ::std::mem::zeroed(); 903 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStretch>(result__) 904 } 905 } 906 #[cfg(feature = "UI_Text")] SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()>907 pub fn SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()> { 908 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 909 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 910 } CharacterSpacing(&self) -> ::windows::runtime::Result<i32>911 pub fn CharacterSpacing(&self) -> ::windows::runtime::Result<i32> { 912 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 913 unsafe { 914 let mut result__: i32 = ::std::mem::zeroed(); 915 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 916 } 917 } SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()>918 pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()> { 919 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 920 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), value).ok() } 921 } 922 #[cfg(feature = "UI_Xaml_Media")] Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush>923 pub fn Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush> { 924 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 925 unsafe { 926 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 927 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::Brush>(result__) 928 } 929 } 930 #[cfg(feature = "UI_Xaml_Media")] SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()>931 pub fn SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 932 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 933 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 934 } Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>935 pub fn Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 936 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 937 unsafe { 938 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 939 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 940 } 941 } SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>942 pub fn SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 943 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 944 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 945 } ContentStart(&self) -> ::windows::runtime::Result<TextPointer>946 pub fn ContentStart(&self) -> ::windows::runtime::Result<TextPointer> { 947 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 948 unsafe { 949 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 950 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 951 } 952 } ContentEnd(&self) -> ::windows::runtime::Result<TextPointer>953 pub fn ContentEnd(&self) -> ::windows::runtime::Result<TextPointer> { 954 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 955 unsafe { 956 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 957 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 958 } 959 } ElementStart(&self) -> ::windows::runtime::Result<TextPointer>960 pub fn ElementStart(&self) -> ::windows::runtime::Result<TextPointer> { 961 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 962 unsafe { 963 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 964 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 965 } 966 } ElementEnd(&self) -> ::windows::runtime::Result<TextPointer>967 pub fn ElementEnd(&self) -> ::windows::runtime::Result<TextPointer> { 968 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 969 unsafe { 970 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 971 (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 972 } 973 } FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>974 pub fn FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 975 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 976 unsafe { 977 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 978 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 979 } 980 } IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool>981 pub fn IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool> { 982 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 983 unsafe { 984 let mut result__: bool = ::std::mem::zeroed(); 985 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 986 } 987 } SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()>988 pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 989 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 990 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 991 } OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()>992 pub fn OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()> { 993 let this = &::windows::runtime::Interface::cast::<ITextElementOverrides>(self)?; 994 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 995 } AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool>996 pub fn AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool> { 997 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 998 unsafe { 999 let mut result__: bool = ::std::mem::zeroed(); 1000 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1001 } 1002 } SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()>1003 pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()> { 1004 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1005 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1006 } AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1007 pub fn AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1008 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1009 unsafe { 1010 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1011 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1012 } 1013 } SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1014 pub fn SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1015 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1016 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1017 } ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool>1018 pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool> { 1019 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1020 unsafe { 1021 let mut result__: bool = ::std::mem::zeroed(); 1022 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1023 } 1024 } SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()>1025 pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()> { 1026 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1027 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1028 } 1029 #[cfg(feature = "UI_Text")] TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations>1030 pub fn TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations> { 1031 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1032 unsafe { 1033 let mut result__: super::super::Text::TextDecorations = ::std::mem::zeroed(); 1034 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::TextDecorations>(result__) 1035 } 1036 } 1037 #[cfg(feature = "UI_Text")] SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()>1038 pub fn SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()> { 1039 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1040 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1041 } IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool>1042 pub fn IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool> { 1043 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1044 unsafe { 1045 let mut result__: bool = ::std::mem::zeroed(); 1046 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1047 } 1048 } SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()>1049 pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()> { 1050 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1051 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 1052 } AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject>1053 pub fn AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1054 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1055 unsafe { 1056 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1057 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1058 } 1059 } SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1060 pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1061 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1062 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1063 } 1064 #[cfg(feature = "UI_Xaml_Input")] KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode>1065 pub fn KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode> { 1066 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1067 unsafe { 1068 let mut result__: super::Input::KeyTipPlacementMode = ::std::mem::zeroed(); 1069 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::KeyTipPlacementMode>(result__) 1070 } 1071 } 1072 #[cfg(feature = "UI_Xaml_Input")] SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()>1073 pub fn SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()> { 1074 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1075 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 1076 } KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64>1077 pub fn KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64> { 1078 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1079 unsafe { 1080 let mut result__: f64 = ::std::mem::zeroed(); 1081 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 1082 } 1083 } SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()>1084 pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 1085 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1086 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 1087 } KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64>1088 pub fn KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64> { 1089 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1090 unsafe { 1091 let mut result__: f64 = ::std::mem::zeroed(); 1092 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 1093 } 1094 } SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()>1095 pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 1096 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1097 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 1098 } 1099 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1100 pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1101 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1102 unsafe { 1103 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1104 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1105 } 1106 } 1107 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1108 pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1109 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1110 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1111 } 1112 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1113 pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1114 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1115 unsafe { 1116 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1117 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1118 } 1119 } 1120 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1121 pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1122 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1123 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1124 } 1125 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1126 pub fn AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1127 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1128 unsafe { 1129 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1130 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1131 } 1132 } 1133 #[cfg(feature = "Foundation")] RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1134 pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1135 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1136 unsafe { (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1137 } XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot>1138 pub fn XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot> { 1139 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 1140 unsafe { 1141 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1142 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::XamlRoot>(result__) 1143 } 1144 } SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()>1145 pub fn SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1146 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 1147 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1148 } 1149 } 1150 unsafe impl ::windows::runtime::RuntimeType for Bold { 1151 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.Bold;{ade73784-1b59-4da4-bb23-0f20e885b4bf})"); 1152 } 1153 unsafe impl ::windows::runtime::Interface for Bold { 1154 type Vtable = IBold_abi; 1155 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2917611396, 7001, 19876, [187, 35, 15, 32, 232, 133, 180, 191]); 1156 } 1157 impl ::windows::runtime::RuntimeName for Bold { 1158 const NAME: &'static str = "Windows.UI.Xaml.Documents.Bold"; 1159 } 1160 impl ::std::convert::From<Bold> for ::windows::runtime::IUnknown { from(value: Bold) -> Self1161 fn from(value: Bold) -> Self { 1162 unsafe { ::std::mem::transmute(value) } 1163 } 1164 } 1165 impl ::std::convert::From<&Bold> for ::windows::runtime::IUnknown { from(value: &Bold) -> Self1166 fn from(value: &Bold) -> Self { 1167 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1168 } 1169 } 1170 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for Bold { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1171 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1172 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1173 } 1174 } 1175 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &Bold { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1176 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1177 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1178 } 1179 } 1180 impl ::std::convert::From<Bold> for ::windows::runtime::IInspectable { from(value: Bold) -> Self1181 fn from(value: Bold) -> Self { 1182 value.0 1183 } 1184 } 1185 impl ::std::convert::From<&Bold> for ::windows::runtime::IInspectable { from(value: &Bold) -> Self1186 fn from(value: &Bold) -> Self { 1187 value.0.clone() 1188 } 1189 } 1190 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for Bold { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1191 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1192 ::windows::runtime::Param::Owned(self.0) 1193 } 1194 } 1195 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a Bold { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1196 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1197 ::windows::runtime::Param::Borrowed(&self.0) 1198 } 1199 } 1200 impl ::std::convert::From<Bold> for Span { from(value: Bold) -> Self1201 fn from(value: Bold) -> Self { 1202 ::std::convert::Into::<Span>::into(&value) 1203 } 1204 } 1205 impl ::std::convert::From<&Bold> for Span { from(value: &Bold) -> Self1206 fn from(value: &Bold) -> Self { 1207 ::windows::runtime::Interface::cast(value).unwrap() 1208 } 1209 } 1210 impl<'a> ::windows::runtime::IntoParam<'a, Span> for Bold { into_param(self) -> ::windows::runtime::Param<'a, Span>1211 fn into_param(self) -> ::windows::runtime::Param<'a, Span> { 1212 ::windows::runtime::Param::Owned(::std::convert::Into::<Span>::into(self)) 1213 } 1214 } 1215 impl<'a> ::windows::runtime::IntoParam<'a, Span> for &Bold { into_param(self) -> ::windows::runtime::Param<'a, Span>1216 fn into_param(self) -> ::windows::runtime::Param<'a, Span> { 1217 ::windows::runtime::Param::Owned(::std::convert::Into::<Span>::into(::std::clone::Clone::clone(self))) 1218 } 1219 } 1220 impl ::std::convert::From<Bold> for Inline { from(value: Bold) -> Self1221 fn from(value: Bold) -> Self { 1222 ::std::convert::Into::<Inline>::into(&value) 1223 } 1224 } 1225 impl ::std::convert::From<&Bold> for Inline { from(value: &Bold) -> Self1226 fn from(value: &Bold) -> Self { 1227 ::windows::runtime::Interface::cast(value).unwrap() 1228 } 1229 } 1230 impl<'a> ::windows::runtime::IntoParam<'a, Inline> for Bold { into_param(self) -> ::windows::runtime::Param<'a, Inline>1231 fn into_param(self) -> ::windows::runtime::Param<'a, Inline> { 1232 ::windows::runtime::Param::Owned(::std::convert::Into::<Inline>::into(self)) 1233 } 1234 } 1235 impl<'a> ::windows::runtime::IntoParam<'a, Inline> for &Bold { into_param(self) -> ::windows::runtime::Param<'a, Inline>1236 fn into_param(self) -> ::windows::runtime::Param<'a, Inline> { 1237 ::windows::runtime::Param::Owned(::std::convert::Into::<Inline>::into(::std::clone::Clone::clone(self))) 1238 } 1239 } 1240 impl ::std::convert::From<Bold> for TextElement { from(value: Bold) -> Self1241 fn from(value: Bold) -> Self { 1242 ::std::convert::Into::<TextElement>::into(&value) 1243 } 1244 } 1245 impl ::std::convert::From<&Bold> for TextElement { from(value: &Bold) -> Self1246 fn from(value: &Bold) -> Self { 1247 ::windows::runtime::Interface::cast(value).unwrap() 1248 } 1249 } 1250 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for Bold { into_param(self) -> ::windows::runtime::Param<'a, TextElement>1251 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 1252 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(self)) 1253 } 1254 } 1255 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for &Bold { into_param(self) -> ::windows::runtime::Param<'a, TextElement>1256 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 1257 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(::std::clone::Clone::clone(self))) 1258 } 1259 } 1260 impl ::std::convert::From<Bold> for super::DependencyObject { from(value: Bold) -> Self1261 fn from(value: Bold) -> Self { 1262 ::std::convert::Into::<super::DependencyObject>::into(&value) 1263 } 1264 } 1265 impl ::std::convert::From<&Bold> for super::DependencyObject { from(value: &Bold) -> Self1266 fn from(value: &Bold) -> Self { 1267 ::windows::runtime::Interface::cast(value).unwrap() 1268 } 1269 } 1270 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for Bold { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>1271 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 1272 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 1273 } 1274 } 1275 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &Bold { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>1276 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 1277 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 1278 } 1279 } 1280 unsafe impl ::std::marker::Send for Bold {} 1281 unsafe impl ::std::marker::Sync for Bold {} 1282 #[repr(transparent)] 1283 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1284 pub struct ContactContentLinkProvider(::windows::runtime::IInspectable); 1285 impl ContactContentLinkProvider { new() -> ::windows::runtime::Result<Self>1286 pub fn new() -> ::windows::runtime::Result<Self> { 1287 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1288 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1289 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1290 static mut SHARED: ::windows::runtime::FactoryCache<ContactContentLinkProvider, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1291 unsafe { SHARED.call(callback) } 1292 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1293 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1294 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1295 unsafe { 1296 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1297 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1298 } 1299 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>1300 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1301 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1302 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 1303 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>1304 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 1305 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1306 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 1307 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1308 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1309 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1310 unsafe { 1311 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1312 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1313 } 1314 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1315 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1316 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1317 unsafe { 1318 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1319 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1320 } 1321 } 1322 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>1323 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 1324 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1325 unsafe { 1326 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1327 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 1328 } 1329 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>1330 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 1331 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 1332 unsafe { 1333 let mut result__: i64 = ::std::mem::zeroed(); 1334 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 1335 } 1336 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>1337 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 1338 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 1339 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 1340 } 1341 } 1342 unsafe impl ::windows::runtime::RuntimeType for ContactContentLinkProvider { 1343 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.ContactContentLinkProvider;{f92fd29b-589b-4abd-9d37-35a1468f021e})"); 1344 } 1345 unsafe impl ::windows::runtime::Interface for ContactContentLinkProvider { 1346 type Vtable = IContactContentLinkProvider_abi; 1347 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4180660891, 22683, 19133, [157, 55, 53, 161, 70, 143, 2, 30]); 1348 } 1349 impl ::windows::runtime::RuntimeName for ContactContentLinkProvider { 1350 const NAME: &'static str = "Windows.UI.Xaml.Documents.ContactContentLinkProvider"; 1351 } 1352 impl ::std::convert::From<ContactContentLinkProvider> for ::windows::runtime::IUnknown { from(value: ContactContentLinkProvider) -> Self1353 fn from(value: ContactContentLinkProvider) -> Self { 1354 unsafe { ::std::mem::transmute(value) } 1355 } 1356 } 1357 impl ::std::convert::From<&ContactContentLinkProvider> for ::windows::runtime::IUnknown { from(value: &ContactContentLinkProvider) -> Self1358 fn from(value: &ContactContentLinkProvider) -> Self { 1359 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1360 } 1361 } 1362 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1363 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1364 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1365 } 1366 } 1367 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1368 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1369 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1370 } 1371 } 1372 impl ::std::convert::From<ContactContentLinkProvider> for ::windows::runtime::IInspectable { from(value: ContactContentLinkProvider) -> Self1373 fn from(value: ContactContentLinkProvider) -> Self { 1374 value.0 1375 } 1376 } 1377 impl ::std::convert::From<&ContactContentLinkProvider> for ::windows::runtime::IInspectable { from(value: &ContactContentLinkProvider) -> Self1378 fn from(value: &ContactContentLinkProvider) -> Self { 1379 value.0.clone() 1380 } 1381 } 1382 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1383 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1384 ::windows::runtime::Param::Owned(self.0) 1385 } 1386 } 1387 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>1388 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 1389 ::windows::runtime::Param::Borrowed(&self.0) 1390 } 1391 } 1392 impl ::std::convert::From<ContactContentLinkProvider> for ContentLinkProvider { from(value: ContactContentLinkProvider) -> Self1393 fn from(value: ContactContentLinkProvider) -> Self { 1394 ::std::convert::Into::<ContentLinkProvider>::into(&value) 1395 } 1396 } 1397 impl ::std::convert::From<&ContactContentLinkProvider> for ContentLinkProvider { from(value: &ContactContentLinkProvider) -> Self1398 fn from(value: &ContactContentLinkProvider) -> Self { 1399 ::windows::runtime::Interface::cast(value).unwrap() 1400 } 1401 } 1402 impl<'a> ::windows::runtime::IntoParam<'a, ContentLinkProvider> for ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ContentLinkProvider>1403 fn into_param(self) -> ::windows::runtime::Param<'a, ContentLinkProvider> { 1404 ::windows::runtime::Param::Owned(::std::convert::Into::<ContentLinkProvider>::into(self)) 1405 } 1406 } 1407 impl<'a> ::windows::runtime::IntoParam<'a, ContentLinkProvider> for &ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ContentLinkProvider>1408 fn into_param(self) -> ::windows::runtime::Param<'a, ContentLinkProvider> { 1409 ::windows::runtime::Param::Owned(::std::convert::Into::<ContentLinkProvider>::into(::std::clone::Clone::clone(self))) 1410 } 1411 } 1412 impl ::std::convert::From<ContactContentLinkProvider> for super::DependencyObject { from(value: ContactContentLinkProvider) -> Self1413 fn from(value: ContactContentLinkProvider) -> Self { 1414 ::std::convert::Into::<super::DependencyObject>::into(&value) 1415 } 1416 } 1417 impl ::std::convert::From<&ContactContentLinkProvider> for super::DependencyObject { from(value: &ContactContentLinkProvider) -> Self1418 fn from(value: &ContactContentLinkProvider) -> Self { 1419 ::windows::runtime::Interface::cast(value).unwrap() 1420 } 1421 } 1422 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>1423 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 1424 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 1425 } 1426 } 1427 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &ContactContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>1428 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 1429 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 1430 } 1431 } 1432 unsafe impl ::std::marker::Send for ContactContentLinkProvider {} 1433 unsafe impl ::std::marker::Sync for ContactContentLinkProvider {} 1434 #[repr(transparent)] 1435 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1436 pub struct ContentLink(::windows::runtime::IInspectable); 1437 impl ContentLink { new() -> ::windows::runtime::Result<Self>1438 pub fn new() -> ::windows::runtime::Result<Self> { 1439 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 1440 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>1441 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 1442 static mut SHARED: ::windows::runtime::FactoryCache<ContentLink, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 1443 unsafe { SHARED.call(callback) } 1444 } 1445 #[cfg(feature = "UI_Text")] Info(&self) -> ::windows::runtime::Result<super::super::Text::ContentLinkInfo>1446 pub fn Info(&self) -> ::windows::runtime::Result<super::super::Text::ContentLinkInfo> { 1447 let this = self; 1448 unsafe { 1449 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1450 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::ContentLinkInfo>(result__) 1451 } 1452 } 1453 #[cfg(feature = "UI_Text")] SetInfo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::ContentLinkInfo>>(&self, value: Param0) -> ::windows::runtime::Result<()>1454 pub fn SetInfo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::ContentLinkInfo>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1455 let this = self; 1456 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1457 } 1458 #[cfg(feature = "UI_Xaml_Media")] Background(&self) -> ::windows::runtime::Result<super::Media::Brush>1459 pub fn Background(&self) -> ::windows::runtime::Result<super::Media::Brush> { 1460 let this = self; 1461 unsafe { 1462 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1463 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::Brush>(result__) 1464 } 1465 } 1466 #[cfg(feature = "UI_Xaml_Media")] SetBackground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()>1467 pub fn SetBackground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1468 let this = self; 1469 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1470 } 1471 #[cfg(feature = "UI_Core")] Cursor(&self) -> ::windows::runtime::Result<super::super::Core::CoreCursorType>1472 pub fn Cursor(&self) -> ::windows::runtime::Result<super::super::Core::CoreCursorType> { 1473 let this = self; 1474 unsafe { 1475 let mut result__: super::super::Core::CoreCursorType = ::std::mem::zeroed(); 1476 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreCursorType>(result__) 1477 } 1478 } 1479 #[cfg(feature = "UI_Core")] SetCursor(&self, value: super::super::Core::CoreCursorType) -> ::windows::runtime::Result<()>1480 pub fn SetCursor(&self, value: super::super::Core::CoreCursorType) -> ::windows::runtime::Result<()> { 1481 let this = self; 1482 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1483 } XYFocusLeft(&self) -> ::windows::runtime::Result<super::DependencyObject>1484 pub fn XYFocusLeft(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1485 let this = self; 1486 unsafe { 1487 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1488 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1489 } 1490 } SetXYFocusLeft<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1491 pub fn SetXYFocusLeft<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1492 let this = self; 1493 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1494 } XYFocusRight(&self) -> ::windows::runtime::Result<super::DependencyObject>1495 pub fn XYFocusRight(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1496 let this = self; 1497 unsafe { 1498 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1499 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1500 } 1501 } SetXYFocusRight<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1502 pub fn SetXYFocusRight<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1503 let this = self; 1504 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1505 } XYFocusUp(&self) -> ::windows::runtime::Result<super::DependencyObject>1506 pub fn XYFocusUp(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1507 let this = self; 1508 unsafe { 1509 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1510 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1511 } 1512 } SetXYFocusUp<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1513 pub fn SetXYFocusUp<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1514 let this = self; 1515 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1516 } XYFocusDown(&self) -> ::windows::runtime::Result<super::DependencyObject>1517 pub fn XYFocusDown(&self) -> ::windows::runtime::Result<super::DependencyObject> { 1518 let this = self; 1519 unsafe { 1520 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1521 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 1522 } 1523 } SetXYFocusDown<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>1524 pub fn SetXYFocusDown<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1525 let this = self; 1526 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1527 } ElementSoundMode(&self) -> ::windows::runtime::Result<super::ElementSoundMode>1528 pub fn ElementSoundMode(&self) -> ::windows::runtime::Result<super::ElementSoundMode> { 1529 let this = self; 1530 unsafe { 1531 let mut result__: super::ElementSoundMode = ::std::mem::zeroed(); 1532 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::ElementSoundMode>(result__) 1533 } 1534 } SetElementSoundMode(&self, value: super::ElementSoundMode) -> ::windows::runtime::Result<()>1535 pub fn SetElementSoundMode(&self, value: super::ElementSoundMode) -> ::windows::runtime::Result<()> { 1536 let this = self; 1537 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), value).ok() } 1538 } FocusState(&self) -> ::windows::runtime::Result<super::FocusState>1539 pub fn FocusState(&self) -> ::windows::runtime::Result<super::FocusState> { 1540 let this = self; 1541 unsafe { 1542 let mut result__: super::FocusState = ::std::mem::zeroed(); 1543 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::FocusState>(result__) 1544 } 1545 } 1546 #[cfg(feature = "UI_Xaml_Input")] XYFocusUpNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy>1547 pub fn XYFocusUpNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy> { 1548 let this = self; 1549 unsafe { 1550 let mut result__: super::Input::XYFocusNavigationStrategy = ::std::mem::zeroed(); 1551 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::XYFocusNavigationStrategy>(result__) 1552 } 1553 } 1554 #[cfg(feature = "UI_Xaml_Input")] SetXYFocusUpNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()>1555 pub fn SetXYFocusUpNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()> { 1556 let this = self; 1557 unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), value).ok() } 1558 } 1559 #[cfg(feature = "UI_Xaml_Input")] XYFocusDownNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy>1560 pub fn XYFocusDownNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy> { 1561 let this = self; 1562 unsafe { 1563 let mut result__: super::Input::XYFocusNavigationStrategy = ::std::mem::zeroed(); 1564 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::XYFocusNavigationStrategy>(result__) 1565 } 1566 } 1567 #[cfg(feature = "UI_Xaml_Input")] SetXYFocusDownNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()>1568 pub fn SetXYFocusDownNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()> { 1569 let this = self; 1570 unsafe { (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), value).ok() } 1571 } 1572 #[cfg(feature = "UI_Xaml_Input")] XYFocusLeftNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy>1573 pub fn XYFocusLeftNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy> { 1574 let this = self; 1575 unsafe { 1576 let mut result__: super::Input::XYFocusNavigationStrategy = ::std::mem::zeroed(); 1577 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::XYFocusNavigationStrategy>(result__) 1578 } 1579 } 1580 #[cfg(feature = "UI_Xaml_Input")] SetXYFocusLeftNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()>1581 pub fn SetXYFocusLeftNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()> { 1582 let this = self; 1583 unsafe { (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), value).ok() } 1584 } 1585 #[cfg(feature = "UI_Xaml_Input")] XYFocusRightNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy>1586 pub fn XYFocusRightNavigationStrategy(&self) -> ::windows::runtime::Result<super::Input::XYFocusNavigationStrategy> { 1587 let this = self; 1588 unsafe { 1589 let mut result__: super::Input::XYFocusNavigationStrategy = ::std::mem::zeroed(); 1590 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::XYFocusNavigationStrategy>(result__) 1591 } 1592 } 1593 #[cfg(feature = "UI_Xaml_Input")] SetXYFocusRightNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()>1594 pub fn SetXYFocusRightNavigationStrategy(&self, value: super::Input::XYFocusNavigationStrategy) -> ::windows::runtime::Result<()> { 1595 let this = self; 1596 unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), value).ok() } 1597 } IsTabStop(&self) -> ::windows::runtime::Result<bool>1598 pub fn IsTabStop(&self) -> ::windows::runtime::Result<bool> { 1599 let this = self; 1600 unsafe { 1601 let mut result__: bool = ::std::mem::zeroed(); 1602 (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1603 } 1604 } SetIsTabStop(&self, value: bool) -> ::windows::runtime::Result<()>1605 pub fn SetIsTabStop(&self, value: bool) -> ::windows::runtime::Result<()> { 1606 let this = self; 1607 unsafe { (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), value).ok() } 1608 } TabIndex(&self) -> ::windows::runtime::Result<i32>1609 pub fn TabIndex(&self) -> ::windows::runtime::Result<i32> { 1610 let this = self; 1611 unsafe { 1612 let mut result__: i32 = ::std::mem::zeroed(); 1613 (::windows::runtime::Interface::vtable(this).33)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1614 } 1615 } SetTabIndex(&self, value: i32) -> ::windows::runtime::Result<()>1616 pub fn SetTabIndex(&self, value: i32) -> ::windows::runtime::Result<()> { 1617 let this = self; 1618 unsafe { (::windows::runtime::Interface::vtable(this).34)(::std::mem::transmute_copy(this), value).ok() } 1619 } 1620 #[cfg(feature = "Foundation")] Invoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<ContentLink, ContentLinkInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1621 pub fn Invoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<ContentLink, ContentLinkInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1622 let this = self; 1623 unsafe { 1624 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1625 (::windows::runtime::Interface::vtable(this).35)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1626 } 1627 } 1628 #[cfg(feature = "Foundation")] RemoveInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1629 pub fn RemoveInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1630 let this = self; 1631 unsafe { (::windows::runtime::Interface::vtable(this).36)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1632 } 1633 #[cfg(feature = "Foundation")] GotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1634 pub fn GotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1635 let this = self; 1636 unsafe { 1637 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1638 (::windows::runtime::Interface::vtable(this).37)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1639 } 1640 } 1641 #[cfg(feature = "Foundation")] RemoveGotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1642 pub fn RemoveGotFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1643 let this = self; 1644 unsafe { (::windows::runtime::Interface::vtable(this).38)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1645 } 1646 #[cfg(feature = "Foundation")] LostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>1647 pub fn LostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 1648 let this = self; 1649 unsafe { 1650 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 1651 (::windows::runtime::Interface::vtable(this).39)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 1652 } 1653 } 1654 #[cfg(feature = "Foundation")] RemoveLostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>1655 pub fn RemoveLostFocus<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 1656 let this = self; 1657 unsafe { (::windows::runtime::Interface::vtable(this).40)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 1658 } Focus(&self, value: super::FocusState) -> ::windows::runtime::Result<bool>1659 pub fn Focus(&self, value: super::FocusState) -> ::windows::runtime::Result<bool> { 1660 let this = self; 1661 unsafe { 1662 let mut result__: bool = ::std::mem::zeroed(); 1663 (::windows::runtime::Interface::vtable(this).41)(::std::mem::transmute_copy(this), value, &mut result__).from_abi::<bool>(result__) 1664 } 1665 } BackgroundProperty() -> ::windows::runtime::Result<super::DependencyProperty>1666 pub fn BackgroundProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1667 Self::IContentLinkStatics(|this| unsafe { 1668 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1669 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1670 }) 1671 } CursorProperty() -> ::windows::runtime::Result<super::DependencyProperty>1672 pub fn CursorProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1673 Self::IContentLinkStatics(|this| unsafe { 1674 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1675 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1676 }) 1677 } XYFocusLeftProperty() -> ::windows::runtime::Result<super::DependencyProperty>1678 pub fn XYFocusLeftProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1679 Self::IContentLinkStatics(|this| unsafe { 1680 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1681 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1682 }) 1683 } XYFocusRightProperty() -> ::windows::runtime::Result<super::DependencyProperty>1684 pub fn XYFocusRightProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1685 Self::IContentLinkStatics(|this| unsafe { 1686 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1687 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1688 }) 1689 } XYFocusUpProperty() -> ::windows::runtime::Result<super::DependencyProperty>1690 pub fn XYFocusUpProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1691 Self::IContentLinkStatics(|this| unsafe { 1692 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1693 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1694 }) 1695 } XYFocusDownProperty() -> ::windows::runtime::Result<super::DependencyProperty>1696 pub fn XYFocusDownProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1697 Self::IContentLinkStatics(|this| unsafe { 1698 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1699 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1700 }) 1701 } ElementSoundModeProperty() -> ::windows::runtime::Result<super::DependencyProperty>1702 pub fn ElementSoundModeProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1703 Self::IContentLinkStatics(|this| unsafe { 1704 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1705 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1706 }) 1707 } FocusStateProperty() -> ::windows::runtime::Result<super::DependencyProperty>1708 pub fn FocusStateProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1709 Self::IContentLinkStatics(|this| unsafe { 1710 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1711 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1712 }) 1713 } XYFocusUpNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty>1714 pub fn XYFocusUpNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1715 Self::IContentLinkStatics(|this| unsafe { 1716 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1717 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1718 }) 1719 } XYFocusDownNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty>1720 pub fn XYFocusDownNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1721 Self::IContentLinkStatics(|this| unsafe { 1722 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1723 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1724 }) 1725 } XYFocusLeftNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty>1726 pub fn XYFocusLeftNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1727 Self::IContentLinkStatics(|this| unsafe { 1728 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1729 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1730 }) 1731 } XYFocusRightNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty>1732 pub fn XYFocusRightNavigationStrategyProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1733 Self::IContentLinkStatics(|this| unsafe { 1734 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1735 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1736 }) 1737 } IsTabStopProperty() -> ::windows::runtime::Result<super::DependencyProperty>1738 pub fn IsTabStopProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1739 Self::IContentLinkStatics(|this| unsafe { 1740 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1741 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1742 }) 1743 } TabIndexProperty() -> ::windows::runtime::Result<super::DependencyProperty>1744 pub fn TabIndexProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 1745 Self::IContentLinkStatics(|this| unsafe { 1746 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1747 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 1748 }) 1749 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1750 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1751 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1752 unsafe { 1753 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1754 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1755 } 1756 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>1757 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 1758 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1759 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 1760 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>1761 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 1762 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1763 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 1764 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1765 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1766 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1767 unsafe { 1768 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1769 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1770 } 1771 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1772 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1773 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1774 unsafe { 1775 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1776 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1777 } 1778 } 1779 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>1780 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 1781 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 1782 unsafe { 1783 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1784 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 1785 } 1786 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>1787 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 1788 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 1789 unsafe { 1790 let mut result__: i64 = ::std::mem::zeroed(); 1791 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 1792 } 1793 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>1794 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 1795 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 1796 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 1797 } Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1798 pub fn Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1799 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1800 unsafe { 1801 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1802 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1803 } 1804 } FontSize(&self) -> ::windows::runtime::Result<f64>1805 pub fn FontSize(&self) -> ::windows::runtime::Result<f64> { 1806 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1807 unsafe { 1808 let mut result__: f64 = ::std::mem::zeroed(); 1809 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 1810 } 1811 } SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()>1812 pub fn SetFontSize(&self, value: f64) -> ::windows::runtime::Result<()> { 1813 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1814 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 1815 } 1816 #[cfg(feature = "UI_Xaml_Media")] FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily>1817 pub fn FontFamily(&self) -> ::windows::runtime::Result<super::Media::FontFamily> { 1818 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1819 unsafe { 1820 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1821 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::FontFamily>(result__) 1822 } 1823 } 1824 #[cfg(feature = "UI_Xaml_Media")] SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()>1825 pub fn SetFontFamily<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::FontFamily>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1826 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1827 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1828 } 1829 #[cfg(feature = "UI_Text")] FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight>1830 pub fn FontWeight(&self) -> ::windows::runtime::Result<super::super::Text::FontWeight> { 1831 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1832 unsafe { 1833 let mut result__: super::super::Text::FontWeight = ::std::mem::zeroed(); 1834 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontWeight>(result__) 1835 } 1836 } 1837 #[cfg(feature = "UI_Text")] SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()>1838 pub fn SetFontWeight<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Text::FontWeight>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1839 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1840 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1841 } 1842 #[cfg(feature = "UI_Text")] FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle>1843 pub fn FontStyle(&self) -> ::windows::runtime::Result<super::super::Text::FontStyle> { 1844 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1845 unsafe { 1846 let mut result__: super::super::Text::FontStyle = ::std::mem::zeroed(); 1847 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStyle>(result__) 1848 } 1849 } 1850 #[cfg(feature = "UI_Text")] SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()>1851 pub fn SetFontStyle(&self, value: super::super::Text::FontStyle) -> ::windows::runtime::Result<()> { 1852 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1853 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), value).ok() } 1854 } 1855 #[cfg(feature = "UI_Text")] FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch>1856 pub fn FontStretch(&self) -> ::windows::runtime::Result<super::super::Text::FontStretch> { 1857 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1858 unsafe { 1859 let mut result__: super::super::Text::FontStretch = ::std::mem::zeroed(); 1860 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::FontStretch>(result__) 1861 } 1862 } 1863 #[cfg(feature = "UI_Text")] SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()>1864 pub fn SetFontStretch(&self, value: super::super::Text::FontStretch) -> ::windows::runtime::Result<()> { 1865 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1866 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 1867 } CharacterSpacing(&self) -> ::windows::runtime::Result<i32>1868 pub fn CharacterSpacing(&self) -> ::windows::runtime::Result<i32> { 1869 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1870 unsafe { 1871 let mut result__: i32 = ::std::mem::zeroed(); 1872 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 1873 } 1874 } SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()>1875 pub fn SetCharacterSpacing(&self, value: i32) -> ::windows::runtime::Result<()> { 1876 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1877 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), value).ok() } 1878 } 1879 #[cfg(feature = "UI_Xaml_Media")] Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush>1880 pub fn Foreground(&self) -> ::windows::runtime::Result<super::Media::Brush> { 1881 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1882 unsafe { 1883 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1884 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::Brush>(result__) 1885 } 1886 } 1887 #[cfg(feature = "UI_Xaml_Media")] SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()>1888 pub fn SetForeground<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1889 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1890 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1891 } Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1892 pub fn Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1893 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1894 unsafe { 1895 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1896 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1897 } 1898 } SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1899 pub fn SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1900 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1901 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1902 } ContentStart(&self) -> ::windows::runtime::Result<TextPointer>1903 pub fn ContentStart(&self) -> ::windows::runtime::Result<TextPointer> { 1904 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1905 unsafe { 1906 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1907 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 1908 } 1909 } ContentEnd(&self) -> ::windows::runtime::Result<TextPointer>1910 pub fn ContentEnd(&self) -> ::windows::runtime::Result<TextPointer> { 1911 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1912 unsafe { 1913 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1914 (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 1915 } 1916 } ElementStart(&self) -> ::windows::runtime::Result<TextPointer>1917 pub fn ElementStart(&self) -> ::windows::runtime::Result<TextPointer> { 1918 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1919 unsafe { 1920 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1921 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 1922 } 1923 } ElementEnd(&self) -> ::windows::runtime::Result<TextPointer>1924 pub fn ElementEnd(&self) -> ::windows::runtime::Result<TextPointer> { 1925 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1926 unsafe { 1927 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1928 (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), &mut result__).from_abi::<TextPointer>(result__) 1929 } 1930 } FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>1931 pub fn FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 1932 let this = &::windows::runtime::Interface::cast::<ITextElement>(self)?; 1933 unsafe { 1934 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 1935 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 1936 } 1937 } IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool>1938 pub fn IsTextScaleFactorEnabled(&self) -> ::windows::runtime::Result<bool> { 1939 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 1940 unsafe { 1941 let mut result__: bool = ::std::mem::zeroed(); 1942 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1943 } 1944 } SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()>1945 pub fn SetIsTextScaleFactorEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 1946 let this = &::windows::runtime::Interface::cast::<ITextElement2>(self)?; 1947 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1948 } OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()>1949 pub fn OnDisconnectVisualChildren(&self) -> ::windows::runtime::Result<()> { 1950 let this = &::windows::runtime::Interface::cast::<ITextElementOverrides>(self)?; 1951 unsafe { (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this)).ok() } 1952 } AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool>1953 pub fn AllowFocusOnInteraction(&self) -> ::windows::runtime::Result<bool> { 1954 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1955 unsafe { 1956 let mut result__: bool = ::std::mem::zeroed(); 1957 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1958 } 1959 } SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()>1960 pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::runtime::Result<()> { 1961 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1962 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1963 } AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>1964 pub fn AccessKey(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 1965 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1966 unsafe { 1967 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 1968 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 1969 } 1970 } SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>1971 pub fn SetAccessKey<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 1972 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1973 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 1974 } ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool>1975 pub fn ExitDisplayModeOnAccessKeyInvoked(&self) -> ::windows::runtime::Result<bool> { 1976 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1977 unsafe { 1978 let mut result__: bool = ::std::mem::zeroed(); 1979 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 1980 } 1981 } SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()>1982 pub fn SetExitDisplayModeOnAccessKeyInvoked(&self, value: bool) -> ::windows::runtime::Result<()> { 1983 let this = &::windows::runtime::Interface::cast::<ITextElement3>(self)?; 1984 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value).ok() } 1985 } 1986 #[cfg(feature = "UI_Text")] TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations>1987 pub fn TextDecorations(&self) -> ::windows::runtime::Result<super::super::Text::TextDecorations> { 1988 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1989 unsafe { 1990 let mut result__: super::super::Text::TextDecorations = ::std::mem::zeroed(); 1991 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::TextDecorations>(result__) 1992 } 1993 } 1994 #[cfg(feature = "UI_Text")] SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()>1995 pub fn SetTextDecorations(&self, value: super::super::Text::TextDecorations) -> ::windows::runtime::Result<()> { 1996 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 1997 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 1998 } IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool>1999 pub fn IsAccessKeyScope(&self) -> ::windows::runtime::Result<bool> { 2000 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2001 unsafe { 2002 let mut result__: bool = ::std::mem::zeroed(); 2003 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2004 } 2005 } SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()>2006 pub fn SetIsAccessKeyScope(&self, value: bool) -> ::windows::runtime::Result<()> { 2007 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2008 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 2009 } AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject>2010 pub fn AccessKeyScopeOwner(&self) -> ::windows::runtime::Result<super::DependencyObject> { 2011 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2012 unsafe { 2013 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2014 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 2015 } 2016 } SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()>2017 pub fn SetAccessKeyScopeOwner<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyObject>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2018 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2019 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2020 } 2021 #[cfg(feature = "UI_Xaml_Input")] KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode>2022 pub fn KeyTipPlacementMode(&self) -> ::windows::runtime::Result<super::Input::KeyTipPlacementMode> { 2023 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2024 unsafe { 2025 let mut result__: super::Input::KeyTipPlacementMode = ::std::mem::zeroed(); 2026 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Input::KeyTipPlacementMode>(result__) 2027 } 2028 } 2029 #[cfg(feature = "UI_Xaml_Input")] SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()>2030 pub fn SetKeyTipPlacementMode(&self, value: super::Input::KeyTipPlacementMode) -> ::windows::runtime::Result<()> { 2031 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2032 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 2033 } KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64>2034 pub fn KeyTipHorizontalOffset(&self) -> ::windows::runtime::Result<f64> { 2035 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2036 unsafe { 2037 let mut result__: f64 = ::std::mem::zeroed(); 2038 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2039 } 2040 } SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()>2041 pub fn SetKeyTipHorizontalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 2042 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2043 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 2044 } KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64>2045 pub fn KeyTipVerticalOffset(&self) -> ::windows::runtime::Result<f64> { 2046 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2047 unsafe { 2048 let mut result__: f64 = ::std::mem::zeroed(); 2049 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2050 } 2051 } SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()>2052 pub fn SetKeyTipVerticalOffset(&self, value: f64) -> ::windows::runtime::Result<()> { 2053 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2054 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 2055 } 2056 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>2057 pub fn AccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayRequestedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 2058 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2059 unsafe { 2060 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2061 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 2062 } 2063 } 2064 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2065 pub fn RemoveAccessKeyDisplayRequested<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2066 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2067 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2068 } 2069 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>2070 pub fn AccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyDisplayDismissedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 2071 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2072 unsafe { 2073 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2074 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 2075 } 2076 } 2077 #[cfg(feature = "Foundation")] RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2078 pub fn RemoveAccessKeyDisplayDismissed<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2079 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2080 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2081 } 2082 #[cfg(all(feature = "Foundation", feature = "UI_Xaml_Input"))] AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>2083 pub fn AccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::TypedEventHandler<TextElement, super::Input::AccessKeyInvokedEventArgs>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 2084 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2085 unsafe { 2086 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 2087 (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 2088 } 2089 } 2090 #[cfg(feature = "Foundation")] RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>2091 pub fn RemoveAccessKeyInvoked<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 2092 let this = &::windows::runtime::Interface::cast::<ITextElement4>(self)?; 2093 unsafe { (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 2094 } XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot>2095 pub fn XamlRoot(&self) -> ::windows::runtime::Result<super::XamlRoot> { 2096 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 2097 unsafe { 2098 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2099 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::XamlRoot>(result__) 2100 } 2101 } SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()>2102 pub fn SetXamlRoot<'a, Param0: ::windows::runtime::IntoParam<'a, super::XamlRoot>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2103 let this = &::windows::runtime::Interface::cast::<ITextElement5>(self)?; 2104 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2105 } IContentLinkStatics<R, F: FnOnce(&IContentLinkStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2106 pub fn IContentLinkStatics<R, F: FnOnce(&IContentLinkStatics) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2107 static mut SHARED: ::windows::runtime::FactoryCache<ContentLink, IContentLinkStatics> = ::windows::runtime::FactoryCache::new(); 2108 unsafe { SHARED.call(callback) } 2109 } 2110 } 2111 unsafe impl ::windows::runtime::RuntimeType for ContentLink { 2112 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.ContentLink;{6c60c3e1-528c-42f8-92be-34b8c68be304})"); 2113 } 2114 unsafe impl ::windows::runtime::Interface for ContentLink { 2115 type Vtable = IContentLink_abi; 2116 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1818280929, 21132, 17144, [146, 190, 52, 184, 198, 139, 227, 4]); 2117 } 2118 impl ::windows::runtime::RuntimeName for ContentLink { 2119 const NAME: &'static str = "Windows.UI.Xaml.Documents.ContentLink"; 2120 } 2121 impl ::std::convert::From<ContentLink> for ::windows::runtime::IUnknown { from(value: ContentLink) -> Self2122 fn from(value: ContentLink) -> Self { 2123 unsafe { ::std::mem::transmute(value) } 2124 } 2125 } 2126 impl ::std::convert::From<&ContentLink> for ::windows::runtime::IUnknown { from(value: &ContentLink) -> Self2127 fn from(value: &ContentLink) -> Self { 2128 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2129 } 2130 } 2131 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContentLink { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2132 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2133 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2134 } 2135 } 2136 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContentLink { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2137 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2138 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2139 } 2140 } 2141 impl ::std::convert::From<ContentLink> for ::windows::runtime::IInspectable { from(value: ContentLink) -> Self2142 fn from(value: ContentLink) -> Self { 2143 value.0 2144 } 2145 } 2146 impl ::std::convert::From<&ContentLink> for ::windows::runtime::IInspectable { from(value: &ContentLink) -> Self2147 fn from(value: &ContentLink) -> Self { 2148 value.0.clone() 2149 } 2150 } 2151 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContentLink { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2152 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2153 ::windows::runtime::Param::Owned(self.0) 2154 } 2155 } 2156 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContentLink { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2157 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2158 ::windows::runtime::Param::Borrowed(&self.0) 2159 } 2160 } 2161 impl ::std::convert::From<ContentLink> for Inline { from(value: ContentLink) -> Self2162 fn from(value: ContentLink) -> Self { 2163 ::std::convert::Into::<Inline>::into(&value) 2164 } 2165 } 2166 impl ::std::convert::From<&ContentLink> for Inline { from(value: &ContentLink) -> Self2167 fn from(value: &ContentLink) -> Self { 2168 ::windows::runtime::Interface::cast(value).unwrap() 2169 } 2170 } 2171 impl<'a> ::windows::runtime::IntoParam<'a, Inline> for ContentLink { into_param(self) -> ::windows::runtime::Param<'a, Inline>2172 fn into_param(self) -> ::windows::runtime::Param<'a, Inline> { 2173 ::windows::runtime::Param::Owned(::std::convert::Into::<Inline>::into(self)) 2174 } 2175 } 2176 impl<'a> ::windows::runtime::IntoParam<'a, Inline> for &ContentLink { into_param(self) -> ::windows::runtime::Param<'a, Inline>2177 fn into_param(self) -> ::windows::runtime::Param<'a, Inline> { 2178 ::windows::runtime::Param::Owned(::std::convert::Into::<Inline>::into(::std::clone::Clone::clone(self))) 2179 } 2180 } 2181 impl ::std::convert::From<ContentLink> for TextElement { from(value: ContentLink) -> Self2182 fn from(value: ContentLink) -> Self { 2183 ::std::convert::Into::<TextElement>::into(&value) 2184 } 2185 } 2186 impl ::std::convert::From<&ContentLink> for TextElement { from(value: &ContentLink) -> Self2187 fn from(value: &ContentLink) -> Self { 2188 ::windows::runtime::Interface::cast(value).unwrap() 2189 } 2190 } 2191 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for ContentLink { into_param(self) -> ::windows::runtime::Param<'a, TextElement>2192 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 2193 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(self)) 2194 } 2195 } 2196 impl<'a> ::windows::runtime::IntoParam<'a, TextElement> for &ContentLink { into_param(self) -> ::windows::runtime::Param<'a, TextElement>2197 fn into_param(self) -> ::windows::runtime::Param<'a, TextElement> { 2198 ::windows::runtime::Param::Owned(::std::convert::Into::<TextElement>::into(::std::clone::Clone::clone(self))) 2199 } 2200 } 2201 impl ::std::convert::From<ContentLink> for super::DependencyObject { from(value: ContentLink) -> Self2202 fn from(value: ContentLink) -> Self { 2203 ::std::convert::Into::<super::DependencyObject>::into(&value) 2204 } 2205 } 2206 impl ::std::convert::From<&ContentLink> for super::DependencyObject { from(value: &ContentLink) -> Self2207 fn from(value: &ContentLink) -> Self { 2208 ::windows::runtime::Interface::cast(value).unwrap() 2209 } 2210 } 2211 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for ContentLink { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>2212 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 2213 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 2214 } 2215 } 2216 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &ContentLink { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>2217 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 2218 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 2219 } 2220 } 2221 unsafe impl ::std::marker::Send for ContentLink {} 2222 unsafe impl ::std::marker::Sync for ContentLink {} 2223 #[repr(transparent)] 2224 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2225 pub struct ContentLinkInvokedEventArgs(::windows::runtime::IInspectable); 2226 impl ContentLinkInvokedEventArgs { 2227 #[cfg(feature = "UI_Text")] ContentLinkInfo(&self) -> ::windows::runtime::Result<super::super::Text::ContentLinkInfo>2228 pub fn ContentLinkInfo(&self) -> ::windows::runtime::Result<super::super::Text::ContentLinkInfo> { 2229 let this = self; 2230 unsafe { 2231 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2232 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Text::ContentLinkInfo>(result__) 2233 } 2234 } Handled(&self) -> ::windows::runtime::Result<bool>2235 pub fn Handled(&self) -> ::windows::runtime::Result<bool> { 2236 let this = self; 2237 unsafe { 2238 let mut result__: bool = ::std::mem::zeroed(); 2239 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2240 } 2241 } SetHandled(&self, value: bool) -> ::windows::runtime::Result<()>2242 pub fn SetHandled(&self, value: bool) -> ::windows::runtime::Result<()> { 2243 let this = self; 2244 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value).ok() } 2245 } 2246 } 2247 unsafe impl ::windows::runtime::RuntimeType for ContentLinkInvokedEventArgs { 2248 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs;{546717c1-e8df-4593-9639-97595fdf8310})"); 2249 } 2250 unsafe impl ::windows::runtime::Interface for ContentLinkInvokedEventArgs { 2251 type Vtable = IContentLinkInvokedEventArgs_abi; 2252 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1416042433, 59615, 17811, [150, 57, 151, 89, 95, 223, 131, 16]); 2253 } 2254 impl ::windows::runtime::RuntimeName for ContentLinkInvokedEventArgs { 2255 const NAME: &'static str = "Windows.UI.Xaml.Documents.ContentLinkInvokedEventArgs"; 2256 } 2257 impl ::std::convert::From<ContentLinkInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: ContentLinkInvokedEventArgs) -> Self2258 fn from(value: ContentLinkInvokedEventArgs) -> Self { 2259 unsafe { ::std::mem::transmute(value) } 2260 } 2261 } 2262 impl ::std::convert::From<&ContentLinkInvokedEventArgs> for ::windows::runtime::IUnknown { from(value: &ContentLinkInvokedEventArgs) -> Self2263 fn from(value: &ContentLinkInvokedEventArgs) -> Self { 2264 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2265 } 2266 } 2267 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContentLinkInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2268 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2269 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2270 } 2271 } 2272 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContentLinkInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2273 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2274 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2275 } 2276 } 2277 impl ::std::convert::From<ContentLinkInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: ContentLinkInvokedEventArgs) -> Self2278 fn from(value: ContentLinkInvokedEventArgs) -> Self { 2279 value.0 2280 } 2281 } 2282 impl ::std::convert::From<&ContentLinkInvokedEventArgs> for ::windows::runtime::IInspectable { from(value: &ContentLinkInvokedEventArgs) -> Self2283 fn from(value: &ContentLinkInvokedEventArgs) -> Self { 2284 value.0.clone() 2285 } 2286 } 2287 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContentLinkInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2288 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2289 ::windows::runtime::Param::Owned(self.0) 2290 } 2291 } 2292 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContentLinkInvokedEventArgs { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2293 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2294 ::windows::runtime::Param::Borrowed(&self.0) 2295 } 2296 } 2297 unsafe impl ::std::marker::Send for ContentLinkInvokedEventArgs {} 2298 unsafe impl ::std::marker::Sync for ContentLinkInvokedEventArgs {} 2299 #[repr(transparent)] 2300 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2301 pub struct ContentLinkProvider(::windows::runtime::IInspectable); 2302 impl ContentLinkProvider { GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2303 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2304 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2305 unsafe { 2306 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2307 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2308 } 2309 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>2310 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2311 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2312 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 2313 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>2314 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 2315 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2316 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 2317 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2318 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2319 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2320 unsafe { 2321 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2322 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2323 } 2324 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2325 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2326 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2327 unsafe { 2328 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2329 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2330 } 2331 } 2332 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>2333 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 2334 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2335 unsafe { 2336 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2337 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 2338 } 2339 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>2340 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 2341 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 2342 unsafe { 2343 let mut result__: i64 = ::std::mem::zeroed(); 2344 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 2345 } 2346 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>2347 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 2348 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 2349 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 2350 } 2351 } 2352 unsafe impl ::windows::runtime::RuntimeType for ContentLinkProvider { 2353 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.ContentLinkProvider;{730587fd-bfdc-4cb3-904d-b65ab339bbf5})"); 2354 } 2355 unsafe impl ::windows::runtime::Interface for ContentLinkProvider { 2356 type Vtable = IContentLinkProvider_abi; 2357 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1929742333, 49116, 19635, [144, 77, 182, 90, 179, 57, 187, 245]); 2358 } 2359 impl ::windows::runtime::RuntimeName for ContentLinkProvider { 2360 const NAME: &'static str = "Windows.UI.Xaml.Documents.ContentLinkProvider"; 2361 } 2362 impl ::std::convert::From<ContentLinkProvider> for ::windows::runtime::IUnknown { from(value: ContentLinkProvider) -> Self2363 fn from(value: ContentLinkProvider) -> Self { 2364 unsafe { ::std::mem::transmute(value) } 2365 } 2366 } 2367 impl ::std::convert::From<&ContentLinkProvider> for ::windows::runtime::IUnknown { from(value: &ContentLinkProvider) -> Self2368 fn from(value: &ContentLinkProvider) -> Self { 2369 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2370 } 2371 } 2372 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2373 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2374 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2375 } 2376 } 2377 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2378 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2379 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2380 } 2381 } 2382 impl ::std::convert::From<ContentLinkProvider> for ::windows::runtime::IInspectable { from(value: ContentLinkProvider) -> Self2383 fn from(value: ContentLinkProvider) -> Self { 2384 value.0 2385 } 2386 } 2387 impl ::std::convert::From<&ContentLinkProvider> for ::windows::runtime::IInspectable { from(value: &ContentLinkProvider) -> Self2388 fn from(value: &ContentLinkProvider) -> Self { 2389 value.0.clone() 2390 } 2391 } 2392 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2393 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2394 ::windows::runtime::Param::Owned(self.0) 2395 } 2396 } 2397 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2398 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2399 ::windows::runtime::Param::Borrowed(&self.0) 2400 } 2401 } 2402 impl ::std::convert::From<ContentLinkProvider> for super::DependencyObject { from(value: ContentLinkProvider) -> Self2403 fn from(value: ContentLinkProvider) -> Self { 2404 ::std::convert::Into::<super::DependencyObject>::into(&value) 2405 } 2406 } 2407 impl ::std::convert::From<&ContentLinkProvider> for super::DependencyObject { from(value: &ContentLinkProvider) -> Self2408 fn from(value: &ContentLinkProvider) -> Self { 2409 ::windows::runtime::Interface::cast(value).unwrap() 2410 } 2411 } 2412 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>2413 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 2414 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(self)) 2415 } 2416 } 2417 impl<'a> ::windows::runtime::IntoParam<'a, super::DependencyObject> for &ContentLinkProvider { into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject>2418 fn into_param(self) -> ::windows::runtime::Param<'a, super::DependencyObject> { 2419 ::windows::runtime::Param::Owned(::std::convert::Into::<super::DependencyObject>::into(::std::clone::Clone::clone(self))) 2420 } 2421 } 2422 unsafe impl ::std::marker::Send for ContentLinkProvider {} 2423 unsafe impl ::std::marker::Sync for ContentLinkProvider {} 2424 #[repr(transparent)] 2425 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2426 pub struct ContentLinkProviderCollection(::windows::runtime::IInspectable); 2427 impl ContentLinkProviderCollection { new() -> ::windows::runtime::Result<Self>2428 pub fn new() -> ::windows::runtime::Result<Self> { 2429 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 2430 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2431 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2432 static mut SHARED: ::windows::runtime::FactoryCache<ContentLinkProviderCollection, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 2433 unsafe { SHARED.call(callback) } 2434 } 2435 #[cfg(feature = "Foundation_Collections")] First(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IIterator<ContentLinkProvider>>2436 pub fn First(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IIterator<ContentLinkProvider>> { 2437 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>>(self)?; 2438 unsafe { 2439 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2440 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IIterator<ContentLinkProvider>>(result__) 2441 } 2442 } 2443 #[cfg(feature = "Foundation_Collections")] GetAt(&self, index: u32) -> ::windows::runtime::Result<ContentLinkProvider>2444 pub fn GetAt(&self, index: u32) -> ::windows::runtime::Result<ContentLinkProvider> { 2445 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2446 unsafe { 2447 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2448 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), index, &mut result__).from_abi::<ContentLinkProvider>(result__) 2449 } 2450 } 2451 #[cfg(feature = "Foundation_Collections")] Size(&self) -> ::windows::runtime::Result<u32>2452 pub fn Size(&self) -> ::windows::runtime::Result<u32> { 2453 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2454 unsafe { 2455 let mut result__: u32 = ::std::mem::zeroed(); 2456 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<u32>(result__) 2457 } 2458 } 2459 #[cfg(feature = "Foundation_Collections")] GetView(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<ContentLinkProvider>>2460 pub fn GetView(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Collections::IVectorView<ContentLinkProvider>> { 2461 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2462 unsafe { 2463 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2464 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Collections::IVectorView<ContentLinkProvider>>(result__) 2465 } 2466 } 2467 #[cfg(feature = "Foundation_Collections")] IndexOf<'a, Param0: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, value: Param0, index: &mut u32) -> ::windows::runtime::Result<bool>2468 pub fn IndexOf<'a, Param0: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, value: Param0, index: &mut u32) -> ::windows::runtime::Result<bool> { 2469 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2470 unsafe { 2471 let mut result__: bool = ::std::mem::zeroed(); 2472 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi(), index, &mut result__).from_abi::<bool>(result__) 2473 } 2474 } 2475 #[cfg(feature = "Foundation_Collections")] SetAt<'a, Param1: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()>2476 pub fn SetAt<'a, Param1: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()> { 2477 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2478 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), index, value.into_param().abi()).ok() } 2479 } 2480 #[cfg(feature = "Foundation_Collections")] InsertAt<'a, Param1: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()>2481 pub fn InsertAt<'a, Param1: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, index: u32, value: Param1) -> ::windows::runtime::Result<()> { 2482 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2483 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), index, value.into_param().abi()).ok() } 2484 } 2485 #[cfg(feature = "Foundation_Collections")] RemoveAt(&self, index: u32) -> ::windows::runtime::Result<()>2486 pub fn RemoveAt(&self, index: u32) -> ::windows::runtime::Result<()> { 2487 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2488 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), index).ok() } 2489 } 2490 #[cfg(feature = "Foundation_Collections")] Append<'a, Param0: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, value: Param0) -> ::windows::runtime::Result<()>2491 pub fn Append<'a, Param0: ::windows::runtime::IntoParam<'a, ContentLinkProvider>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2492 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2493 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2494 } 2495 #[cfg(feature = "Foundation_Collections")] RemoveAtEnd(&self) -> ::windows::runtime::Result<()>2496 pub fn RemoveAtEnd(&self) -> ::windows::runtime::Result<()> { 2497 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2498 unsafe { (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this)).ok() } 2499 } 2500 #[cfg(feature = "Foundation_Collections")] Clear(&self) -> ::windows::runtime::Result<()>2501 pub fn Clear(&self) -> ::windows::runtime::Result<()> { 2502 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2503 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this)).ok() } 2504 } 2505 #[cfg(feature = "Foundation_Collections")] GetMany(&self, startindex: u32, items: &mut [<ContentLinkProvider as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<u32>2506 pub fn GetMany(&self, startindex: u32, items: &mut [<ContentLinkProvider as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<u32> { 2507 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2508 unsafe { 2509 let mut result__: u32 = ::std::mem::zeroed(); 2510 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), startindex, items.len() as u32, ::std::mem::transmute_copy(&items), &mut result__).from_abi::<u32>(result__) 2511 } 2512 } 2513 #[cfg(feature = "Foundation_Collections")] ReplaceAll(&self, items: &[<ContentLinkProvider as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<()>2514 pub fn ReplaceAll(&self, items: &[<ContentLinkProvider as ::windows::runtime::Abi>::DefaultType]) -> ::windows::runtime::Result<()> { 2515 let this = &::windows::runtime::Interface::cast::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>(self)?; 2516 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), items.len() as u32, ::std::mem::transmute(items.as_ptr())).ok() } 2517 } 2518 } 2519 unsafe impl ::windows::runtime::RuntimeType for ContentLinkProviderCollection { 2520 const SIGNATURE: ::windows::runtime::ConstBuffer = ::windows::runtime::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Documents.ContentLinkProviderCollection;{f5b84d0c-a9f4-4d1a-a13c-10def1843734})"); 2521 } 2522 unsafe impl ::windows::runtime::Interface for ContentLinkProviderCollection { 2523 type Vtable = IContentLinkProviderCollection_abi; 2524 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4122496268, 43508, 19738, [161, 60, 16, 222, 241, 132, 55, 52]); 2525 } 2526 impl ::windows::runtime::RuntimeName for ContentLinkProviderCollection { 2527 const NAME: &'static str = "Windows.UI.Xaml.Documents.ContentLinkProviderCollection"; 2528 } 2529 impl ::std::convert::From<ContentLinkProviderCollection> for ::windows::runtime::IUnknown { from(value: ContentLinkProviderCollection) -> Self2530 fn from(value: ContentLinkProviderCollection) -> Self { 2531 unsafe { ::std::mem::transmute(value) } 2532 } 2533 } 2534 impl ::std::convert::From<&ContentLinkProviderCollection> for ::windows::runtime::IUnknown { from(value: &ContentLinkProviderCollection) -> Self2535 fn from(value: &ContentLinkProviderCollection) -> Self { 2536 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2537 } 2538 } 2539 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2540 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2541 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2542 } 2543 } 2544 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2545 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2546 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2547 } 2548 } 2549 impl ::std::convert::From<ContentLinkProviderCollection> for ::windows::runtime::IInspectable { from(value: ContentLinkProviderCollection) -> Self2550 fn from(value: ContentLinkProviderCollection) -> Self { 2551 value.0 2552 } 2553 } 2554 impl ::std::convert::From<&ContentLinkProviderCollection> for ::windows::runtime::IInspectable { from(value: &ContentLinkProviderCollection) -> Self2555 fn from(value: &ContentLinkProviderCollection) -> Self { 2556 value.0.clone() 2557 } 2558 } 2559 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2560 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2561 ::windows::runtime::Param::Owned(self.0) 2562 } 2563 } 2564 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable> for &'a ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable>2565 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IInspectable> { 2566 ::windows::runtime::Param::Borrowed(&self.0) 2567 } 2568 } 2569 #[cfg(feature = "Foundation_Collections")] 2570 impl ::std::convert::TryFrom<ContentLinkProviderCollection> for super::super::super::Foundation::Collections::IIterable<ContentLinkProvider> { 2571 type Error = ::windows::runtime::Error; try_from(value: ContentLinkProviderCollection) -> ::windows::runtime::Result<Self>2572 fn try_from(value: ContentLinkProviderCollection) -> ::windows::runtime::Result<Self> { 2573 ::std::convert::TryFrom::try_from(&value) 2574 } 2575 } 2576 #[cfg(feature = "Foundation_Collections")] 2577 impl ::std::convert::TryFrom<&ContentLinkProviderCollection> for super::super::super::Foundation::Collections::IIterable<ContentLinkProvider> { 2578 type Error = ::windows::runtime::Error; try_from(value: &ContentLinkProviderCollection) -> ::windows::runtime::Result<Self>2579 fn try_from(value: &ContentLinkProviderCollection) -> ::windows::runtime::Result<Self> { 2580 ::windows::runtime::Interface::cast(value) 2581 } 2582 } 2583 #[cfg(feature = "Foundation_Collections")] 2584 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>> for ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>>2585 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>> { 2586 ::windows::runtime::IntoParam::into_param(&self) 2587 } 2588 } 2589 #[cfg(feature = "Foundation_Collections")] 2590 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>> for &ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>>2591 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>> { 2592 ::std::convert::TryInto::<super::super::super::Foundation::Collections::IIterable<ContentLinkProvider>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2593 } 2594 } 2595 #[cfg(feature = "Foundation_Collections")] 2596 impl ::std::convert::TryFrom<ContentLinkProviderCollection> for super::super::super::Foundation::Collections::IVector<ContentLinkProvider> { 2597 type Error = ::windows::runtime::Error; try_from(value: ContentLinkProviderCollection) -> ::windows::runtime::Result<Self>2598 fn try_from(value: ContentLinkProviderCollection) -> ::windows::runtime::Result<Self> { 2599 ::std::convert::TryFrom::try_from(&value) 2600 } 2601 } 2602 #[cfg(feature = "Foundation_Collections")] 2603 impl ::std::convert::TryFrom<&ContentLinkProviderCollection> for super::super::super::Foundation::Collections::IVector<ContentLinkProvider> { 2604 type Error = ::windows::runtime::Error; try_from(value: &ContentLinkProviderCollection) -> ::windows::runtime::Result<Self>2605 fn try_from(value: &ContentLinkProviderCollection) -> ::windows::runtime::Result<Self> { 2606 ::windows::runtime::Interface::cast(value) 2607 } 2608 } 2609 #[cfg(feature = "Foundation_Collections")] 2610 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>> for ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>2611 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>> { 2612 ::windows::runtime::IntoParam::into_param(&self) 2613 } 2614 } 2615 #[cfg(feature = "Foundation_Collections")] 2616 impl<'a> ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>> for &ContentLinkProviderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>2617 fn into_param(self) -> ::windows::runtime::Param<'a, super::super::super::Foundation::Collections::IVector<ContentLinkProvider>> { 2618 ::std::convert::TryInto::<super::super::super::Foundation::Collections::IVector<ContentLinkProvider>>::try_into(self).map(::windows::runtime::Param::Owned).unwrap_or(::windows::runtime::Param::None) 2619 } 2620 } 2621 unsafe impl ::std::marker::Send for ContentLinkProviderCollection {} 2622 unsafe impl ::std::marker::Sync for ContentLinkProviderCollection {} 2623 #[cfg(all(feature = "Foundation_Collections"))] 2624 impl ::std::iter::IntoIterator for ContentLinkProviderCollection { 2625 type Item = ContentLinkProvider; 2626 type IntoIter = super::super::super::Foundation::Collections::VectorIterator<Self::Item>; into_iter(self) -> Self::IntoIter2627 fn into_iter(self) -> Self::IntoIter { 2628 ::std::iter::IntoIterator::into_iter(&self) 2629 } 2630 } 2631 #[cfg(all(feature = "Foundation_Collections"))] 2632 impl ::std::iter::IntoIterator for &ContentLinkProviderCollection { 2633 type Item = ContentLinkProvider; 2634 type IntoIter = super::super::super::Foundation::Collections::VectorIterator<Self::Item>; into_iter(self) -> Self::IntoIter2635 fn into_iter(self) -> Self::IntoIter { 2636 super::super::super::Foundation::Collections::VectorIterator::new(::std::convert::TryInto::try_into(self).ok()) 2637 } 2638 } 2639 #[repr(transparent)] 2640 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2641 pub struct Glyphs(::windows::runtime::IInspectable); 2642 impl Glyphs { new() -> ::windows::runtime::Result<Self>2643 pub fn new() -> ::windows::runtime::Result<Self> { 2644 Self::IActivationFactory(|f| f.activate_instance::<Self>()) 2645 } IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R>2646 fn IActivationFactory<R, F: FnOnce(&::windows::runtime::IActivationFactory) -> ::windows::runtime::Result<R>>(callback: F) -> ::windows::runtime::Result<R> { 2647 static mut SHARED: ::windows::runtime::FactoryCache<Glyphs, ::windows::runtime::IActivationFactory> = ::windows::runtime::FactoryCache::new(); 2648 unsafe { SHARED.call(callback) } 2649 } UnicodeString(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2650 pub fn UnicodeString(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2651 let this = self; 2652 unsafe { 2653 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2654 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2655 } 2656 } SetUnicodeString<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2657 pub fn SetUnicodeString<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2658 let this = self; 2659 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2660 } Indices(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2661 pub fn Indices(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2662 let this = self; 2663 unsafe { 2664 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2665 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2666 } 2667 } SetIndices<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2668 pub fn SetIndices<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2669 let this = self; 2670 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2671 } 2672 #[cfg(feature = "Foundation")] FontUri(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Uri>2673 pub fn FontUri(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Uri> { 2674 let this = self; 2675 unsafe { 2676 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2677 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Uri>(result__) 2678 } 2679 } 2680 #[cfg(feature = "Foundation")] SetFontUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()>2681 pub fn SetFontUri<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2682 let this = self; 2683 unsafe { (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2684 } 2685 #[cfg(feature = "UI_Xaml_Media")] StyleSimulations(&self) -> ::windows::runtime::Result<super::Media::StyleSimulations>2686 pub fn StyleSimulations(&self) -> ::windows::runtime::Result<super::Media::StyleSimulations> { 2687 let this = self; 2688 unsafe { 2689 let mut result__: super::Media::StyleSimulations = ::std::mem::zeroed(); 2690 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::StyleSimulations>(result__) 2691 } 2692 } 2693 #[cfg(feature = "UI_Xaml_Media")] SetStyleSimulations(&self, value: super::Media::StyleSimulations) -> ::windows::runtime::Result<()>2694 pub fn SetStyleSimulations(&self, value: super::Media::StyleSimulations) -> ::windows::runtime::Result<()> { 2695 let this = self; 2696 unsafe { (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), value).ok() } 2697 } FontRenderingEmSize(&self) -> ::windows::runtime::Result<f64>2698 pub fn FontRenderingEmSize(&self) -> ::windows::runtime::Result<f64> { 2699 let this = self; 2700 unsafe { 2701 let mut result__: f64 = ::std::mem::zeroed(); 2702 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2703 } 2704 } SetFontRenderingEmSize(&self, value: f64) -> ::windows::runtime::Result<()>2705 pub fn SetFontRenderingEmSize(&self, value: f64) -> ::windows::runtime::Result<()> { 2706 let this = self; 2707 unsafe { (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), value).ok() } 2708 } OriginX(&self) -> ::windows::runtime::Result<f64>2709 pub fn OriginX(&self) -> ::windows::runtime::Result<f64> { 2710 let this = self; 2711 unsafe { 2712 let mut result__: f64 = ::std::mem::zeroed(); 2713 (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2714 } 2715 } SetOriginX(&self, value: f64) -> ::windows::runtime::Result<()>2716 pub fn SetOriginX(&self, value: f64) -> ::windows::runtime::Result<()> { 2717 let this = self; 2718 unsafe { (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), value).ok() } 2719 } OriginY(&self) -> ::windows::runtime::Result<f64>2720 pub fn OriginY(&self) -> ::windows::runtime::Result<f64> { 2721 let this = self; 2722 unsafe { 2723 let mut result__: f64 = ::std::mem::zeroed(); 2724 (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2725 } 2726 } SetOriginY(&self, value: f64) -> ::windows::runtime::Result<()>2727 pub fn SetOriginY(&self, value: f64) -> ::windows::runtime::Result<()> { 2728 let this = self; 2729 unsafe { (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), value).ok() } 2730 } 2731 #[cfg(feature = "UI_Xaml_Media")] Fill(&self) -> ::windows::runtime::Result<super::Media::Brush>2732 pub fn Fill(&self) -> ::windows::runtime::Result<super::Media::Brush> { 2733 let this = self; 2734 unsafe { 2735 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2736 (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Media::Brush>(result__) 2737 } 2738 } 2739 #[cfg(feature = "UI_Xaml_Media")] SetFill<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()>2740 pub fn SetFill<'a, Param0: ::windows::runtime::IntoParam<'a, super::Media::Brush>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2741 let this = self; 2742 unsafe { (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2743 } IsColorFontEnabled(&self) -> ::windows::runtime::Result<bool>2744 pub fn IsColorFontEnabled(&self) -> ::windows::runtime::Result<bool> { 2745 let this = &::windows::runtime::Interface::cast::<IGlyphs2>(self)?; 2746 unsafe { 2747 let mut result__: bool = ::std::mem::zeroed(); 2748 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<bool>(result__) 2749 } 2750 } SetIsColorFontEnabled(&self, value: bool) -> ::windows::runtime::Result<()>2751 pub fn SetIsColorFontEnabled(&self, value: bool) -> ::windows::runtime::Result<()> { 2752 let this = &::windows::runtime::Interface::cast::<IGlyphs2>(self)?; 2753 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), value).ok() } 2754 } ColorFontPaletteIndex(&self) -> ::windows::runtime::Result<i32>2755 pub fn ColorFontPaletteIndex(&self) -> ::windows::runtime::Result<i32> { 2756 let this = &::windows::runtime::Interface::cast::<IGlyphs2>(self)?; 2757 unsafe { 2758 let mut result__: i32 = ::std::mem::zeroed(); 2759 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<i32>(result__) 2760 } 2761 } SetColorFontPaletteIndex(&self, value: i32) -> ::windows::runtime::Result<()>2762 pub fn SetColorFontPaletteIndex(&self, value: i32) -> ::windows::runtime::Result<()> { 2763 let this = &::windows::runtime::Interface::cast::<IGlyphs2>(self)?; 2764 unsafe { (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), value).ok() } 2765 } UnicodeStringProperty() -> ::windows::runtime::Result<super::DependencyProperty>2766 pub fn UnicodeStringProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2767 Self::IGlyphsStatics(|this| unsafe { 2768 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2769 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2770 }) 2771 } IndicesProperty() -> ::windows::runtime::Result<super::DependencyProperty>2772 pub fn IndicesProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2773 Self::IGlyphsStatics(|this| unsafe { 2774 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2775 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2776 }) 2777 } FontUriProperty() -> ::windows::runtime::Result<super::DependencyProperty>2778 pub fn FontUriProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2779 Self::IGlyphsStatics(|this| unsafe { 2780 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2781 (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2782 }) 2783 } StyleSimulationsProperty() -> ::windows::runtime::Result<super::DependencyProperty>2784 pub fn StyleSimulationsProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2785 Self::IGlyphsStatics(|this| unsafe { 2786 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2787 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2788 }) 2789 } FontRenderingEmSizeProperty() -> ::windows::runtime::Result<super::DependencyProperty>2790 pub fn FontRenderingEmSizeProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2791 Self::IGlyphsStatics(|this| unsafe { 2792 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2793 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2794 }) 2795 } OriginXProperty() -> ::windows::runtime::Result<super::DependencyProperty>2796 pub fn OriginXProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2797 Self::IGlyphsStatics(|this| unsafe { 2798 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2799 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2800 }) 2801 } OriginYProperty() -> ::windows::runtime::Result<super::DependencyProperty>2802 pub fn OriginYProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2803 Self::IGlyphsStatics(|this| unsafe { 2804 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2805 (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2806 }) 2807 } FillProperty() -> ::windows::runtime::Result<super::DependencyProperty>2808 pub fn FillProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2809 Self::IGlyphsStatics(|this| unsafe { 2810 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2811 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2812 }) 2813 } IsColorFontEnabledProperty() -> ::windows::runtime::Result<super::DependencyProperty>2814 pub fn IsColorFontEnabledProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2815 Self::IGlyphsStatics2(|this| unsafe { 2816 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2817 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2818 }) 2819 } ColorFontPaletteIndexProperty() -> ::windows::runtime::Result<super::DependencyProperty>2820 pub fn ColorFontPaletteIndexProperty() -> ::windows::runtime::Result<super::DependencyProperty> { 2821 Self::IGlyphsStatics2(|this| unsafe { 2822 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2823 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyProperty>(result__) 2824 }) 2825 } GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2826 pub fn GetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2827 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2828 unsafe { 2829 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2830 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2831 } 2832 } SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()>2833 pub fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, dp: Param0, value: Param1) -> ::windows::runtime::Result<()> { 2834 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2835 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), value.into_param().abi()).ok() } 2836 } ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()>2837 pub fn ClearValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<()> { 2838 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2839 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), dp.into_param().abi()).ok() } 2840 } ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2841 pub fn ReadLocalValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2842 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2843 unsafe { 2844 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2845 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2846 } 2847 } GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2848 pub fn GetAnimationBaseValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2849 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2850 unsafe { 2851 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2852 (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), dp.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2853 } 2854 } 2855 #[cfg(feature = "UI_Core")] Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher>2856 pub fn Dispatcher(&self) -> ::windows::runtime::Result<super::super::Core::CoreDispatcher> { 2857 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject>(self)?; 2858 unsafe { 2859 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2860 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::Core::CoreDispatcher>(result__) 2861 } 2862 } RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64>2863 pub fn RegisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::DependencyPropertyChangedCallback>>(&self, dp: Param0, callback: Param1) -> ::windows::runtime::Result<i64> { 2864 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 2865 unsafe { 2866 let mut result__: i64 = ::std::mem::zeroed(); 2867 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), dp.into_param().abi(), callback.into_param().abi(), &mut result__).from_abi::<i64>(result__) 2868 } 2869 } UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()>2870 pub fn UnregisterPropertyChangedCallback<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>>(&self, dp: Param0, token: i64) -> ::windows::runtime::Result<()> { 2871 let this = &::windows::runtime::Interface::cast::<super::IDependencyObject2>(self)?; 2872 unsafe { (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), dp.into_param().abi(), token).ok() } 2873 } 2874 #[cfg(feature = "Foundation_Collections")] Triggers(&self) -> ::windows::runtime::Result<super::TriggerCollection>2875 pub fn Triggers(&self) -> ::windows::runtime::Result<super::TriggerCollection> { 2876 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2877 unsafe { 2878 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2879 (::windows::runtime::Interface::vtable(this).6)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::TriggerCollection>(result__) 2880 } 2881 } Resources(&self) -> ::windows::runtime::Result<super::ResourceDictionary>2882 pub fn Resources(&self) -> ::windows::runtime::Result<super::ResourceDictionary> { 2883 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2884 unsafe { 2885 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2886 (::windows::runtime::Interface::vtable(this).7)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::ResourceDictionary>(result__) 2887 } 2888 } SetResources<'a, Param0: ::windows::runtime::IntoParam<'a, super::ResourceDictionary>>(&self, value: Param0) -> ::windows::runtime::Result<()>2889 pub fn SetResources<'a, Param0: ::windows::runtime::IntoParam<'a, super::ResourceDictionary>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2890 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2891 unsafe { (::windows::runtime::Interface::vtable(this).8)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2892 } Tag(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>2893 pub fn Tag(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 2894 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2895 unsafe { 2896 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 2897 (::windows::runtime::Interface::vtable(this).9)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 2898 } 2899 } SetTag<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()>2900 pub fn SetTag<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2901 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2902 unsafe { (::windows::runtime::Interface::vtable(this).10)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2903 } Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>2904 pub fn Language(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 2905 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2906 unsafe { 2907 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 2908 (::windows::runtime::Interface::vtable(this).11)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 2909 } 2910 } SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>2911 pub fn SetLanguage<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2912 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2913 unsafe { (::windows::runtime::Interface::vtable(this).12)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 2914 } ActualWidth(&self) -> ::windows::runtime::Result<f64>2915 pub fn ActualWidth(&self) -> ::windows::runtime::Result<f64> { 2916 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2917 unsafe { 2918 let mut result__: f64 = ::std::mem::zeroed(); 2919 (::windows::runtime::Interface::vtable(this).13)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2920 } 2921 } ActualHeight(&self) -> ::windows::runtime::Result<f64>2922 pub fn ActualHeight(&self) -> ::windows::runtime::Result<f64> { 2923 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2924 unsafe { 2925 let mut result__: f64 = ::std::mem::zeroed(); 2926 (::windows::runtime::Interface::vtable(this).14)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2927 } 2928 } Width(&self) -> ::windows::runtime::Result<f64>2929 pub fn Width(&self) -> ::windows::runtime::Result<f64> { 2930 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2931 unsafe { 2932 let mut result__: f64 = ::std::mem::zeroed(); 2933 (::windows::runtime::Interface::vtable(this).15)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2934 } 2935 } SetWidth(&self, value: f64) -> ::windows::runtime::Result<()>2936 pub fn SetWidth(&self, value: f64) -> ::windows::runtime::Result<()> { 2937 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2938 unsafe { (::windows::runtime::Interface::vtable(this).16)(::std::mem::transmute_copy(this), value).ok() } 2939 } Height(&self) -> ::windows::runtime::Result<f64>2940 pub fn Height(&self) -> ::windows::runtime::Result<f64> { 2941 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2942 unsafe { 2943 let mut result__: f64 = ::std::mem::zeroed(); 2944 (::windows::runtime::Interface::vtable(this).17)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2945 } 2946 } SetHeight(&self, value: f64) -> ::windows::runtime::Result<()>2947 pub fn SetHeight(&self, value: f64) -> ::windows::runtime::Result<()> { 2948 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2949 unsafe { (::windows::runtime::Interface::vtable(this).18)(::std::mem::transmute_copy(this), value).ok() } 2950 } MinWidth(&self) -> ::windows::runtime::Result<f64>2951 pub fn MinWidth(&self) -> ::windows::runtime::Result<f64> { 2952 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2953 unsafe { 2954 let mut result__: f64 = ::std::mem::zeroed(); 2955 (::windows::runtime::Interface::vtable(this).19)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2956 } 2957 } SetMinWidth(&self, value: f64) -> ::windows::runtime::Result<()>2958 pub fn SetMinWidth(&self, value: f64) -> ::windows::runtime::Result<()> { 2959 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2960 unsafe { (::windows::runtime::Interface::vtable(this).20)(::std::mem::transmute_copy(this), value).ok() } 2961 } MaxWidth(&self) -> ::windows::runtime::Result<f64>2962 pub fn MaxWidth(&self) -> ::windows::runtime::Result<f64> { 2963 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2964 unsafe { 2965 let mut result__: f64 = ::std::mem::zeroed(); 2966 (::windows::runtime::Interface::vtable(this).21)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2967 } 2968 } SetMaxWidth(&self, value: f64) -> ::windows::runtime::Result<()>2969 pub fn SetMaxWidth(&self, value: f64) -> ::windows::runtime::Result<()> { 2970 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2971 unsafe { (::windows::runtime::Interface::vtable(this).22)(::std::mem::transmute_copy(this), value).ok() } 2972 } MinHeight(&self) -> ::windows::runtime::Result<f64>2973 pub fn MinHeight(&self) -> ::windows::runtime::Result<f64> { 2974 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2975 unsafe { 2976 let mut result__: f64 = ::std::mem::zeroed(); 2977 (::windows::runtime::Interface::vtable(this).23)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2978 } 2979 } SetMinHeight(&self, value: f64) -> ::windows::runtime::Result<()>2980 pub fn SetMinHeight(&self, value: f64) -> ::windows::runtime::Result<()> { 2981 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2982 unsafe { (::windows::runtime::Interface::vtable(this).24)(::std::mem::transmute_copy(this), value).ok() } 2983 } MaxHeight(&self) -> ::windows::runtime::Result<f64>2984 pub fn MaxHeight(&self) -> ::windows::runtime::Result<f64> { 2985 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2986 unsafe { 2987 let mut result__: f64 = ::std::mem::zeroed(); 2988 (::windows::runtime::Interface::vtable(this).25)(::std::mem::transmute_copy(this), &mut result__).from_abi::<f64>(result__) 2989 } 2990 } SetMaxHeight(&self, value: f64) -> ::windows::runtime::Result<()>2991 pub fn SetMaxHeight(&self, value: f64) -> ::windows::runtime::Result<()> { 2992 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2993 unsafe { (::windows::runtime::Interface::vtable(this).26)(::std::mem::transmute_copy(this), value).ok() } 2994 } HorizontalAlignment(&self) -> ::windows::runtime::Result<super::HorizontalAlignment>2995 pub fn HorizontalAlignment(&self) -> ::windows::runtime::Result<super::HorizontalAlignment> { 2996 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 2997 unsafe { 2998 let mut result__: super::HorizontalAlignment = ::std::mem::zeroed(); 2999 (::windows::runtime::Interface::vtable(this).27)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::HorizontalAlignment>(result__) 3000 } 3001 } SetHorizontalAlignment(&self, value: super::HorizontalAlignment) -> ::windows::runtime::Result<()>3002 pub fn SetHorizontalAlignment(&self, value: super::HorizontalAlignment) -> ::windows::runtime::Result<()> { 3003 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3004 unsafe { (::windows::runtime::Interface::vtable(this).28)(::std::mem::transmute_copy(this), value).ok() } 3005 } VerticalAlignment(&self) -> ::windows::runtime::Result<super::VerticalAlignment>3006 pub fn VerticalAlignment(&self) -> ::windows::runtime::Result<super::VerticalAlignment> { 3007 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3008 unsafe { 3009 let mut result__: super::VerticalAlignment = ::std::mem::zeroed(); 3010 (::windows::runtime::Interface::vtable(this).29)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::VerticalAlignment>(result__) 3011 } 3012 } SetVerticalAlignment(&self, value: super::VerticalAlignment) -> ::windows::runtime::Result<()>3013 pub fn SetVerticalAlignment(&self, value: super::VerticalAlignment) -> ::windows::runtime::Result<()> { 3014 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3015 unsafe { (::windows::runtime::Interface::vtable(this).30)(::std::mem::transmute_copy(this), value).ok() } 3016 } Margin(&self) -> ::windows::runtime::Result<super::Thickness>3017 pub fn Margin(&self) -> ::windows::runtime::Result<super::Thickness> { 3018 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3019 unsafe { 3020 let mut result__: super::Thickness = ::std::mem::zeroed(); 3021 (::windows::runtime::Interface::vtable(this).31)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Thickness>(result__) 3022 } 3023 } SetMargin<'a, Param0: ::windows::runtime::IntoParam<'a, super::Thickness>>(&self, value: Param0) -> ::windows::runtime::Result<()>3024 pub fn SetMargin<'a, Param0: ::windows::runtime::IntoParam<'a, super::Thickness>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3025 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3026 unsafe { (::windows::runtime::Interface::vtable(this).32)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3027 } Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING>3028 pub fn Name(&self) -> ::windows::runtime::Result<::windows::runtime::HSTRING> { 3029 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3030 unsafe { 3031 let mut result__: ::std::mem::ManuallyDrop<::windows::runtime::HSTRING> = ::std::mem::zeroed(); 3032 (::windows::runtime::Interface::vtable(this).33)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::HSTRING>(result__) 3033 } 3034 } SetName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()>3035 pub fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3036 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3037 unsafe { (::windows::runtime::Interface::vtable(this).34)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3038 } 3039 #[cfg(feature = "Foundation")] BaseUri(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Uri>3040 pub fn BaseUri(&self) -> ::windows::runtime::Result<super::super::super::Foundation::Uri> { 3041 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3042 unsafe { 3043 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3044 (::windows::runtime::Interface::vtable(this).35)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::super::super::Foundation::Uri>(result__) 3045 } 3046 } DataContext(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3047 pub fn DataContext(&self) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3048 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3049 unsafe { 3050 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3051 (::windows::runtime::Interface::vtable(this).36)(::std::mem::transmute_copy(this), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3052 } 3053 } SetDataContext<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()>3054 pub fn SetDataContext<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IInspectable>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3055 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3056 unsafe { (::windows::runtime::Interface::vtable(this).37)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3057 } Style(&self) -> ::windows::runtime::Result<super::Style>3058 pub fn Style(&self) -> ::windows::runtime::Result<super::Style> { 3059 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3060 unsafe { 3061 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3062 (::windows::runtime::Interface::vtable(this).38)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::Style>(result__) 3063 } 3064 } SetStyle<'a, Param0: ::windows::runtime::IntoParam<'a, super::Style>>(&self, value: Param0) -> ::windows::runtime::Result<()>3065 pub fn SetStyle<'a, Param0: ::windows::runtime::IntoParam<'a, super::Style>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 3066 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3067 unsafe { (::windows::runtime::Interface::vtable(this).39)(::std::mem::transmute_copy(this), value.into_param().abi()).ok() } 3068 } Parent(&self) -> ::windows::runtime::Result<super::DependencyObject>3069 pub fn Parent(&self) -> ::windows::runtime::Result<super::DependencyObject> { 3070 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3071 unsafe { 3072 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3073 (::windows::runtime::Interface::vtable(this).40)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::DependencyObject>(result__) 3074 } 3075 } FlowDirection(&self) -> ::windows::runtime::Result<super::FlowDirection>3076 pub fn FlowDirection(&self) -> ::windows::runtime::Result<super::FlowDirection> { 3077 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3078 unsafe { 3079 let mut result__: super::FlowDirection = ::std::mem::zeroed(); 3080 (::windows::runtime::Interface::vtable(this).41)(::std::mem::transmute_copy(this), &mut result__).from_abi::<super::FlowDirection>(result__) 3081 } 3082 } SetFlowDirection(&self, value: super::FlowDirection) -> ::windows::runtime::Result<()>3083 pub fn SetFlowDirection(&self, value: super::FlowDirection) -> ::windows::runtime::Result<()> { 3084 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3085 unsafe { (::windows::runtime::Interface::vtable(this).42)(::std::mem::transmute_copy(this), value).ok() } 3086 } 3087 #[cfg(feature = "Foundation")] Loaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>3088 pub fn Loaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 3089 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3090 unsafe { 3091 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3092 (::windows::runtime::Interface::vtable(this).43)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 3093 } 3094 } 3095 #[cfg(feature = "Foundation")] RemoveLoaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3096 pub fn RemoveLoaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3097 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3098 unsafe { (::windows::runtime::Interface::vtable(this).44)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3099 } 3100 #[cfg(feature = "Foundation")] Unloaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>3101 pub fn Unloaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 3102 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3103 unsafe { 3104 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3105 (::windows::runtime::Interface::vtable(this).45)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 3106 } 3107 } 3108 #[cfg(feature = "Foundation")] RemoveUnloaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3109 pub fn RemoveUnloaded<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3110 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3111 unsafe { (::windows::runtime::Interface::vtable(this).46)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3112 } 3113 #[cfg(feature = "Foundation")] SizeChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>3114 pub fn SizeChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::SizeChangedEventHandler>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 3115 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3116 unsafe { 3117 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3118 (::windows::runtime::Interface::vtable(this).47)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 3119 } 3120 } 3121 #[cfg(feature = "Foundation")] RemoveSizeChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3122 pub fn RemoveSizeChanged<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3123 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3124 unsafe { (::windows::runtime::Interface::vtable(this).48)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3125 } 3126 #[cfg(feature = "Foundation")] LayoutUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken>3127 pub fn LayoutUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::runtime::IInspectable>>>(&self, handler: Param0) -> ::windows::runtime::Result<super::super::super::Foundation::EventRegistrationToken> { 3128 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3129 unsafe { 3130 let mut result__: super::super::super::Foundation::EventRegistrationToken = ::std::mem::zeroed(); 3131 (::windows::runtime::Interface::vtable(this).49)(::std::mem::transmute_copy(this), handler.into_param().abi(), &mut result__).from_abi::<super::super::super::Foundation::EventRegistrationToken>(result__) 3132 } 3133 } 3134 #[cfg(feature = "Foundation")] RemoveLayoutUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()>3135 pub fn RemoveLayoutUpdated<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::runtime::Result<()> { 3136 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3137 unsafe { (::windows::runtime::Interface::vtable(this).50)(::std::mem::transmute_copy(this), token.into_param().abi()).ok() } 3138 } FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable>3139 pub fn FindName<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::HSTRING>>(&self, name: Param0) -> ::windows::runtime::Result<::windows::runtime::IInspectable> { 3140 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3141 unsafe { 3142 let mut result__: ::windows::runtime::RawPtr = ::std::mem::zeroed(); 3143 (::windows::runtime::Interface::vtable(this).51)(::std::mem::transmute_copy(this), name.into_param().abi(), &mut result__).from_abi::<::windows::runtime::IInspectable>(result__) 3144 } 3145 } 3146 #[cfg(feature = "UI_Xaml_Data")] SetBinding<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::runtime::Result<()>3147 pub fn SetBinding<'a, Param0: ::windows::runtime::IntoParam<'a, super::DependencyProperty>, Param1: ::windows::runtime::IntoParam<'a, super::Data::BindingBase>>(&self, dp: Param0, binding: Param1) -> ::windows::runtime::Result<()> { 3148 let this = &::windows::runtime::Interface::cast::<super::IFrameworkElement>(self)?; 3149 unsafe { (::windows::runtime::Interface::vtable(this).52)(::std::mem::transmute_copy(this), dp.into_param().abi(), binding.into_param().abi()).ok() } 3150 } RequestedTheme(&self) -> ::windows::runtime::Result<super::ElementTheme>3151