Trait PrintCompositorExt

Source
pub trait PrintCompositorExt: 'static {
Show 46 methods // Required methods fn draw_page(&self, context: &PrintContext, page_nr: i32); fn get_body_font_name(&self) -> Option<GString>; fn get_bottom_margin(&self, unit: Unit) -> f64; fn get_buffer(&self) -> Option<Buffer>; fn get_footer_font_name(&self) -> Option<GString>; fn get_header_font_name(&self) -> Option<GString>; fn get_highlight_syntax(&self) -> bool; fn get_left_margin(&self, unit: Unit) -> f64; fn get_line_numbers_font_name(&self) -> Option<GString>; fn get_n_pages(&self) -> i32; fn get_pagination_progress(&self) -> f64; fn get_print_footer(&self) -> bool; fn get_print_header(&self) -> bool; fn get_print_line_numbers(&self) -> u32; fn get_right_margin(&self, unit: Unit) -> f64; fn get_tab_width(&self) -> u32; fn get_top_margin(&self, unit: Unit) -> f64; fn get_wrap_mode(&self) -> WrapMode; fn paginate(&self, context: &PrintContext) -> bool; fn set_body_font_name(&self, font_name: &str); fn set_bottom_margin(&self, margin: f64, unit: Unit); fn set_footer_font_name(&self, font_name: Option<&str>); fn set_footer_format( &self, separator: bool, left: Option<&str>, center: Option<&str>, right: Option<&str>, ); fn set_header_font_name(&self, font_name: Option<&str>); fn set_header_format( &self, separator: bool, left: Option<&str>, center: Option<&str>, right: Option<&str>, ); fn set_highlight_syntax(&self, highlight: bool); fn set_left_margin(&self, margin: f64, unit: Unit); fn set_line_numbers_font_name(&self, font_name: Option<&str>); fn set_print_footer(&self, print: bool); fn set_print_header(&self, print: bool); fn set_print_line_numbers(&self, interval: u32); fn set_right_margin(&self, margin: f64, unit: Unit); fn set_tab_width(&self, width: u32); fn set_top_margin(&self, margin: f64, unit: Unit); fn set_wrap_mode(&self, wrap_mode: WrapMode); fn connect_property_body_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_footer_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_header_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_highlight_syntax_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_line_numbers_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_print_footer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_print_header_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_print_line_numbers_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_tab_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn draw_page(&self, context: &PrintContext, page_nr: i32)

Source

fn get_body_font_name(&self) -> Option<GString>

Source

fn get_bottom_margin(&self, unit: Unit) -> f64

Source

fn get_buffer(&self) -> Option<Buffer>

Source

fn get_header_font_name(&self) -> Option<GString>

Source

fn get_highlight_syntax(&self) -> bool

Source

fn get_left_margin(&self, unit: Unit) -> f64

Source

fn get_line_numbers_font_name(&self) -> Option<GString>

Source

fn get_n_pages(&self) -> i32

Source

fn get_pagination_progress(&self) -> f64

Source

fn get_print_header(&self) -> bool

Source

fn get_print_line_numbers(&self) -> u32

Source

fn get_right_margin(&self, unit: Unit) -> f64

Source

fn get_tab_width(&self) -> u32

Source

fn get_top_margin(&self, unit: Unit) -> f64

Source

fn get_wrap_mode(&self) -> WrapMode

Source

fn paginate(&self, context: &PrintContext) -> bool

Source

fn set_body_font_name(&self, font_name: &str)

Source

fn set_bottom_margin(&self, margin: f64, unit: Unit)

Source

fn set_header_font_name(&self, font_name: Option<&str>)

Source

fn set_header_format( &self, separator: bool, left: Option<&str>, center: Option<&str>, right: Option<&str>, )

Source

fn set_highlight_syntax(&self, highlight: bool)

Source

fn set_left_margin(&self, margin: f64, unit: Unit)

Source

fn set_line_numbers_font_name(&self, font_name: Option<&str>)

Source

fn set_print_header(&self, print: bool)

Source

fn set_print_line_numbers(&self, interval: u32)

Source

fn set_right_margin(&self, margin: f64, unit: Unit)

Source

fn set_tab_width(&self, width: u32)

Source

fn set_top_margin(&self, margin: f64, unit: Unit)

Source

fn set_wrap_mode(&self, wrap_mode: WrapMode)

Source

fn connect_property_body_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_header_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_highlight_syntax_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_line_numbers_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_print_header_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_print_line_numbers_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_tab_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§