Struct dazzle::BoldingLabel
source · pub struct BoldingLabel { /* private fields */ }
Expand description
Properties
bold
Writeable
Label
angle
The angle that the baseline of the label makes with the horizontal, in degrees, measured counterclockwise. An angle of 90 reads from from bottom to top, an angle of 270, from top to bottom. Ignored if the label is selectable.
Readable | Writeable
attributes
Readable | Writeable
cursor-position
Readable
ellipsize
The preferred place to ellipsize the string, if the label does
not have enough room to display the entire string, specified as a
[pango::EllipsizeMode
][crate::pango::EllipsizeMode].
Note that setting this property to a value other than
[pango::EllipsizeMode::None
][crate::pango::EllipsizeMode::None] has the side-effect that the label requests
only enough space to display the ellipsis “…”. In particular, this
means that ellipsizing labels do not work well in notebook tabs, unless
the GtkNotebook
tab-expand child property is set to true
. Other ways
to set a label’s width are [WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] and
[LabelExtManual::set_width_chars()
][crate::gtk::prelude::LabelExtManual::set_width_chars()].
Readable | Writeable
justify
Readable | Writeable
label
The contents of the label.
If the string contains [Pango XML markup][PangoMarkupFormat], you will
have to set the [use-markup
][struct@crate::gtk::Label#use-markup] property to true
in order for the
label to display the markup attributes. See also [LabelExtManual::set_markup()
][crate::gtk::prelude::LabelExtManual::set_markup()]
for a convenience function that sets both this property and the
[use-markup
][struct@crate::gtk::Label#use-markup] property at the same time.
If the string contains underlines acting as mnemonics, you will have to
set the [use-underline
][struct@crate::gtk::Label#use-underline] property to true
in order for the label
to display them.
Readable | Writeable
lines
The number of lines to which an ellipsized, wrapping label should be limited. This property has no effect if the label is not wrapping or ellipsized. Set this property to -1 if you don’t want to limit the number of lines.
Readable | Writeable
max-width-chars
The desired maximum width of the label, in characters. If this property is set to -1, the width will be calculated automatically.
See the section on [text layout][label-text-layout]
for details of how [width-chars
][struct@crate::gtk::Label#width-chars] and [max-width-chars
][struct@crate::gtk::Label#max-width-chars]
determine the width of ellipsized and wrapped labels.
Readable | Writeable
mnemonic-keyval
Readable
mnemonic-widget
Readable | Writeable
pattern
Writeable
selectable
Readable | Writeable
selection-bound
Readable
single-line-mode
Whether the label is in single line mode. In single line mode, the height of the label does not depend on the actual text, it is always set to ascent + descent of the font. This can be an advantage in situations where resizing the label because of text changes would be distracting, e.g. in a statusbar.
Readable | Writeable
track-visited-links
Set this property to true
to make the label track which links
have been visited. It will then apply the GTK_STATE_FLAG_VISITED
when rendering this link, in addition to GTK_STATE_FLAG_LINK
.
Readable | Writeable
use-markup
Readable | Writeable
use-underline
Readable | Writeable
width-chars
The desired width of the label, in characters. If this property is set to -1, the width will be calculated automatically.
See the section on [text layout][label-text-layout]
for details of how [width-chars
][struct@crate::gtk::Label#width-chars] and [max-width-chars
][struct@crate::gtk::Label#max-width-chars]
determine the width of ellipsized and wrapped labels.
Readable | Writeable
wrap
Readable | Writeable
wrap-mode
If line wrapping is on (see the [wrap
][struct@crate::gtk::Label#wrap] property) this controls
how the line wrapping is done. The default is PANGO_WRAP_WORD
, which
means wrap on word boundaries.
Readable | Writeable
xalign
The xalign property determines the horizontal aligment of the label text
inside the labels size allocation. Compare this to [halign
][struct@crate::gtk::Widget#halign],
which determines how the labels size allocation is positioned in the
space available for the label.
Readable | Writeable
yalign
The yalign property determines the vertical aligment of the label text
inside the labels size allocation. Compare this to [valign
][struct@crate::gtk::Widget#valign],
which determines how the labels size allocation is positioned in the
space available for the label.
Readable | Writeable
Misc
xalign
The horizontal alignment. A value of 0.0 means left alignment (or right on RTL locales); a value of 1.0 means right alignment (or left on RTL locales).
Readable | Writeable
xpad
The amount of space to add on the left and right of the widget, in pixels.
Readable | Writeable
yalign
The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.
Readable | Writeable
ypad
The amount of space to add on the top and bottom of the widget, in pixels.
Readable | Writeable
Widget
app-paintable
Readable | Writeable
can-default
Readable | Writeable
can-focus
Readable | Writeable
composite-child
Readable
double-buffered
Whether the widget is double buffered.
Readable | Writeable
events
Readable | Writeable
expand
Whether to expand in both directions. Setting this sets both [hexpand
][struct@crate::gtk::Widget#hexpand] and [vexpand
][struct@crate::gtk::Widget#vexpand]
Readable | Writeable
focus-on-click
Whether the widget should grab focus when it is clicked with the mouse.
This property is only relevant for widgets that can take focus.
Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.
Readable | Writeable
halign
How to distribute horizontal space if widget gets extra space, see GtkAlign
Readable | Writeable
has-default
Readable | Writeable
has-focus
Readable | Writeable
has-tooltip
Enables or disables the emission of [query-tooltip
][struct@crate::gtk::Widget#query-tooltip] on widget
.
A value of true
indicates that widget
can have a tooltip, in this case
the widget will be queried using [query-tooltip
][struct@crate::gtk::Widget#query-tooltip] to determine
whether it will provide a tooltip or not.
Note that setting this property to true
for the first time will change
the event masks of the GdkWindows of this widget to include leave-notify
and motion-notify events. This cannot and will not be undone when the
property is set to false
again.
Readable | Writeable
height-request
Readable | Writeable
hexpand
Whether to expand horizontally. See [WidgetExtManual::set_hexpand()
][crate::gtk::prelude::WidgetExtManual::set_hexpand()].
Readable | Writeable
hexpand-set
Whether to use the [hexpand
][struct@crate::gtk::Widget#hexpand] property. See [WidgetExtManual::is_hexpand_set()
][crate::gtk::prelude::WidgetExtManual::is_hexpand_set()].
Readable | Writeable
is-focus
Readable | Writeable
margin
Sets all four sides’ margin at once. If read, returns max margin on any side.
Readable | Writeable
margin-bottom
Margin on bottom side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-end
Margin on end of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-left
Margin on left side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-right
Margin on right side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-start
Margin on start of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-top
Margin on top side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
name
Readable | Writeable
no-show-all
Readable | Writeable
opacity
The requested opacity of the widget. See [WidgetExtManual::set_opacity()
][crate::gtk::prelude::WidgetExtManual::set_opacity()] for
more details about window opacity.
Before 3.8 this was only available in GtkWindow
Readable | Writeable
parent
Readable | Writeable
receives-default
Readable | Writeable
scale-factor
The scale factor of the widget. See [WidgetExtManual::scale_factor()
][crate::gtk::prelude::WidgetExtManual::scale_factor()] for
more details about widget scaling.
Readable
sensitive
Readable | Writeable
style
The style of the widget, which contains information about how it will look (colors, etc).
Readable | Writeable
tooltip-markup
Sets the text of tooltip to be the given string, which is marked up
with the [Pango text markup language][PangoMarkupFormat].
Also see gtk_tooltip_set_markup()
.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None
: [has-tooltip
][struct@crate::gtk::Widget#has-tooltip]
will automatically be set to true
and there will be taken care of
[query-tooltip
][struct@crate::gtk::Widget#query-tooltip] in the default signal handler.
Note that if both [tooltip-text
][struct@crate::gtk::Widget#tooltip-text] and [tooltip-markup
][struct@crate::gtk::Widget#tooltip-markup]
are set, the last one wins.
Readable | Writeable
tooltip-text
Sets the text of tooltip to be the given string.
Also see gtk_tooltip_set_text()
.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None
: [has-tooltip
][struct@crate::gtk::Widget#has-tooltip]
will automatically be set to true
and there will be taken care of
[query-tooltip
][struct@crate::gtk::Widget#query-tooltip] in the default signal handler.
Note that if both [tooltip-text
][struct@crate::gtk::Widget#tooltip-text] and [tooltip-markup
][struct@crate::gtk::Widget#tooltip-markup]
are set, the last one wins.
Readable | Writeable
valign
How to distribute vertical space if widget gets extra space, see GtkAlign
Readable | Writeable
vexpand
Whether to expand vertically. See [WidgetExtManual::set_vexpand()
][crate::gtk::prelude::WidgetExtManual::set_vexpand()].
Readable | Writeable
vexpand-set
Whether to use the [vexpand
][struct@crate::gtk::Widget#vexpand] property. See [WidgetExtManual::is_vexpand_set()
][crate::gtk::prelude::WidgetExtManual::is_vexpand_set()].
Readable | Writeable
visible
Readable | Writeable
width-request
Readable | Writeable
window
The widget’s window if it is realized, None
otherwise.
Readable
Implements
gtk::prelude::LabelExt
, gtk::prelude::WidgetExt
, glib::ObjectExt
, gtk::prelude::BuildableExt
Implementations§
source§impl BoldingLabel
impl BoldingLabel
pub fn new(str: &str, bold: bool) -> BoldingLabel
pub fn with_mnemonic(str: &str, bold: bool) -> BoldingLabel
pub fn set_bold(&self, bold: bool)
pub fn set_weight(&self, weight: Weight)
pub fn connect_bold_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Trait Implementations§
source§impl Clone for BoldingLabel
impl Clone for BoldingLabel
source§impl Debug for BoldingLabel
impl Debug for BoldingLabel
source§impl Display for BoldingLabel
impl Display for BoldingLabel
source§impl HasParamSpec for BoldingLabel
impl HasParamSpec for BoldingLabel
type ParamSpec = ParamSpecObject
§type SetValue = BoldingLabel
type SetValue = BoldingLabel
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, BoldingLabel>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for BoldingLabel
impl Hash for BoldingLabel
source§impl Ord for BoldingLabel
impl Ord for BoldingLabel
source§impl ParentClassIs for BoldingLabel
impl ParentClassIs for BoldingLabel
source§impl<OT: ObjectType> PartialEq<OT> for BoldingLabel
impl<OT: ObjectType> PartialEq<OT> for BoldingLabel
source§impl<OT: ObjectType> PartialOrd<OT> for BoldingLabel
impl<OT: ObjectType> PartialOrd<OT> for BoldingLabel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for BoldingLabel
impl StaticType for BoldingLabel
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for BoldingLabel
impl IsA<Buildable> for BoldingLabel
impl IsA<Label> for BoldingLabel
impl IsA<Widget> for BoldingLabel
Auto Trait Implementations§
impl RefUnwindSafe for BoldingLabel
impl !Send for BoldingLabel
impl !Sync for BoldingLabel
impl Unpin for BoldingLabel
impl UnwindSafe for BoldingLabel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str> )
fn construct_child( &self, builder: &impl IsA<Builder>, name: &str ) -> Option<Object>
fn internal_child( &self, builder: &impl IsA<Builder>, childname: &str ) -> Option<Object>
fn parser_finished(&self, builder: &impl IsA<Builder>)
fn set_buildable_property( &self, builder: &impl IsA<Builder>, name: &str, value: &Value )
source§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<O> LabelExt for O
impl<O> LabelExt for O
fn angle(&self) -> f64
fn attributes(&self) -> Option<AttrList>
fn current_uri(&self) -> Option<GString>
fn ellipsize(&self) -> EllipsizeMode
fn justify(&self) -> Justification
fn label(&self) -> GString
fn layout(&self) -> Option<Layout>
fn layout_offsets(&self) -> (i32, i32)
fn is_line_wrap(&self) -> bool
fn line_wrap_mode(&self) -> WrapMode
fn lines(&self) -> i32
fn max_width_chars(&self) -> i32
fn mnemonic_keyval(&self) -> u32
fn mnemonic_widget(&self) -> Option<Widget>
fn is_selectable(&self) -> bool
fn selection_bounds(&self) -> Option<(i32, i32)>
fn is_single_line_mode(&self) -> bool
fn text(&self) -> GString
fn tracks_visited_links(&self) -> bool
fn uses_markup(&self) -> bool
fn uses_underline(&self) -> bool
fn width_chars(&self) -> i32
fn xalign(&self) -> f32
fn yalign(&self) -> f32
fn select_region(&self, start_offset: i32, end_offset: i32)
fn set_angle(&self, angle: f64)
fn set_attributes(&self, attrs: Option<&AttrList>)
fn set_ellipsize(&self, mode: EllipsizeMode)
fn set_justify(&self, jtype: Justification)
fn set_label(&self, str: &str)
fn set_line_wrap(&self, wrap: bool)
fn set_line_wrap_mode(&self, wrap_mode: WrapMode)
fn set_lines(&self, lines: i32)
fn set_markup(&self, str: &str)
fn set_markup_with_mnemonic(&self, str: &str)
fn set_max_width_chars(&self, n_chars: i32)
fn set_mnemonic_widget(&self, widget: Option<&impl IsA<Widget>>)
fn set_pattern(&self, pattern: &str)
fn set_selectable(&self, setting: bool)
fn set_single_line_mode(&self, single_line_mode: bool)
fn set_text(&self, str: &str)
fn set_text_with_mnemonic(&self, str: &str)
fn set_track_visited_links(&self, track_links: bool)
fn set_use_markup(&self, setting: bool)
fn set_use_underline(&self, setting: bool)
fn set_width_chars(&self, n_chars: i32)
fn set_xalign(&self, xalign: f32)
fn set_yalign(&self, yalign: f32)
fn cursor_position(&self) -> i32
fn selection_bound(&self) -> i32
fn wraps(&self) -> bool
fn set_wrap(&self, wrap: bool)
fn wrap_mode(&self) -> WrapMode
fn set_wrap_mode(&self, wrap_mode: WrapMode)
fn connect_activate_current_link<F>(&self, f: F) -> SignalHandlerId
fn emit_activate_current_link(&self)
fn connect_activate_link<F>(&self, f: F) -> SignalHandlerId
fn connect_copy_clipboard<F>(&self, f: F) -> SignalHandlerId
fn emit_copy_clipboard(&self)
fn connect_move_cursor<F>(&self, f: F) -> SignalHandlerId
fn emit_move_cursor( &self, step: MovementStep, count: i32, extend_selection: bool )
fn connect_populate_popup<F>(&self, f: F) -> SignalHandlerId
fn connect_angle_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_attributes_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_cursor_position_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_ellipsize_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_justify_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_label_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_lines_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_max_width_chars_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_mnemonic_keyval_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_mnemonic_widget_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_pattern_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_selectable_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_selection_bound_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_single_line_mode_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_track_visited_links_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_use_markup_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_use_underline_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_width_chars_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_wrap_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_wrap_mode_notify<F>(&self, f: F) -> SignalHandlerId
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerId
notify
signal of the object. Read more