Trait sourceview5::prelude::PrintCompositorExt
source · 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§
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 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_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
sourcefn ignore_tag(&self, tag: &impl IsA<TextTag>)
fn ignore_tag(&self, tag: &impl IsA<TextTag>)
Available on crate feature
v5_2
only.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_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_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_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_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
Object Safety§
This trait is not object safe.