ProviderImage

Struct ProviderImage 

Source
pub struct ProviderImage {
    pub size: Cell<u32>,
    pub was_downloaded: Cell<bool>,
    pub provider: RefCell<Option<Provider>>,
    pub stack: TemplateChild<Stack>,
    pub image: TemplateChild<Image>,
    pub signal_id: RefCell<Option<SignalHandlerId>>,
    pub join_handle: RefCell<Option<JoinHandle<()>>>,
}

Fields§

§size: Cell<u32>§was_downloaded: Cell<bool>§provider: RefCell<Option<Provider>>§stack: TemplateChild<Stack>§image: TemplateChild<Image>§signal_id: RefCell<Option<SignalHandlerId>>§join_handle: RefCell<Option<JoinHandle<()>>>

Implementations§

Source§

impl ProviderImage

Source

fn register_type()

Registers the type only once.

Source§

impl ProviderImage

Source

pub fn downgrade(&self) -> <Self as Downgrade>::Weak

Source§

impl ProviderImage

Source

fn set_provider(&self, provider: Option<Provider>)

Trait Implementations§

Source§

impl CompositeTemplate for ProviderImage

Source§

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

Source§

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

Source§

impl DerivedObjectProperties for ProviderImage

Source§

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.
Source§

fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.
Source§

fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.
Source§

impl ObjectImpl for ProviderImage

Source§

fn constructed(&self)

Constructed. Read more
Source§

fn properties() -> &'static [ParamSpec]

Properties installed for this type.
Source§

fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)

Property setter. Read more
Source§

fn property(&self, id: usize, pspec: &ParamSpec) -> Value

Property getter. Read more
§

fn signals() -> &'static [Signal]

Signals installed for this type.
§

fn dispose(&self)

Disposes of the object. Read more
§

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with self.notify("property").
§

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Source§

impl ObjectSubclass for ProviderImage

Source§

const NAME: &'static str = "ProviderImage"

GObject type name. Read more
Source§

type Interfaces = ()

List of interfaces implemented by this type.
Source§

type Class = ClassStruct<ProviderImage>

The C class struct. Read more
Source§

type Instance = InstanceStruct<ProviderImage>

The C instance struct. Read more
Source§

type Type = ProviderImage

Wrapper around this subclass defined with wrapper!
Source§

type ParentType = Box

Parent Rust type to inherit from.
Source§

fn new() -> Self

Constructor. Read more
Source§

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

Class initialization. Read more
Source§

fn instance_init(obj: &InitializingObject<Self>)

Performs additional instance initialization. Read more
§

const ABSTRACT: bool = false

If this subclass is an abstract class or not. Read more
§

const ALLOW_NAME_CONFLICT: bool = false

Allow name conflicts for this class. Read more
§

fn type_init(_type_: &mut InitializingType<Self>)

Additional type initialization. Read more
§

fn with_class(_klass: &Self::Class) -> Self

Constructor. Read more
Source§

impl ObjectSubclassType for ProviderImage

Source§

fn type_data() -> NonNull<TypeData>

Storage for the type-specific data used during registration.
Source§

fn type_() -> Type

Returns the glib::Type ID of the subclass. Read more
Source§

impl WidgetImpl for ProviderImage

§

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

§

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

§

fn direction_changed(&self, previous_direction: TextDirection)

§

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

§

fn request_mode(&self) -> SizeRequestMode

§

fn grab_focus(&self) -> bool

§

fn hide(&self)

👎Deprecated: Since 4.10
§

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

§

fn map(&self)

§

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

§

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

§

fn move_focus(&self, direction_type: DirectionType)

§

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

§

fn realize(&self)

§

fn root(&self)

§

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

§

fn show(&self)

👎Deprecated: Since 4.10
§

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

§

fn snapshot(&self, snapshot: &Snapshot)

§

fn state_flags_changed(&self, state_flags: &StateFlags)

§

fn system_setting_changed(&self, settings: &SystemSetting)

§

fn unmap(&self)

§

fn unrealize(&self)

§

fn unroot(&self)

Source§

impl BoxImpl for ProviderImage

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> AggregateExpressionMethods for T

§

fn aggregate_distinct(self) -> Self::Output
where Self: DistinctDsl,

DISTINCT modifier for aggregate functions Read more
§

fn aggregate_all(self) -> Self::Output
where Self: AllDsl,

ALL modifier for aggregate functions Read more
§

fn aggregate_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add an aggregate function filter Read more
§

fn aggregate_order<O>(self, o: O) -> Self::Output
where Self: OrderAggregateDsl<O>,

Add an aggregate function order Read more
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
§

impl<T> CompositeTemplateDisposeExt for T
where T: WidgetImpl + CompositeTemplate,

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> IntoSql for T

§

fn into_sql<T>(self) -> Self::Expression
where Self: Sized + AsExpression<T>, T: SqlType + TypedExpressionType,

Convert self to an expression for Diesel’s query builder. Read more
§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
§

impl<T> ObjectImplExt for T
where T: ObjectImpl,

§

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().
§

fn parent_notify(&self, pspec: &ParamSpec)

Chain up to the parent class’ implementation of glib::Object::notify().
§

fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().
§

fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>

Chain up to parent class signal handler.
§

impl<T> ObjectSubclassExt for T
where T: ObjectSubclass,

§

fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>

Returns the corresponding object instance. Read more
§

fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T

Returns the implementation from an instance. Read more
§

fn ref_counted(&self) -> ObjectImplRef<T>

Returns a new reference-counted wrapper around self.
§

fn instance_data<U>(&self, type_: Type) -> Option<&U>
where U: Any + Send + Sync + 'static,

Returns a pointer to the instance implementation specific data. Read more
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WidgetImplExt for T
where T: WidgetImpl,

§

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

§

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

§

fn parent_direction_changed(&self, previous_direction: TextDirection)

§

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

§

fn parent_request_mode(&self) -> SizeRequestMode

§

fn parent_grab_focus(&self) -> bool

§

fn parent_hide(&self)

👎Deprecated: Since 4.10
§

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

§

fn parent_map(&self)

§

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

§

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

§

fn parent_move_focus(&self, direction_type: DirectionType)

§

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

§

fn parent_realize(&self)

§

fn parent_root(&self)

§

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

§

fn parent_show(&self)

👎Deprecated: Since 4.10
§

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

§

fn parent_snapshot(&self, snapshot: &Snapshot)

§

fn parent_state_flags_changed(&self, state_flags: &StateFlags)

§

fn parent_system_setting_changed(&self, settings: &SystemSetting)

§

fn parent_unmap(&self)

§

fn parent_unrealize(&self)

§

fn parent_unroot(&self)

§

impl<T> WindowExpressionMethods for T

§

fn over(self) -> Self::Output
where Self: OverDsl,

Turn a function call into a window function call Read more
§

fn window_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add a filter to the current window function Read more
§

fn partition_by<E>(self, expr: E) -> Self::Output
where Self: PartitionByDsl<E>,

Add a partition clause to the current window function Read more
§

fn window_order<E>(self, expr: E) -> Self::Output
where Self: OrderWindowDsl<E>,

Add a order clause to the current window function Read more
§

fn frame_by<E>(self, expr: E) -> Self::Output
where Self: FrameDsl<E>,

Add a frame clause to the current window function Read more
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more