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.
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 ContentProviderwhere
T: ContentProviderImpl,
impl<T> IsSubclassable<T> for ContentProviderwhere
T: ContentProviderImpl,
fn class_init(class: &mut Class<ContentProvider>)
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 Applicationwhere
T: GtkApplicationImpl,
impl<T> IsSubclassable<T> for Applicationwhere
T: GtkApplicationImpl,
fn class_init(class: &mut Class<Application>)
impl<T> IsSubclassable<T> for ApplicationWindowwhere
T: ApplicationWindowImpl,
impl<T> IsSubclassable<T> for Boxwhere
T: BoxImpl,
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 CellAreawhere
T: CellAreaImpl,
impl<T> IsSubclassable<T> for CellAreawhere
T: CellAreaImpl,
fn class_init(class: &mut Class<CellArea>)
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 CellRendererwhere
T: CellRendererImpl,
impl<T> IsSubclassable<T> for CellRendererwhere
T: CellRendererImpl,
fn class_init(class: &mut Class<CellRenderer>)
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 CheckButtonwhere
T: CheckButtonImpl,
impl<T> IsSubclassable<T> for CheckButtonwhere
T: CheckButtonImpl,
fn class_init(class: &mut Class<CheckButton>)
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 Dialogwhere
T: DialogImpl,
impl<T> IsSubclassable<T> for Dialogwhere
T: DialogImpl,
fn class_init(class: &mut Class<Dialog>)
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 Entrywhere
T: EntryImpl,
impl<T> IsSubclassable<T> for Entrywhere
T: EntryImpl,
fn class_init(class: &mut Class<Entry>)
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 Filterwhere
T: FilterImpl,
impl<T> IsSubclassable<T> for Filterwhere
T: FilterImpl,
fn class_init(class: &mut Class<Filter>)
impl<T> IsSubclassable<T> for Fixedwhere
T: FixedImpl,
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 Framewhere
T: FrameImpl,
impl<T> IsSubclassable<T> for Framewhere
T: FrameImpl,
fn class_init(class: &mut Class<Frame>)
Source§impl<T> IsSubclassable<T> for GLAreawhere
T: GLAreaImpl,
impl<T> IsSubclassable<T> for GLAreawhere
T: GLAreaImpl,
fn class_init(class: &mut Class<GLArea>)
impl<T> IsSubclassable<T> for Gridwhere
T: GridImpl,
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 LayoutChildwhere
T: LayoutChildImpl,
impl<T> IsSubclassable<T> for LayoutChildwhere
T: LayoutChildImpl,
fn class_init(class: &mut Class<LayoutChild>)
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 ListBoxRowwhere
T: ListBoxRowImpl,
impl<T> IsSubclassable<T> for ListBoxRowwhere
T: ListBoxRowImpl,
fn class_init(class: &mut Class<ListBoxRow>)
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 MediaStreamwhere
T: MediaStreamImpl,
impl<T> IsSubclassable<T> for MediaStreamwhere
T: MediaStreamImpl,
fn class_init(class: &mut Class<MediaStream>)
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 Popoverwhere
T: PopoverImpl,
impl<T> IsSubclassable<T> for Popoverwhere
T: PopoverImpl,
fn class_init(class: &mut Class<Popover>)
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 Rangewhere
T: RangeImpl,
impl<T> IsSubclassable<T> for Rangewhere
T: RangeImpl,
fn class_init(class: &mut Class<Range>)
Source§impl<T> IsSubclassable<T> for RecentManagerwhere
T: RecentManagerImpl,
impl<T> IsSubclassable<T> for RecentManagerwhere
T: RecentManagerImpl,
fn class_init(class: &mut Class<RecentManager>)
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 ScaleButtonwhere
T: ScaleButtonImpl,
impl<T> IsSubclassable<T> for ScaleButtonwhere
T: ScaleButtonImpl,
fn class_init(class: &mut Class<ScaleButton>)
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 StyleContextwhere
T: StyleContextImpl,
impl<T> IsSubclassable<T> for StyleContextwhere
T: StyleContextImpl,
fn class_init(class: &mut Class<StyleContext>)
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 TextViewwhere
T: TextViewImpl,
impl<T> IsSubclassable<T> for TextViewwhere
T: TextViewImpl,
fn class_init(class: &mut Class<TextView>)
Source§impl<T> IsSubclassable<T> for ToggleButtonwhere
T: ToggleButtonImpl,
impl<T> IsSubclassable<T> for ToggleButtonwhere
T: ToggleButtonImpl,
fn class_init(class: &mut Class<ToggleButton>)
Source§impl<T> IsSubclassable<T> for TreeModelFilterwhere
T: TreeModelFilterImpl,
impl<T> IsSubclassable<T> for TreeModelFilterwhere
T: TreeModelFilterImpl,
fn class_init(class: &mut Class<TreeModelFilter>)
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 Widgetwhere
T: WidgetImpl,
impl<T> IsSubclassable<T> for Widgetwhere
T: WidgetImpl,
fn class_init(class: &mut Class<Widget>)
Source§impl<T> IsSubclassable<T> for Windowwhere
T: WindowImpl,
impl<T> IsSubclassable<T> for Windowwhere
T: WindowImpl,
fn class_init(class: &mut Class<Window>)
impl<T> IsSubclassable<T> for WindowGroupwhere
T: WindowGroupImpl,
impl<T> IsSubclassable<T> for BuilderCScopewhere
T: BuilderCScopeImpl,
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 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 Applicationwhere
T: ApplicationImpl,
impl<T> IsSubclassable<T> for Applicationwhere
T: ApplicationImpl,
fn class_init(class: &mut Class<Application>)
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 IOStreamwhere
T: IOStreamImpl,
impl<T> IsSubclassable<T> for IOStreamwhere
T: IOStreamImpl,
fn class_init(class: &mut Class<IOStream>)
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 SocketControlMessagewhere
T: SocketControlMessageImpl,
impl<T> IsSubclassable<T> for SocketControlMessagewhere
T: SocketControlMessageImpl,
fn class_init(class: &mut Class<SocketControlMessage>)
Implementors§
impl<T> IsSubclassable<T> for TypeModulewhere
T: TypeModuleImpl,
impl<T> IsSubclassable<T> for Objectwhere
T: ObjectImpl,
impl<T: ActionRowImpl> IsSubclassable<T> for ActionRow
impl<T: AdwAlertDialogImpl> IsSubclassable<T> for AlertDialog
Available on crate feature
v1_5
only.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: BreakpointBinImpl> IsSubclassable<T> for BreakpointBin
Available on crate feature
v1_4
only.impl<T: ComboRowImpl> IsSubclassable<T> for ComboRow
impl<T: AdwDialogImpl> IsSubclassable<T> for libadwaita::Dialog
Available on crate feature
v1_5
only.impl<T: EntryRowImpl> IsSubclassable<T> for EntryRow
Available on crate feature
v1_2
only.impl<T: ExpanderRowImpl> IsSubclassable<T> for ExpanderRow
impl<T: PreferencesDialogImpl> IsSubclassable<T> for PreferencesDialog
Available on crate feature
v1_5
only.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: SpinRowImpl> IsSubclassable<T> for SpinRow
Available on crate feature
v1_4
only.impl<T: AdwWindowImpl> IsSubclassable<T> for libadwaita::Window
impl<T: MessageDialogImpl> IsSubclassable<T> for MessageDialog
Available on crate feature
v1_2
only.