pub trait ICoreWebView2PrintSettings_Impl: IUnknownImpl {
Show 26 methods
// Required methods
fn Orientation(&self) -> Result<COREWEBVIEW2_PRINT_ORIENTATION>;
fn SetOrientation(
&self,
orientation: COREWEBVIEW2_PRINT_ORIENTATION,
) -> Result<()>;
fn ScaleFactor(&self) -> Result<f64>;
fn SetScaleFactor(&self, scalefactor: f64) -> Result<()>;
fn PageWidth(&self) -> Result<f64>;
fn SetPageWidth(&self, pagewidth: f64) -> Result<()>;
fn PageHeight(&self) -> Result<f64>;
fn SetPageHeight(&self, pageheight: f64) -> Result<()>;
fn MarginTop(&self) -> Result<f64>;
fn SetMarginTop(&self, margintop: f64) -> Result<()>;
fn MarginBottom(&self) -> Result<f64>;
fn SetMarginBottom(&self, marginbottom: f64) -> Result<()>;
fn MarginLeft(&self) -> Result<f64>;
fn SetMarginLeft(&self, marginleft: f64) -> Result<()>;
fn MarginRight(&self) -> Result<f64>;
fn SetMarginRight(&self, marginright: f64) -> Result<()>;
fn ShouldPrintBackgrounds(&self) -> Result<BOOL>;
fn SetShouldPrintBackgrounds(
&self,
shouldprintbackgrounds: BOOL,
) -> Result<()>;
fn ShouldPrintSelectionOnly(&self) -> Result<BOOL>;
fn SetShouldPrintSelectionOnly(
&self,
shouldprintselectiononly: BOOL,
) -> Result<()>;
fn ShouldPrintHeaderAndFooter(&self) -> Result<BOOL>;
fn SetShouldPrintHeaderAndFooter(
&self,
shouldprintheaderandfooter: BOOL,
) -> Result<()>;
fn HeaderTitle(&self) -> Result<PWSTR>;
fn SetHeaderTitle(&self, headertitle: &PCWSTR) -> Result<()>;
fn FooterUri(&self) -> Result<PWSTR>;
fn SetFooterUri(&self, footeruri: &PCWSTR) -> Result<()>;
}Required Methods§
fn Orientation(&self) -> Result<COREWEBVIEW2_PRINT_ORIENTATION>
fn SetOrientation( &self, orientation: COREWEBVIEW2_PRINT_ORIENTATION, ) -> Result<()>
fn ScaleFactor(&self) -> Result<f64>
fn SetScaleFactor(&self, scalefactor: f64) -> Result<()>
fn PageWidth(&self) -> Result<f64>
fn SetPageWidth(&self, pagewidth: f64) -> Result<()>
fn PageHeight(&self) -> Result<f64>
fn SetPageHeight(&self, pageheight: f64) -> Result<()>
fn MarginTop(&self) -> Result<f64>
fn SetMarginTop(&self, margintop: f64) -> Result<()>
fn MarginBottom(&self) -> Result<f64>
fn SetMarginBottom(&self, marginbottom: f64) -> Result<()>
fn MarginLeft(&self) -> Result<f64>
fn SetMarginLeft(&self, marginleft: f64) -> Result<()>
fn MarginRight(&self) -> Result<f64>
fn SetMarginRight(&self, marginright: f64) -> Result<()>
fn ShouldPrintBackgrounds(&self) -> Result<BOOL>
fn SetShouldPrintBackgrounds(&self, shouldprintbackgrounds: BOOL) -> Result<()>
fn ShouldPrintSelectionOnly(&self) -> Result<BOOL>
fn SetShouldPrintSelectionOnly( &self, shouldprintselectiononly: BOOL, ) -> Result<()>
fn HeaderTitle(&self) -> Result<PWSTR>
fn SetHeaderTitle(&self, headertitle: &PCWSTR) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".