OB
Size: a a a
МВ
МВ
МВ
МВ
private static GType type;
static this() {
static GTypeInfo info = {
GObjectClass.sizeof,
null,
null,
null,
null,
null,
GObject.sizeof,
0,
null,
null
};
type = Type.registerStatic(GType.OBJECT, "DevicesListModel", &info, cast(GTypeFlags) 0);
GInterfaceInfo list_iface_info = {
cast(GInterfaceInitFunc)&init_list_model_interface,
null,
null
};
Type.addInterfaceStatic(type, ListModelIF.getType(), &list_iface_info);
}
private static extern (C) GType getItemTypeImpl(GListModel* list)
{
return getDObject!(DevicesListModel)(cast(GObject*)list).getItemType();
}
private static extern (C) uint getNItemsImpl(GListModel* list) {
return getDObject!(DevicesListModel)(cast(GObject*)list).getNItems();
}
private static extern (C) void* getItemImpl(GListModel* list, uint position) {
return getDObject!(DevicesListModel)(cast(GObject*)list).getItem(position);
}
private static extern (C) void init_list_model_interface(
GListModelInterface* list,
void* iface_data) {
list.getItem = &getItemImpl;
list.getNItems = &getNItemsImpl;
list.getItemType = &getItemTypeImpl;
}
МВ
g
МВ
МВ
МВ
МВ