From c23699a8148c51f8baa3cbc75485857b00ef4d59 Mon Sep 17 00:00:00 2001 From: bilelmoussaoui Date: Fri, 25 Oct 2024 06:51:06 +0000 Subject: [PATCH] deploy: 9285c1be66ca65e6c51568b35493c603f315daeb --- git/docs/gtk4/struct.Widget.html | 2 +- git/docs/gtk4/subclass/widget/index.html | 2 +- .../subclass/widget/struct.TemplateChild.html | 36 +- .../subclass/widget/struct.WidgetAction.html | 10 +- .../widget/struct.WidgetActionIter.html | 4 +- .../widget/trait.CompositeTemplate.html | 4 +- .../trait.CompositeTemplateCallbacks.html | 10 +- ...trait.CompositeTemplateCallbacksClass.html | 6 +- .../widget/trait.CompositeTemplateClass.html | 6 +- .../trait.CompositeTemplateDisposeExt.html | 4 +- ...rait.CompositeTemplateInitializingExt.html | 4 +- ...mpositeTemplateInstanceCallbacksClass.html | 6 +- .../subclass/widget/trait.WidgetClassExt.html | 46 +- .../subclass/widget/trait.WidgetImpl.html | 50 +- .../subclass/widget/trait.WidgetImplExt.html | 8 +- .../widget/type.TemplateCallback.html | 2 +- git/docs/index.html | 4 +- git/docs/search-index.js | 4 +- git/docs/src/gtk4/lib.rs.html | 2 +- git/docs/src/gtk4/subclass/actionable.rs.html | 2 +- git/docs/src/gtk4/subclass/box_.rs.html | 2 +- git/docs/src/gtk4/subclass/button.rs.html | 2 +- .../src/gtk4/subclass/cell_editable.rs.html | 2 +- .../src/gtk4/subclass/check_button.rs.html | 2 +- git/docs/src/gtk4/subclass/combo_box.rs.html | 2 +- .../src/gtk4/subclass/drawing_area.rs.html | 2 +- git/docs/src/gtk4/subclass/editable.rs.html | 2 +- git/docs/src/gtk4/subclass/entry.rs.html | 2 +- git/docs/src/gtk4/subclass/fixed.rs.html | 2 +- .../src/gtk4/subclass/flow_box_child.rs.html | 2 +- git/docs/src/gtk4/subclass/frame.rs.html | 2 +- git/docs/src/gtk4/subclass/gl_area.rs.html | 2 +- git/docs/src/gtk4/subclass/grid.rs.html | 2 +- .../src/gtk4/subclass/list_box_row.rs.html | 2 +- git/docs/src/gtk4/subclass/mod.rs.html | 10 +- git/docs/src/gtk4/subclass/popover.rs.html | 2 +- git/docs/src/gtk4/subclass/range.rs.html | 2 +- .../src/gtk4/subclass/scale_button.rs.html | 2 +- git/docs/src/gtk4/subclass/scrollable.rs.html | 2 +- git/docs/src/gtk4/subclass/text_view.rs.html | 2 +- git/docs/src/gtk4/subclass/tree_view.rs.html | 2 +- git/docs/src/gtk4/subclass/widget.rs.html | 1012 ++++++++--------- git/docs/src/gtk4/subclass/window.rs.html | 2 +- .../trait.impl/core/ops/drop/trait.Drop.js | 4 +- .../glib/param_spec/trait.HasParamSpec.js | 4 +- .../glib/property/trait.Property.js | 9 + .../glib/property/trait.PropertyGet.js | 9 + .../trait.impl/glib/value/trait.FromValue.js | 4 +- .../trait.impl/glib/value/trait.ToValue.js | 4 +- .../trait.impl/glib/value/trait.ValueType.js | 4 +- 50 files changed, 621 insertions(+), 693 deletions(-) create mode 100644 git/docs/trait.impl/glib/property/trait.Property.js create mode 100644 git/docs/trait.impl/glib/property/trait.PropertyGet.js diff --git a/git/docs/gtk4/struct.Widget.html b/git/docs/gtk4/struct.Widget.html index 46f17b046b3c..d20bc334316f 100644 --- a/git/docs/gtk4/struct.Widget.html +++ b/git/docs/gtk4/struct.Widget.html @@ -638,7 +638,7 @@
§dir
H: Hasher,

Hashes the memory address of this object.

1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: WidgetImpl> IsSubclassable<T> for Widget

Source§

fn class_init(class: &mut Class<Self>)

Override the virtual methods of this class for the given subclass and do other class + Self: Sized,
Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: WidgetImpl> IsSubclassable<T> for Widget

Source§

fn class_init(class: &mut Class<Self>)

Override the virtual methods of this class for the given subclass and do other class initialization. Read more
Source§

