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.

Object Safety§

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.