pub struct TextBuffer { /* private fields */ }
Expand description
Stores text and attributes for display in a TextView
.
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.
GtkTextBuffer can support undoing changes to the buffer
content, see TextBufferExt::set_enable_undo()
.
§Properties
§can-redo
Denotes that the buffer can reapply the last undone action.
Readable
§can-undo
Denotes that the buffer can undo the last applied action.
Readable
§cursor-position
The position of the insert mark.
This is an offset from the beginning of the buffer. It is useful for getting notified when the cursor moves.
Readable
§enable-undo
Denotes if support for undoing and redoing changes to the buffer is allowed.
Readable | Writeable
§has-selection
Whether the buffer has some text currently selected.
Readable
§tag-table
The GtkTextTagTable for the buffer.
Readable | Writeable | Construct Only
§text
The text content of the buffer.
Without child widgets and images,
see TextBufferExt::text()
for more information.
Readable | Writeable
§Signals
§apply-tag
Emitted to apply a tag to a range of text in a TextBuffer
.
Applying actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the @start and @end iters (or has to revalidate them).
See also:
TextBufferExt::apply_tag()
,
TextBufferExtManual::insert_with_tags()
,
TextBufferExt::insert_range()
.
§begin-user-action
Emitted at the beginning of a single user-visible
operation on a TextBuffer
.
See also:
TextBufferExt::begin_user_action()
,
TextBufferExt::insert_interactive()
,
TextBufferExt::insert_range_interactive()
,
TextBufferExt::delete_interactive()
,
TextBufferExt::backspace()
,
TextBufferExt::delete_selection()
.
§changed
Emitted when the content of a TextBuffer
has changed.
§delete-range
Emitted to delete a range from a TextBuffer
.
Note that if your handler runs before the default handler it must not invalidate the @start and @end iters (or has to revalidate them). The default signal handler revalidates the @start and @end iters to both point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after()) do not have access to the deleted text.
See also: TextBufferExt::delete()
.
§end-user-action
Emitted at the end of a single user-visible
operation on the TextBuffer
.
See also:
TextBufferExt::end_user_action()
,
TextBufferExt::insert_interactive()
,
TextBufferExt::insert_range_interactive()
,
TextBufferExt::delete_interactive()
,
TextBufferExt::backspace()
,
TextBufferExt::delete_selection()
,
TextBufferExt::backspace()
.
§insert-child-anchor
Emitted to insert a TextChildAnchor
in a TextBuffer
.
Insertion actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the @location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted @anchor.
See also: TextBufferExt::insert_child_anchor()
.
§insert-paintable
Emitted to insert a gdk::Paintable
in a TextBuffer
.
Insertion actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the @location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted @paintable.
See also: TextBufferExt::insert_paintable()
.
§insert-text
Emitted to insert text in a TextBuffer
.
Insertion actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the @location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text.
See also: TextBufferExt::insert()
,
TextBufferExt::insert_range()
.
§mark-deleted
Emitted as notification after a TextMark
is deleted.
See also: TextBufferExt::delete_mark()
.
§mark-set
Emitted as notification after a TextMark
is set.
See also:
TextBufferExt::create_mark()
,
TextBufferExt::move_mark()
.
§modified-changed
Emitted when the modified bit of a TextBuffer
flips.
See also: TextBufferExt::set_modified()
.
§paste-done
Emitted after paste operation has been completed.
This is useful to properly scroll the view to the end
of the pasted text. See TextBufferExt::paste_clipboard()
for more details.
§redo
Emitted when a request has been made to redo the previously undone operation.
§remove-tag
Emitted to remove all occurrences of @tag from a range
of text in a TextBuffer
.
Removal actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the @start and @end iters (or has to revalidate them).
See also: TextBufferExt::remove_tag()
.
§undo
Emitted when a request has been made to undo the previous operation or set of operations that have been grouped together.
§Implements
TextBufferExt
, [trait@glib::ObjectExt
], TextBufferExtManual
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl TextBuffer
impl TextBuffer
pub const NONE: Option<&'static TextBuffer> = None
Sourcepub fn new(table: Option<&TextTagTable>) -> TextBuffer
pub fn new(table: Option<&TextTagTable>) -> TextBuffer
Sourcepub fn builder() -> TextBufferBuilder
pub fn builder() -> TextBufferBuilder
Creates a new builder-pattern struct instance to construct TextBuffer
objects.
This method returns an instance of TextBufferBuilder
which can be used to create TextBuffer
objects.
Trait Implementations§
Source§impl Clone for TextBuffer
impl Clone for TextBuffer
Source§impl Debug for TextBuffer
impl Debug for TextBuffer
Source§impl Default for TextBuffer
impl Default for TextBuffer
Source§impl HasParamSpec for TextBuffer
impl HasParamSpec for TextBuffer
type ParamSpec = ParamSpecObject
Source§type SetValue = TextBuffer
type SetValue = TextBuffer
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, TextBuffer>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TextBuffer
impl Hash for TextBuffer
Source§impl<T: TextBufferImpl> IsSubclassable<T> for TextBuffer
impl<T: TextBufferImpl> IsSubclassable<T> for TextBuffer
Source§fn class_init(class: &mut Class<Self>)
fn class_init(class: &mut Class<Self>)
Source§fn instance_init(instance: &mut InitializingObject<T>)
fn instance_init(instance: &mut InitializingObject<T>)
Source§impl Ord for TextBuffer
impl Ord for TextBuffer
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 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl ParentClassIs for TextBuffer
impl ParentClassIs for TextBuffer
Source§impl<OT: ObjectType> PartialEq<OT> for TextBuffer
impl<OT: ObjectType> PartialEq<OT> for TextBuffer
Source§impl<OT: ObjectType> PartialOrd<OT> for TextBuffer
impl<OT: ObjectType> PartialOrd<OT> for TextBuffer
Source§impl StaticType for TextBuffer
impl StaticType for TextBuffer
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Write for TextBuffer
impl Write for TextBuffer
impl Eq for TextBuffer
Auto Trait Implementations§
impl Freeze for TextBuffer
impl RefUnwindSafe for TextBuffer
impl !Send for TextBuffer
impl !Sync for TextBuffer
impl Unpin for TextBuffer
impl UnwindSafe for TextBuffer
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
Source§impl<O> GObjectPropertyExpressionExt for O
impl<O> GObjectPropertyExpressionExt for O
Source§fn property_expression(&self, property_name: &str) -> PropertyExpression
fn property_expression(&self, property_name: &str) -> PropertyExpression
Source§fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
Source§fn this_expression(property_name: &str) -> PropertyExpression
fn this_expression(property_name: &str) -> PropertyExpression
this
object.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<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 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> TextBufferExt for Owhere
O: IsA<TextBuffer>,
impl<O> TextBufferExt for Owhere
O: IsA<TextBuffer>,
Source§fn add_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter)
fn add_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter)
Source§fn add_selection_clipboard(&self, clipboard: &Clipboard)
fn add_selection_clipboard(&self, clipboard: &Clipboard)
Source§fn apply_tag(&self, tag: &impl IsA<TextTag>, start: &TextIter, end: &TextIter)
fn apply_tag(&self, tag: &impl IsA<TextTag>, start: &TextIter, end: &TextIter)
Source§fn apply_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
fn apply_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
Source§fn backspace(
&self,
iter: &mut TextIter,
interactive: bool,
default_editable: bool,
) -> bool
fn backspace( &self, iter: &mut TextIter, interactive: bool, default_editable: bool, ) -> bool
Source§fn begin_irreversible_action(&self)
fn begin_irreversible_action(&self)
Source§fn begin_user_action(&self)
fn begin_user_action(&self)
Source§fn copy_clipboard(&self, clipboard: &Clipboard)
fn copy_clipboard(&self, clipboard: &Clipboard)
Source§fn create_child_anchor(&self, iter: &mut TextIter) -> TextChildAnchor
fn create_child_anchor(&self, iter: &mut TextIter) -> TextChildAnchor
Source§fn create_mark(
&self,
mark_name: Option<&str>,
where_: &TextIter,
left_gravity: bool,
) -> TextMark
fn create_mark( &self, mark_name: Option<&str>, where_: &TextIter, left_gravity: bool, ) -> TextMark
Source§fn cut_clipboard(&self, clipboard: &Clipboard, default_editable: bool)
fn cut_clipboard(&self, clipboard: &Clipboard, default_editable: bool)
Source§fn delete(&self, start: &mut TextIter, end: &mut TextIter)
fn delete(&self, start: &mut TextIter, end: &mut TextIter)
Source§fn delete_interactive(
&self,
start_iter: &mut TextIter,
end_iter: &mut TextIter,
default_editable: bool,
) -> bool
fn delete_interactive( &self, start_iter: &mut TextIter, end_iter: &mut TextIter, default_editable: bool, ) -> bool
Source§fn delete_mark(&self, mark: &impl IsA<TextMark>)
fn delete_mark(&self, mark: &impl IsA<TextMark>)
Source§fn delete_mark_by_name(&self, name: &str)
fn delete_mark_by_name(&self, name: &str)
Source§fn delete_selection(&self, interactive: bool, default_editable: bool) -> bool
fn delete_selection(&self, interactive: bool, default_editable: bool) -> bool
Source§fn end_irreversible_action(&self)
fn end_irreversible_action(&self)
Source§fn end_user_action(&self)
fn end_user_action(&self)
Source§fn bounds(&self) -> (TextIter, TextIter)
fn bounds(&self) -> (TextIter, TextIter)
Source§fn char_count(&self) -> i32
fn char_count(&self) -> i32
Source§fn enables_undo(&self) -> bool
fn enables_undo(&self) -> bool
Source§fn end_iter(&self) -> TextIter
fn end_iter(&self) -> TextIter
Source§fn has_selection(&self) -> bool
fn has_selection(&self) -> bool
Source§fn get_insert(&self) -> TextMark
fn get_insert(&self) -> TextMark
Source§fn iter_at_child_anchor(&self, anchor: &impl IsA<TextChildAnchor>) -> TextIter
fn iter_at_child_anchor(&self, anchor: &impl IsA<TextChildAnchor>) -> TextIter
Source§fn iter_at_line(&self, line_number: i32) -> Option<TextIter>
fn iter_at_line(&self, line_number: i32) -> Option<TextIter>
Source§fn iter_at_line_index(
&self,
line_number: i32,
byte_index: i32,
) -> Option<TextIter>
fn iter_at_line_index( &self, line_number: i32, byte_index: i32, ) -> Option<TextIter>
Source§fn iter_at_line_offset(
&self,
line_number: i32,
char_offset: i32,
) -> Option<TextIter>
fn iter_at_line_offset( &self, line_number: i32, char_offset: i32, ) -> Option<TextIter>
Source§fn iter_at_mark(&self, mark: &impl IsA<TextMark>) -> TextIter
fn iter_at_mark(&self, mark: &impl IsA<TextMark>) -> TextIter
Source§fn iter_at_offset(&self, char_offset: i32) -> TextIter
fn iter_at_offset(&self, char_offset: i32) -> TextIter
Source§fn line_count(&self) -> i32
fn line_count(&self) -> i32
Source§fn max_undo_levels(&self) -> u32
fn max_undo_levels(&self) -> u32
Source§fn is_modified(&self) -> bool
fn is_modified(&self) -> bool
set_modified()
set the modification flag to
false
. Read moreSource§fn selection_bound(&self) -> TextMark
fn selection_bound(&self) -> TextMark
Source§fn selection_content(&self) -> ContentProvider
fn selection_content(&self) -> ContentProvider
Source§fn slice(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool,
) -> GString
fn slice( &self, start: &TextIter, end: &TextIter, include_hidden_chars: bool, ) -> GString
Source§fn start_iter(&self) -> TextIter
fn start_iter(&self) -> TextIter
Source§fn tag_table(&self) -> TextTagTable
fn tag_table(&self) -> TextTagTable
TextTagTable
associated with this buffer. Read moreSource§fn text(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool,
) -> GString
fn text( &self, start: &TextIter, end: &TextIter, include_hidden_chars: bool, ) -> GString
Source§fn insert(&self, iter: &mut TextIter, text: &str)
fn insert(&self, iter: &mut TextIter, text: &str)
Source§fn insert_at_cursor(&self, text: &str)
fn insert_at_cursor(&self, text: &str)
Source§fn insert_child_anchor(
&self,
iter: &mut TextIter,
anchor: &impl IsA<TextChildAnchor>,
)
fn insert_child_anchor( &self, iter: &mut TextIter, anchor: &impl IsA<TextChildAnchor>, )
Source§fn insert_interactive(
&self,
iter: &mut TextIter,
text: &str,
default_editable: bool,
) -> bool
fn insert_interactive( &self, iter: &mut TextIter, text: &str, default_editable: bool, ) -> bool
Source§fn insert_interactive_at_cursor(
&self,
text: &str,
default_editable: bool,
) -> bool
fn insert_interactive_at_cursor( &self, text: &str, default_editable: bool, ) -> bool
Source§fn insert_markup(&self, iter: &mut TextIter, markup: &str)
fn insert_markup(&self, iter: &mut TextIter, markup: &str)
Source§fn insert_paintable(&self, iter: &mut TextIter, paintable: &impl IsA<Paintable>)
fn insert_paintable(&self, iter: &mut TextIter, paintable: &impl IsA<Paintable>)
Source§fn insert_range(&self, iter: &mut TextIter, start: &TextIter, end: &TextIter)
fn insert_range(&self, iter: &mut TextIter, start: &TextIter, end: &TextIter)
Source§fn insert_range_interactive(
&self,
iter: &mut TextIter,
start: &TextIter,
end: &TextIter,
default_editable: bool,
) -> bool
fn insert_range_interactive( &self, iter: &mut TextIter, start: &TextIter, end: &TextIter, default_editable: bool, ) -> bool
Source§fn move_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter)
fn move_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter)
Source§fn move_mark_by_name(&self, name: &str, where_: &TextIter)
fn move_mark_by_name(&self, name: &str, where_: &TextIter)
Source§fn paste_clipboard(
&self,
clipboard: &Clipboard,
override_location: Option<&TextIter>,
default_editable: bool,
)
fn paste_clipboard( &self, clipboard: &Clipboard, override_location: Option<&TextIter>, default_editable: bool, )
Source§fn place_cursor(&self, where_: &TextIter)
fn place_cursor(&self, where_: &TextIter)
Source§fn remove_commit_notify(&self, commit_notify_handler: u32)
fn remove_commit_notify(&self, commit_notify_handler: u32)
v4_16
only.GtkTextBufferCommitNotify
handler previously registered
with TextBufferExtManual::add_commit_notify()
. Read moreSource§fn remove_selection_clipboard(&self, clipboard: &Clipboard)
fn remove_selection_clipboard(&self, clipboard: &Clipboard)
Source§fn remove_tag(&self, tag: &impl IsA<TextTag>, start: &TextIter, end: &TextIter)
fn remove_tag(&self, tag: &impl IsA<TextTag>, start: &TextIter, end: &TextIter)
Source§fn remove_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
fn remove_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
Source§fn select_range(&self, ins: &TextIter, bound: &TextIter)
fn select_range(&self, ins: &TextIter, bound: &TextIter)
Source§fn set_enable_undo(&self, enable_undo: bool)
fn set_enable_undo(&self, enable_undo: bool)
Source§fn set_max_undo_levels(&self, max_undo_levels: u32)
fn set_max_undo_levels(&self, max_undo_levels: u32)
Source§fn set_modified(&self, setting: bool)
fn set_modified(&self, setting: bool)
Source§fn cursor_position(&self) -> i32
fn cursor_position(&self) -> i32
Source§fn connect_apply_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_apply_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn connect_begin_user_action<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_begin_user_action<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
TextBuffer
has changed.Source§fn connect_delete_range<F: Fn(&Self, &TextIter, &TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_delete_range<F: Fn(&Self, &TextIter, &TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn connect_end_user_action<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_end_user_action<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn connect_insert_child_anchor<F: Fn(&Self, &TextIter, &TextChildAnchor) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_insert_child_anchor<F: Fn(&Self, &TextIter, &TextChildAnchor) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_insert_paintable<F: Fn(&Self, &TextIter, &Paintable) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_insert_paintable<F: Fn(&Self, &TextIter, &Paintable) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_mark_deleted<F: Fn(&Self, &TextMark) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_mark_deleted<F: Fn(&Self, &TextMark) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_mark_set<F: Fn(&Self, &TextIter, &TextMark) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_mark_set<F: Fn(&Self, &TextIter, &TextMark) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_modified_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_modified_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
flips. Read moreSource§fn connect_paste_done<F: Fn(&Self, &Clipboard) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_paste_done<F: Fn(&Self, &Clipboard) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_redo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_redo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§fn connect_remove_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_remove_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn connect_undo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_undo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_can_redo_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_undo_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_cursor_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_enable_undo_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§impl<O> TextBufferExtManual for Owhere
O: IsA<TextBuffer>,
impl<O> TextBufferExtManual for Owhere
O: IsA<TextBuffer>,
Source§fn create_tag(
&self,
tag_name: Option<&str>,
properties: &[(&str, &dyn ToValue)],
) -> Option<TextTag>
fn create_tag( &self, tag_name: Option<&str>, properties: &[(&str, &dyn ToValue)], ) -> Option<TextTag>
Source§fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer
. Read moreSource§fn add_commit_notify<P: Fn(&TextBuffer, TextBufferNotifyFlags, u32, u32) + 'static>(
&self,
flags: TextBufferNotifyFlags,
commit_notify: P,
) -> u32
fn add_commit_notify<P: Fn(&TextBuffer, TextBufferNotifyFlags, u32, u32) + 'static>( &self, flags: TextBufferNotifyFlags, commit_notify: P, ) -> u32
v4_16
only.