pub struct TextBuffer { /* 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.
§Properties
§copy-target-list
The list of targets this buffer supports for clipboard copying and as DND source.
Readable
§cursor-position
The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.
Readable
§has-selection
Whether the buffer has some text currently selected.
Readable
§paste-target-list
The list of targets this buffer supports for clipboard pasting and as DND destination.
Readable
§tag-table
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
The ::apply-tag signal is 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(),
gtk_text_buffer_insert_with_tags(),
TextBufferExt::insert_range().
§begin-user-action
The ::begin-user-action signal is 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
The ::changed signal is emitted when the content of a TextBuffer
has changed.
§delete-range
The ::delete-range signal is 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
The ::end-user-action signal is 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
The ::insert-child-anchor signal is 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-pixbuf
The ::insert-pixbuf signal is emitted to insert a gdk_pixbuf::Pixbuf
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 pixbuf.
See also: TextBufferExt::insert_pixbuf().
§insert-text
The ::insert-text signal is 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
The ::mark-deleted signal is emitted as notification
after a TextMark is deleted.
See also:
TextBufferExt::delete_mark().
§mark-set
The ::mark-set signal is emitted as notification
after a TextMark is set.
See also:
TextBufferExt::create_mark(),
TextBufferExt::move_mark().
§modified-changed
The ::modified-changed signal is emitted when the modified bit of a
TextBuffer flips.
See also:
TextBufferExt::set_modified().
§paste-done
The paste-done signal is 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.
§remove-tag
The ::remove-tag signal is 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().
§Implements
Implementations§
Source§impl TextBuffer
impl TextBuffer
pub const NONE: Option<&'static TextBuffer> = None
Sourcepub fn new(table: Option<&impl IsA<TextTagTable>>) -> TextBuffer
pub fn new(table: Option<&impl IsA<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 Display for TextBuffer
impl Display for TextBuffer
impl Eq 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 Ord for TextBuffer
impl Ord for TextBuffer
1.21.0 (const: unstable) · 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.Auto Trait Implementations§
impl !Send for TextBuffer
impl !Sync for TextBuffer
impl Freeze for TextBuffer
impl RefUnwindSafe for TextBuffer
impl Unpin for TextBuffer
impl UnsafeUnpin 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§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 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_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)
self. The default
handler for the signal applies tag to the given range.
start and end do not have to be in order. Read moreSource§fn apply_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
fn apply_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
TextTagTableExt::lookup() on the buffer’s tag table to
get a TextTag, then calls apply_tag(). Read moreSource§fn backspace(
&self,
iter: &mut TextIter,
interactive: bool,
default_editable: bool,
) -> bool
fn backspace( &self, iter: &mut TextIter, interactive: bool, default_editable: bool, ) -> bool
iter. In the
normal case a single character will be deleted, but when
combining accents are involved, more than one character can
be deleted, and when precomposed character and accent combinations
are involved, less than one character will be deleted. Read moreSource§fn begin_user_action(&self)
fn begin_user_action(&self)
end_user_action() are part of a single
user-visible operation. The operations between
begin_user_action() and
end_user_action() can then be grouped when creating
an undo stack. TextBuffer maintains a count of calls to
begin_user_action() that have not been closed with
a call to end_user_action(), and emits the
“begin-user-action” and “end-user-action” signals only for the
outermost pair of calls. This allows you to build user actions
from other user actions. Read moreSource§fn copy_clipboard(&self, clipboard: &Clipboard)
fn copy_clipboard(&self, clipboard: &Clipboard)
Source§fn create_child_anchor(&self, iter: &mut TextIter) -> Option<TextChildAnchor>
fn create_child_anchor(&self, iter: &mut TextIter) -> Option<TextChildAnchor>
TextChildAnchor::new() and inserts it into the buffer
with insert_child_anchor(). The new anchor is
owned by the buffer; no reference count is returned to
the caller of create_child_anchor(). Read moreSource§fn create_mark(
&self,
mark_name: Option<&str>,
where_: &TextIter,
left_gravity: bool,
) -> Option<TextMark>
fn create_mark( &self, mark_name: Option<&str>, where_: &TextIter, left_gravity: bool, ) -> Option<TextMark>
where_. If mark_name is None, the mark
is anonymous; otherwise, the mark can be retrieved by name using
mark(). If a mark has left gravity, and text is
inserted at the mark’s current location, the mark will be moved to
the left of the newly-inserted text. If the mark has right gravity
(left_gravity = false), the mark will end up on the right of
newly-inserted text. The standard left-to-right cursor is a mark
with right gravity (when you type, the cursor stays on the right
side of the text you’re typing). Read moreSource§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)
start and end. The order of start and end
is not actually relevant; delete() will reorder
them. This function actually emits the “delete-range” signal, and
the default handler of that signal deletes the text. Because the
buffer is modified, all outstanding iterators become invalid after
calling this function; however, the start and end will be
re-initialized to point to the location where text was deleted. Read moreSource§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>)
mark, so that it’s no longer located anywhere in the
buffer. Removes the reference the buffer holds to the mark, so if
you haven’t called g_object_ref() on the mark, it will be freed. Even
if the mark isn’t freed, most operations on mark become
invalid, until it gets added to a buffer again with
add_mark(). Use TextMarkExt::is_deleted() to
find out if a mark has been removed from its buffer.
The mark-deleted signal will be emitted as notification after
the mark is deleted. Read moreSource§fn delete_mark_by_name(&self, name: &str)
fn delete_mark_by_name(&self, name: &str)
Source§fn deserialize(
&self,
content_buffer: &impl IsA<TextBuffer>,
format: &Atom,
iter: &mut TextIter,
data: &[u8],
) -> Result<(), Error>
fn deserialize( &self, content_buffer: &impl IsA<TextBuffer>, format: &Atom, iter: &mut TextIter, data: &[u8], ) -> Result<(), Error>
deserialize_set_can_create_tags() Read moreSource§fn end_user_action(&self)
fn end_user_action(&self)
begin_user_action().
See that function for a full explanation.Source§fn bounds(&self) -> (TextIter, TextIter)
fn bounds(&self) -> (TextIter, TextIter)
start,end). Read moreSource§fn char_count(&self) -> i32
fn char_count(&self) -> i32
Source§fn copy_target_list(&self) -> Option<TargetList>
fn copy_target_list(&self) -> Option<TargetList>
info values from the GtkTextBufferTargetInfo enum,
using TargetList::add_rich_text_targets() and
TargetList::add_text_targets(). Read moreSource§fn deserialize_formats(&self) -> Vec<Atom>
fn deserialize_formats(&self) -> Vec<Atom>
self using gtk_text_buffer_register_deserialize_format() or
register_deserialize_tagset() Read moreSource§fn end_iter(&self) -> TextIter
fn end_iter(&self) -> TextIter
iter with the “end iterator,” one past the last valid
character in the text buffer. If dereferenced with
TextIter::char(), the end iterator has a character value of 0.
The entire buffer lies in the range from the first position in
the buffer (call start_iter() to get
character position 0) to the end iterator. Read moreSource§fn has_selection(&self) -> bool
fn has_selection(&self) -> bool
Source§fn get_insert(&self) -> Option<TextMark>
fn get_insert(&self) -> Option<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) -> TextIter
fn iter_at_line(&self, line_number: i32) -> TextIter
iter to the start of the given line. If line_number is greater
than the number of lines in the self, the end iterator is returned. Read moreSource§fn iter_at_line_index(&self, line_number: i32, byte_index: i32) -> TextIter
fn iter_at_line_index(&self, line_number: i32, byte_index: i32) -> TextIter
byte_index within the given line.
byte_index must be the start of a UTF-8 character. Note bytes, not
characters; UTF-8 may encode one character as multiple bytes. Read moreSource§fn iter_at_line_offset(&self, line_number: i32, char_offset: i32) -> TextIter
fn iter_at_line_offset(&self, line_number: i32, char_offset: i32) -> TextIter
char_offset within the given line. Note
characters, not bytes; UTF-8 may encode one character as multiple bytes. Read moreSource§fn iter_at_offset(&self, char_offset: i32) -> TextIter
fn iter_at_offset(&self, char_offset: i32) -> TextIter
iter to a position char_offset chars from the start
of the entire buffer. If char_offset is -1 or greater than the number
of characters in the buffer, iter is initialized to the end iterator,
the iterator one past the last valid character in the buffer. Read moreSource§fn line_count(&self) -> i32
fn line_count(&self) -> i32
Source§fn is_modified(&self) -> bool
fn is_modified(&self) -> bool
set_modified() set the modification flag to
false. Used for example to enable a “save” function in a text
editor. Read moreSource§fn paste_target_list(&self) -> Option<TargetList>
fn paste_target_list(&self) -> Option<TargetList>
info values from the GtkTextBufferTargetInfo enum,
using TargetList::add_rich_text_targets() and
TargetList::add_text_targets(). Read moreSource§fn selection_bound(&self) -> Option<TextMark>
fn selection_bound(&self) -> Option<TextMark>
Source§fn selection_bounds(&self) -> Option<(TextIter, TextIter)>
fn selection_bounds(&self) -> Option<(TextIter, TextIter)>
true if some text is selected; places the bounds
of the selection in start and end (if the selection has length 0,
then start and end are filled in with the same value).
start and end will be in ascending order. If start and end are
NULL, then they are not filled in, but the return value still indicates
whether text is selected. Read moreSource§fn serialize_formats(&self) -> Vec<Atom>
fn serialize_formats(&self) -> Vec<Atom>
self using gtk_text_buffer_register_serialize_format() or
register_serialize_tagset() Read moreSource§fn slice(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool,
) -> Option<GString>
fn slice( &self, start: &TextIter, end: &TextIter, include_hidden_chars: bool, ) -> Option<GString>
start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
include_hidden_chars is false. The returned string includes a
0xFFFC character whenever the buffer contains
embedded images, so byte and character indexes into
the returned string do correspond to byte
and character indexes into the buffer. Contrast with
text(). Note that 0xFFFC can occur in normal
text as well, so it is not a reliable indicator that a pixbuf or
widget is in the buffer. Read moreSource§fn start_iter(&self) -> TextIter
fn start_iter(&self) -> TextIter
iter with the first position in the text buffer. This
is the same as using iter_at_offset() to get
the iter at character offset 0. Read moreSource§fn tag_table(&self) -> Option<TextTagTable>
fn tag_table(&self) -> Option<TextTagTable>
TextTagTable associated with this buffer. Read moreSource§fn text(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool,
) -> Option<GString>
fn text( &self, start: &TextIter, end: &TextIter, include_hidden_chars: bool, ) -> Option<GString>
start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
include_hidden_chars is false. Does not include characters
representing embedded images, so byte and character indexes into
the returned string do not correspond to byte
and character indexes into the buffer. Contrast with
slice(). Read moreSource§fn insert(&self, iter: &mut TextIter, text: &str)
fn insert(&self, iter: &mut TextIter, text: &str)
len bytes of text at position iter. If len is -1,
text must be nul-terminated and will be inserted in its
entirety. Emits the “insert-text” signal; insertion actually occurs
in the default handler for the signal. iter is invalidated when
insertion occurs (because the buffer contents change), but the
default signal handler revalidates it to point to the end of the
inserted text. Read moreSource§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>, )
iter. The
anchor will be counted as one character in character counts, and
when obtaining the buffer contents as a string, will be represented
by the Unicode “object replacement character” 0xFFFC. Note that the
“slice” variants for obtaining portions of the buffer as a string
include this character for child anchors, but the “text” variants do
not. E.g. see slice() and
text(). Consider
create_child_anchor() as a more convenient
alternative to this function. The buffer will add a reference to
the anchor, so you can unref it after insertion. Read moreSource§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
insert_interactive() at the cursor
position. Read moreSource§fn insert_markup(&self, iter: &mut TextIter, markup: &str)
fn insert_markup(&self, iter: &mut TextIter, markup: &str)
markup at position iter. markup will be inserted
in its entirety and must be nul-terminated and valid UTF-8. Emits the
insert-text signal, possibly multiple times; insertion
actually occurs in the default handler for the signal. iter will point
to the end of the inserted text on return. Read moreSource§fn insert_pixbuf(&self, iter: &mut TextIter, pixbuf: &Pixbuf)
fn insert_pixbuf(&self, iter: &mut TextIter, pixbuf: &Pixbuf)
iter. The image will be
counted as one character in character counts, and when obtaining
the buffer contents as a string, will be represented by the Unicode
“object replacement character” 0xFFFC. Note that the “slice”
variants for obtaining portions of the buffer as a string include
this character for pixbufs, but the “text” variants do
not. e.g. see slice() and
text(). Read moreSource§fn insert_range(&self, iter: &mut TextIter, start: &TextIter, end: &TextIter)
fn insert_range(&self, iter: &mut TextIter, start: &TextIter, end: &TextIter)
start and end (the order
of start and end doesn’t matter) and inserts the copy at iter.
Used instead of simply getting/inserting text because it preserves
images and tags. If start and end are in a different buffer from
self, the two buffers must share the same tag table. Read moreSource§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
insert_range(), but does nothing if the
insertion point isn’t editable. The default_editable parameter
indicates whether the text is editable at iter if no tags
enclosing iter affect editability. Typically the result of
TextViewExt::is_editable() is appropriate here. Read moreSource§fn move_mark_by_name(&self, name: &str, where_: &TextIter)
fn move_mark_by_name(&self, name: &str, where_: &TextIter)
name (which must exist) to location where_.
See move_mark() for details. Read moreSource§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)
move_mark(), you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized. Read moreself. See
register_serialize_tagset() for details. Read moreself. The internal format does not comply
to any standard rich text format and only works between TextBuffer
instances. It is capable of serializing all of a text buffer’s tags
and embedded pixbufs. Read morestart and end. Be careful
with this function; it could remove tags added in code unrelated to
the code you’re currently writing. That is, using this function is
probably a bad idea if you have two or more unrelated code sections
that add tags. 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)
tag from the given range. start and
end don’t have to be in order. Read moreSource§fn remove_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
fn remove_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter)
TextTagTableExt::lookup() on the buffer’s tag table to
get a TextTag, then calls remove_tag(). Read moreSource§fn select_range(&self, ins: &TextIter, bound: &TextIter)
fn select_range(&self, ins: &TextIter, bound: &TextIter)
move_mark(), you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized. Read moreSource§fn serialize(
&self,
content_buffer: &impl IsA<TextBuffer>,
format: &Atom,
start: &TextIter,
end: &TextIter,
) -> Vec<u8> ⓘ
fn serialize( &self, content_buffer: &impl IsA<TextBuffer>, format: &Atom, start: &TextIter, end: &TextIter, ) -> Vec<u8> ⓘ
start
and end in the rich text format represented by format. Read moreSource§fn set_modified(&self, setting: bool)
fn set_modified(&self, setting: bool)
self, FALSE). When the buffer is modified,
it will automatically toggled on the modified bit again. When the modified
bit flips, the buffer emits the modified-changed signal. Read moreSource§fn set_text(&self, text: &str)
fn set_text(&self, text: &str)
self, and inserts text instead. If
len is -1, text must be nul-terminated. text must be valid UTF-8. Read moreSource§fn unregister_deserialize_format(&self, format: &Atom)
fn unregister_deserialize_format(&self, format: &Atom)
gtk_text_buffer_register_deserialize_format() or
register_deserialize_tagset(). Read moreSource§fn unregister_serialize_format(&self, format: &Atom)
fn unregister_serialize_format(&self, format: &Atom)
gtk_text_buffer_register_serialize_format() or
register_serialize_tagset() Read moreSource§fn cursor_position(&self) -> i32
fn cursor_position(&self) -> i32
Source§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_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_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
paste_clipboard() for more details. Read morefn connect_copy_target_list_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_cursor_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_paste_target_list_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 connect_apply_tag<F: Fn(&Self, &TextTag, &mut TextIter, &mut TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_apply_tag<F: Fn(&Self, &TextTag, &mut TextIter, &mut TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer.
Applying actually occurs in the default handler. Read moreSource§fn connect_delete_range<F: Fn(&Self, &mut TextIter, &mut TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_delete_range<F: Fn(&Self, &mut TextIter, &mut TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
TextBuffer. Read moreSource§fn connect_insert_child_anchor<F: Fn(&Self, &mut TextIter, &TextChildAnchor) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_insert_child_anchor<F: Fn(&Self, &mut TextIter, &TextChildAnchor) + 'static>( &self, f: F, ) -> SignalHandlerId
TextChildAnchor in a TextBuffer.
Insertion actually occurs in the default handler. Read moreSource§fn connect_insert_pixbuf<F: Fn(&Self, &mut TextIter, &Pixbuf) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_insert_pixbuf<F: Fn(&Self, &mut TextIter, &Pixbuf) + 'static>( &self, f: F, ) -> SignalHandlerId
gdk_pixbuf::Pixbuf
in a TextBuffer. Insertion actually occurs in the default handler. Read moreSource§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.
Insertion actually occurs in the default handler. Read moreSource§fn connect_remove_tag<F: Fn(&Self, &TextTag, &mut TextIter, &mut TextIter) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_remove_tag<F: Fn(&Self, &TextTag, &mut TextIter, &mut TextIter) + 'static>( &self, f: F, ) -> SignalHandlerId
tag from
a range of text in a TextBuffer.
Removal actually occurs in the default handler. Read more