Struct sourceview4::Buffer
source · pub struct Buffer { /* private fields */ }
Expand description
Properties
can-redo
Readable
can-undo
Readable
highlight-matching-brackets
Whether to highlight matching brackets in the buffer.
Readable | Writeable
highlight-syntax
Whether to highlight syntax in the buffer.
Readable | Writeable
implicit-trailing-newline
Whether the buffer has an implicit trailing newline. See
BufferExt::set_implicit_trailing_newline()
.
Readable | Writeable | Construct
language
Readable | Writeable
max-undo-levels
Number of undo levels for the buffer. -1 means no limit. This property will only affect the default undo manager.
Readable | Writeable
style-scheme
Style scheme. It contains styles for syntax highlighting, optionally foreground, background, cursor color, current line color, and matching brackets style.
Readable | Writeable
undo-manager
Readable | Writeable | Construct
TextBuffer
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 [TextBufferExtManual::text()
][crate::gtk::prelude::TextBufferExtManual::text()] for more information.
Readable | Writeable
Signals
bracket-matched
iter
is set to a valid iterator pointing to the matching bracket
if state
is BracketMatchType::Found
. Otherwise iter
is
meaningless.
The signal is emitted only when the state
changes, typically when
the cursor moves.
A use-case for this signal is to show messages in a GtkStatusbar
.
highlight-updated
The ::highlight-updated signal is emitted when the syntax
highlighting and [context classes][context-classes] are updated in a
certain region of the buffer
.
redo
The ::redo signal is emitted to redo the last undo operation.
source-mark-updated
The ::source-mark-updated signal is emitted each time
a mark is added to, moved or removed from the buffer
.
undo
The ::undo signal is emitted to undo the last user action which modified the buffer.
TextBuffer
apply-tag
The ::apply-tag signal is emitted to apply a tag to a
range of text in a gtk::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:
[TextBufferExtManual::apply_tag()
][crate::gtk::prelude::TextBufferExtManual::apply_tag()],
[TextBufferExtManual::insert_with_tags()
][crate::gtk::prelude::TextBufferExtManual::insert_with_tags()],
[TextBufferExtManual::insert_range()
][crate::gtk::prelude::TextBufferExtManual::insert_range()].
begin-user-action
The ::begin-user-action signal is emitted at the beginning of a single
user-visible operation on a gtk::TextBuffer
.
See also:
[TextBufferExtManual::begin_user_action()
][crate::gtk::prelude::TextBufferExtManual::begin_user_action()],
[TextBufferExtManual::insert_interactive()
][crate::gtk::prelude::TextBufferExtManual::insert_interactive()],
[TextBufferExtManual::insert_range_interactive()
][crate::gtk::prelude::TextBufferExtManual::insert_range_interactive()],
[TextBufferExtManual::delete_interactive()
][crate::gtk::prelude::TextBufferExtManual::delete_interactive()],
[TextBufferExtManual::backspace()
][crate::gtk::prelude::TextBufferExtManual::backspace()],
[TextBufferExtManual::delete_selection()
][crate::gtk::prelude::TextBufferExtManual::delete_selection()].
changed
The ::changed signal is emitted when the content of a gtk::TextBuffer
has changed.
delete-range
The ::delete-range signal is emitted to delete a range
from a gtk::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: [TextBufferExtManual::delete()
][crate::gtk::prelude::TextBufferExtManual::delete()].
end-user-action
The ::end-user-action signal is emitted at the end of a single
user-visible operation on the gtk::TextBuffer
.
See also:
[TextBufferExtManual::end_user_action()
][crate::gtk::prelude::TextBufferExtManual::end_user_action()],
[TextBufferExtManual::insert_interactive()
][crate::gtk::prelude::TextBufferExtManual::insert_interactive()],
[TextBufferExtManual::insert_range_interactive()
][crate::gtk::prelude::TextBufferExtManual::insert_range_interactive()],
[TextBufferExtManual::delete_interactive()
][crate::gtk::prelude::TextBufferExtManual::delete_interactive()],
[TextBufferExtManual::backspace()
][crate::gtk::prelude::TextBufferExtManual::backspace()],
[TextBufferExtManual::delete_selection()
][crate::gtk::prelude::TextBufferExtManual::delete_selection()],
[TextBufferExtManual::backspace()
][crate::gtk::prelude::TextBufferExtManual::backspace()].
insert-child-anchor
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor
in a gtk::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: [TextBufferExtManual::insert_child_anchor()
][crate::gtk::prelude::TextBufferExtManual::insert_child_anchor()].
insert-pixbuf
The ::insert-pixbuf signal is emitted to insert a gdk_pixbuf::Pixbuf
in a gtk::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: [TextBufferExtManual::insert_pixbuf()
][crate::gtk::prelude::TextBufferExtManual::insert_pixbuf()].
insert-text
The ::insert-text signal is emitted to insert text in a gtk::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:
[TextBufferExtManual::insert()
][crate::gtk::prelude::TextBufferExtManual::insert()],
[TextBufferExtManual::insert_range()
][crate::gtk::prelude::TextBufferExtManual::insert_range()].
mark-deleted
The ::mark-deleted signal is emitted as notification
after a gtk::TextMark
is deleted.
See also:
[TextBufferExtManual::delete_mark()
][crate::gtk::prelude::TextBufferExtManual::delete_mark()].
mark-set
The ::mark-set signal is emitted as notification
after a gtk::TextMark
is set.
See also:
[TextBufferExtManual::create_mark()
][crate::gtk::prelude::TextBufferExtManual::create_mark()],
[TextBufferExtManual::move_mark()
][crate::gtk::prelude::TextBufferExtManual::move_mark()].
modified-changed
The ::modified-changed signal is emitted when the modified bit of a
gtk::TextBuffer
flips.
See also:
[TextBufferExtManual::set_modified()
][crate::gtk::prelude::TextBufferExtManual::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 [TextBufferExtManual::paste_clipboard()
][crate::gtk::prelude::TextBufferExtManual::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 gtk::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:
[TextBufferExtManual::remove_tag()
][crate::gtk::prelude::TextBufferExtManual::remove_tag()].
Implements
Implementations§
source§impl Buffer
impl Buffer
pub const NONE: Option<&'static Buffer> = None
sourcepub fn new(table: Option<&impl IsA<TextTagTable>>) -> Buffer
pub fn new(table: Option<&impl IsA<TextTagTable>>) -> Buffer
Creates a new source buffer.
table
a gtk::TextTagTable
, or None
to create a new one.
Returns
a new source buffer.
sourcepub fn with_language(language: &impl IsA<Language>) -> Buffer
pub fn with_language(language: &impl IsA<Language>) -> Buffer
Creates a new source buffer using the highlighting patterns in
language
. This is equivalent to creating a new source buffer with
a new tag table and then calling BufferExt::set_language()
.
language
a Language
.
Returns
a new source buffer which will highlight text
according to the highlighting patterns in language
.
sourcepub fn builder() -> BufferBuilder
pub fn builder() -> BufferBuilder
Creates a new builder-pattern struct instance to construct Buffer
objects.
This method returns an instance of BufferBuilder
which can be used to create Buffer
objects.
Trait Implementations§
source§impl HasParamSpec for Buffer
impl HasParamSpec for Buffer
source§impl Ord for Buffer
impl Ord for Buffer
source§impl ParentClassIs for Buffer
impl ParentClassIs for Buffer
type Parent = TextBuffer
source§impl<OT: ObjectType> PartialEq<OT> for Buffer
impl<OT: ObjectType> PartialEq<OT> for Buffer
source§impl<OT: ObjectType> PartialOrd<OT> for Buffer
impl<OT: ObjectType> PartialOrd<OT> for Buffer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Buffer
impl StaticType for Buffer
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Buffer
impl IsA<TextBuffer> for Buffer
Auto Trait Implementations§
impl RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<O> BufferExt for O
impl<O> BufferExt for O
source§fn begin_not_undoable_action(&self)
fn begin_not_undoable_action(&self)
source§fn can_redo(&self) -> bool
fn can_redo(&self) -> bool
source§fn can_undo(&self) -> bool
fn can_undo(&self) -> bool
source§fn change_case(
&self,
case_type: ChangeCaseType,
start: &mut TextIter,
end: &mut TextIter
)
fn change_case( &self, case_type: ChangeCaseType, start: &mut TextIter, end: &mut TextIter )
source§fn create_source_mark(
&self,
name: Option<&str>,
category: &str,
where_: &TextIter
) -> Option<Mark>
fn create_source_mark( &self, name: Option<&str>, category: &str, where_: &TextIter ) -> Option<Mark>
self
of category category
. A source mark is
a gtk::TextMark
but organised into categories. Depending on the category
a pixbuf can be specified that will be displayed along the line of the mark. Read moresource§fn end_not_undoable_action(&self)
fn end_not_undoable_action(&self)
source§fn ensure_highlight(&self, start: &TextIter, end: &TextIter)
fn ensure_highlight(&self, start: &TextIter, end: &TextIter)
source§fn context_classes_at_iter(&self, iter: &TextIter) -> Vec<GString>
fn context_classes_at_iter(&self, iter: &TextIter) -> Vec<GString>
iter
. Read moresource§fn is_highlight_matching_brackets(&self) -> bool
fn is_highlight_matching_brackets(&self) -> bool
source§fn is_highlight_syntax(&self) -> bool
fn is_highlight_syntax(&self) -> bool
source§fn is_implicit_trailing_newline(&self) -> bool
fn is_implicit_trailing_newline(&self) -> bool
source§fn language(&self) -> Option<Language>
fn language(&self) -> Option<Language>
Language
associated with the buffer,
see set_language()
. The returned object should not be
unreferenced by the user. Read moresource§fn max_undo_levels(&self) -> i32
fn max_undo_levels(&self) -> i32
source§fn style_scheme(&self) -> Option<StyleScheme>
fn style_scheme(&self) -> Option<StyleScheme>
StyleScheme
associated with the buffer,
see set_style_scheme()
.
The returned object should not be unreferenced by the user. Read moresource§fn undo_manager(&self) -> Option<UndoManager>
fn undo_manager(&self) -> Option<UndoManager>
UndoManager
associated with the buffer,
see set_undo_manager()
. The returned object should not be
unreferenced by the user. Read moresource§fn join_lines(&self, start: &mut TextIter, end: &mut TextIter)
fn join_lines(&self, start: &mut TextIter, end: &mut TextIter)
source§fn redo(&self)
fn redo(&self)
can_redo()
to check whether a call to this function will have any effect. Read moresource§fn remove_source_marks(
&self,
start: &TextIter,
end: &TextIter,
category: Option<&str>
)
fn remove_source_marks( &self, start: &TextIter, end: &TextIter, category: Option<&str> )
category
between start
and end
from the buffer.
If category
is NULL, all marks in the range will be removed. Read moresource§fn set_highlight_matching_brackets(&self, highlight: bool)
fn set_highlight_matching_brackets(&self, highlight: bool)
source§fn set_highlight_syntax(&self, highlight: bool)
fn set_highlight_syntax(&self, highlight: bool)
source§fn set_implicit_trailing_newline(&self, implicit_trailing_newline: bool)
fn set_implicit_trailing_newline(&self, implicit_trailing_newline: bool)
self
has an implicit trailing newline. Read moresource§fn set_max_undo_levels(&self, max_undo_levels: i32)
fn set_max_undo_levels(&self, max_undo_levels: i32)
source§fn set_style_scheme(&self, scheme: Option<&impl IsA<StyleScheme>>)
fn set_style_scheme(&self, scheme: Option<&impl IsA<StyleScheme>>)
StyleScheme
to be used by the buffer and the view. Read moresource§fn set_undo_manager(&self, manager: Option<&impl IsA<UndoManager>>)
fn set_undo_manager(&self, manager: Option<&impl IsA<UndoManager>>)
source§fn sort_lines(
&self,
start: &mut TextIter,
end: &mut TextIter,
flags: SortFlags,
column: i32
)
fn sort_lines( &self, start: &mut TextIter, end: &mut TextIter, flags: SortFlags, column: i32 )
source§fn undo(&self)
fn undo(&self)
can_undo()
to check whether a call to this
function will have any effect. Read moresource§fn connect_bracket_matched<F: Fn(&Self, Option<&TextIter>, BracketMatchType) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_bracket_matched<F: Fn(&Self, Option<&TextIter>, BracketMatchType) + 'static>( &self, f: F ) -> SignalHandlerId
iter
is set to a valid iterator pointing to the matching bracket
if state
is BracketMatchType::Found
. Otherwise iter
is
meaningless. Read moresource§fn connect_highlight_updated<F: Fn(&Self, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_highlight_updated<F: Fn(&Self, &TextIter, &TextIter) + 'static>( &self, f: F ) -> SignalHandlerId
buffer
. Read moresource§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_source_mark_updated<F: Fn(&Self, &TextMark) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_source_mark_updated<F: Fn(&Self, &TextMark) + 'static>( &self, f: F ) -> SignalHandlerId
buffer
. 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_highlight_matching_brackets_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_highlight_syntax_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_implicit_trailing_newline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_language_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_max_undo_levels_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_style_scheme_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_undo_manager_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerId
notify
signal of the object. Read more