Skip to main content

TerminalBuilder

Struct TerminalBuilder 

Source
pub struct TerminalBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct Terminal objects.

Implementations§

Source§

impl TerminalBuilder

Source

pub fn audible_bell(self, audible_bell: bool) -> Self

Source

pub fn backspace_binding(self, backspace_binding: EraseBinding) -> Self

Source

pub fn bold_is_bright(self, bold_is_bright: bool) -> Self

Source

pub fn cell_height_scale(self, cell_height_scale: f64) -> Self

Source

pub fn cell_width_scale(self, cell_width_scale: f64) -> Self

Source

pub fn cjk_ambiguous_width(self, cjk_ambiguous_width: i32) -> Self

Source

pub fn context_menu(self, context_menu: &impl IsA<Popover>) -> Self

Available on crate feature v0_76 only.
Source

pub fn context_menu_model( self, context_menu_model: &impl IsA<MenuModel>, ) -> Self

Available on crate feature v0_76 only.
Source

pub fn cursor_shape(self, cursor_shape: CursorShape) -> Self

Source

pub fn delete_binding(self, delete_binding: EraseBinding) -> Self

Source

pub fn enable_a11y(self, enable_a11y: bool) -> Self

Available on crate feature v0_78 only.
Source

pub fn enable_bidi(self, enable_bidi: bool) -> Self

Source

pub fn enable_fallback_scrolling(self, enable_fallback_scrolling: bool) -> Self

Source

pub fn enable_legacy_osc777(self, enable_legacy_osc777: bool) -> Self

Available on crate feature v0_78 only.
Source

pub fn enable_shaping(self, enable_shaping: bool) -> Self

Source

pub fn enable_sixel(self, enable_sixel: bool) -> Self

Source

pub fn font_desc(self, font_desc: &FontDescription) -> Self

Source

pub fn font_options(self, font_options: &FontOptions) -> Self

Available on crate feature v0_74 only.
Source

pub fn font_scale(self, font_scale: f64) -> Self

Source

pub fn input_enabled(self, input_enabled: bool) -> Self

Source

pub fn pointer_autohide(self, pointer_autohide: bool) -> Self

Source

pub fn pty(self, pty: &Pty) -> Self

Source

pub fn scroll_on_insert(self, scroll_on_insert: bool) -> Self

Available on crate feature v0_76 only.
Source

pub fn scroll_on_keystroke(self, scroll_on_keystroke: bool) -> Self

Source

pub fn scroll_on_output(self, scroll_on_output: bool) -> Self

Source

pub fn scroll_unit_is_pixels(self, scroll_unit_is_pixels: bool) -> Self

Source

pub fn scrollback_lines(self, scrollback_lines: u32) -> Self

Source

pub fn xalign(self, xalign: Align) -> Self

Available on crate feature v0_76 only.
Source

pub fn xfill(self, xfill: bool) -> Self

Available on crate feature v0_76 only.
Source

pub fn yalign(self, yalign: Align) -> Self

Available on crate feature v0_76 only.
Source

pub fn yfill(self, yfill: bool) -> Self

Available on crate feature v0_76 only.
Source

pub fn can_focus(self, can_focus: bool) -> Self

Source

pub fn can_target(self, can_target: bool) -> Self

Source

pub fn css_classes(self, css_classes: impl Into<StrV>) -> Self

Source

pub fn css_name(self, css_name: impl Into<GString>) -> Self

Source

pub fn focus_on_click(self, focus_on_click: bool) -> Self

Source

pub fn focusable(self, focusable: bool) -> Self

Source

pub fn has_tooltip(self, has_tooltip: bool) -> Self

Source

pub fn height_request(self, height_request: i32) -> Self

Source

pub fn hexpand(self, hexpand: bool) -> Self

Source

pub fn hexpand_set(self, hexpand_set: bool) -> Self

Source

pub fn limit_events(self, limit_events: bool) -> Self

Available on crate feature gtk_v4_18 only.
Source

pub fn margin_bottom(self, margin_bottom: i32) -> Self

Source

pub fn margin_end(self, margin_end: i32) -> Self

Source

pub fn margin_start(self, margin_start: i32) -> Self

Source

pub fn margin_top(self, margin_top: i32) -> Self

Source

pub fn name(self, name: impl Into<GString>) -> Self

Source

pub fn opacity(self, opacity: f64) -> Self

Source

pub fn receives_default(self, receives_default: bool) -> Self

Source

pub fn sensitive(self, sensitive: bool) -> Self

Source

pub fn tooltip_markup(self, tooltip_markup: impl Into<GString>) -> Self

Source

pub fn tooltip_text(self, tooltip_text: impl Into<GString>) -> Self

Source

pub fn vexpand(self, vexpand: bool) -> Self

Source

pub fn vexpand_set(self, vexpand_set: bool) -> Self

Source

pub fn visible(self, visible: bool) -> Self

Source

pub fn width_request(self, width_request: i32) -> Self

Source

pub fn build(self) -> Terminal

Build the Terminal.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.