Trait libadwaita::subclass::prelude::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§
sourcefn class_init(class: &mut Class<Self>)
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.
sourcefn instance_init(instance: &mut InitializingObject<T>)
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.
Implementations on Foreign Types§
source§impl<T> IsSubclassable<T> for ContentProviderwhere
T: ContentProviderImpl,
impl<T> IsSubclassable<T> for ContentProviderwhere T: ContentProviderImpl,
fn class_init(class: &mut Class<ContentProvider>)
source§impl<T> IsSubclassable<T> for PixbufLoaderwhere
T: PixbufLoaderImpl,
impl<T> IsSubclassable<T> for PixbufLoaderwhere T: PixbufLoaderImpl,
fn class_init(class: &mut Class<PixbufLoader>)
source§impl<T> IsSubclassable<T> for PixbufAnimationIterwhere
T: PixbufAnimationIterImpl,
impl<T> IsSubclassable<T> for PixbufAnimationIterwhere T: PixbufAnimationIterImpl,
fn class_init(class: &mut Class<PixbufAnimationIter>)
source§impl<T> IsSubclassable<T> for PixbufAnimationwhere
T: PixbufAnimationImpl,
impl<T> IsSubclassable<T> for PixbufAnimationwhere T: PixbufAnimationImpl,
fn class_init(class: &mut Class<PixbufAnimation>)
source§impl<T> IsSubclassable<T> for Applicationwhere
T: ApplicationImpl,
impl<T> IsSubclassable<T> for Applicationwhere T: ApplicationImpl,
fn class_init(class: &mut Class<Application>)
source§impl<T> IsSubclassable<T> for IOStreamwhere
T: IOStreamImpl,
impl<T> IsSubclassable<T> for IOStreamwhere T: IOStreamImpl,
fn class_init(class: &mut Class<IOStream>)
source§impl<T> IsSubclassable<T> for InputStreamwhere
T: InputStreamImpl,
impl<T> IsSubclassable<T> for InputStreamwhere T: InputStreamImpl,
fn class_init(class: &mut Class<InputStream>)
source§impl<T> IsSubclassable<T> for OutputStreamwhere
T: OutputStreamImpl,
impl<T> IsSubclassable<T> for OutputStreamwhere T: OutputStreamImpl,
fn class_init(class: &mut Class<OutputStream>)
source§impl<T> IsSubclassable<T> for Popoverwhere
T: PopoverImpl,
impl<T> IsSubclassable<T> for Popoverwhere T: PopoverImpl,
fn class_init(class: &mut Class<Popover>)
source§impl<T> IsSubclassable<T> for Sorterwhere
T: SorterImpl,
impl<T> IsSubclassable<T> for Sorterwhere T: SorterImpl,
fn class_init(class: &mut Class<Sorter>)
source§impl<T> IsSubclassable<T> for CellRendererTextwhere
T: CellRendererTextImpl,
impl<T> IsSubclassable<T> for CellRendererTextwhere T: CellRendererTextImpl,
fn class_init(class: &mut Class<CellRendererText>)
source§impl<T> IsSubclassable<T> for RecentManagerwhere
T: RecentManagerImpl,
impl<T> IsSubclassable<T> for RecentManagerwhere T: RecentManagerImpl,
fn class_init(class: &mut Class<RecentManager>)
impl<T> IsSubclassable<T> for ApplicationWindowwhere T: ApplicationWindowImpl,
source§impl<T> IsSubclassable<T> for IMContextwhere
T: IMContextImpl,
impl<T> IsSubclassable<T> for IMContextwhere T: IMContextImpl,
fn class_init(class: &mut Class<IMContext>)
source§impl<T> IsSubclassable<T> for NativeDialogwhere
T: NativeDialogImpl,
impl<T> IsSubclassable<T> for NativeDialogwhere T: NativeDialogImpl,
fn class_init(class: &mut Class<NativeDialog>)
source§impl<T> IsSubclassable<T> for Windowwhere
T: WindowImpl,
impl<T> IsSubclassable<T> for Windowwhere T: WindowImpl,
fn class_init(class: &mut Class<Window>)
source§impl<T> IsSubclassable<T> for Applicationwhere
T: GtkApplicationImpl,
impl<T> IsSubclassable<T> for Applicationwhere T: GtkApplicationImpl,
fn class_init(class: &mut Class<Application>)
source§impl<T> IsSubclassable<T> for TreeModelFilterwhere
T: TreeModelFilterImpl,
impl<T> IsSubclassable<T> for TreeModelFilterwhere T: TreeModelFilterImpl,
fn class_init(class: &mut Class<TreeModelFilter>)
impl<T> IsSubclassable<T> for Fixedwhere T: FixedImpl,
source§impl<T> IsSubclassable<T> for PrintOperationwhere
T: PrintOperationImpl,
impl<T> IsSubclassable<T> for PrintOperationwhere T: PrintOperationImpl,
fn class_init(class: &mut Class<PrintOperation>)
source§impl<T> IsSubclassable<T> for CheckButtonwhere
T: CheckButtonImpl,
impl<T> IsSubclassable<T> for CheckButtonwhere T: CheckButtonImpl,
fn class_init(class: &mut Class<CheckButton>)
source§impl<T> IsSubclassable<T> for LayoutChildwhere
T: LayoutChildImpl,
impl<T> IsSubclassable<T> for LayoutChildwhere T: LayoutChildImpl,
fn class_init(class: &mut Class<LayoutChild>)
source§impl<T> IsSubclassable<T> for ComboBoxwhere
T: ComboBoxImpl,
impl<T> IsSubclassable<T> for ComboBoxwhere T: ComboBoxImpl,
fn class_init(class: &mut Class<ComboBox>)
source§impl<T> IsSubclassable<T> for Scalewhere
T: ScaleImpl,
impl<T> IsSubclassable<T> for Scalewhere T: ScaleImpl,
fn class_init(class: &mut Class<Scale>)
source§impl<T> IsSubclassable<T> for MediaFilewhere
T: MediaFileImpl,
impl<T> IsSubclassable<T> for MediaFilewhere T: MediaFileImpl,
fn class_init(class: &mut Class<MediaFile>)
source§impl<T> IsSubclassable<T> for FlowBoxChildwhere
T: FlowBoxChildImpl,
impl<T> IsSubclassable<T> for FlowBoxChildwhere T: FlowBoxChildImpl,
fn class_init(class: &mut Class<FlowBoxChild>)
source§impl<T> IsSubclassable<T> for Entrywhere
T: EntryImpl,
impl<T> IsSubclassable<T> for Entrywhere T: EntryImpl,
fn class_init(class: &mut Class<Entry>)
source§impl<T> IsSubclassable<T> for Adjustmentwhere
T: AdjustmentImpl,
impl<T> IsSubclassable<T> for Adjustmentwhere T: AdjustmentImpl,
fn class_init(class: &mut Class<Adjustment>)
source§impl<T> IsSubclassable<T> for ToggleButtonwhere
T: ToggleButtonImpl,
impl<T> IsSubclassable<T> for ToggleButtonwhere T: ToggleButtonImpl,
fn class_init(class: &mut Class<ToggleButton>)
impl<T> IsSubclassable<T> for BuilderCScopewhere T: BuilderCScopeImpl,
source§impl<T> IsSubclassable<T> for Framewhere
T: FrameImpl,
impl<T> IsSubclassable<T> for Framewhere T: FrameImpl,
fn class_init(class: &mut Class<Frame>)
source§impl<T> IsSubclassable<T> for CellAreaContextwhere
T: CellAreaContextImpl,
impl<T> IsSubclassable<T> for CellAreaContextwhere T: CellAreaContextImpl,
fn class_init(class: &mut Class<CellAreaContext>)
source§impl<T> IsSubclassable<T> for MediaStreamwhere
T: MediaStreamImpl,
impl<T> IsSubclassable<T> for MediaStreamwhere T: MediaStreamImpl,
fn class_init(class: &mut Class<MediaStream>)
impl<T> IsSubclassable<T> for Gridwhere T: GridImpl,
source§impl<T> IsSubclassable<T> for ScaleButtonwhere
T: ScaleButtonImpl,
impl<T> IsSubclassable<T> for ScaleButtonwhere T: ScaleButtonImpl,
fn class_init(class: &mut Class<ScaleButton>)
source§impl<T> IsSubclassable<T> for TreeViewwhere
T: TreeViewImpl,
impl<T> IsSubclassable<T> for TreeViewwhere T: TreeViewImpl,
fn class_init(class: &mut Class<TreeView>)
source§impl<T> IsSubclassable<T> for GLAreawhere
T: GLAreaImpl,
impl<T> IsSubclassable<T> for GLAreawhere T: GLAreaImpl,
fn class_init(class: &mut Class<GLArea>)
source§impl<T> IsSubclassable<T> for Dialogwhere
T: DialogImpl,
impl<T> IsSubclassable<T> for Dialogwhere T: DialogImpl,
fn class_init(class: &mut Class<Dialog>)
source§impl<T> IsSubclassable<T> for TextBufferwhere
T: TextBufferImpl,
impl<T> IsSubclassable<T> for TextBufferwhere T: TextBufferImpl,
fn class_init(class: &mut Class<TextBuffer>)
source§impl<T> IsSubclassable<T> for Widgetwhere
T: WidgetImpl,
impl<T> IsSubclassable<T> for Widgetwhere T: WidgetImpl,
fn class_init(class: &mut Class<Widget>)
source§impl<T> IsSubclassable<T> for CellAreawhere
T: CellAreaImpl,
impl<T> IsSubclassable<T> for CellAreawhere T: CellAreaImpl,
fn class_init(class: &mut Class<CellArea>)
source§impl<T> IsSubclassable<T> for TextViewwhere
T: TextViewImpl,
impl<T> IsSubclassable<T> for TextViewwhere T: TextViewImpl,
fn class_init(class: &mut Class<TextView>)
impl<T> IsSubclassable<T> for Boxwhere T: BoxImpl,
source§impl<T> IsSubclassable<T> for LayoutManagerwhere
T: LayoutManagerImpl,
impl<T> IsSubclassable<T> for LayoutManagerwhere T: LayoutManagerImpl,
fn class_init(class: &mut Class<LayoutManager>)
source§impl<T> IsSubclassable<T> for Filterwhere
T: FilterImpl,
impl<T> IsSubclassable<T> for Filterwhere T: FilterImpl,
fn class_init(class: &mut Class<Filter>)
source§impl<T> IsSubclassable<T> for EntryBufferwhere
T: EntryBufferImpl,
impl<T> IsSubclassable<T> for EntryBufferwhere T: EntryBufferImpl,
fn class_init(class: &mut Class<EntryBuffer>)
source§impl<T> IsSubclassable<T> for DrawingAreawhere
T: DrawingAreaImpl,
impl<T> IsSubclassable<T> for DrawingAreawhere T: DrawingAreaImpl,
fn class_init(class: &mut Class<DrawingArea>)
source§impl<T> IsSubclassable<T> for CellRendererwhere
T: CellRendererImpl,
impl<T> IsSubclassable<T> for CellRendererwhere T: CellRendererImpl,
fn class_init(class: &mut Class<CellRenderer>)
source§impl<T> IsSubclassable<T> for StyleContextwhere
T: StyleContextImpl,
impl<T> IsSubclassable<T> for StyleContextwhere T: StyleContextImpl,
fn class_init(class: &mut Class<StyleContext>)
source§impl<T> IsSubclassable<T> for Buttonwhere
T: ButtonImpl,
impl<T> IsSubclassable<T> for Buttonwhere T: ButtonImpl,
fn class_init(class: &mut Class<Button>)
source§impl<T> IsSubclassable<T> for ListBoxRowwhere
T: ListBoxRowImpl,
impl<T> IsSubclassable<T> for ListBoxRowwhere T: ListBoxRowImpl,
fn class_init(class: &mut Class<ListBoxRow>)
source§impl<T> IsSubclassable<T> for Rangewhere
T: RangeImpl,
impl<T> IsSubclassable<T> for Rangewhere T: RangeImpl,
fn class_init(class: &mut Class<Range>)
Implementors§
impl<T> IsSubclassable<T> for Objectwhere T: ObjectImpl,
impl<T: ActionRowImpl> IsSubclassable<T> for ActionRow
impl<T: AdwApplicationImpl> IsSubclassable<T> for libadwaita::Application
impl<T: AdwApplicationWindowImpl> IsSubclassable<T> for libadwaita::ApplicationWindow
impl<T: BinImpl> IsSubclassable<T> for Bin
impl<T: ComboRowImpl> IsSubclassable<T> for ComboRow
impl<T: EntryRowImpl> IsSubclassable<T> for EntryRow
Available on crate feature
v1_2
only.impl<T: ExpanderRowImpl> IsSubclassable<T> for ExpanderRow
impl<T: PreferencesGroupImpl> IsSubclassable<T> for PreferencesGroup
impl<T: PreferencesPageImpl> IsSubclassable<T> for PreferencesPage
impl<T: PreferencesRowImpl> IsSubclassable<T> for PreferencesRow
impl<T: PreferencesWindowImpl> IsSubclassable<T> for PreferencesWindow
impl<T: AdwWindowImpl> IsSubclassable<T> for libadwaita::Window
impl<T: MessageDialogImpl> IsSubclassable<T> for MessageDialog
Available on crate feature
v1_2
only.