pub struct TextTag { /* private fields */ }Expand description
You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
Tags should be in the TextTagTable for a given TextBuffer
before using them with that buffer.
gtk_text_buffer_create_tag() is the best way to create tags.
See “gtk3-demo” for numerous examples.
For each property of TextTag, there is a “set” property, e.g.
“font-set” corresponds to “font”. These “set” properties reflect
whether a property has been set or not.
They are maintained by GTK+ and you should not set them independently.
§Properties
§accumulative-margin
Whether the margins accumulate or override each other.
When set to true the margins of this tag are added to the margins
of any other non-accumulative margins present. When set to false
the margins override one another (the default).
Readable | Writable
§background
Writable
§background-full-height
Readable | Writable
§background-full-height-set
Readable | Writable
§background-gdk
Background color as a GdkColor.
Readable | Writable
§background-rgba
Background color as a gdk::RGBA.
Readable | Writable
§background-set
Readable | Writable
§direction
Readable | Writable
§editable
Readable | Writable
§editable-set
Readable | Writable
§fallback
Whether font fallback is enabled.
When set to true, other fonts will be substituted
where the current font is missing glyphs.
Readable | Writable
§fallback-set
Readable | Writable
§family
Readable | Writable
§family-set
Readable | Writable
§font
Font description as string, e.g. "Sans Italic 12".
Note that the initial value of this property depends on
the internals of pango::FontDescription.
Readable | Writable
§font-desc
Readable | Writable
§font-features
OpenType font features, as a string.
Readable | Writable
§font-features-set
Readable | Writable
§foreground
Writable
§foreground-gdk
Foreground color as a GdkColor.
Readable | Writable
§foreground-rgba
Foreground color as a gdk::RGBA.
Readable | Writable
§foreground-set
Readable | Writable
§indent
Readable | Writable
§indent-set
Readable | Writable
§invisible
Whether this text is hidden.
Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffer containing invisible segments.
Readable | Writable
§invisible-set
Readable | Writable
§justification
Readable | Writable
§justification-set
Readable | Writable
§language
The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.
Note that the initial value of this property depends on the current
locale, see also default_language().
Readable | Writable
§language-set
Readable | Writable
§left-margin
Readable | Writable
§left-margin-set
Readable | Writable
§letter-spacing
Extra spacing between graphemes, in Pango units.
Readable | Writable
§letter-spacing-set
Readable | Writable
§name
Readable | Writable | Construct Only
§paragraph-background
The paragraph background color as a string.
Writable
§paragraph-background-gdk
The paragraph background color as a GdkColor.
Readable | Writable
§paragraph-background-rgba
The paragraph background color as a gdk::RGBA.
Readable | Writable
§paragraph-background-set
Readable | Writable
§pixels-above-lines
Readable | Writable
§pixels-above-lines-set
Readable | Writable
§pixels-below-lines
Readable | Writable
§pixels-below-lines-set
Readable | Writable
§pixels-inside-wrap
Readable | Writable
§pixels-inside-wrap-set
Readable | Writable
§right-margin
Readable | Writable
§right-margin-set
Readable | Writable
§rise
Readable | Writable
§rise-set
Readable | Writable
§scale
Readable | Writable
§scale-set
Readable | Writable
§size
Readable | Writable
§size-points
Readable | Writable
§size-set
Readable | Writable
§stretch
Readable | Writable
§stretch-set
Readable | Writable
§strikethrough
Readable | Writable
§strikethrough-rgba
This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.
Readable | Writable
§strikethrough-rgba-set
If the strikethrough-rgba property has been set.
Readable | Writable
§strikethrough-set
Readable | Writable
§style
Readable | Writable
§style-set
Readable | Writable
§tabs
Readable | Writable
§tabs-set
Readable | Writable
§underline
Readable | Writable
§underline-rgba
This property modifies the color of underlines. If not set, underlines will use the forground color.
If underline is set to pango::Underline::Error, an alternate
color may be applied instead of the foreground. Setting this property
will always override those defaults.
Readable | Writable
§underline-rgba-set
If the underline-rgba property has been set.
Readable | Writable
§underline-set
Readable | Writable
§variant
Readable | Writable
§variant-set
Readable | Writable
§weight
Readable | Writable
§weight-set
Readable | Writable
§wrap-mode
Readable | Writable
§wrap-mode-set
Readable | Writable
§Signals
§event
The ::event signal is emitted when an event occurs on a region of the buffer marked with this tag.
§Implements
TextTagExt, [trait@glib::ObjectExt]
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl TextTag
impl TextTag
pub const NONE: Option<&'static TextTag> = None
Sourcepub fn builder() -> TextTagBuilder
pub fn builder() -> TextTagBuilder
Creates a new builder-pattern struct instance to construct TextTag objects.
This method returns an instance of TextTagBuilder which can be used to create TextTag objects.
Trait Implementations§
impl Eq for TextTag
Source§impl HasParamSpec for TextTag
impl HasParamSpec for TextTag
Source§impl Ord for TextTag
impl Ord for TextTag
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<OT: ObjectType> PartialEq<OT> for TextTag
impl<OT: ObjectType> PartialEq<OT> for TextTag
Source§impl<OT: ObjectType> PartialOrd<OT> for TextTag
impl<OT: ObjectType> PartialOrd<OT> for TextTag
Source§fn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
Partial comparison for two GObjects.
Compares the memory addresses of the provided objects.
Source§impl StaticType for TextTag
impl StaticType for TextTag
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for TextTag
impl !Sync for TextTag
impl Freeze for TextTag
impl RefUnwindSafe for TextTag
impl Unpin for TextTag
impl UnsafeUnpin for TextTag
impl UnwindSafe for TextTag
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<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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>
impl<'a, T, C, E> FromValueOptional<'a> for Twhere
T: FromValue<'a, Checker = C>,
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>,
E: Error + Send + 'static,
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>)
impl<Super, Sub> MayDowncastTo<Sub> for Super
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 has_property(&self, property_name: &str) -> bool
fn has_property(&self, property_name: &str) -> bool
property_name.Source§fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
property_name of the given type_.Source§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 moreSource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
Source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
Source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
Source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<O> TextTagExt for O
impl<O> TextTagExt for O
Source§fn set_priority(&self, priority: i32)
fn set_priority(&self, priority: i32)
TextTag. Valid priorities
start at 0 and go to one less than TextTagTableExt::size().
Each tag in a table has a unique priority; setting the priority
of one tag shifts the priorities of all the other tags in the
table to maintain a unique priority for each tag. Higher priority
tags “win” if two tags both set the same text attribute. When adding
a tag to a tag table, it will be assigned the highest priority in
the table by default; so normally the precedence of a set of tags
is the order in which they were added to the table, or created with
gtk_text_buffer_create_tag(), which adds the tag to the buffer’s table
automatically. Read moreSource§fn is_accumulative_margin(&self) -> bool
fn is_accumulative_margin(&self) -> bool
Source§fn set_accumulative_margin(&self, accumulative_margin: bool)
fn set_accumulative_margin(&self, accumulative_margin: bool)
fn set_background(&self, background: Option<&str>)
fn is_background_full_height(&self) -> bool
fn set_background_full_height(&self, background_full_height: bool)
fn is_background_full_height_set(&self) -> bool
fn set_background_full_height_set(&self, background_full_height_set: bool)
Source§fn set_background_rgba(&self, background_rgba: Option<&RGBA>)
fn set_background_rgba(&self, background_rgba: Option<&RGBA>)
gdk::RGBA.fn is_background_set(&self) -> bool
fn set_background_set(&self, background_set: bool)
fn direction(&self) -> TextDirection
fn set_direction(&self, direction: TextDirection)
fn is_editable(&self) -> bool
fn set_editable(&self, editable: bool)
fn is_editable_set(&self) -> bool
fn set_editable_set(&self, editable_set: bool)
Source§fn is_fallback(&self) -> bool
fn is_fallback(&self) -> bool
Source§fn set_fallback(&self, fallback: bool)
fn set_fallback(&self, fallback: bool)
fn is_fallback_set(&self) -> bool
fn set_fallback_set(&self, fallback_set: bool)
fn family(&self) -> Option<GString>
fn set_family(&self, family: Option<&str>)
fn is_family_set(&self) -> bool
fn set_family_set(&self, family_set: bool)
Source§fn font(&self) -> Option<GString>
fn font(&self) -> Option<GString>
Source§fn set_font(&self, font: Option<&str>)
fn set_font(&self, font: Option<&str>)
fn font_desc(&self) -> Option<FontDescription>
fn set_font_desc(&self, font_desc: Option<&FontDescription>)
Source§fn font_features(&self) -> Option<GString>
fn font_features(&self) -> Option<GString>
Source§fn set_font_features(&self, font_features: Option<&str>)
fn set_font_features(&self, font_features: Option<&str>)
fn is_font_features_set(&self) -> bool
fn set_font_features_set(&self, font_features_set: bool)
fn set_foreground(&self, foreground: Option<&str>)
Source§fn set_foreground_rgba(&self, foreground_rgba: Option<&RGBA>)
fn set_foreground_rgba(&self, foreground_rgba: Option<&RGBA>)
gdk::RGBA.fn is_foreground_set(&self) -> bool
fn set_foreground_set(&self, foreground_set: bool)
fn indent(&self) -> i32
fn set_indent(&self, indent: i32)
fn is_indent_set(&self) -> bool
fn set_indent_set(&self, indent_set: bool)
Source§fn is_invisible(&self) -> bool
fn is_invisible(&self) -> bool
Source§fn set_invisible(&self, invisible: bool)
fn set_invisible(&self, invisible: bool)
fn is_invisible_set(&self) -> bool
fn set_invisible_set(&self, invisible_set: bool)
fn justification(&self) -> Justification
fn set_justification(&self, justification: Justification)
fn is_justification_set(&self) -> bool
fn set_justification_set(&self, justification_set: bool)
Source§fn language(&self) -> Option<GString>
fn language(&self) -> Option<GString>
Source§fn set_language(&self, language: Option<&str>)
fn set_language(&self, language: Option<&str>)
fn is_language_set(&self) -> bool
fn set_language_set(&self, language_set: bool)
fn left_margin(&self) -> i32
fn set_left_margin(&self, left_margin: i32)
fn is_left_margin_set(&self) -> bool
fn set_left_margin_set(&self, left_margin_set: bool)
Source§fn letter_spacing(&self) -> i32
fn letter_spacing(&self) -> i32
Source§fn set_letter_spacing(&self, letter_spacing: i32)
fn set_letter_spacing(&self, letter_spacing: i32)
fn is_letter_spacing_set(&self) -> bool
fn set_letter_spacing_set(&self, letter_spacing_set: bool)
fn name(&self) -> Option<GString>
Source§fn set_paragraph_background(&self, paragraph_background: Option<&str>)
fn set_paragraph_background(&self, paragraph_background: Option<&str>)
Source§fn paragraph_background_rgba(&self) -> Option<RGBA>
fn paragraph_background_rgba(&self) -> Option<RGBA>
gdk::RGBA.Source§fn set_paragraph_background_rgba(
&self,
paragraph_background_rgba: Option<&RGBA>,
)
fn set_paragraph_background_rgba( &self, paragraph_background_rgba: Option<&RGBA>, )
gdk::RGBA.fn is_paragraph_background_set(&self) -> bool
fn set_paragraph_background_set(&self, paragraph_background_set: bool)
fn pixels_above_lines(&self) -> i32
fn set_pixels_above_lines(&self, pixels_above_lines: i32)
fn is_pixels_above_lines_set(&self) -> bool
fn set_pixels_above_lines_set(&self, pixels_above_lines_set: bool)
fn pixels_below_lines(&self) -> i32
fn set_pixels_below_lines(&self, pixels_below_lines: i32)
fn is_pixels_below_lines_set(&self) -> bool
fn set_pixels_below_lines_set(&self, pixels_below_lines_set: bool)
fn pixels_inside_wrap(&self) -> i32
fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)
fn is_pixels_inside_wrap_set(&self) -> bool
fn set_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)
fn right_margin(&self) -> i32
fn set_right_margin(&self, right_margin: i32)
fn is_right_margin_set(&self) -> bool
fn set_right_margin_set(&self, right_margin_set: bool)
fn rise(&self) -> i32
fn set_rise(&self, rise: i32)
fn is_rise_set(&self) -> bool
fn set_rise_set(&self, rise_set: bool)
fn scale(&self) -> f64
fn set_scale(&self, scale: f64)
fn is_scale_set(&self) -> bool
fn set_scale_set(&self, scale_set: bool)
fn size(&self) -> i32
fn set_size(&self, size: i32)
fn size_points(&self) -> f64
fn set_size_points(&self, size_points: f64)
fn is_size_set(&self) -> bool
fn set_size_set(&self, size_set: bool)
fn stretch(&self) -> Stretch
fn set_stretch(&self, stretch: Stretch)
fn is_stretch_set(&self) -> bool
fn set_stretch_set(&self, stretch_set: bool)
fn is_strikethrough(&self) -> bool
fn set_strikethrough(&self, strikethrough: bool)
Source§fn strikethrough_rgba(&self) -> Option<RGBA>
fn strikethrough_rgba(&self) -> Option<RGBA>
Source§fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&RGBA>)
fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&RGBA>)
Source§fn is_strikethrough_rgba_set(&self) -> bool
fn is_strikethrough_rgba_set(&self) -> bool
strikethrough-rgba property has been set.Source§fn set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)
fn set_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)
strikethrough-rgba property has been set.fn is_strikethrough_set(&self) -> bool
fn set_strikethrough_set(&self, strikethrough_set: bool)
fn style(&self) -> Style
fn set_style(&self, style: Style)
fn is_style_set(&self) -> bool
fn set_style_set(&self, style_set: bool)
fn tabs(&self) -> Option<TabArray>
fn set_tabs(&self, tabs: Option<&TabArray>)
fn is_tabs_set(&self) -> bool
fn set_tabs_set(&self, tabs_set: bool)
fn underline(&self) -> Underline
fn set_underline(&self, underline: Underline)
Source§fn underline_rgba(&self) -> Option<RGBA>
fn underline_rgba(&self) -> Option<RGBA>
Source§fn set_underline_rgba(&self, underline_rgba: Option<&RGBA>)
fn set_underline_rgba(&self, underline_rgba: Option<&RGBA>)
Source§fn is_underline_rgba_set(&self) -> bool
fn is_underline_rgba_set(&self) -> bool
underline-rgba property has been set.Source§fn set_underline_rgba_set(&self, underline_rgba_set: bool)
fn set_underline_rgba_set(&self, underline_rgba_set: bool)
underline-rgba property has been set.