libadwaita::subclass::prelude

Trait IsSubclassable

Source
pub unsafe trait IsSubclassable<T>: IsSubclassableDefault<T>
where T: ObjectSubclass,
{ // Provided methods fn class_init(class: &mut Class<Self>) { ... } fn instance_init(instance: &mut InitializingObject<T>) { ... } }
Expand description

Trait for subclassable class structs.

Provided Methods§

Source

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

Override the virtual methods of this class for the given subclass and do other class initialization.

This is automatically called during type initialization and must call class_init() of the parent class.

Source

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

Instance specific initialization.

This is automatically called during instance initialization and must call instance_init() of the parent class.

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.

Implementations on Foreign Types§

Source§

impl<T> IsSubclassable<T> for ContentProvider

Source§

impl<T> IsSubclassable<T> for Adjustment
where T: AdjustmentImpl,

Source§

impl<T> IsSubclassable<T> for Application

Source§

impl<T> IsSubclassable<T> for ApplicationWindow

Source§

impl<T> IsSubclassable<T> for Box
where T: BoxImpl,

Source§

impl<T> IsSubclassable<T> for Button
where T: ButtonImpl,

Source§

impl<T> IsSubclassable<T> for CellArea
where T: CellAreaImpl,

Source§

impl<T> IsSubclassable<T> for CellAreaContext

Source§

impl<T> IsSubclassable<T> for CellRenderer

Source§

impl<T> IsSubclassable<T> for CellRendererText

Source§

impl<T> IsSubclassable<T> for CheckButton
where T: CheckButtonImpl,

Source§

impl<T> IsSubclassable<T> for ComboBox
where T: ComboBoxImpl,

Source§

impl<T> IsSubclassable<T> for Dialog
where T: DialogImpl,

Source§

impl<T> IsSubclassable<T> for DrawingArea
where T: DrawingAreaImpl,

Source§

impl<T> IsSubclassable<T> for Entry
where T: EntryImpl,

Source§

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

Source§

impl<T> IsSubclassable<T> for EntryBuffer
where T: EntryBufferImpl,

Source§

impl<T> IsSubclassable<T> for Filter
where T: FilterImpl,

Source§

impl<T> IsSubclassable<T> for Fixed
where T: FixedImpl,

Source§

impl<T> IsSubclassable<T> for FlowBoxChild

Source§

impl<T> IsSubclassable<T> for Frame
where T: FrameImpl,

Source§

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

Source§

impl<T> IsSubclassable<T> for GLArea
where T: GLAreaImpl,

Source§

impl<T> IsSubclassable<T> for Grid
where T: GridImpl,

Source§

impl<T> IsSubclassable<T> for IMContext
where T: IMContextImpl,

Source§

impl<T> IsSubclassable<T> for LayoutChild
where T: LayoutChildImpl,

Source§

impl<T> IsSubclassable<T> for LayoutManager

Source§

impl<T> IsSubclassable<T> for ListBoxRow
where T: ListBoxRowImpl,

Source§

impl<T> IsSubclassable<T> for MediaFile
where T: MediaFileImpl,

Source§

impl<T> IsSubclassable<T> for MediaStream
where T: MediaStreamImpl,

Source§

impl<T> IsSubclassable<T> for NativeDialog

Source§

impl<T> IsSubclassable<T> for Popover
where T: PopoverImpl,

Source§

impl<T> IsSubclassable<T> for PrintOperation

Source§

impl<T> IsSubclassable<T> for Range
where T: RangeImpl,

Source§

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

Source§

impl<T> IsSubclassable<T> for RecentManager

Source§

impl<T> IsSubclassable<T> for Scale
where T: ScaleImpl,

Source§

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

Source§

impl<T> IsSubclassable<T> for ScaleButton
where T: ScaleButtonImpl,

Source§

impl<T> IsSubclassable<T> for Sorter
where T: SorterImpl,

Source§

impl<T> IsSubclassable<T> for StyleContext

Source§

impl<T> IsSubclassable<T> for TextBuffer
where T: TextBufferImpl,

Source§

impl<T> IsSubclassable<T> for TextView
where T: TextViewImpl,

Source§

impl<T> IsSubclassable<T> for ToggleButton

Source§

impl<T> IsSubclassable<T> for TreeModelFilter

Source§

impl<T> IsSubclassable<T> for TreeView
where T: TreeViewImpl,

Source§

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

Source§

impl<T> IsSubclassable<T> for Window
where T: WindowImpl,

Source§

impl<T> IsSubclassable<T> for WindowGroup
where T: WindowGroupImpl,

Source§

impl<T> IsSubclassable<T> for BuilderCScope

Source§

impl<T> IsSubclassable<T> for PixbufAnimation

Source§

impl<T> IsSubclassable<T> for PixbufLoader

Source§

impl<T> IsSubclassable<T> for PixbufAnimationIter

Source§

impl<T> IsSubclassable<T> for Application
where T: ApplicationImpl,

Source§

impl<T> IsSubclassable<T> for InputStream
where T: InputStreamImpl,

Source§

impl<T> IsSubclassable<T> for IOStream
where T: IOStreamImpl,

Source§

impl<T> IsSubclassable<T> for OutputStream

Source§

impl<T> IsSubclassable<T> for SocketControlMessage

Implementors§

Source§

impl<T> IsSubclassable<T> for TypeModule
where T: TypeModuleImpl,

Source§

impl<T> IsSubclassable<T> for Object
where T: ObjectImpl,

Source§

impl<T: ActionRowImpl> IsSubclassable<T> for ActionRow

Source§

impl<T: AdwAlertDialogImpl> IsSubclassable<T> for AlertDialog

Available on crate feature v1_5 only.
Source§

impl<T: AdwApplicationImpl> IsSubclassable<T> for libadwaita::Application

Source§

impl<T: AdwApplicationWindowImpl> IsSubclassable<T> for libadwaita::ApplicationWindow

Source§

impl<T: BinImpl> IsSubclassable<T> for Bin

Source§

impl<T: BreakpointBinImpl> IsSubclassable<T> for BreakpointBin

Available on crate feature v1_4 only.
Source§

impl<T: ComboRowImpl> IsSubclassable<T> for ComboRow

Source§

impl<T: AdwDialogImpl> IsSubclassable<T> for libadwaita::Dialog

Available on crate feature v1_5 only.
Source§

impl<T: EntryRowImpl> IsSubclassable<T> for EntryRow

Available on crate feature v1_2 only.
Source§

impl<T: ExpanderRowImpl> IsSubclassable<T> for ExpanderRow

Source§

impl<T: NavigationPageImpl> IsSubclassable<T> for NavigationPage

Available on crate feature v1_4 only.
Source§

impl<T: PreferencesDialogImpl> IsSubclassable<T> for PreferencesDialog

Available on crate feature v1_5 only.
Source§

impl<T: PreferencesGroupImpl> IsSubclassable<T> for PreferencesGroup

Source§

impl<T: PreferencesPageImpl> IsSubclassable<T> for PreferencesPage

Source§

impl<T: PreferencesRowImpl> IsSubclassable<T> for PreferencesRow

Source§

impl<T: PreferencesWindowImpl> IsSubclassable<T> for PreferencesWindow

Source§

impl<T: SpinRowImpl> IsSubclassable<T> for SpinRow

Available on crate feature v1_4 only.
Source§

impl<T: AdwWindowImpl> IsSubclassable<T> for libadwaita::Window

Source§

impl<T: MessageDialogImpl> IsSubclassable<T> for MessageDialog

Available on crate feature v1_2 only.