pub trait PrintCompositorExt: IsA<PrintCompositor> + Sealed + 'static {
Show 47 methods // Provided methods fn draw_page(&self, context: &PrintContext, page_nr: i32) { ... } fn body_font_name(&self) -> GString { ... } fn bottom_margin(&self, unit: Unit) -> f64 { ... } fn buffer(&self) -> Buffer { ... } fn footer_font_name(&self) -> GString { ... } fn header_font_name(&self) -> GString { ... } fn is_highlight_syntax(&self) -> bool { ... } fn left_margin(&self, unit: Unit) -> f64 { ... } fn line_numbers_font_name(&self) -> GString { ... } fn n_pages(&self) -> i32 { ... } fn pagination_progress(&self) -> f64 { ... } fn is_print_footer(&self) -> bool { ... } fn is_print_header(&self) -> bool { ... } fn print_line_numbers(&self) -> u32 { ... } fn right_margin(&self, unit: Unit) -> f64 { ... } fn tab_width(&self) -> u32 { ... } fn top_margin(&self, unit: Unit) -> f64 { ... } fn wrap_mode(&self) -> WrapMode { ... } fn ignore_tag(&self, tag: &impl IsA<TextTag>) { ... } 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_body_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_footer_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_header_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_highlight_syntax_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_line_numbers_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_n_pages_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_print_footer_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_print_header_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_print_line_numbers_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_tab_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

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

source

fn body_font_name(&self) -> GString

source

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

source

fn buffer(&self) -> Buffer

source

fn footer_font_name(&self) -> GString

source

fn header_font_name(&self) -> GString

source

fn is_highlight_syntax(&self) -> bool

source

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

source

fn line_numbers_font_name(&self) -> GString

source

fn n_pages(&self) -> i32

source

fn pagination_progress(&self) -> f64

source

fn is_print_header(&self) -> bool

source

fn print_line_numbers(&self) -> u32

source

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

source

fn tab_width(&self) -> u32

source

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

source

fn wrap_mode(&self) -> WrapMode

source

fn ignore_tag(&self, tag: &impl IsA<TextTag>)

Available on crate feature v5_2 only.
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_body_font_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§