Struct sourceview4::Completion
source · pub struct Completion { /* private fields */ }
Expand description
Properties
accelerators
Number of keyboard accelerators to show for the first proposals. For
example, to activate the first proposal, the user can press
<keycombo>``<keycap>
Alt</keycap>``<keycap>
1</keycap>``</keycombo>
.
Readable | Writeable | Construct
auto-complete-delay
Determines the popup delay (in milliseconds) at which the completion will be shown for interactive completion.
Readable | Writeable | Construct
proposal-page-size
The scroll page size of the proposals in the completion window. In
other words, when <keycap>
PageDown</keycap>
or
<keycap>
PageUp</keycap>
is pressed, the selected
proposal becomes the one which is located one page size backward or
forward.
See also the move-cursor
signal.
Readable | Writeable | Construct
provider-page-size
The scroll page size of the provider pages in the completion window.
See the move-page
signal.
Readable | Writeable | Construct
remember-info-visibility
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
Readable | Writeable | Construct
select-on-show
Determines whether the first proposal should be selected when the completion is first shown.
Readable | Writeable | Construct
show-headers
Determines whether provider headers should be shown in the proposal list. It can be useful to disable when there is only one provider.
Readable | Writeable | Construct
show-icons
Determines whether provider and proposal icons should be shown in the completion popup.
Readable | Writeable | Construct
view
The View
bound to the completion object.
Readable | Writeable | Construct Only
Signals
activate-proposal
The activate-proposal
signal is a
keybinding signal which gets emitted when the user initiates
a proposal activation.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to control the proposal
activation programmatically.
Action
hide
Emitted when the completion window is hidden. The default handler will actually hide the window.
Action
move-cursor
The move-cursor
signal is a keybinding
signal which gets emitted when the user initiates a cursor
movement.
The <keycap>
Up</keycap>
, <keycap>
Down</keycap>
,
<keycap>
PageUp</keycap>
, <keycap>
PageDown</keycap>
,
<keycap>
Home</keycap>
and <keycap>
End</keycap>
keys are bound to the
normal behavior expected by those keys.
When step
is equal to gtk::ScrollStep::Pages
, the page size is defined by
the proposal-page-size
property. It is used for
the <keycap>
PageDown</keycap>
and <keycap>
PageUp</keycap>
keys.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to control the cursor
programmatically.
Action
move-page
The move-page
signal is a keybinding
signal which gets emitted when the user initiates a page
movement (i.e. switches between provider pages).
<keycombo>``<keycap>
Control</keycap>``<keycap>
Left</keycap>``</keycombo>
is for going to the previous provider.
<keycombo>``<keycap>
Control</keycap>``<keycap>
Right</keycap>``</keycombo>
is for going to the next provider.
<keycombo>``<keycap>
Control</keycap>``<keycap>
Home</keycap>``</keycombo>
is for displaying all the providers.
<keycombo>``<keycap>
Control</keycap>``<keycap>
End</keycap>``</keycombo>
is for going to the last provider.
When step
is equal to gtk::ScrollStep::Pages
, the page size is defined by
the provider-page-size
property.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to control the page selection
programmatically.
Action
populate-context
Emitted just before starting to populate the completion with providers. You can use this signal to add additional attributes in the context.
Action
show
Emitted when the completion window is shown. The default handler will actually show the window.
Action
Implements
Implementations§
source§impl Completion
impl Completion
pub const NONE: Option<&'static Completion> = None
sourcepub fn builder() -> CompletionBuilder
pub fn builder() -> CompletionBuilder
Creates a new builder-pattern struct instance to construct Completion
objects.
This method returns an instance of CompletionBuilder
which can be used to create Completion
objects.
Trait Implementations§
source§impl Clone for Completion
impl Clone for Completion
source§impl Debug for Completion
impl Debug for Completion
source§impl Display for Completion
impl Display for Completion
source§impl HasParamSpec for Completion
impl HasParamSpec for Completion
type ParamSpec = ParamSpecObject
§type SetValue = Completion
type SetValue = Completion
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Completion>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for Completion
impl Hash for Completion
source§impl Ord for Completion
impl Ord for Completion
source§impl ParentClassIs for Completion
impl ParentClassIs for Completion
source§impl<OT: ObjectType> PartialEq<OT> for Completion
impl<OT: ObjectType> PartialEq<OT> for Completion
source§impl<OT: ObjectType> PartialOrd<OT> for Completion
impl<OT: ObjectType> PartialOrd<OT> for Completion
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 Completion
impl StaticType for Completion
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Completion
impl IsA<Buildable> for Completion
Auto Trait Implementations§
impl RefUnwindSafe for Completion
impl !Send for Completion
impl !Sync for Completion
impl Unpin for Completion
impl UnwindSafe for Completion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str> )
fn construct_child( &self, builder: &impl IsA<Builder>, name: &str ) -> Option<Object>
fn internal_child( &self, builder: &impl IsA<Builder>, childname: &str ) -> Option<Object>
fn parser_finished(&self, builder: &impl IsA<Builder>)
fn set_buildable_property( &self, builder: &impl IsA<Builder>, name: &str, value: &Value )
source§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<O> CompletionExt for Owhere
O: IsA<Completion>,
impl<O> CompletionExt for Owhere
O: IsA<Completion>,
source§fn add_provider(
&self,
provider: &impl IsA<CompletionProvider>
) -> Result<(), Error>
fn add_provider( &self, provider: &impl IsA<CompletionProvider> ) -> Result<(), Error>
CompletionProvider
to the completion object. This will
add a reference provider
, so make sure to unref your own copy when you
no longer need it. Read moresource§fn block_interactive(&self)
fn block_interactive(&self)
unblock_interactive()
to enable
interactive completion again. Read moresource§fn info_window(&self) -> Option<CompletionInfo>
fn info_window(&self) -> Option<CompletionInfo>
source§fn providers(&self) -> Vec<CompletionProvider>
fn providers(&self) -> Vec<CompletionProvider>
self
. The returned list is owned
by the completion and should not be freed. Read moresource§fn remove_provider(
&self,
provider: &impl IsA<CompletionProvider>
) -> Result<(), Error>
fn remove_provider( &self, provider: &impl IsA<CompletionProvider> ) -> Result<(), Error>
provider
from the completion. Read moresource§fn start(
&self,
providers: &[CompletionProvider],
context: &impl IsA<CompletionContext>
) -> bool
fn start( &self, providers: &[CompletionProvider], context: &impl IsA<CompletionContext> ) -> bool
CompletionContext
and
a list of potential candidate providers for completion. Read moresource§fn unblock_interactive(&self)
fn unblock_interactive(&self)
block_interactive()
to enable interactive completion
again.source§fn accelerators(&self) -> u32
fn accelerators(&self) -> u32
<keycombo>``<keycap>
Alt</keycap>``<keycap>
1</keycap>``</keycombo>
.source§fn set_accelerators(&self, accelerators: u32)
fn set_accelerators(&self, accelerators: u32)
<keycombo>``<keycap>
Alt</keycap>``<keycap>
1</keycap>``</keycombo>
.source§fn auto_complete_delay(&self) -> u32
fn auto_complete_delay(&self) -> u32
source§fn set_auto_complete_delay(&self, auto_complete_delay: u32)
fn set_auto_complete_delay(&self, auto_complete_delay: u32)
source§fn proposal_page_size(&self) -> u32
fn proposal_page_size(&self) -> u32
<keycap>
PageDown</keycap>
or
<keycap>
PageUp</keycap>
is pressed, the selected
proposal becomes the one which is located one page size backward or
forward. Read moresource§fn set_proposal_page_size(&self, proposal_page_size: u32)
fn set_proposal_page_size(&self, proposal_page_size: u32)
<keycap>
PageDown</keycap>
or
<keycap>
PageUp</keycap>
is pressed, the selected
proposal becomes the one which is located one page size backward or
forward. Read moresource§fn provider_page_size(&self) -> u32
fn provider_page_size(&self) -> u32
source§fn set_provider_page_size(&self, provider_page_size: u32)
fn set_provider_page_size(&self, provider_page_size: u32)
source§fn is_remember_info_visibility(&self) -> bool
fn is_remember_info_visibility(&self) -> bool
source§fn set_remember_info_visibility(&self, remember_info_visibility: bool)
fn set_remember_info_visibility(&self, remember_info_visibility: bool)
source§fn selects_on_show(&self) -> bool
fn selects_on_show(&self) -> bool
source§fn set_select_on_show(&self, select_on_show: bool)
fn set_select_on_show(&self, select_on_show: bool)
source§fn shows_headers(&self) -> bool
fn shows_headers(&self) -> bool
source§fn set_show_headers(&self, show_headers: bool)
fn set_show_headers(&self, show_headers: bool)
source§fn shows_icons(&self) -> bool
fn shows_icons(&self) -> bool
source§fn set_show_icons(&self, show_icons: bool)
fn set_show_icons(&self, show_icons: bool)
source§fn connect_activate_proposal<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_activate_proposal<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
activate-proposal
signal is a
keybinding signal which gets emitted when the user initiates
a proposal activation. Read morefn emit_activate_proposal(&self)
source§fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_hide(&self)
source§fn connect_move_cursor<F: Fn(&Self, ScrollStep, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_move_cursor<F: Fn(&Self, ScrollStep, i32) + 'static>( &self, f: F ) -> SignalHandlerId
move-cursor
signal is a keybinding
signal which gets emitted when the user initiates a cursor
movement. Read morefn emit_move_cursor(&self, step: ScrollStep, num: i32)
source§fn connect_move_page<F: Fn(&Self, ScrollStep, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_move_page<F: Fn(&Self, ScrollStep, i32) + 'static>( &self, f: F ) -> SignalHandlerId
fn emit_move_page(&self, step: ScrollStep, num: i32)
source§fn connect_populate_context<F: Fn(&Self, &CompletionContext) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_populate_context<F: Fn(&Self, &CompletionContext) + 'static>( &self, f: F ) -> SignalHandlerId
fn emit_populate_context(&self, context: &CompletionContext)
source§fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_show(&self)
fn connect_accelerators_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_auto_complete_delay_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_proposal_page_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_provider_page_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_remember_info_visibility_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_select_on_show_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_show_headers_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_show_icons_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
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<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