Struct gtk4::builders::CellRendererTextBuilder
source · [−]pub struct CellRendererTextBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct CellRendererText
objects.
Implementations
sourceimpl CellRendererTextBuilder
impl CellRendererTextBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new CellRendererTextBuilder
.
sourcepub fn build(self) -> CellRendererText
pub fn build(self) -> CellRendererText
Build the CellRendererText
.
pub fn align_set(self, align_set: bool) -> Self
pub fn alignment(self, alignment: Alignment) -> Self
pub fn attributes(self, attributes: &AttrList) -> Self
pub fn background(self, background: &str) -> Self
pub fn background_rgba(self, background_rgba: &RGBA) -> Self
pub fn background_set(self, background_set: bool) -> Self
pub fn editable(self, editable: bool) -> Self
pub fn editable_set(self, editable_set: bool) -> Self
pub fn ellipsize(self, ellipsize: EllipsizeMode) -> Self
pub fn ellipsize_set(self, ellipsize_set: bool) -> Self
pub fn family(self, family: &str) -> Self
pub fn family_set(self, family_set: bool) -> Self
pub fn font(self, font: &str) -> Self
pub fn font_desc(self, font_desc: &FontDescription) -> Self
pub fn foreground(self, foreground: &str) -> Self
pub fn foreground_rgba(self, foreground_rgba: &RGBA) -> Self
pub fn foreground_set(self, foreground_set: bool) -> Self
pub fn language(self, language: &str) -> Self
pub fn language_set(self, language_set: bool) -> Self
pub fn markup(self, markup: &str) -> Self
pub fn max_width_chars(self, max_width_chars: i32) -> Self
pub fn placeholder_text(self, placeholder_text: &str) -> Self
pub fn rise(self, rise: i32) -> Self
pub fn rise_set(self, rise_set: bool) -> Self
pub fn scale(self, scale: f64) -> Self
pub fn scale_set(self, scale_set: bool) -> Self
pub fn single_paragraph_mode(self, single_paragraph_mode: bool) -> Self
pub fn size(self, size: i32) -> Self
pub fn size_points(self, size_points: f64) -> Self
pub fn size_set(self, size_set: bool) -> Self
pub fn stretch(self, stretch: Stretch) -> Self
pub fn stretch_set(self, stretch_set: bool) -> Self
pub fn strikethrough(self, strikethrough: bool) -> Self
pub fn strikethrough_set(self, strikethrough_set: bool) -> Self
pub fn style(self, style: Style) -> Self
pub fn style_set(self, style_set: bool) -> Self
pub fn text(self, text: &str) -> Self
pub fn underline(self, underline: Underline) -> Self
pub fn underline_set(self, underline_set: bool) -> Self
pub fn variant(self, variant: Variant) -> Self
pub fn variant_set(self, variant_set: bool) -> Self
pub fn weight(self, weight: i32) -> Self
pub fn weight_set(self, weight_set: bool) -> Self
pub fn width_chars(self, width_chars: i32) -> Self
pub fn wrap_mode(self, wrap_mode: WrapMode) -> Self
pub fn wrap_width(self, wrap_width: i32) -> Self
pub fn cell_background(self, cell_background: &str) -> Self
pub fn cell_background_rgba(self, cell_background_rgba: &RGBA) -> Self
pub fn cell_background_set(self, cell_background_set: bool) -> Self
pub fn height(self, height: i32) -> Self
pub fn is_expanded(self, is_expanded: bool) -> Self
pub fn is_expander(self, is_expander: bool) -> Self
pub fn mode(self, mode: CellRendererMode) -> Self
pub fn sensitive(self, sensitive: bool) -> Self
pub fn visible(self, visible: bool) -> Self
pub fn width(self, width: i32) -> Self
pub fn xalign(self, xalign: f32) -> Self
pub fn xpad(self, xpad: u32) -> Self
pub fn yalign(self, yalign: f32) -> Self
pub fn ypad(self, ypad: u32) -> Self
Trait Implementations
sourceimpl Clone for CellRendererTextBuilder
impl Clone for CellRendererTextBuilder
sourcefn clone(&self) -> CellRendererTextBuilder
fn clone(&self) -> CellRendererTextBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for CellRendererTextBuilder
impl Default for CellRendererTextBuilder
sourcefn default() -> CellRendererTextBuilder
fn default() -> CellRendererTextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CellRendererTextBuilder
impl !Send for CellRendererTextBuilder
impl !Sync for CellRendererTextBuilder
impl Unpin for CellRendererTextBuilder
impl UnwindSafe for CellRendererTextBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more