fn instance_init(instance: &mut InitializingObject<T>)

Instance specific initialization. Read more
Source§

impl Ord for Widget

Source§

fn cmp(&self, other: &Self) -> Ordering

Comparison for two GObjects.

Compares the memory addresses of the provided objects.

1.21.0 · Source§

fn max(self, other: Self) -> Self
where diff --git a/git/docs/gtk4/subclass/widget/index.html b/git/docs/gtk4/subclass/widget/index.html index bf54345dc3fb..616f6235a779 100644 --- a/git/docs/gtk4/subclass/widget/index.html +++ b/git/docs/gtk4/subclass/widget/index.html @@ -71,7 +71,7 @@ -
gtk4::subclass

Module widget

Source
Expand description

Traits intended for subclassing Widget.

+
gtk4::subclass

Module widget

Source
Expand description

Traits intended for subclassing Widget.

Structs§

Traits§

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/struct.WidgetAction.html b/git/docs/gtk4/subclass/widget/struct.WidgetAction.html index 9ea2ece03cd3..2b828f3de1ef 100644 --- a/git/docs/gtk4/subclass/widget/struct.WidgetAction.html +++ b/git/docs/gtk4/subclass/widget/struct.WidgetAction.html @@ -71,11 +71,11 @@ -
gtk4::subclass::widget

Struct WidgetAction

Source
pub struct WidgetAction(/* private fields */);

Implementations§

Source§

impl WidgetAction

Source

pub fn owner(&self) -> Type

The type where the action was defined

-
Source

pub fn name(&self) -> &str

The action name

-
Source

pub fn parameter_type(&self) -> Option<&VariantType>

The action parameter type

-
Source

pub fn property_name(&self) -> Option<&str>

The action property name

-

Trait Implementations§

Source§

impl Debug for WidgetAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +
gtk4::subclass::widget

Struct WidgetAction

Source
pub struct WidgetAction(/* private fields */);

Implementations§

Source§

impl WidgetAction

Source

pub fn owner(&self) -> Type

The type where the action was defined

+
Source

pub fn name(&self) -> &str

The action name

+
Source

pub fn parameter_type(&self) -> Option<&VariantType>

The action parameter type

+
Source

pub fn property_name(&self) -> Option<&str>

The action property name

+

Trait Implementations§

Source§

impl Debug for WidgetAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git/docs/gtk4/subclass/widget/struct.WidgetActionIter.html b/git/docs/gtk4/subclass/widget/struct.WidgetActionIter.html index 2caf84f51456..795de89b4529 100644 --- a/git/docs/gtk4/subclass/widget/struct.WidgetActionIter.html +++ b/git/docs/gtk4/subclass/widget/struct.WidgetActionIter.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Struct WidgetActionIter

Source
pub struct WidgetActionIter(/* private fields */);

Trait Implementations§

Source§

impl Iterator for WidgetActionIter

Source§

type Item = WidgetAction

The type of the elements being iterated over.
Source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
Source§

