pub struct QRCodePaintable {
    pub qrcode: RefCell<Option<QRCodeData>>,
}

Fields§

§qrcode: RefCell<Option<QRCodeData>>

Implementations§

source§

impl QRCodePaintable

source

fn register_type()

Registers the type only once.

source§

impl QRCodePaintable

source

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

Trait Implementations§

source§

impl Default for QRCodePaintable

source§

fn default() -> QRCodePaintable

Returns the “default value” for a type. Read more
source§

impl ObjectImpl for QRCodePaintable

§

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

Properties installed for this type.
§

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

Signals installed for this type.
§

fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)

Property setter. Read more
§

fn property(&self, _id: usize, _pspec: &ParamSpec) -> Value

Property getter. Read more
§

fn constructed(&self)

Constructed. Read more
§

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 QRCodePaintable

§

type ParentType = Object

Parent Rust type to inherit from.
§

type Class = ClassStruct<QRCodePaintable>

The C class struct. Read more
§

type Instance = InstanceStruct<QRCodePaintable>

The C instance struct. Read more
source§

fn new() -> Self

Constructor. Read more
source§

const NAME: &'static str = "QRCodePaintable"

GObject type name. Read more
§

type Type = QRCodePaintable

Wrapper around this subclass defined with wrapper!
§

type Interfaces = (Paintable,)

List of interfaces implemented by this type.
§

const ABSTRACT: bool = false

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

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

Additional type initialization. Read more
§

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

Class initialization. Read more
§

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

Constructor. Read more
§

fn instance_init(_obj: &InitializingObject<Self>)

Performs additional instance initialization. Read more
source§

impl ObjectSubclassType for QRCodePaintable

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 PaintableImpl for QRCodePaintable

source§

fn snapshot(&self, snapshot: &Snapshot, width: f64, height: f64)

§

fn current_image(&self) -> Paintable

§

fn flags(&self) -> PaintableFlags

§

fn intrinsic_width(&self) -> i32

§

fn intrinsic_height(&self) -> i32

§

fn intrinsic_aspect_ratio(&self) -> f64

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.

§

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.

§

impl<T> IntoSql for T

§

fn into_sql<T>(self) -> Self::Expression
where Self: AsExpression<T> + Sized, 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> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

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 instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>

👎Deprecated: Use obj() instead
Returns the corresponding object instance.
§

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

👎Deprecated: Use from_obj() instead
Returns the implementation from an instance.
§

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> PaintableImplExt for T
where T: PaintableImpl,

§

fn parent_current_image(&self) -> Paintable

§

fn parent_flags(&self) -> PaintableFlags

§

fn parent_intrinsic_width(&self) -> i32

§

fn parent_intrinsic_height(&self) -> i32

§

fn parent_intrinsic_aspect_ratio(&self) -> f64

§

fn parent_snapshot(&self, snapshot: &Snapshot, width: f64, height: f64)

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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> 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