fn next_chunk<const N: usize>( +
gtk4::subclass::widget

Struct WidgetActionIter

Source
pub struct WidgetActionIter(/* private fields */);

Trait Implementations§

Source§

impl Iterator for WidgetActionIter

Source§

type Item = WidgetAction

The type of the elements being iterated over.
Source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
Source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · Source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · Source§

fn count(self) -> usize
where @@ -246,7 +246,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
Source§

impl FusedIterator for WidgetActionIter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +function. Read more

Source§

impl FusedIterator for WidgetActionIter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplate.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplate.html index 7929e801e901..e7388050c41a 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplate.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplate.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait CompositeTemplate

Source
pub trait CompositeTemplate: WidgetImpl {
+
gtk4::subclass::widget

Trait CompositeTemplate

Source
pub trait CompositeTemplate: WidgetImpl {
     // Required methods
     fn bind_template(klass: &mut Self::Class);
     fn check_template_children(widget: &<Self as ObjectSubclass>::Type);
@@ -79,4 +79,4 @@
 class_init. This
 trait is implemented automatically by the
 CompositeTemplate macro.

-

Required Methods§

Source

fn bind_template(klass: &mut Self::Class)

Source

fn check_template_children(widget: &<Self as ObjectSubclass>::Type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

Source

fn bind_template(klass: &mut Self::Class)

Source

fn check_template_children(widget: &<Self as ObjectSubclass>::Type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacks.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacks.html index 7c2f4f305cc8..2f2a98679beb 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacks.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacks.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait CompositeTemplateCallbacks

Source
pub trait CompositeTemplateCallbacks {
+
gtk4::subclass::widget

Trait CompositeTemplateCallbacks

Source
pub trait CompositeTemplateCallbacks {
     const CALLBACKS: &'static [TemplateCallback];
 
     // Provided methods
@@ -86,14 +86,14 @@
 class_init. This
 trait is implemented automatically by the
 template_callbacks macro.

-

Required Associated Constants§

Provided Methods§

Source

fn bind_template_callbacks<T: WidgetClassExt>(klass: &mut T)

Binds the template callbacks from this type into the default template +

Required Associated Constants§

Provided Methods§

Source

fn bind_template_callbacks<T: WidgetClassExt>(klass: &mut T)

Binds the template callbacks from this type into the default template scope for klass.

-
Source

fn bind_template_callbacks_prefixed<T: WidgetClassExt>( +

Source

fn bind_template_callbacks_prefixed<T: WidgetClassExt>( klass: &mut T, prefix: &str, )

Binds the template callbacks from this type into the default template scope for klass, prepending prefix to each callback name.

-
Source

fn add_callbacks_to_scope(scope: &BuilderRustScope)

Binds the template callbacks from this type into scope.

-
Source

fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)

Binds the template callbacks from this type into scope, prepending +

Source

fn add_callbacks_to_scope(scope: &BuilderRustScope)

Binds the template callbacks from this type into scope.

+
Source

fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)

Binds the template callbacks from this type into scope, prepending prefix to each callback name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacksClass.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacksClass.html index e087adffa677..821c9cab87f0 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacksClass.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateCallbacksClass.html @@ -71,14 +71,14 @@ -
gtk4::subclass::widget

Trait CompositeTemplateCallbacksClass

Source
pub trait CompositeTemplateCallbacksClass {
+
gtk4::subclass::widget

Trait CompositeTemplateCallbacksClass

Source
pub trait CompositeTemplateCallbacksClass {
     // Required method
     fn bind_template_callbacks(&mut self);
 }
Expand description

An extension trait for ClassStruct types to allow binding private template callbacks directly on self. This is a convenience wrapper around the CompositeTemplateCallbacks trait.

-

Required Methods§

Source

fn bind_template_callbacks(&mut self)

Binds the template callbacks from the subclass type into the default +

Required Methods§

Source

fn bind_template_callbacks(&mut self)

Binds the template callbacks from the subclass type into the default template scope for self.

-

Implementors§

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateClass.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateClass.html index 241bb7330fb9..cf5b306ab90a 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateClass.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateClass.html @@ -71,14 +71,14 @@ -
gtk4::subclass::widget

Trait CompositeTemplateClass

Source
pub trait CompositeTemplateClass {
+
gtk4::subclass::widget

Trait CompositeTemplateClass

Source
pub trait CompositeTemplateClass {
     // Required method
     fn bind_template(&mut self);
 }
Expand description

An extension trait for ClassStruct types to allow binding a composite template directly on self. This is a convenience wrapper around the CompositeTemplate trait.

-

Required Methods§

Source

fn bind_template(&mut self)

Binds the template callbacks from this type into the default template +

Required Methods§

Source

fn bind_template(&mut self)

Binds the template callbacks from this type into the default template scope for self.

-

Implementors§

Source§

impl<T, U> CompositeTemplateClass for T
where +

Implementors§

Source§

impl<T, U> CompositeTemplateClass for T
where T: ClassStruct<Type = U>, U: ObjectSubclass<Class = T> + CompositeTemplate,

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateDisposeExt.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateDisposeExt.html index 31f91d7f5f9d..7be6705358c6 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateDisposeExt.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateDisposeExt.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait CompositeTemplateDisposeExt

Source
pub trait CompositeTemplateDisposeExt {
+
gtk4::subclass::widget

Trait CompositeTemplateDisposeExt

Source
pub trait CompositeTemplateDisposeExt {
     // Required method
     fn dispose_template(&self);
-}

Required Methods§

Source

fn dispose_template(&self)

Available on crate feature v4_8 only.

Implementors§

\ No newline at end of file +}

Required Methods§

Source

fn dispose_template(&self)

Available on crate feature v4_8 only.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInitializingExt.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInitializingExt.html index 1c2152c9b9aa..62af1e3f18d1 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInitializingExt.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInitializingExt.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait CompositeTemplateInitializingExt

Source
pub trait CompositeTemplateInitializingExt {
+
gtk4::subclass::widget

Trait CompositeTemplateInitializingExt

Source
pub trait CompositeTemplateInitializingExt {
     // Required method
     fn init_template(&self);
-}

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: WidgetImpl + CompositeTemplate> CompositeTemplateInitializingExt for InitializingObject<T>

Implementors§

\ No newline at end of file +}

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: WidgetImpl + CompositeTemplate> CompositeTemplateInitializingExt for InitializingObject<T>

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInstanceCallbacksClass.html b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInstanceCallbacksClass.html index 4290bace03d0..d2101277ac31 100644 --- a/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInstanceCallbacksClass.html +++ b/git/docs/gtk4/subclass/widget/trait.CompositeTemplateInstanceCallbacksClass.html @@ -71,16 +71,16 @@ -
gtk4::subclass::widget

Trait CompositeTemplateInstanceCallbacksClass

Source
pub trait CompositeTemplateInstanceCallbacksClass {
+
gtk4::subclass::widget

Trait CompositeTemplateInstanceCallbacksClass

Source
pub trait CompositeTemplateInstanceCallbacksClass {
     // Required method
     fn bind_template_instance_callbacks(&mut self);
 }
Expand description

An extension trait for ClassStruct types to allow binding the instance template callbacks directly on self. This is a convenience wrapper around the CompositeTemplateCallbacks trait.

-

Required Methods§

Source

fn bind_template_instance_callbacks(&mut self)

Binds the template callbacks from the instance type into the default +

Required Methods§

Source

fn bind_template_instance_callbacks(&mut self)

Binds the template callbacks from the instance type into the default template scope for self.

-

Implementors§

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.WidgetClassExt.html b/git/docs/gtk4/subclass/widget/trait.WidgetClassExt.html index 1b18907036e1..ad144c004d41 100644 --- a/git/docs/gtk4/subclass/widget/trait.WidgetClassExt.html +++ b/git/docs/gtk4/subclass/widget/trait.WidgetClassExt.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait WidgetClassExt

Source
pub unsafe trait WidgetClassExt: ClassStruct {
+
gtk4::subclass::widget

Trait WidgetClassExt

Source
pub unsafe trait WidgetClassExt: ClassStruct {
 
Show 24 methods // Provided methods fn set_template_bytes(&mut self, template: &Bytes) { ... } fn set_template(&mut self, template: &[u8]) { ... } @@ -135,7 +135,7 @@ ) where T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType> { ... } fn rust_template_scope(&mut self) -> BuilderRustScope { ... } -
}

Provided Methods§

Source

fn set_template_bytes(&mut self, template: &Bytes)

Source

fn set_template(&mut self, template: &[u8])

This should be called at class initialization time to specify +

}

Provided Methods§

Source

fn set_template_bytes(&mut self, template: &Bytes)

Source

fn set_template(&mut self, template: &[u8])

This should be called at class initialization time to specify the Builder XML to be used to extend a widget.

For convenience, set_template_from_resource() is also provided.

@@ -143,21 +143,21 @@ Gtk::Widget::init_template() in the widget’s instance initializer.

§template_bytes

A GBytes holding the Builder XML

-
Source

fn set_template_static(&mut self, template: &'static [u8])

Source

fn set_template_from_resource(&mut self, resource_name: &str)

A convenience function that calls set_template() +

Source

fn set_template_static(&mut self, template: &'static [u8])

Source

fn set_template_from_resource(&mut self, resource_name: &str)

A convenience function that calls set_template() with the contents of a GResource.

Note that any class that installs templates must call Gtk::Widget::init_template() in the widget’s instance initializer.

§resource_name

The name of the resource to load the template from

-
Source

fn install_action_async<Fut, F>( +

Source

fn install_action_async<Fut, F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, activate: F, )
where F: Fn(<<Self as ClassStruct>::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone, - Fut: Future<Output = ()>,

Source

fn install_action<F>( + Fut: Future<Output = ()>,

Source

fn install_action<F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, @@ -174,7 +174,7 @@

§the parameter type

§activate

callback to use when the action is activated

-
Source

fn query_action(&self) -> WidgetActionIter

Returns details about the @index_-th action that has been +

Source

fn query_action(&self) -> WidgetActionIter

Returns details about the @index_-th action that has been installed for @self during class initialization.

See install_action() for details on how to install actions.

@@ -194,7 +194,7 @@
§<

return location for the parameter type

§property_name

return location for the property name

-
Source

fn set_template_scope<S: IsA<BuilderScope>>(&mut self, scope: &S)

For use in language bindings, this will override the default +

Source

fn set_template_scope<S: IsA<BuilderScope>>(&mut self, scope: &S)

For use in language bindings, this will override the default BuilderScope to be used when parsing GtkBuilder XML from this class’s template data.

Note that this must be called from a composite widget classes class @@ -202,7 +202,7 @@

§p
§scope

The BuilderScope to use when loading the class template

-
Source

fn add_binding<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type) -> Propagation + 'static>( +

Source

fn add_binding<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type) -> Propagation + 'static>( &mut self, keyval: Key, mods: ModifierType, @@ -225,7 +225,7 @@

§callback§format_string

GVariant format string for arguments or None for no arguments

-
Source

fn add_binding_action( +

Source

fn add_binding_action( &mut self, keyval: Key, mods: ModifierType, @@ -246,7 +246,7 @@

§a
§format_string

GVariant format string for arguments or None for no arguments

-
Source

fn add_binding_signal( +

Source

fn add_binding_signal( &mut self, keyval: Key, mods: ModifierType, @@ -267,7 +267,7 @@

§signal§format_string

GVariant format string for arguments or None for no arguments

-
Source

fn add_shortcut(&mut self, shortcut: &Shortcut)

Installs a shortcut in @self.

+
Source

fn add_shortcut(&mut self, shortcut: &Shortcut)

Installs a shortcut in @self.

Every instance created for @self or its subclasses will inherit this shortcut and trigger it.

Shortcuts added this way will be triggered in the PropagationPhase::Bubble @@ -276,7 +276,7 @@

§
§shortcut

the Shortcut to add

-
Source

fn install_property_action(&mut self, action_name: &str, property_name: &str)

Installs an action called @action_name on @self and +

Source

fn install_property_action(&mut self, action_name: &str, property_name: &str)

Installs an action called @action_name on @self and binds its state to the value of the @property_name property.

This function will perform a few sanity checks on the property selected via @property_name. Namely, the property must exist, must be readable, @@ -293,27 +293,27 @@

§a
§property_name

name of the property in instances of @self or any parent class.

-
Source

fn activate_signal(&self) -> Option<SignalId>

Retrieves the signal id for the activation signal.

+
Source

fn activate_signal(&self) -> Option<SignalId>

Retrieves the signal id for the activation signal.

the activation signal is set using set_activate_signal().

§Returns

a signal id, or 0 if the widget class does not specify an activation signal

-
Source

fn set_activate_signal(&mut self, signal_id: SignalId)

Sets the GtkWidgetClass.activate_signal field with the +

Source

fn set_activate_signal(&mut self, signal_id: SignalId)

Sets the GtkWidgetClass.activate_signal field with the given @signal_id.

The signal will be emitted when calling WidgetExt::activate().

The @signal_id must have been registered with g_signal_new() or g_signal_newv() before calling this function.

§signal_id

the id for the activate signal

-
Source

fn set_activate_signal_from_name(&mut self, signal_name: &str)

Sets the GtkWidgetClass.activate_signal field with the signal id for +

Source

fn set_activate_signal_from_name(&mut self, signal_name: &str)

Sets the GtkWidgetClass.activate_signal field with the signal id for the given @signal_name.

The signal will be emitted when calling WidgetExt::activate().

The @signal_name of @widget_type must have been registered with g_signal_new() or g_signal_newv() before calling this function.

§signal_name

the name of the activate signal of @widget_type

-
Source

fn set_layout_manager_type<T: IsA<LayoutManager>>(&mut self)

Sets the type to be used for creating layout managers for +

Source

fn set_layout_manager_type<T: IsA<LayoutManager>>(&mut self)

Sets the type to be used for creating layout managers for widgets of @self.

The given @type_ must be a subtype of LayoutManager.

This function should only be called from class init functions @@ -321,37 +321,37 @@

§signa
§type_

The object type that implements the LayoutManager for @self

-
Source

fn layout_manager_type(&self) -> Type

Retrieves the type of the LayoutManager +

Source

fn layout_manager_type(&self) -> Type

Retrieves the type of the LayoutManager used by widgets of class @self.

See also: set_layout_manager_type().

§Returns

type of a LayoutManager subclass, or G_TYPE_INVALID

-
Source

fn set_css_name(&mut self, name: &str)

Sets the name to be used for CSS matching of widgets.

+
Source

fn set_css_name(&mut self, name: &str)

Sets the name to be used for CSS matching of widgets.

If this function is not called for a given class, the name set on the parent class is used. By default, Widget uses the name “widget”.

§name

name to use

-
Source

fn css_name(&self) -> GString

Gets the name used by this class for matching in CSS code.

+
Source

fn css_name(&self) -> GString

Gets the name used by this class for matching in CSS code.

See set_css_name() for details.

§Returns

the CSS name of the given class

-
Source

fn set_accessible_role(&mut self, role: AccessibleRole)

Sets the accessible role used by the given Widget class.

+
Source

fn set_accessible_role(&mut self, role: AccessibleRole)

Sets the accessible role used by the given Widget class.

Different accessible roles have different states, and are rendered differently by assistive technologies.

§accessible_role

the AccessibleRole used by the @self

-
Source

fn accessible_role(&self) -> AccessibleRole

Retrieves the accessible role used by the given Widget class.

+
Source

fn accessible_role(&self) -> AccessibleRole

Retrieves the accessible role used by the given Widget class.

Different accessible roles have different states, and are rendered differently by assistive technologies.

See also: AccessibleExt::accessible_role().

§Returns

the accessible role for the widget class

-
Source

unsafe fn bind_template_child_with_offset<T>( +
Source

unsafe fn bind_template_child_with_offset<T>( &mut self, name: &str, internal: bool, offset: FieldOffset<Self::Type, TemplateChild<T>>, )

Source

fn rust_template_scope(&mut self) -> BuilderRustScope

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.WidgetImpl.html b/git/docs/gtk4/subclass/widget/trait.WidgetImpl.html index 8e76ae401c2c..35d18d9dfa75 100644 --- a/git/docs/gtk4/subclass/widget/trait.WidgetImpl.html +++ b/git/docs/gtk4/subclass/widget/trait.WidgetImpl.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait WidgetImpl

Source
pub trait WidgetImpl: ObjectImpl + ObjectSubclass<Type: IsA<Widget> + IsA<Accessible> + IsA<Buildable> + IsA<ConstraintTarget>> {
+
gtk4::subclass::widget

Trait WidgetImpl

Source
pub trait WidgetImpl: ObjectImpl + ObjectSubclass<Type: IsA<Widget> + IsA<Accessible> + IsA<Buildable> + IsA<ConstraintTarget>> {
 
Show 24 methods // Provided methods fn compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool) { ... } fn contains(&self, x: f64, y: f64) -> bool { ... } @@ -107,9 +107,9 @@ fn unmap(&self) { ... } fn unrealize(&self) { ... } fn unroot(&self) { ... } -
}

Provided Methods§

Source

fn compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool)

Computes whether a container should give this +

}

Provided Methods§

Source

fn compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool)

Computes whether a container should give this widget extra space when possible.

-
Source

fn contains(&self, x: f64, y: f64) -> bool

Tests if the point at (@x, @y) is contained in @self.

+
Source

fn contains(&self, x: f64, y: f64) -> bool

Tests if the point at (@x, @y) is contained in @self.

The coordinates for (@x, @y) must be in widget coordinates, so (0, 0) is assumed to be the top left of @self’s content area.

§x
@@ -118,10 +118,10 @@
§y

Y coordinate to test, relative to @self’s origin

§Returns

true if @self contains (@x, @y).

-
Source

fn direction_changed(&self, previous_direction: TextDirection)

Signal emitted when the text direction of a +

Source

fn direction_changed(&self, previous_direction: TextDirection)

Signal emitted when the text direction of a widget changes.

-
Source

fn focus(&self, direction_type: DirectionType) -> bool

Vfunc for gtk_widget_child_focus()

-
Source

fn request_mode(&self) -> SizeRequestMode

Gets whether the widget prefers a height-for-width layout +

Source

fn focus(&self, direction_type: DirectionType) -> bool

Vfunc for gtk_widget_child_focus()

+
Source

fn request_mode(&self) -> SizeRequestMode

Gets whether the widget prefers a height-for-width layout or a width-for-height layout.

Single-child widgets generally propagate the preference of their child, more complex widgets need to request something @@ -129,7 +129,7 @@

§Returns
allocation capabilities.

§Returns

The SizeRequestMode preferred by @self.

-
Source

fn grab_focus(&self) -> bool

Causes @self to have the keyboard focus for the Window it’s inside.

+
Source

fn grab_focus(&self) -> bool

Causes @self to have the keyboard focus for the Window it’s inside.

If @self is not focusable, or its WidgetImpl::grab_focus() implementation cannot transfer the focus to a descendant of @self that is focusable, it will not take focus and false will be returned.

@@ -137,11 +137,11 @@
§Returns
is allowed, should not have an effect, and return true.

§Returns

true if focus is now inside @self.

-
Source

fn hide(&self)

👎Deprecated: Since 4.10

Reverses the effects of gtk_widget_show().

+
Source

fn hide(&self)

👎Deprecated: Since 4.10

Reverses the effects of gtk_widget_show().

This is causing the widget to be hidden (invisible to the user).

§Deprecated since 4.10

Use WidgetExt::set_visible() instead

-
Source

fn keynav_failed(&self, direction_type: DirectionType) -> bool

Emits the ::keynav-failed signal on the widget.

+
Source

fn keynav_failed(&self, direction_type: DirectionType) -> bool

Emits the ::keynav-failed signal on the widget.

This function should be called whenever keyboard navigation within a single widget hits a boundary.

The return value of this function should be interpreted @@ -169,9 +169,9 @@

§Returns

true if stopping keyboard navigation is fine, false if the emitting widget should try to handle the keyboard navigation attempt in its parent container(s).

-
Source

fn map(&self)

Causes a widget to be mapped if it isn’t already.

+
Source

fn map(&self)

Causes a widget to be mapped if it isn’t already.

This function is only for use in widget implementations.

-
Source

fn measure( +

Source

fn measure( &self, orientation: Orientation, for_size: i32, @@ -199,14 +199,14 @@

§<
§natural_baseline

location to store the baseline position for the natural size, or -1 to report no baseline

-
Source

fn mnemonic_activate(&self, group_cycling: bool) -> bool

Emits the ::mnemonic-activate signal.

+
Source

fn mnemonic_activate(&self, group_cycling: bool) -> bool

Emits the ::mnemonic-activate signal.

See mnemonic-activate.

§group_cycling

true if there are other widgets with the same mnemonic

§Returns

true if the signal has been handled

-
Source

fn move_focus(&self, direction_type: DirectionType)

Signal emitted when a change of focus is requested

-
Source

fn query_tooltip( +

Source

fn move_focus(&self, direction_type: DirectionType)

Signal emitted when a change of focus is requested

+
Source

fn query_tooltip( &self, x: i32, y: i32, @@ -215,7 +215,7 @@

§Returns
) -> bool

Signal emitted when “has-tooltip” is true and the hover timeout has expired with the cursor hovering “above” widget; or emitted when widget got focus in keyboard mode.

-
Source

fn realize(&self)

Creates the GDK resources associated with a widget.

+
Source

fn realize(&self)

Creates the GDK resources associated with a widget.

Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically.

@@ -228,16 +228,16 @@
§Returns
need it, a better approach is to connect to a signal that will be called after the widget is realized automatically, such as realize.

-
Source

fn root(&self)

Called when the widget gets added to a Root widget. Must +

Source

fn root(&self)

Called when the widget gets added to a Root widget. Must chain up

-
Source

fn set_focus_child(&self, child: Option<&Widget>)

Set @child as the current focus child of @self.

+
Source

fn set_focus_child(&self, child: Option<&Widget>)

Set @child as the current focus child of @self.

This function is only suitable for widget implementations. If you want a certain widget to get the input focus, call WidgetExt::grab_focus() on it.

§child

a direct child widget of @self or None to unset the focus child of @self

-
Source

fn show(&self)

👎Deprecated: Since 4.10

Flags a widget to be displayed.

+
Source

fn show(&self)

👎Deprecated: Since 4.10

Flags a widget to be displayed.

Any widget that isn’t shown will not appear on the screen.

Remember that you have to show the containers containing a widget, in addition to the widget itself, before it will appear onscreen.

@@ -246,17 +246,17 @@
§child
toplevel container is realized and mapped.

§Deprecated since 4.10

Use WidgetExt::set_visible() instead

-
Source

fn size_allocate(&self, width: i32, height: i32, baseline: i32)

Called to set the allocation, if the widget does +

Source

fn size_allocate(&self, width: i32, height: i32, baseline: i32)

Called to set the allocation, if the widget does not have a layout manager.

-
Source

fn snapshot(&self, snapshot: &Snapshot)

Vfunc called when a new snapshot of the widget has to be taken.

-
Source

fn state_flags_changed(&self, state_flags: &StateFlags)

Signal emitted when the widget state changes, +

Source

fn snapshot(&self, snapshot: &Snapshot)

Vfunc called when a new snapshot of the widget has to be taken.

+
Source

fn state_flags_changed(&self, state_flags: &StateFlags)

Signal emitted when the widget state changes, see gtk_widget_get_state_flags().

-
Source

fn system_setting_changed(&self, settings: &SystemSetting)

Emitted when a system setting was changed. Must chain up.

-
Source

fn unmap(&self)

Causes a widget to be unmapped if it’s currently mapped.

+
Source

fn system_setting_changed(&self, settings: &SystemSetting)

Emitted when a system setting was changed. Must chain up.

+
Source

fn unmap(&self)

Causes a widget to be unmapped if it’s currently mapped.

This function is only for use in widget implementations.

-
Source

fn unrealize(&self)

Causes a widget to be unrealized (frees all GDK resources +

Source

fn unrealize(&self)

Causes a widget to be unrealized (frees all GDK resources associated with the widget).

This function is only useful in widget implementations.

-
Source

fn unroot(&self)

Called when the widget is about to be removed from its +

Source

fn unroot(&self)

Called when the widget is about to be removed from its Root widget. Must chain up

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/trait.WidgetImplExt.html b/git/docs/gtk4/subclass/widget/trait.WidgetImplExt.html index 290903b530ce..07f6810b6f3c 100644 --- a/git/docs/gtk4/subclass/widget/trait.WidgetImplExt.html +++ b/git/docs/gtk4/subclass/widget/trait.WidgetImplExt.html @@ -71,7 +71,7 @@ -
gtk4::subclass::widget

Trait WidgetImplExt

Source
pub trait WidgetImplExt: WidgetImpl {
+
gtk4::subclass::widget

Trait WidgetImplExt

Source
pub trait WidgetImplExt: WidgetImpl {
 
Show 24 methods // Provided methods fn parent_compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool) { ... } fn parent_contains(&self, x: f64, y: f64) -> bool { ... } @@ -107,14 +107,14 @@ fn parent_unmap(&self) { ... } fn parent_unrealize(&self) { ... } fn parent_unroot(&self) { ... } -
}

Provided Methods§

Source

fn parent_compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool)

Source

fn parent_contains(&self, x: f64, y: f64) -> bool

Source

fn parent_direction_changed(&self, previous_direction: TextDirection)

Source

fn parent_focus(&self, direction_type: DirectionType) -> bool

Source

fn parent_request_mode(&self) -> SizeRequestMode

Source

fn parent_grab_focus(&self) -> bool

Source

fn parent_hide(&self)

👎Deprecated: Since 4.10
Source

fn parent_keynav_failed(&self, direction_type: DirectionType) -> bool

Source

fn parent_map(&self)

Source

fn parent_measure( +}

Provided Methods§

Source

fn parent_compute_expand(&self, hexpand: &mut bool, vexpand: &mut bool)

Source

fn parent_contains(&self, x: f64, y: f64) -> bool

Source

fn parent_direction_changed(&self, previous_direction: TextDirection)

Source

fn parent_focus(&self, direction_type: DirectionType) -> bool

Source

fn parent_request_mode(&self) -> SizeRequestMode

Source

fn parent_grab_focus(&self) -> bool

Source

fn parent_hide(&self)

👎Deprecated: Since 4.10
Source

fn parent_keynav_failed(&self, direction_type: DirectionType) -> bool

Source

fn parent_map(&self)

Source

fn parent_measure( &self, orientation: Orientation, for_size: i32, -) -> (i32, i32, i32, i32)

Source

fn parent_mnemonic_activate(&self, group_cycling: bool) -> bool

Source

fn parent_move_focus(&self, direction_type: DirectionType)

Source

fn parent_query_tooltip( +) -> (i32, i32, i32, i32)

Source

fn parent_mnemonic_activate(&self, group_cycling: bool) -> bool

Source

fn parent_move_focus(&self, direction_type: DirectionType)

Source

fn parent_query_tooltip( &self, x: i32, y: i32, keyboard_tooltip: bool, tooltip: &Tooltip, -) -> bool

Source

fn parent_realize(&self)

Source

fn parent_root(&self)

Source

fn parent_set_focus_child(&self, child: Option<&Widget>)

Source

fn parent_show(&self)

👎Deprecated: Since 4.10
Source

fn parent_size_allocate(&self, width: i32, height: i32, baseline: i32)

Source

fn parent_snapshot(&self, snapshot: &Snapshot)

Source

fn parent_state_flags_changed(&self, state_flags: &StateFlags)

Source

fn parent_system_setting_changed(&self, settings: &SystemSetting)

Source

fn parent_unmap(&self)

Source

fn parent_unrealize(&self)

Source

fn parent_unroot(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file +) -> bool
Source

fn parent_realize(&self)

Source

fn parent_root(&self)

Source

fn parent_set_focus_child(&self, child: Option<&Widget>)

Source

fn parent_show(&self)

👎Deprecated: Since 4.10
Source

fn parent_size_allocate(&self, width: i32, height: i32, baseline: i32)

Source

fn parent_snapshot(&self, snapshot: &Snapshot)

Source

fn parent_state_flags_changed(&self, state_flags: &StateFlags)

Source

fn parent_system_setting_changed(&self, settings: &SystemSetting)

Source

fn parent_unmap(&self)

Source

fn parent_unrealize(&self)

Source

fn parent_unroot(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gtk4/subclass/widget/type.TemplateCallback.html b/git/docs/gtk4/subclass/widget/type.TemplateCallback.html index ce042d2ab0a1..2a27c4024027 100644 --- a/git/docs/gtk4/subclass/widget/type.TemplateCallback.html +++ b/git/docs/gtk4/subclass/widget/type.TemplateCallback.html @@ -71,4 +71,4 @@ -
gtk4::subclass::widget

Type Alias TemplateCallback

Source
pub type TemplateCallback = (&'static str, fn(_: &[Value]) -> Option<Value>);
\ No newline at end of file +
gtk4::subclass::widget

Type Alias TemplateCallback

Source
pub type TemplateCallback = (&'static str, fn(_: &[Value]) -> Option<Value>);
\ No newline at end of file diff --git a/git/docs/index.html b/git/docs/index.html index cbeca29a0f79..51fea87e2872 100644 --- a/git/docs/index.html +++ b/git/docs/index.html @@ -1,4 +1,4 @@ -Index of crates +Index of crates