glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="rn01.html" title="API Reference">
|
10
10
|
<link rel="next" href="GTypePlugin.html" title="GTypePlugin">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#gobject-Type-Information.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="gobject-Type-Information"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</td>
|
37
37
|
<td valign="top" align="right"></td>
|
38
38
|
</tr></table></div>
|
39
|
-
<div class="refsynopsisdiv"
|
39
|
+
<div class="refsynopsisdiv">
|
40
40
|
<a name="gobject-Type-Information.synopsis"></a><h2>Synopsis</h2>
|
41
41
|
<pre class="synopsis">
|
42
42
|
#include <glib-object.h>
|
@@ -55,13 +55,13 @@ typedef <a class="link" href="gobject-Type-Information.html#GType" t
|
|
55
55
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-IS-DERIVABLE:CAPS" title="G_TYPE_IS_DERIVABLE()">G_TYPE_IS_DERIVABLE</a> (type)
|
56
56
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-IS-DEEP-DERIVABLE:CAPS" title="G_TYPE_IS_DEEP_DERIVABLE()">G_TYPE_IS_DEEP_DERIVABLE</a> (type)
|
57
57
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-IS-INTERFACE:CAPS" title="G_TYPE_IS_INTERFACE()">G_TYPE_IS_INTERFACE</a> (type)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
58
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface">GTypeInterface</a>;
|
59
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance">GTypeInstance</a>;
|
60
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass">GTypeClass</a>;
|
61
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo">GTypeInfo</a>;
|
62
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo">GTypeFundamentalInfo</a>;
|
63
|
+
struct <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo">GInterfaceInfo</a>;
|
64
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable">GTypeValueTable</a>;
|
65
65
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-FROM-INSTANCE:CAPS" title="G_TYPE_FROM_INSTANCE()">G_TYPE_FROM_INSTANCE</a> (instance)
|
66
66
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-FROM-CLASS:CAPS" title="G_TYPE_FROM_CLASS()">G_TYPE_FROM_CLASS</a> (g_class)
|
67
67
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-FROM-INTERFACE:CAPS" title="G_TYPE_FROM_INTERFACE()">G_TYPE_FROM_INTERFACE</a> (g_iface)
|
@@ -95,7 +95,7 @@ typedef <a class="link" href="gobject-Type-Information.html#GType" t
|
|
95
95
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-init" title="g_type_init ()">g_type_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
96
96
|
enum <a class="link" href="gobject-Type-Information.html#GTypeDebugFlags" title="enum GTypeDebugFlags">GTypeDebugFlags</a>;
|
97
97
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-init-with-debug-flags" title="g_type_init_with_debug_flags ()">g_type_init_with_debug_flags</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeDebugFlags" title="enum GTypeDebugFlags"><span class="type">GTypeDebugFlags</span></a> debug_flags</code></em>);
|
98
|
-
const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a
|
98
|
+
const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-name" title="g_type_name ()">g_type_name</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
99
99
|
<a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="gobject-Type-Information.html#g-type-qname" title="g_type_qname ()">g_type_qname</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
100
100
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-from-name" title="g_type_from_name ()">g_type_from_name</a> (<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
|
101
101
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-parent" title="g_type_parent ()">g_type_parent</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
@@ -119,11 +119,11 @@ const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnva
|
|
119
119
|
<a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gobject-Type-Information.html#g-type-default-interface-ref" title="g_type_default_interface_ref ()">g_type_default_interface_ref</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>);
|
120
120
|
<a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gobject-Type-Information.html#g-type-default-interface-peek" title="g_type_default_interface_peek ()">g_type_default_interface_peek</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>);
|
121
121
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-default-interface-unref" title="g_type_default_interface_unref ()">g_type_default_interface_unref</a> (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>);
|
122
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
122
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-children" title="g_type_children ()">g_type_children</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
123
123
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_children</code></em>);
|
124
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
124
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-interfaces" title="g_type_interfaces ()">g_type_interfaces</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
125
125
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_interfaces</code></em>);
|
126
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
126
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-interface-prerequisites" title="g_type_interface_prerequisites ()">g_type_interface_prerequisites</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
127
127
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_prerequisites</code></em>);
|
128
128
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-set-qdata" title="g_type_set_qdata ()">g_type_set_qdata</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
129
129
|
<em class="parameter"><code><a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> quark</code></em>,
|
@@ -131,27 +131,27 @@ const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnva
|
|
131
131
|
<a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gobject-Type-Information.html#g-type-get-qdata" title="g_type_get_qdata ()">g_type_get_qdata</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
132
132
|
<em class="parameter"><code><a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> quark</code></em>);
|
133
133
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-query" title="g_type_query ()">g_type_query</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
134
|
-
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeQuery" title="GTypeQuery"><span class="type">GTypeQuery</span></a> *query</code></em>);
|
135
|
-
|
134
|
+
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeQuery" title="struct GTypeQuery"><span class="type">GTypeQuery</span></a> *query</code></em>);
|
135
|
+
struct <a class="link" href="gobject-Type-Information.html#GTypeQuery" title="struct GTypeQuery">GTypeQuery</a>;
|
136
136
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GBaseInitFunc" title="GBaseInitFunc ()">*GBaseInitFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);
|
137
137
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GBaseFinalizeFunc" title="GBaseFinalizeFunc ()">*GBaseFinalizeFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);
|
138
138
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GClassInitFunc" title="GClassInitFunc ()">*GClassInitFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>,
|
139
139
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> class_data</code></em>);
|
140
140
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GClassFinalizeFunc" title="GClassFinalizeFunc ()">*GClassFinalizeFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>,
|
141
141
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> class_data</code></em>);
|
142
|
-
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GInstanceInitFunc" title="GInstanceInitFunc ()">*GInstanceInitFunc</a>) (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>,
|
142
|
+
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GInstanceInitFunc" title="GInstanceInitFunc ()">*GInstanceInitFunc</a>) (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>,
|
143
143
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);
|
144
144
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GInterfaceInitFunc" title="GInterfaceInitFunc ()">*GInterfaceInitFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
|
145
145
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);
|
146
146
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GInterfaceFinalizeFunc" title="GInterfaceFinalizeFunc ()">*GInterfaceFinalizeFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
|
147
147
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);
|
148
148
|
<a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="gobject-Type-Information.html#GTypeClassCacheFunc" title="GTypeClassCacheFunc ()">*GTypeClassCacheFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
149
|
-
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> *g_class</code></em>);
|
149
|
+
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> *g_class</code></em>);
|
150
150
|
enum <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags">GTypeFlags</a>;
|
151
151
|
enum <a class="link" href="gobject-Type-Information.html#GTypeFundamentalFlags" title="enum GTypeFundamentalFlags">GTypeFundamentalFlags</a>;
|
152
152
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-register-static" title="g_type_register_static ()">g_type_register_static</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> parent_type</code></em>,
|
153
153
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
154
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
154
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
155
155
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> flags</code></em>);
|
156
156
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-register-static-simple" title="g_type_register_static_simple ()">g_type_register_static_simple</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> parent_type</code></em>,
|
157
157
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
@@ -166,24 +166,24 @@ enum <a class="link" href="gobject-Type-Information.html#GTypeFun
|
|
166
166
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> flags</code></em>);
|
167
167
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-register-fundamental" title="g_type_register_fundamental ()">g_type_register_fundamental</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type_id</code></em>,
|
168
168
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
169
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
170
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> *finfo</code></em>,
|
169
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
170
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> *finfo</code></em>,
|
171
171
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> flags</code></em>);
|
172
172
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-add-interface-static" title="g_type_add_interface_static ()">g_type_add_interface_static</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
173
173
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
174
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);
|
174
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);
|
175
175
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-add-interface-dynamic" title="g_type_add_interface_dynamic ()">g_type_add_interface_dynamic</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
176
176
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
177
177
|
<em class="parameter"><code><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> *plugin</code></em>);
|
178
178
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-interface-add-prerequisite" title="g_type_interface_add_prerequisite ()">g_type_interface_add_prerequisite</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
179
179
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> prerequisite_type</code></em>);
|
180
|
-
<a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a
|
181
|
-
<a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a
|
180
|
+
<a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-get-plugin" title="g_type_get_plugin ()">g_type_get_plugin</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
181
|
+
<a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-interface-get-plugin" title="g_type_interface_get_plugin ()">g_type_interface_get_plugin</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
182
182
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>);
|
183
183
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-fundamental-next" title="g_type_fundamental_next ()">g_type_fundamental_next</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
184
184
|
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> <a class="link" href="gobject-Type-Information.html#g-type-fundamental" title="g_type_fundamental ()">g_type_fundamental</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type_id</code></em>);
|
185
|
-
<a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="returnvalue">GTypeInstance</span></a
|
186
|
-
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-free-instance" title="g_type_free_instance ()">g_type_free_instance</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>);
|
185
|
+
<a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="returnvalue">GTypeInstance</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-create-instance" title="g_type_create_instance ()">g_type_create_instance</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
186
|
+
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-free-instance" title="g_type_free_instance ()">g_type_free_instance</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>);
|
187
187
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-add-class-cache-func" title="g_type_add_class_cache_func ()">g_type_add_class_cache_func</a> (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
188
188
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClassCacheFunc" title="GTypeClassCacheFunc ()"><span class="type">GTypeClassCacheFunc</span></a> cache_func</code></em>);
|
189
189
|
<span class="returnvalue">void</span> <a class="link" href="gobject-Type-Information.html#g-type-remove-class-cache-func" title="g_type_remove_class_cache_func ()">g_type_remove_class_cache_func</a> (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
@@ -195,7 +195,7 @@ enum <a class="link" href="gobject-Type-Information.html#GTypeFun
|
|
195
195
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInterfaceCheckFunc" title="GTypeInterfaceCheckFunc ()"><span class="type">GTypeInterfaceCheckFunc</span></a> check_func</code></em>);
|
196
196
|
<span class="returnvalue">void</span> (<a class="link" href="gobject-Type-Information.html#GTypeInterfaceCheckFunc" title="GTypeInterfaceCheckFunc ()">*GTypeInterfaceCheckFunc</a>) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> check_data</code></em>,
|
197
197
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>);
|
198
|
-
<a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="returnvalue">GTypeValueTable</span></a
|
198
|
+
<a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="returnvalue">GTypeValueTable</span></a> * <a class="link" href="gobject-Type-Information.html#g-type-value-table-peek" title="g_type_value_table_peek ()">g_type_value_table_peek</a> (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);
|
199
199
|
#define <a class="link" href="gobject-Type-Information.html#G-DEFINE-TYPE:CAPS" title="G_DEFINE_TYPE()">G_DEFINE_TYPE</a> (TN,
|
200
200
|
t_n,
|
201
201
|
T_P)
|
@@ -271,7 +271,7 @@ enum <a class="link" href="gobject-Type-Information.html#GTypeFun
|
|
271
271
|
#define <a class="link" href="gobject-Type-Information.html#G-TYPE-RESERVED-USER-FIRST:CAPS" title="G_TYPE_RESERVED_USER_FIRST">G_TYPE_RESERVED_USER_FIRST</a>
|
272
272
|
</pre>
|
273
273
|
</div>
|
274
|
-
<div class="refsect1"
|
274
|
+
<div class="refsect1">
|
275
275
|
<a name="gobject-Type-Information.description"></a><h2>Description</h2>
|
276
276
|
<p>
|
277
277
|
The GType API is the foundation of the GObject system. It provides the
|
@@ -285,10 +285,10 @@ For type creation and registration purposes, all types fall into one of
|
|
285
285
|
two categories: static or dynamic. Static types are never loaded or
|
286
286
|
unloaded at run-time as dynamic types may be. Static types are created
|
287
287
|
with <a class="link" href="gobject-Type-Information.html#g-type-register-static" title="g_type_register_static ()"><code class="function">g_type_register_static()</code></a> that gets type specific information passed
|
288
|
-
in via a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure.
|
288
|
+
in via a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure.
|
289
289
|
Dynamic types are created with <a class="link" href="gobject-Type-Information.html#g-type-register-dynamic" title="g_type_register_dynamic ()"><code class="function">g_type_register_dynamic()</code></a> which takes a
|
290
290
|
<a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure instead. The remaining type information (the
|
291
|
-
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure) is retrieved during runtime through <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
|
291
|
+
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure) is retrieved during runtime through <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a>
|
292
292
|
and the g_type_plugin_*() API.
|
293
293
|
These registration functions are usually called only once from a
|
294
294
|
function whose only purpose is to return the type identifier for a
|
@@ -296,8 +296,8 @@ specific class. Once the type (or class or interface) is registered,
|
|
296
296
|
it may be instantiated, inherited, or implemented depending on exactly
|
297
297
|
what sort of type it is.
|
298
298
|
There is also a third registration function for registering fundamental
|
299
|
-
types called <a class="link" href="gobject-Type-Information.html#g-type-register-fundamental" title="g_type_register_fundamental ()"><code class="function">g_type_register_fundamental()</code></a> which requires both a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>
|
300
|
-
structure and a <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure but it is seldom used
|
299
|
+
types called <a class="link" href="gobject-Type-Information.html#g-type-register-fundamental" title="g_type_register_fundamental ()"><code class="function">g_type_register_fundamental()</code></a> which requires both a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>
|
300
|
+
structure and a <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure but it is seldom used
|
301
301
|
since most fundamental types are predefined rather than user-defined.
|
302
302
|
</p>
|
303
303
|
<p>
|
@@ -308,17 +308,19 @@ or an underscore '_'. Subsequent characters can be letters, numbers or
|
|
308
308
|
any of '-_+'.
|
309
309
|
</p>
|
310
310
|
</div>
|
311
|
-
<div class="refsect1"
|
311
|
+
<div class="refsect1">
|
312
312
|
<a name="gobject-Type-Information.details"></a><h2>Details</h2>
|
313
|
-
<div class="refsect2"
|
313
|
+
<div class="refsect2">
|
314
314
|
<a name="GType"></a><h3>GType</h3>
|
315
|
+
<pre class="programlisting">typedef gsize GType;
|
316
|
+
</pre>
|
315
317
|
<p>
|
316
318
|
A numerical value which represents the unique identifier of a registered
|
317
319
|
type.
|
318
320
|
</p>
|
319
321
|
</div>
|
320
322
|
<hr>
|
321
|
-
<div class="refsect2"
|
323
|
+
<div class="refsect2">
|
322
324
|
<a name="G-TYPE-FUNDAMENTAL:CAPS"></a><h3>G_TYPE_FUNDAMENTAL()</h3>
|
323
325
|
<pre class="programlisting">#define G_TYPE_FUNDAMENTAL(type) (g_type_fundamental (type))
|
324
326
|
</pre>
|
@@ -331,13 +333,12 @@ thus they are the roots of distinct inheritance hierarchies.
|
|
331
333
|
<col align="left" valign="top">
|
332
334
|
<tbody><tr>
|
333
335
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
334
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
335
|
-
</td>
|
336
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
336
337
|
</tr></tbody>
|
337
338
|
</table></div>
|
338
339
|
</div>
|
339
340
|
<hr>
|
340
|
-
<div class="refsect2"
|
341
|
+
<div class="refsect2">
|
341
342
|
<a name="G-TYPE-FUNDAMENTAL-MAX:CAPS"></a><h3>G_TYPE_FUNDAMENTAL_MAX</h3>
|
342
343
|
<pre class="programlisting">#define G_TYPE_FUNDAMENTAL_MAX (255 << G_TYPE_FUNDAMENTAL_SHIFT)
|
343
344
|
</pre>
|
@@ -347,7 +348,7 @@ for types that are assigned at compile-time.
|
|
347
348
|
</p>
|
348
349
|
</div>
|
349
350
|
<hr>
|
350
|
-
<div class="refsect2"
|
351
|
+
<div class="refsect2">
|
351
352
|
<a name="G-TYPE-MAKE-FUNDAMENTAL:CAPS"></a><h3>G_TYPE_MAKE_FUNDAMENTAL()</h3>
|
352
353
|
<pre class="programlisting">#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
|
353
354
|
</pre>
|
@@ -361,19 +362,17 @@ types.
|
|
361
362
|
<tbody>
|
362
363
|
<tr>
|
363
364
|
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
364
|
-
<td>the fundamental type number
|
365
|
-
</td>
|
365
|
+
<td>the fundamental type number.</td>
|
366
366
|
</tr>
|
367
367
|
<tr>
|
368
368
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
369
|
-
<td>
|
370
|
-
</td>
|
369
|
+
<td>the GType</td>
|
371
370
|
</tr>
|
372
371
|
</tbody>
|
373
372
|
</table></div>
|
374
373
|
</div>
|
375
374
|
<hr>
|
376
|
-
<div class="refsect2"
|
375
|
+
<div class="refsect2">
|
377
376
|
<a name="G-TYPE-IS-ABSTRACT:CAPS"></a><h3>G_TYPE_IS_ABSTRACT()</h3>
|
378
377
|
<pre class="programlisting">#define G_TYPE_IS_ABSTRACT(type) (g_type_test_flags ((type), G_TYPE_FLAG_ABSTRACT))
|
379
378
|
</pre>
|
@@ -387,19 +386,18 @@ derived classes.
|
|
387
386
|
<tbody>
|
388
387
|
<tr>
|
389
388
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
390
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
391
|
-
</td>
|
389
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
392
390
|
</tr>
|
393
391
|
<tr>
|
394
392
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
395
|
-
<td>
|
396
|
-
</td>
|
393
|
+
<td>
|
394
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
397
395
|
</tr>
|
398
396
|
</tbody>
|
399
397
|
</table></div>
|
400
398
|
</div>
|
401
399
|
<hr>
|
402
|
-
<div class="refsect2"
|
400
|
+
<div class="refsect2">
|
403
401
|
<a name="G-TYPE-IS-DERIVED:CAPS"></a><h3>G_TYPE_IS_DERIVED()</h3>
|
404
402
|
<pre class="programlisting">#define G_TYPE_IS_DERIVED(type) ((type) > G_TYPE_FUNDAMENTAL_MAX)
|
405
403
|
</pre>
|
@@ -413,19 +411,18 @@ types).
|
|
413
411
|
<tbody>
|
414
412
|
<tr>
|
415
413
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
416
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
417
|
-
</td>
|
414
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
418
415
|
</tr>
|
419
416
|
<tr>
|
420
417
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
421
|
-
<td>
|
422
|
-
</td>
|
418
|
+
<td>
|
419
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
423
420
|
</tr>
|
424
421
|
</tbody>
|
425
422
|
</table></div>
|
426
423
|
</div>
|
427
424
|
<hr>
|
428
|
-
<div class="refsect2"
|
425
|
+
<div class="refsect2">
|
429
426
|
<a name="G-TYPE-IS-FUNDAMENTAL:CAPS"></a><h3>G_TYPE_IS_FUNDAMENTAL()</h3>
|
430
427
|
<pre class="programlisting">#define G_TYPE_IS_FUNDAMENTAL(type) ((type) <= G_TYPE_FUNDAMENTAL_MAX)
|
431
428
|
</pre>
|
@@ -437,19 +434,18 @@ Checks if <em class="parameter"><code>type</code></em> is a fundamental type.
|
|
437
434
|
<tbody>
|
438
435
|
<tr>
|
439
436
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
440
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
441
|
-
</td>
|
437
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
442
438
|
</tr>
|
443
439
|
<tr>
|
444
440
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
445
|
-
<td>
|
446
|
-
</td>
|
441
|
+
<td>
|
442
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
447
443
|
</tr>
|
448
444
|
</tbody>
|
449
445
|
</table></div>
|
450
446
|
</div>
|
451
447
|
<hr>
|
452
|
-
<div class="refsect2"
|
448
|
+
<div class="refsect2">
|
453
449
|
<a name="G-TYPE-IS-VALUE-TYPE:CAPS"></a><h3>G_TYPE_IS_VALUE_TYPE()</h3>
|
454
450
|
<pre class="programlisting">#define G_TYPE_IS_VALUE_TYPE(type) (g_type_check_is_value_type (type))
|
455
451
|
</pre>
|
@@ -461,43 +457,41 @@ Checks if <em class="parameter"><code>type</code></em> is a value type and can b
|
|
461
457
|
<tbody>
|
462
458
|
<tr>
|
463
459
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
464
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
465
|
-
</td>
|
460
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
466
461
|
</tr>
|
467
462
|
<tr>
|
468
463
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
469
|
-
<td>
|
470
|
-
</td>
|
464
|
+
<td>
|
465
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
471
466
|
</tr>
|
472
467
|
</tbody>
|
473
468
|
</table></div>
|
474
469
|
</div>
|
475
470
|
<hr>
|
476
|
-
<div class="refsect2"
|
471
|
+
<div class="refsect2">
|
477
472
|
<a name="G-TYPE-HAS-VALUE-TABLE:CAPS"></a><h3>G_TYPE_HAS_VALUE_TABLE()</h3>
|
478
473
|
<pre class="programlisting">#define G_TYPE_HAS_VALUE_TABLE(type) (g_type_value_table_peek (type) != NULL)
|
479
474
|
</pre>
|
480
475
|
<p>
|
481
|
-
Checks if <em class="parameter"><code>type</code></em> has a <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="type">GTypeValueTable</span></a>.
|
476
|
+
Checks if <em class="parameter"><code>type</code></em> has a <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a>.
|
482
477
|
</p>
|
483
478
|
<div class="variablelist"><table border="0">
|
484
479
|
<col align="left" valign="top">
|
485
480
|
<tbody>
|
486
481
|
<tr>
|
487
482
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
488
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
489
|
-
</td>
|
483
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
490
484
|
</tr>
|
491
485
|
<tr>
|
492
486
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
493
|
-
<td>
|
494
|
-
</td>
|
487
|
+
<td>
|
488
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
495
489
|
</tr>
|
496
490
|
</tbody>
|
497
491
|
</table></div>
|
498
492
|
</div>
|
499
493
|
<hr>
|
500
|
-
<div class="refsect2"
|
494
|
+
<div class="refsect2">
|
501
495
|
<a name="G-TYPE-IS-CLASSED:CAPS"></a><h3>G_TYPE_IS_CLASSED()</h3>
|
502
496
|
<pre class="programlisting">#define G_TYPE_IS_CLASSED(type) (g_type_test_flags ((type), G_TYPE_FLAG_CLASSED))
|
503
497
|
</pre>
|
@@ -509,19 +503,18 @@ Checks if <em class="parameter"><code>type</code></em> is a classed type.
|
|
509
503
|
<tbody>
|
510
504
|
<tr>
|
511
505
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
512
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
513
|
-
</td>
|
506
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
514
507
|
</tr>
|
515
508
|
<tr>
|
516
509
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
517
|
-
<td>
|
518
|
-
</td>
|
510
|
+
<td>
|
511
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
519
512
|
</tr>
|
520
513
|
</tbody>
|
521
514
|
</table></div>
|
522
515
|
</div>
|
523
516
|
<hr>
|
524
|
-
<div class="refsect2"
|
517
|
+
<div class="refsect2">
|
525
518
|
<a name="G-TYPE-IS-INSTANTIATABLE:CAPS"></a><h3>G_TYPE_IS_INSTANTIATABLE()</h3>
|
526
519
|
<pre class="programlisting">#define G_TYPE_IS_INSTANTIATABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_INSTANTIATABLE))
|
527
520
|
</pre>
|
@@ -534,19 +527,18 @@ process of creating an instance (object) of this type.
|
|
534
527
|
<tbody>
|
535
528
|
<tr>
|
536
529
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
537
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
538
|
-
</td>
|
530
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
539
531
|
</tr>
|
540
532
|
<tr>
|
541
533
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
542
|
-
<td>
|
543
|
-
</td>
|
534
|
+
<td>
|
535
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
544
536
|
</tr>
|
545
537
|
</tbody>
|
546
538
|
</table></div>
|
547
539
|
</div>
|
548
540
|
<hr>
|
549
|
-
<div class="refsect2"
|
541
|
+
<div class="refsect2">
|
550
542
|
<a name="G-TYPE-IS-DERIVABLE:CAPS"></a><h3>G_TYPE_IS_DERIVABLE()</h3>
|
551
543
|
<pre class="programlisting">#define G_TYPE_IS_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DERIVABLE))
|
552
544
|
</pre>
|
@@ -559,19 +551,18 @@ be used as the base class of a flat (single-level) class hierarchy.
|
|
559
551
|
<tbody>
|
560
552
|
<tr>
|
561
553
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
562
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
563
|
-
</td>
|
554
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
564
555
|
</tr>
|
565
556
|
<tr>
|
566
557
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
567
|
-
<td>
|
568
|
-
</td>
|
558
|
+
<td>
|
559
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
569
560
|
</tr>
|
570
561
|
</tbody>
|
571
562
|
</table></div>
|
572
563
|
</div>
|
573
564
|
<hr>
|
574
|
-
<div class="refsect2"
|
565
|
+
<div class="refsect2">
|
575
566
|
<a name="G-TYPE-IS-DEEP-DERIVABLE:CAPS"></a><h3>G_TYPE_IS_DEEP_DERIVABLE()</h3>
|
576
567
|
<pre class="programlisting">#define G_TYPE_IS_DEEP_DERIVABLE(type) (g_type_test_flags ((type), G_TYPE_FLAG_DEEP_DERIVABLE))
|
577
568
|
</pre>
|
@@ -584,19 +575,18 @@ can be used as the base class of a deep (multi-level) class hierarchy.
|
|
584
575
|
<tbody>
|
585
576
|
<tr>
|
586
577
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
587
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
588
|
-
</td>
|
578
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
589
579
|
</tr>
|
590
580
|
<tr>
|
591
581
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
592
|
-
<td>
|
593
|
-
</td>
|
582
|
+
<td>
|
583
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
594
584
|
</tr>
|
595
585
|
</tbody>
|
596
586
|
</table></div>
|
597
587
|
</div>
|
598
588
|
<hr>
|
599
|
-
<div class="refsect2"
|
589
|
+
<div class="refsect2">
|
600
590
|
<a name="G-TYPE-IS-INTERFACE:CAPS"></a><h3>G_TYPE_IS_INTERFACE()</h3>
|
601
591
|
<pre class="programlisting">#define G_TYPE_IS_INTERFACE(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_INTERFACE)
|
602
592
|
</pre>
|
@@ -614,51 +604,50 @@ with the difference that GType interfaces are not derivable (but see
|
|
614
604
|
<tbody>
|
615
605
|
<tr>
|
616
606
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
617
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
618
|
-
</td>
|
607
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
619
608
|
</tr>
|
620
609
|
<tr>
|
621
610
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
622
|
-
<td>
|
623
|
-
</td>
|
611
|
+
<td>
|
612
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
624
613
|
</tr>
|
625
614
|
</tbody>
|
626
615
|
</table></div>
|
627
616
|
</div>
|
628
617
|
<hr>
|
629
|
-
<div class="refsect2"
|
630
|
-
<a name="GTypeInterface"></a><h3>GTypeInterface</h3>
|
631
|
-
<pre class="programlisting">
|
632
|
-
}
|
618
|
+
<div class="refsect2">
|
619
|
+
<a name="GTypeInterface"></a><h3>struct GTypeInterface</h3>
|
620
|
+
<pre class="programlisting">struct GTypeInterface {
|
621
|
+
};
|
633
622
|
</pre>
|
634
623
|
<p>
|
635
624
|
An opaque structure used as the base of all interface types.
|
636
625
|
</p>
|
637
626
|
</div>
|
638
627
|
<hr>
|
639
|
-
<div class="refsect2"
|
640
|
-
<a name="GTypeInstance"></a><h3>GTypeInstance</h3>
|
641
|
-
<pre class="programlisting">
|
642
|
-
}
|
628
|
+
<div class="refsect2">
|
629
|
+
<a name="GTypeInstance"></a><h3>struct GTypeInstance</h3>
|
630
|
+
<pre class="programlisting">struct GTypeInstance {
|
631
|
+
};
|
643
632
|
</pre>
|
644
633
|
<p>
|
645
634
|
An opaque structure used as the base of all type instances.
|
646
635
|
</p>
|
647
636
|
</div>
|
648
637
|
<hr>
|
649
|
-
<div class="refsect2"
|
650
|
-
<a name="GTypeClass"></a><h3>GTypeClass</h3>
|
651
|
-
<pre class="programlisting">
|
652
|
-
}
|
638
|
+
<div class="refsect2">
|
639
|
+
<a name="GTypeClass"></a><h3>struct GTypeClass</h3>
|
640
|
+
<pre class="programlisting">struct GTypeClass {
|
641
|
+
};
|
653
642
|
</pre>
|
654
643
|
<p>
|
655
644
|
An opaque structure used as the base of all classes.
|
656
645
|
</p>
|
657
646
|
</div>
|
658
647
|
<hr>
|
659
|
-
<div class="refsect2"
|
660
|
-
<a name="GTypeInfo"></a><h3>GTypeInfo</h3>
|
661
|
-
<pre class="programlisting">
|
648
|
+
<div class="refsect2">
|
649
|
+
<a name="GTypeInfo"></a><h3>struct GTypeInfo</h3>
|
650
|
+
<pre class="programlisting">struct GTypeInfo {
|
662
651
|
/* interface types, classed types, instantiated types */
|
663
652
|
guint16 class_size;
|
664
653
|
|
@@ -677,14 +666,14 @@ An opaque structure used as the base of all classes.
|
|
677
666
|
|
678
667
|
/* value handling */
|
679
668
|
const GTypeValueTable *value_table;
|
680
|
-
}
|
669
|
+
};
|
681
670
|
</pre>
|
682
671
|
<p>
|
683
672
|
This structure is used to provide the type system with the information
|
684
673
|
required to initialize and destruct (finalize) a type's class and
|
685
674
|
its instances.
|
686
675
|
The initialized structure is passed to the <a class="link" href="gobject-Type-Information.html#g-type-register-static" title="g_type_register_static ()"><code class="function">g_type_register_static()</code></a> function
|
687
|
-
(or is copied into the provided <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure in the
|
676
|
+
(or is copied into the provided <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure in the
|
688
677
|
<a class="link" href="GTypePlugin.html#g-type-plugin-complete-type-info" title="g_type_plugin_complete_type_info ()"><code class="function">g_type_plugin_complete_type_info()</code></a>). The type system will perform a deep
|
689
678
|
copy of this structure, so its memory does not need to be persistent
|
690
679
|
across invocation of <a class="link" href="gobject-Type-Information.html#g-type-register-static" title="g_type_register_static ()"><code class="function">g_type_register_static()</code></a>.
|
@@ -694,71 +683,61 @@ across invocation of <a class="link" href="gobject-Type-Information.html#g-type-
|
|
694
683
|
<tbody>
|
695
684
|
<tr>
|
696
685
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GTypeInfo.class-size"></a>class_size</code></em>;</span></p></td>
|
697
|
-
<td>Size of the class structure (required for interface, classed and instantiatable types)
|
698
|
-
</td>
|
686
|
+
<td>Size of the class structure (required for interface, classed and instantiatable types).</td>
|
699
687
|
</tr>
|
700
688
|
<tr>
|
701
689
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GBaseInitFunc" title="GBaseInitFunc ()"><span class="type">GBaseInitFunc</span></a> <em class="structfield"><code><a name="GTypeInfo.base-init"></a>base_init</code></em>;</span></p></td>
|
702
|
-
<td>Location of the base initialization function (optional)
|
703
|
-
</td>
|
690
|
+
<td>Location of the base initialization function (optional).</td>
|
704
691
|
</tr>
|
705
692
|
<tr>
|
706
693
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GBaseFinalizeFunc" title="GBaseFinalizeFunc ()"><span class="type">GBaseFinalizeFunc</span></a> <em class="structfield"><code><a name="GTypeInfo.base-finalize"></a>base_finalize</code></em>;</span></p></td>
|
707
|
-
<td>Location of the base finalization function (optional)
|
708
|
-
</td>
|
694
|
+
<td>Location of the base finalization function (optional).</td>
|
709
695
|
</tr>
|
710
696
|
<tr>
|
711
697
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GClassInitFunc" title="GClassInitFunc ()"><span class="type">GClassInitFunc</span></a> <em class="structfield"><code><a name="GTypeInfo.class-init"></a>class_init</code></em>;</span></p></td>
|
712
698
|
<td>Location of the class initialization function for
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
</td>
|
699
|
+
classed and instantiatable types. Location of the default vtable
|
700
|
+
inititalization function for interface types. (optional) This function
|
701
|
+
is used both to fill in virtual functions in the class or default vtable,
|
702
|
+
and to do type-specific setup such as registering signals and object
|
703
|
+
properties.</td>
|
719
704
|
</tr>
|
720
705
|
<tr>
|
721
706
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GClassFinalizeFunc" title="GClassFinalizeFunc ()"><span class="type">GClassFinalizeFunc</span></a> <em class="structfield"><code><a name="GTypeInfo.class-finalize"></a>class_finalize</code></em>;</span></p></td>
|
722
707
|
<td>Location of the class finalization function for
|
723
|
-
|
724
|
-
|
725
|
-
</td>
|
708
|
+
classed and instantiatable types. Location fo the default vtable
|
709
|
+
finalization function for interface types. (optional)</td>
|
726
710
|
</tr>
|
727
711
|
<tr>
|
728
712
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> <em class="structfield"><code><a name="GTypeInfo.class-data"></a>class_data</code></em>;</span></p></td>
|
729
|
-
<td>User-supplied data passed to the class init/finalize functions
|
730
|
-
</td>
|
713
|
+
<td>User-supplied data passed to the class init/finalize functions.</td>
|
731
714
|
</tr>
|
732
715
|
<tr>
|
733
716
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GTypeInfo.instance-size"></a>instance_size</code></em>;</span></p></td>
|
734
|
-
<td>Size of the instance (object) structure (required for instantiatable types only)
|
735
|
-
</td>
|
717
|
+
<td>Size of the instance (object) structure (required for instantiatable types only).</td>
|
736
718
|
</tr>
|
737
719
|
<tr>
|
738
720
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code><a name="GTypeInfo.n-preallocs"></a>n_preallocs</code></em>;</span></p></td>
|
739
|
-
<td>Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the <a href="./../glib/glib/glib-Memory-Slices.html">slice allocator</a> now
|
740
|
-
</td>
|
721
|
+
<td>Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the <a href="./../glib/glib/glib-Memory-Slices.html">slice allocator</a> now.</td>
|
741
722
|
</tr>
|
742
723
|
<tr>
|
743
724
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GInstanceInitFunc" title="GInstanceInitFunc ()"><span class="type">GInstanceInitFunc</span></a> <em class="structfield"><code><a name="GTypeInfo.instance-init"></a>instance_init</code></em>;</span></p></td>
|
744
|
-
<td>Location of the instance initialization function (optional, for instantiatable types only)
|
745
|
-
</td>
|
725
|
+
<td>Location of the instance initialization function (optional, for instantiatable types only).</td>
|
746
726
|
</tr>
|
747
727
|
<tr>
|
748
|
-
<td><p><span class="term">const <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="type">GTypeValueTable</span></a> *<em class="structfield"><code><a name="GTypeInfo.value-table"></a>value_table</code></em>;</span></p></td>
|
749
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="type">GTypeValueTable</span></a> function table for generic handling of GValues of this type (usually only
|
750
|
-
|
751
|
-
</td>
|
728
|
+
<td><p><span class="term">const <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> *<em class="structfield"><code><a name="GTypeInfo.value-table"></a>value_table</code></em>;</span></p></td>
|
729
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> function table for generic handling of GValues of this type (usually only
|
730
|
+
useful for fundamental types).</td>
|
752
731
|
</tr>
|
753
732
|
</tbody>
|
754
733
|
</table></div>
|
755
734
|
</div>
|
756
735
|
<hr>
|
757
|
-
<div class="refsect2"
|
758
|
-
<a name="GTypeFundamentalInfo"></a><h3>GTypeFundamentalInfo</h3>
|
759
|
-
<pre class="programlisting">
|
736
|
+
<div class="refsect2">
|
737
|
+
<a name="GTypeFundamentalInfo"></a><h3>struct GTypeFundamentalInfo</h3>
|
738
|
+
<pre class="programlisting">struct GTypeFundamentalInfo {
|
760
739
|
GTypeFundamentalFlags type_flags;
|
761
|
-
}
|
740
|
+
};
|
762
741
|
</pre>
|
763
742
|
<p>
|
764
743
|
A structure that provides information to the type system which is
|
@@ -769,19 +748,18 @@ used specifically for managing fundamental types.
|
|
769
748
|
<tbody><tr>
|
770
749
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GTypeFundamentalFlags" title="enum GTypeFundamentalFlags"><span class="type">GTypeFundamentalFlags</span></a> <em class="structfield"><code><a name="GTypeFundamentalInfo.type-flags"></a>type_flags</code></em>;</span></p></td>
|
771
750
|
<td>
|
772
|
-
<a class="link" href="gobject-Type-Information.html#GTypeFundamentalFlags" title="enum GTypeFundamentalFlags"><span class="type">GTypeFundamentalFlags</span></a> describing the characteristics of the fundamental type
|
773
|
-
</td>
|
751
|
+
<a class="link" href="gobject-Type-Information.html#GTypeFundamentalFlags" title="enum GTypeFundamentalFlags"><span class="type">GTypeFundamentalFlags</span></a> describing the characteristics of the fundamental type</td>
|
774
752
|
</tr></tbody>
|
775
753
|
</table></div>
|
776
754
|
</div>
|
777
755
|
<hr>
|
778
|
-
<div class="refsect2"
|
779
|
-
<a name="GInterfaceInfo"></a><h3>GInterfaceInfo</h3>
|
780
|
-
<pre class="programlisting">
|
756
|
+
<div class="refsect2">
|
757
|
+
<a name="GInterfaceInfo"></a><h3>struct GInterfaceInfo</h3>
|
758
|
+
<pre class="programlisting">struct GInterfaceInfo {
|
781
759
|
GInterfaceInitFunc interface_init;
|
782
760
|
GInterfaceFinalizeFunc interface_finalize;
|
783
761
|
gpointer interface_data;
|
784
|
-
}
|
762
|
+
};
|
785
763
|
</pre>
|
786
764
|
<p>
|
787
765
|
A structure that provides information to the type system which is
|
@@ -792,26 +770,23 @@ used specifically for managing interface types.
|
|
792
770
|
<tbody>
|
793
771
|
<tr>
|
794
772
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GInterfaceInitFunc" title="GInterfaceInitFunc ()"><span class="type">GInterfaceInitFunc</span></a> <em class="structfield"><code><a name="GInterfaceInfo.interface-init"></a>interface_init</code></em>;</span></p></td>
|
795
|
-
<td>location of the interface initialization function
|
796
|
-
</td>
|
773
|
+
<td>location of the interface initialization function</td>
|
797
774
|
</tr>
|
798
775
|
<tr>
|
799
776
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GInterfaceFinalizeFunc" title="GInterfaceFinalizeFunc ()"><span class="type">GInterfaceFinalizeFunc</span></a> <em class="structfield"><code><a name="GInterfaceInfo.interface-finalize"></a>interface_finalize</code></em>;</span></p></td>
|
800
|
-
<td>location of the interface finalization function
|
801
|
-
</td>
|
777
|
+
<td>location of the interface finalization function</td>
|
802
778
|
</tr>
|
803
779
|
<tr>
|
804
780
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> <em class="structfield"><code><a name="GInterfaceInfo.interface-data"></a>interface_data</code></em>;</span></p></td>
|
805
|
-
<td>user-supplied data passed to the interface init/finalize functions
|
806
|
-
</td>
|
781
|
+
<td>user-supplied data passed to the interface init/finalize functions</td>
|
807
782
|
</tr>
|
808
783
|
</tbody>
|
809
784
|
</table></div>
|
810
785
|
</div>
|
811
786
|
<hr>
|
812
|
-
<div class="refsect2"
|
813
|
-
<a name="GTypeValueTable"></a><h3>GTypeValueTable</h3>
|
814
|
-
<pre class="programlisting">
|
787
|
+
<div class="refsect2">
|
788
|
+
<a name="GTypeValueTable"></a><h3>struct GTypeValueTable</h3>
|
789
|
+
<pre class="programlisting">struct GTypeValueTable {
|
815
790
|
void (*value_init) (GValue *value);
|
816
791
|
void (*value_free) (GValue *value);
|
817
792
|
void (*value_copy) (const GValue *src_value,
|
@@ -828,10 +803,10 @@ used specifically for managing interface types.
|
|
828
803
|
guint n_collect_values,
|
829
804
|
GTypeCValue *collect_values,
|
830
805
|
guint collect_flags);
|
831
|
-
}
|
806
|
+
};
|
832
807
|
</pre>
|
833
808
|
<p>
|
834
|
-
The <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="type">GTypeValueTable</span></a> provides the functions required by the <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> implementation,
|
809
|
+
The <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> provides the functions required by the <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> implementation,
|
835
810
|
to serve as a container for values of a type.
|
836
811
|
</p>
|
837
812
|
<div class="variablelist"><table border="0">
|
@@ -840,14 +815,14 @@ to serve as a container for values of a type.
|
|
840
815
|
<tr>
|
841
816
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.value-init"></a>value_init</code></em> ()</span></p></td>
|
842
817
|
<td>Default initialize <em class="parameter"><code>values</code></em> contents by poking values
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
818
|
+
directly into the value->data array. The data array of
|
819
|
+
the <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> passed into this function was zero-filled
|
820
|
+
with <code class="function"><code class="function">memset()</code></code>, so no care has to
|
821
|
+
be taken to free any
|
822
|
+
old contents. E.g. for the implementation of a string
|
823
|
+
value that may never be <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the implementation might
|
824
|
+
look like:
|
825
|
+
<div class="informalexample">
|
851
826
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
852
827
|
<tbody>
|
853
828
|
<tr>
|
@@ -863,10 +838,10 @@ to serve as a container for values of a type.
|
|
863
838
|
<tr>
|
864
839
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.value-free"></a>value_free</code></em> ()</span></p></td>
|
865
840
|
<td>Free any old contents that might be left in the
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
841
|
+
data array of the passed in <em class="parameter"><code>value</code></em>. No resources may
|
842
|
+
remain allocated through the <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> contents after
|
843
|
+
this function returns. E.g. for our above string type:
|
844
|
+
<div class="informalexample">
|
870
845
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
871
846
|
<tbody>
|
872
847
|
<tr>
|
@@ -875,7 +850,7 @@ to serve as a container for values of a type.
|
|
875
850
|
3</pre></td>
|
876
851
|
<td class="listing_code"><pre class="programlisting"><span class="comment">// only free strings without a specific flag for static storage</span>
|
877
852
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!(</span><span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">].</span><span class="normal">v_uint </span><span class="symbol">&</span><span class="normal"> G_VALUE_NOCOPY_CONTENTS</span><span class="symbol">))</span>
|
878
|
-
<span class="
|
853
|
+
<span class="function"><a href="./../glib/glib/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">);</span></pre></td>
|
879
854
|
</tr>
|
880
855
|
</tbody>
|
881
856
|
</table>
|
@@ -887,13 +862,13 @@ to serve as a container for values of a type.
|
|
887
862
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.value-copy"></a>value_copy</code></em> ()</span></p></td>
|
888
863
|
<td>
|
889
864
|
<em class="parameter"><code>dest_value</code></em> is a <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> with zero-filled data section
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
865
|
+
and <em class="parameter"><code>src_value</code></em> is a properly setup <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> of same or
|
866
|
+
derived type.
|
867
|
+
The purpose of this function is to copy the contents of
|
868
|
+
<em class="parameter"><code>src_value</code></em> into <em class="parameter"><code>dest_value</code></em> in a way, that even after
|
869
|
+
<em class="parameter"><code>src_value</code></em> has been freed, the contents of <em class="parameter"><code>dest_value</code></em>
|
870
|
+
remain valid. String type example:
|
871
|
+
<div class="informalexample">
|
897
872
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
898
873
|
<tbody>
|
899
874
|
<tr>
|
@@ -909,9 +884,9 @@ to serve as a container for values of a type.
|
|
909
884
|
<tr>
|
910
885
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.value-peek-pointer"></a>value_peek_pointer</code></em> ()</span></p></td>
|
911
886
|
<td>If the value contents fit into a pointer, such as objects
|
912
|
-
|
913
|
-
|
914
|
-
|
887
|
+
or strings, return this pointer, so the caller can peek at
|
888
|
+
the current contents. To extend on our above string example:
|
889
|
+
<div class="informalexample">
|
915
890
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
916
891
|
<tbody>
|
917
892
|
<tr>
|
@@ -927,67 +902,66 @@ to serve as a container for values of a type.
|
|
927
902
|
<tr>
|
928
903
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GTypeValueTable.collect-format"></a>collect_format</code></em>;</span></p></td>
|
929
904
|
<td>A string format describing how to collect the contents of
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
905
|
+
this value bit-by-bit. Each character in the format represents
|
906
|
+
an argument to be collected, and the characters themselves indicate
|
907
|
+
the type of the argument. Currently supported arguments are:
|
908
|
+
<div class="variablelist"><table border="0">
|
934
909
|
<col align="left" valign="top">
|
935
910
|
<tbody>
|
936
911
|
<tr>
|
937
912
|
<td><p><span class="term"></span></p></td>
|
938
913
|
<td><p>
|
939
|
-
|
940
|
-
|
914
|
+
'i' - Integers. passed as collect_values[].v_int.
|
915
|
+
</p></td>
|
941
916
|
</tr>
|
942
917
|
<tr>
|
943
918
|
<td><p><span class="term"></span></p></td>
|
944
919
|
<td><p>
|
945
|
-
|
946
|
-
|
920
|
+
'l' - Longs. passed as collect_values[].v_long.
|
921
|
+
</p></td>
|
947
922
|
</tr>
|
948
923
|
<tr>
|
949
924
|
<td><p><span class="term"></span></p></td>
|
950
925
|
<td><p>
|
951
|
-
|
952
|
-
|
926
|
+
'd' - Doubles. passed as collect_values[].v_double.
|
927
|
+
</p></td>
|
953
928
|
</tr>
|
954
929
|
<tr>
|
955
930
|
<td><p><span class="term"></span></p></td>
|
956
931
|
<td><p>
|
957
|
-
|
958
|
-
|
932
|
+
'p' - Pointers. passed as collect_values[].v_pointer.
|
933
|
+
</p></td>
|
959
934
|
</tr>
|
960
935
|
</tbody>
|
961
936
|
</table></div>
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
</td>
|
937
|
+
It should be noted that for variable argument list construction,
|
938
|
+
ANSI C promotes every type smaller than an integer to an int, and
|
939
|
+
floats to doubles. So for collection of short int or char, 'i'
|
940
|
+
needs to be used, and for collection of floats 'd'.</td>
|
967
941
|
</tr>
|
968
942
|
<tr>
|
969
943
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.collect-value"></a>collect_value</code></em> ()</span></p></td>
|
970
944
|
<td>The <code class="function">collect_value()</code> function is responsible for converting the
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
945
|
+
values collected from a variable argument list into contents
|
946
|
+
suitable for storage in a GValue. This function should setup
|
947
|
+
<em class="parameter"><code>value</code></em> similar to <code class="function">value_init()</code>; e.g. for a string value that
|
948
|
+
does not allow <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointers, it needs to either spew an error,
|
949
|
+
or do an implicit conversion by storing an empty string.
|
950
|
+
The <em class="parameter"><code>value</code></em> passed in to this function has a zero-filled data
|
951
|
+
array, so just like for <code class="function">value_init()</code> it is guaranteed to not
|
952
|
+
contain any old contents that might need freeing.
|
953
|
+
<em class="parameter"><code>n_collect_values</code></em> is exactly the string length of <em class="parameter"><code>collect_format</code></em>,
|
954
|
+
and <em class="parameter"><code>collect_values</code></em> is an array of unions <a class="link" href="gobject-Varargs-Value-Collection.html#GTypeCValue" title="union GTypeCValue"><span class="type">GTypeCValue</span></a> with
|
955
|
+
length <em class="parameter"><code>n_collect_values</code></em>, containing the collected values
|
956
|
+
according to <em class="parameter"><code>collect_format</code></em>.
|
957
|
+
<em class="parameter"><code>collect_flags</code></em> is an argument provided as a hint by the caller.
|
958
|
+
It may contain the flag <code class="literal">G_VALUE_NOCOPY_CONTENTS</code> indicating,
|
959
|
+
that the collected value contents may be considered "static"
|
960
|
+
for the duration of the <em class="parameter"><code>value</code></em> lifetime.
|
961
|
+
Thus an extra copy of the contents stored in <em class="parameter"><code>collect_values</code></em> is
|
962
|
+
not required for assignment to <em class="parameter"><code>value</code></em>.
|
963
|
+
For our above string example, we continue with:
|
964
|
+
<div class="informalexample">
|
991
965
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
992
966
|
<tbody>
|
993
967
|
<tr>
|
@@ -1003,29 +977,29 @@ to serve as a container for values of a type.
|
|
1003
977
|
10
|
1004
978
|
11</pre></td>
|
1005
979
|
<td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">)</span>
|
1006
|
-
<span class="normal">
|
980
|
+
<span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">""</span><span class="symbol">);</span>
|
1007
981
|
<span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_flags </span><span class="symbol">&</span><span class="normal"> G_VALUE_NOCOPY_CONTENTS</span><span class="symbol">)</span>
|
1008
982
|
<span class="cbracket">{</span>
|
1009
|
-
<span class="normal">
|
1010
|
-
<span class="
|
1011
|
-
<span class="normal">
|
983
|
+
<span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer </span><span class="symbol">=</span><span class="normal"> collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">;</span>
|
984
|
+
<span class="comment">// keep a flag for the value_free() implementation to not free this string</span>
|
985
|
+
<span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">].</span><span class="normal">v_uint </span><span class="symbol">=</span><span class="normal"> G_VALUE_NOCOPY_CONTENTS</span><span class="symbol">;</span>
|
1012
986
|
<span class="cbracket">}</span>
|
1013
987
|
<span class="keyword">else</span>
|
1014
|
-
<span class="normal">
|
988
|
+
<span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">);</span>
|
1015
989
|
<span class="keyword">return</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span></pre></td>
|
1016
990
|
</tr>
|
1017
991
|
</tbody>
|
1018
992
|
</table>
|
1019
993
|
</div>
|
1020
994
|
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
995
|
+
It should be noted, that it is generally a bad idea to follow the
|
996
|
+
<span class="type">G_VALUE_NOCOPY_CONTENTS</span> hint for reference counted types. Due to
|
997
|
+
reentrancy requirements and reference count assertions performed
|
998
|
+
by the <span class="type">GSignal</span> code, reference counts should always be incremented
|
999
|
+
for reference counted contents stored in the value->data array.
|
1000
|
+
To deviate from our string example for a moment, and taking a look
|
1001
|
+
at an exemplary implementation for <code class="function">collect_value()</code> of <a class="link" href="gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>:
|
1002
|
+
<div class="informalexample">
|
1029
1003
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
1030
1004
|
<tbody>
|
1031
1005
|
<tr>
|
@@ -1041,56 +1015,54 @@ to serve as a container for values of a type.
|
|
1041
1015
|
10</pre></td>
|
1042
1016
|
<td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">)</span>
|
1043
1017
|
<span class="cbracket">{</span>
|
1044
|
-
<span class="
|
1045
|
-
<span class="
|
1046
|
-
<span class="normal">
|
1047
|
-
<span class="
|
1018
|
+
<span class="usertype">GObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">object </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">);</span>
|
1019
|
+
<span class="comment">// never honour G_VALUE_NOCOPY_CONTENTS for ref-counted types</span>
|
1020
|
+
<span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gobject-The-Base-Object-Type.html#g-object-ref">g_object_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
1021
|
+
<span class="keyword">return</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1048
1022
|
<span class="cbracket">}</span>
|
1049
1023
|
<span class="keyword">else</span>
|
1050
|
-
<span class="
|
1024
|
+
<span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Object passed as invalid NULL pointer"</span><span class="symbol">);</span>
|
1051
1025
|
<span class="cbracket">}</span></pre></td>
|
1052
1026
|
</tr>
|
1053
1027
|
</tbody>
|
1054
1028
|
</table>
|
1055
1029
|
</div>
|
1056
1030
|
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
</td>
|
1031
|
+
The reference count for valid objects is always incremented,
|
1032
|
+
regardless of <em class="parameter"><code>collect_flags</code></em>. For invalid objects, the example
|
1033
|
+
returns a newly allocated string without altering <em class="parameter"><code>value</code></em>.
|
1034
|
+
Upon success, <code class="function">collect_value()</code> needs to return <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If, however,
|
1035
|
+
an error condition occurred, <code class="function">collect_value()</code> may spew an
|
1036
|
+
error by returning a newly allocated non-<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> string, giving
|
1037
|
+
a suitable description of the error condition.
|
1038
|
+
The calling code makes no assumptions about the <em class="parameter"><code>value</code></em>
|
1039
|
+
contents being valid upon error returns, <em class="parameter"><code>value</code></em>
|
1040
|
+
is simply thrown away without further freeing. As such, it is
|
1041
|
+
a good idea to not allocate <a class="link" href="gobject-Generic-values.html#GValue" title="GValue"><span class="type">GValue</span></a> contents, prior to returning
|
1042
|
+
an error, however, <code class="function">collect_values()</code> is not obliged to return
|
1043
|
+
a correctly setup <em class="parameter"><code>value</code></em> for error returns, simply because
|
1044
|
+
any non-<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> return is considered a fatal condition so further
|
1045
|
+
program behaviour is undefined.</td>
|
1073
1046
|
</tr>
|
1074
1047
|
<tr>
|
1075
1048
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GTypeValueTable.lcopy-format"></a>lcopy_format</code></em>;</span></p></td>
|
1076
1049
|
<td>Format description of the arguments to collect for <em class="parameter"><code>lcopy_value</code></em>,
|
1077
|
-
|
1078
|
-
|
1079
|
-
</td>
|
1050
|
+
analogous to <em class="parameter"><code>collect_format</code></em>. Usually, <em class="parameter"><code>lcopy_format</code></em> string consists
|
1051
|
+
only of 'p's to provide <code class="function">lcopy_value()</code> with pointers to storage locations.</td>
|
1080
1052
|
</tr>
|
1081
1053
|
<tr>
|
1082
1054
|
<td><p><span class="term"><em class="structfield"><code><a name="GTypeValueTable.lcopy-value"></a>lcopy_value</code></em> ()</span></p></td>
|
1083
1055
|
<td>This function is responsible for storing the <em class="parameter"><code>value</code></em> contents into
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1056
|
+
arguments passed through a variable argument list which got
|
1057
|
+
collected into <em class="parameter"><code>collect_values</code></em> according to <em class="parameter"><code>lcopy_format</code></em>.
|
1058
|
+
<em class="parameter"><code>n_collect_values</code></em> equals the string length of <em class="parameter"><code>lcopy_format</code></em>,
|
1059
|
+
and <em class="parameter"><code>collect_flags</code></em> may contain <code class="literal">G_VALUE_NOCOPY_CONTENTS</code>.
|
1060
|
+
In contrast to <code class="function">collect_value()</code>, <code class="function">lcopy_value()</code> is obliged to
|
1061
|
+
always properly support <code class="literal">G_VALUE_NOCOPY_CONTENTS</code>.
|
1062
|
+
Similar to <code class="function">collect_value()</code> the function may prematurely abort
|
1063
|
+
by returning a newly allocated string describing an error condition.
|
1064
|
+
To complete the string example:
|
1065
|
+
<div class="informalexample">
|
1094
1066
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
1095
1067
|
<tbody>
|
1096
1068
|
<tr>
|
@@ -1103,19 +1075,19 @@ to serve as a container for values of a type.
|
|
1103
1075
|
7</pre></td>
|
1104
1076
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">string_p </span><span class="symbol">=</span><span class="normal"> collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">;</span>
|
1105
1077
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">string_p</span><span class="symbol">)</span>
|
1106
|
-
<span class="
|
1078
|
+
<span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"string location passed as NULL"</span><span class="symbol">);</span>
|
1107
1079
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_flags </span><span class="symbol">&</span><span class="normal"> G_VALUE_NOCOPY_CONTENTS</span><span class="symbol">)</span>
|
1108
|
-
<span class="
|
1080
|
+
<span class="symbol">*</span><span class="normal">string_p </span><span class="symbol">=</span><span class="normal"> value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">;</span>
|
1109
1081
|
<span class="keyword">else</span>
|
1110
|
-
<span class="
|
1082
|
+
<span class="symbol">*</span><span class="normal">string_p </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup">g_strdup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">);</span></pre></td>
|
1111
1083
|
</tr>
|
1112
1084
|
</tbody>
|
1113
1085
|
</table>
|
1114
1086
|
</div>
|
1115
1087
|
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1088
|
+
And an illustrative version of <code class="function">lcopy_value()</code> for
|
1089
|
+
reference-counted types:
|
1090
|
+
<div class="informalexample">
|
1119
1091
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
1120
1092
|
<tbody>
|
1121
1093
|
<tr>
|
@@ -1131,13 +1103,13 @@ to serve as a container for values of a type.
|
|
1131
1103
|
10</pre></td>
|
1132
1104
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GObject</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">object_p </span><span class="symbol">=</span><span class="normal"> collect_values</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">;</span>
|
1133
1105
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">object_p</span><span class="symbol">)</span>
|
1134
|
-
<span class="
|
1106
|
+
<span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="./../glib/glib/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"object location passed as NULL"</span><span class="symbol">);</span>
|
1135
1107
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">)</span>
|
1136
|
-
<span class="
|
1108
|
+
<span class="symbol">*</span><span class="normal">object_p </span><span class="symbol">=</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
1137
1109
|
<span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">collect_flags </span><span class="symbol">&</span><span class="normal"> G_VALUE_NOCOPY_CONTENTS</span><span class="symbol">)</span><span class="normal"> </span><span class="comment">// always honour</span>
|
1138
|
-
<span class="
|
1110
|
+
<span class="symbol">*</span><span class="normal">object_p </span><span class="symbol">=</span><span class="normal"> value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">;</span>
|
1139
1111
|
<span class="keyword">else</span>
|
1140
|
-
<span class="
|
1112
|
+
<span class="symbol">*</span><span class="normal">object_p </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gobject-The-Base-Object-Type.html#g-object-ref">g_object_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">].</span><span class="normal">v_pointer</span><span class="symbol">);</span>
|
1141
1113
|
<span class="keyword">return</span><span class="normal"> <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span></pre></td>
|
1142
1114
|
</tr>
|
1143
1115
|
</tbody>
|
@@ -1150,7 +1122,7 @@ to serve as a container for values of a type.
|
|
1150
1122
|
</table></div>
|
1151
1123
|
</div>
|
1152
1124
|
<hr>
|
1153
|
-
<div class="refsect2"
|
1125
|
+
<div class="refsect2">
|
1154
1126
|
<a name="G-TYPE-FROM-INSTANCE:CAPS"></a><h3>G_TYPE_FROM_INSTANCE()</h3>
|
1155
1127
|
<pre class="programlisting">#define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*) (instance))->g_class))
|
1156
1128
|
</pre>
|
@@ -1165,19 +1137,18 @@ This macro should only be used in type implementations.
|
|
1165
1137
|
<tbody>
|
1166
1138
|
<tr>
|
1167
1139
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1168
|
-
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1169
|
-
</td>
|
1140
|
+
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1170
1141
|
</tr>
|
1171
1142
|
<tr>
|
1172
1143
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1173
|
-
<td>
|
1144
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a>
|
1174
1145
|
</td>
|
1175
1146
|
</tr>
|
1176
1147
|
</tbody>
|
1177
1148
|
</table></div>
|
1178
1149
|
</div>
|
1179
1150
|
<hr>
|
1180
|
-
<div class="refsect2"
|
1151
|
+
<div class="refsect2">
|
1181
1152
|
<a name="G-TYPE-FROM-CLASS:CAPS"></a><h3>G_TYPE_FROM_CLASS()</h3>
|
1182
1153
|
<pre class="programlisting">#define G_TYPE_FROM_CLASS(g_class) (((GTypeClass*) (g_class))->g_type)
|
1183
1154
|
</pre>
|
@@ -1192,19 +1163,18 @@ This macro should only be used in type implementations.
|
|
1192
1163
|
<tbody>
|
1193
1164
|
<tr>
|
1194
1165
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
1195
|
-
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure
|
1196
|
-
</td>
|
1166
|
+
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure.</td>
|
1197
1167
|
</tr>
|
1198
1168
|
<tr>
|
1199
1169
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1200
|
-
<td>
|
1170
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a>
|
1201
1171
|
</td>
|
1202
1172
|
</tr>
|
1203
1173
|
</tbody>
|
1204
1174
|
</table></div>
|
1205
1175
|
</div>
|
1206
1176
|
<hr>
|
1207
|
-
<div class="refsect2"
|
1177
|
+
<div class="refsect2">
|
1208
1178
|
<a name="G-TYPE-FROM-INTERFACE:CAPS"></a><h3>G_TYPE_FROM_INTERFACE()</h3>
|
1209
1179
|
<pre class="programlisting">#define G_TYPE_FROM_INTERFACE(g_iface) (((GTypeInterface*) (g_iface))->g_type)
|
1210
1180
|
</pre>
|
@@ -1219,19 +1189,18 @@ This macro should only be used in type implementations.
|
|
1219
1189
|
<tbody>
|
1220
1190
|
<tr>
|
1221
1191
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
1222
|
-
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> structure
|
1223
|
-
</td>
|
1192
|
+
<td>Location of a valid <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> structure.</td>
|
1224
1193
|
</tr>
|
1225
1194
|
<tr>
|
1226
1195
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1227
|
-
<td>
|
1196
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a>
|
1228
1197
|
</td>
|
1229
1198
|
</tr>
|
1230
1199
|
</tbody>
|
1231
1200
|
</table></div>
|
1232
1201
|
</div>
|
1233
1202
|
<hr>
|
1234
|
-
<div class="refsect2"
|
1203
|
+
<div class="refsect2">
|
1235
1204
|
<a name="G-TYPE-INSTANCE-GET-CLASS:CAPS"></a><h3>G_TYPE_INSTANCE_GET_CLASS()</h3>
|
1236
1205
|
<pre class="programlisting">#define G_TYPE_INSTANCE_GET_CLASS(instance, g_type, c_type) (_G_TYPE_IGC ((instance), (g_type), c_type))
|
1237
1206
|
</pre>
|
@@ -1251,29 +1220,25 @@ This macro should only be used in type implementations.
|
|
1251
1220
|
<tbody>
|
1252
1221
|
<tr>
|
1253
1222
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1254
|
-
<td>Location of the <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1255
|
-
</td>
|
1223
|
+
<td>Location of the <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1256
1224
|
</tr>
|
1257
1225
|
<tr>
|
1258
1226
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1259
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the class to be returned
|
1260
|
-
</td>
|
1227
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the class to be returned.</td>
|
1261
1228
|
</tr>
|
1262
1229
|
<tr>
|
1263
1230
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1264
|
-
<td>The C type of the class structure
|
1265
|
-
</td>
|
1231
|
+
<td>The C type of the class structure.</td>
|
1266
1232
|
</tr>
|
1267
1233
|
<tr>
|
1268
1234
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1269
|
-
<td>
|
1270
|
-
</td>
|
1235
|
+
<td>a pointer to the class structure</td>
|
1271
1236
|
</tr>
|
1272
1237
|
</tbody>
|
1273
1238
|
</table></div>
|
1274
1239
|
</div>
|
1275
1240
|
<hr>
|
1276
|
-
<div class="refsect2"
|
1241
|
+
<div class="refsect2">
|
1277
1242
|
<a name="G-TYPE-INSTANCE-GET-INTERFACE:CAPS"></a><h3>G_TYPE_INSTANCE_GET_INTERFACE()</h3>
|
1278
1243
|
<pre class="programlisting">#define G_TYPE_INSTANCE_GET_INTERFACE(instance, g_type, c_type) (_G_TYPE_IGI ((instance), (g_type), c_type))
|
1279
1244
|
</pre>
|
@@ -1288,29 +1253,25 @@ This macro should only be used in type implementations.
|
|
1288
1253
|
<tbody>
|
1289
1254
|
<tr>
|
1290
1255
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1291
|
-
<td>Location of the <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1292
|
-
</td>
|
1256
|
+
<td>Location of the <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1293
1257
|
</tr>
|
1294
1258
|
<tr>
|
1295
1259
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1296
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface to be returned
|
1297
|
-
</td>
|
1260
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface to be returned.</td>
|
1298
1261
|
</tr>
|
1299
1262
|
<tr>
|
1300
1263
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1301
|
-
<td>The C type of the interface structure
|
1302
|
-
</td>
|
1264
|
+
<td>The C type of the interface structure.</td>
|
1303
1265
|
</tr>
|
1304
1266
|
<tr>
|
1305
1267
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1306
|
-
<td>
|
1307
|
-
</td>
|
1268
|
+
<td>a pointer to the interface structure</td>
|
1308
1269
|
</tr>
|
1309
1270
|
</tbody>
|
1310
1271
|
</table></div>
|
1311
1272
|
</div>
|
1312
1273
|
<hr>
|
1313
|
-
<div class="refsect2"
|
1274
|
+
<div class="refsect2">
|
1314
1275
|
<a name="G-TYPE-INSTANCE-GET-PRIVATE:CAPS"></a><h3>G_TYPE_INSTANCE_GET_PRIVATE()</h3>
|
1315
1276
|
<pre class="programlisting">#define G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type) ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type)))
|
1316
1277
|
</pre>
|
@@ -1327,30 +1288,26 @@ This macro should only be used in type implementations.
|
|
1327
1288
|
<tbody>
|
1328
1289
|
<tr>
|
1329
1290
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1330
|
-
<td>the instance of a type deriving from <em class="parameter"><code>private_type</code></em
|
1331
|
-
</td>
|
1291
|
+
<td>the instance of a type deriving from <em class="parameter"><code>private_type</code></em>.</td>
|
1332
1292
|
</tr>
|
1333
1293
|
<tr>
|
1334
1294
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1335
|
-
<td>the type identifying which private data to retrieve
|
1336
|
-
</td>
|
1295
|
+
<td>the type identifying which private data to retrieve.</td>
|
1337
1296
|
</tr>
|
1338
1297
|
<tr>
|
1339
1298
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1340
|
-
<td>The C type for the private structure
|
1341
|
-
</td>
|
1299
|
+
<td>The C type for the private structure.</td>
|
1342
1300
|
</tr>
|
1343
1301
|
<tr>
|
1344
1302
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1345
|
-
<td>
|
1346
|
-
</td>
|
1303
|
+
<td>a pointer to the private data structure.</td>
|
1347
1304
|
</tr>
|
1348
1305
|
</tbody>
|
1349
1306
|
</table></div>
|
1350
1307
|
<p class="since">Since 2.4</p>
|
1351
1308
|
</div>
|
1352
1309
|
<hr>
|
1353
|
-
<div class="refsect2"
|
1310
|
+
<div class="refsect2">
|
1354
1311
|
<a name="G-TYPE-CLASS-GET-PRIVATE:CAPS"></a><h3>G_TYPE_CLASS_GET_PRIVATE()</h3>
|
1355
1312
|
<pre class="programlisting">#define G_TYPE_CLASS_GET_PRIVATE(klass, g_type, c_type) ((c_type*) g_type_class_get_private ((GTypeClass*) (klass), (g_type)))
|
1356
1313
|
</pre>
|
@@ -1367,35 +1324,31 @@ This macro should only be used in type implementations.
|
|
1367
1324
|
<tbody>
|
1368
1325
|
<tr>
|
1369
1326
|
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
|
1370
|
-
<td>the class of a type deriving from <em class="parameter"><code>private_type</code></em
|
1371
|
-
</td>
|
1327
|
+
<td>the class of a type deriving from <em class="parameter"><code>private_type</code></em>.</td>
|
1372
1328
|
</tr>
|
1373
1329
|
<tr>
|
1374
1330
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1375
|
-
<td>the type identifying which private data to retrieve
|
1376
|
-
</td>
|
1331
|
+
<td>the type identifying which private data to retrieve.</td>
|
1377
1332
|
</tr>
|
1378
1333
|
<tr>
|
1379
1334
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1380
|
-
<td>The C type for the private structure
|
1381
|
-
</td>
|
1335
|
+
<td>The C type for the private structure.</td>
|
1382
1336
|
</tr>
|
1383
1337
|
<tr>
|
1384
1338
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1385
|
-
<td>
|
1386
|
-
</td>
|
1339
|
+
<td>a pointer to the private data structure.</td>
|
1387
1340
|
</tr>
|
1388
1341
|
</tbody>
|
1389
1342
|
</table></div>
|
1390
1343
|
<p class="since">Since 2.24</p>
|
1391
1344
|
</div>
|
1392
1345
|
<hr>
|
1393
|
-
<div class="refsect2"
|
1346
|
+
<div class="refsect2">
|
1394
1347
|
<a name="G-TYPE-CHECK-INSTANCE:CAPS"></a><h3>G_TYPE_CHECK_INSTANCE()</h3>
|
1395
1348
|
<pre class="programlisting">#define G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance)))
|
1396
1349
|
</pre>
|
1397
1350
|
<p>
|
1398
|
-
Checks if <em class="parameter"><code>instance</code></em> is a valid <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure,
|
1351
|
+
Checks if <em class="parameter"><code>instance</code></em> is a valid <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure,
|
1399
1352
|
otherwise issues a warning and returns <a href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.
|
1400
1353
|
</p>
|
1401
1354
|
<p>
|
@@ -1406,19 +1359,18 @@ This macro should only be used in type implementations.
|
|
1406
1359
|
<tbody>
|
1407
1360
|
<tr>
|
1408
1361
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1409
|
-
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1410
|
-
</td>
|
1362
|
+
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1411
1363
|
</tr>
|
1412
1364
|
<tr>
|
1413
1365
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1414
|
-
<td>
|
1415
|
-
</td>
|
1366
|
+
<td>
|
1367
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
1416
1368
|
</tr>
|
1417
1369
|
</tbody>
|
1418
1370
|
</table></div>
|
1419
1371
|
</div>
|
1420
1372
|
<hr>
|
1421
|
-
<div class="refsect2"
|
1373
|
+
<div class="refsect2">
|
1422
1374
|
<a name="G-TYPE-CHECK-INSTANCE-CAST:CAPS"></a><h3>G_TYPE_CHECK_INSTANCE_CAST()</h3>
|
1423
1375
|
<pre class="programlisting">#define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type))
|
1424
1376
|
</pre>
|
@@ -1435,24 +1387,21 @@ This macro should only be used in type implementations.
|
|
1435
1387
|
<tbody>
|
1436
1388
|
<tr>
|
1437
1389
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1438
|
-
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1439
|
-
</td>
|
1390
|
+
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1440
1391
|
</tr>
|
1441
1392
|
<tr>
|
1442
1393
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1443
|
-
<td>The type to be returned
|
1444
|
-
</td>
|
1394
|
+
<td>The type to be returned.</td>
|
1445
1395
|
</tr>
|
1446
1396
|
<tr>
|
1447
1397
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1448
|
-
<td>The corresponding C type of <em class="parameter"><code>g_type</code></em
|
1449
|
-
</td>
|
1398
|
+
<td>The corresponding C type of <em class="parameter"><code>g_type</code></em>.</td>
|
1450
1399
|
</tr>
|
1451
1400
|
</tbody>
|
1452
1401
|
</table></div>
|
1453
1402
|
</div>
|
1454
1403
|
<hr>
|
1455
|
-
<div class="refsect2"
|
1404
|
+
<div class="refsect2">
|
1456
1405
|
<a name="G-TYPE-CHECK-INSTANCE-TYPE:CAPS"></a><h3>G_TYPE_CHECK_INSTANCE_TYPE()</h3>
|
1457
1406
|
<pre class="programlisting">#define G_TYPE_CHECK_INSTANCE_TYPE(instance, g_type) (_G_TYPE_CIT ((instance), (g_type)))
|
1458
1407
|
</pre>
|
@@ -1467,24 +1416,22 @@ This macro should only be used in type implementations.
|
|
1467
1416
|
<tbody>
|
1468
1417
|
<tr>
|
1469
1418
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
1470
|
-
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> structure
|
1471
|
-
</td>
|
1419
|
+
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> structure.</td>
|
1472
1420
|
</tr>
|
1473
1421
|
<tr>
|
1474
1422
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1475
|
-
<td>The type to be checked
|
1476
|
-
</td>
|
1423
|
+
<td>The type to be checked</td>
|
1477
1424
|
</tr>
|
1478
1425
|
<tr>
|
1479
1426
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1480
|
-
<td>
|
1481
|
-
</td>
|
1427
|
+
<td>
|
1428
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
1482
1429
|
</tr>
|
1483
1430
|
</tbody>
|
1484
1431
|
</table></div>
|
1485
1432
|
</div>
|
1486
1433
|
<hr>
|
1487
|
-
<div class="refsect2"
|
1434
|
+
<div class="refsect2">
|
1488
1435
|
<a name="G-TYPE-CHECK-CLASS-CAST:CAPS"></a><h3>G_TYPE_CHECK_CLASS_CAST()</h3>
|
1489
1436
|
<pre class="programlisting">#define G_TYPE_CHECK_CLASS_CAST(g_class, g_type, c_type) (_G_TYPE_CCC ((g_class), (g_type), c_type))
|
1490
1437
|
</pre>
|
@@ -1501,24 +1448,21 @@ This macro should only be used in type implementations.
|
|
1501
1448
|
<tbody>
|
1502
1449
|
<tr>
|
1503
1450
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
1504
|
-
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure
|
1505
|
-
</td>
|
1451
|
+
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure.</td>
|
1506
1452
|
</tr>
|
1507
1453
|
<tr>
|
1508
1454
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1509
|
-
<td>The type to be returned
|
1510
|
-
</td>
|
1455
|
+
<td>The type to be returned.</td>
|
1511
1456
|
</tr>
|
1512
1457
|
<tr>
|
1513
1458
|
<td><p><span class="term"><em class="parameter"><code>c_type</code></em> :</span></p></td>
|
1514
|
-
<td>The corresponding C type of class structure of <em class="parameter"><code>g_type</code></em
|
1515
|
-
</td>
|
1459
|
+
<td>The corresponding C type of class structure of <em class="parameter"><code>g_type</code></em>.</td>
|
1516
1460
|
</tr>
|
1517
1461
|
</tbody>
|
1518
1462
|
</table></div>
|
1519
1463
|
</div>
|
1520
1464
|
<hr>
|
1521
|
-
<div class="refsect2"
|
1465
|
+
<div class="refsect2">
|
1522
1466
|
<a name="G-TYPE-CHECK-CLASS-TYPE:CAPS"></a><h3>G_TYPE_CHECK_CLASS_TYPE()</h3>
|
1523
1467
|
<pre class="programlisting">#define G_TYPE_CHECK_CLASS_TYPE(g_class, g_type) (_G_TYPE_CCT ((g_class), (g_type)))
|
1524
1468
|
</pre>
|
@@ -1534,24 +1478,22 @@ This macro should only be used in type implementations.
|
|
1534
1478
|
<tbody>
|
1535
1479
|
<tr>
|
1536
1480
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
1537
|
-
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure
|
1538
|
-
</td>
|
1481
|
+
<td>Location of a <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure.</td>
|
1539
1482
|
</tr>
|
1540
1483
|
<tr>
|
1541
1484
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1542
|
-
<td>The type to be checked
|
1543
|
-
</td>
|
1485
|
+
<td>The type to be checked.</td>
|
1544
1486
|
</tr>
|
1545
1487
|
<tr>
|
1546
1488
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1547
|
-
<td>
|
1548
|
-
</td>
|
1489
|
+
<td>
|
1490
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
1549
1491
|
</tr>
|
1550
1492
|
</tbody>
|
1551
1493
|
</table></div>
|
1552
1494
|
</div>
|
1553
1495
|
<hr>
|
1554
|
-
<div class="refsect2"
|
1496
|
+
<div class="refsect2">
|
1555
1497
|
<a name="G-TYPE-CHECK-VALUE:CAPS"></a><h3>G_TYPE_CHECK_VALUE()</h3>
|
1556
1498
|
<pre class="programlisting">#define G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value)))
|
1557
1499
|
</pre>
|
@@ -1572,14 +1514,14 @@ This macro should only be used in type implementations.
|
|
1572
1514
|
</tr>
|
1573
1515
|
<tr>
|
1574
1516
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1575
|
-
<td>
|
1576
|
-
</td>
|
1517
|
+
<td>
|
1518
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
1577
1519
|
</tr>
|
1578
1520
|
</tbody>
|
1579
1521
|
</table></div>
|
1580
1522
|
</div>
|
1581
1523
|
<hr>
|
1582
|
-
<div class="refsect2"
|
1524
|
+
<div class="refsect2">
|
1583
1525
|
<a name="G-TYPE-CHECK-VALUE-TYPE:CAPS"></a><h3>G_TYPE_CHECK_VALUE_TYPE()</h3>
|
1584
1526
|
<pre class="programlisting">#define G_TYPE_CHECK_VALUE_TYPE(value, g_type) (_G_TYPE_CVH ((value), (g_type)))
|
1585
1527
|
</pre>
|
@@ -1600,19 +1542,18 @@ This macro should only be used in type implementations.
|
|
1600
1542
|
</tr>
|
1601
1543
|
<tr>
|
1602
1544
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
1603
|
-
<td>The type to be checked
|
1604
|
-
</td>
|
1545
|
+
<td>The type to be checked.</td>
|
1605
1546
|
</tr>
|
1606
1547
|
<tr>
|
1607
1548
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1608
|
-
<td>
|
1609
|
-
</td>
|
1549
|
+
<td>
|
1550
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</td>
|
1610
1551
|
</tr>
|
1611
1552
|
</tbody>
|
1612
1553
|
</table></div>
|
1613
1554
|
</div>
|
1614
1555
|
<hr>
|
1615
|
-
<div class="refsect2"
|
1556
|
+
<div class="refsect2">
|
1616
1557
|
<a name="G-TYPE-FLAG-RESERVED-ID-BIT:CAPS"></a><h3>G_TYPE_FLAG_RESERVED_ID_BIT</h3>
|
1617
1558
|
<pre class="programlisting">#define G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0))
|
1618
1559
|
</pre>
|
@@ -1621,7 +1562,7 @@ A bit in the type number that's supposed to be left untouched.
|
|
1621
1562
|
</p>
|
1622
1563
|
</div>
|
1623
1564
|
<hr>
|
1624
|
-
<div class="refsect2"
|
1565
|
+
<div class="refsect2">
|
1625
1566
|
<a name="g-type-init"></a><h3>g_type_init ()</h3>
|
1626
1567
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1627
1568
|
<p>
|
@@ -1635,7 +1576,7 @@ Since version 2.24 this also initializes the thread system
|
|
1635
1576
|
</p>
|
1636
1577
|
</div>
|
1637
1578
|
<hr>
|
1638
|
-
<div class="refsect2"
|
1579
|
+
<div class="refsect2">
|
1639
1580
|
<a name="GTypeDebugFlags"></a><h3>enum GTypeDebugFlags</h3>
|
1640
1581
|
<pre class="programlisting">typedef enum /*< skip >*/
|
1641
1582
|
{
|
@@ -1679,7 +1620,7 @@ Note that the messages can also be triggered by setting the
|
|
1679
1620
|
</table></div>
|
1680
1621
|
</div>
|
1681
1622
|
<hr>
|
1682
|
-
<div class="refsect2"
|
1623
|
+
<div class="refsect2">
|
1683
1624
|
<a name="g-type-init-with-debug-flags"></a><h3>g_type_init_with_debug_flags ()</h3>
|
1684
1625
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_init_with_debug_flags (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeDebugFlags" title="enum GTypeDebugFlags"><span class="type">GTypeDebugFlags</span></a> debug_flags</code></em>);</pre>
|
1685
1626
|
<p>
|
@@ -1690,15 +1631,14 @@ Similar to <a class="link" href="gobject-Type-Information.html#g-type-init" titl
|
|
1690
1631
|
<tbody><tr>
|
1691
1632
|
<td><p><span class="term"><em class="parameter"><code>debug_flags</code></em> :</span></p></td>
|
1692
1633
|
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeDebugFlags" title="enum GTypeDebugFlags"><span class="type">GTypeDebugFlags</span></a> values for
|
1693
|
-
|
1694
|
-
</td>
|
1634
|
+
debugging purposes.</td>
|
1695
1635
|
</tr></tbody>
|
1696
1636
|
</table></div>
|
1697
1637
|
</div>
|
1698
1638
|
<hr>
|
1699
|
-
<div class="refsect2"
|
1639
|
+
<div class="refsect2">
|
1700
1640
|
<a name="g-type-name"></a><h3>g_type_name ()</h3>
|
1701
|
-
<pre class="programlisting">const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a
|
1641
|
+
<pre class="programlisting">const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * g_type_name (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1702
1642
|
<p>
|
1703
1643
|
Get the unique name that is assigned to a type ID. Note that this
|
1704
1644
|
function (like all other GType API) cannot cope with invalid type
|
@@ -1711,19 +1651,17 @@ not be passed in and will most likely lead to a crash.
|
|
1711
1651
|
<tbody>
|
1712
1652
|
<tr>
|
1713
1653
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1714
|
-
<td>Type to return name for
|
1715
|
-
</td>
|
1654
|
+
<td>Type to return name for.</td>
|
1716
1655
|
</tr>
|
1717
1656
|
<tr>
|
1718
1657
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1719
|
-
<td>
|
1720
|
-
</td>
|
1658
|
+
<td>Static type name or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
|
1721
1659
|
</tr>
|
1722
1660
|
</tbody>
|
1723
1661
|
</table></div>
|
1724
1662
|
</div>
|
1725
1663
|
<hr>
|
1726
|
-
<div class="refsect2"
|
1664
|
+
<div class="refsect2">
|
1727
1665
|
<a name="g-type-qname"></a><h3>g_type_qname ()</h3>
|
1728
1666
|
<pre class="programlisting"><a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> g_type_qname (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1729
1667
|
<p>
|
@@ -1734,19 +1672,17 @@ Get the corresponding quark of the type IDs name.
|
|
1734
1672
|
<tbody>
|
1735
1673
|
<tr>
|
1736
1674
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1737
|
-
<td>Type to return quark of type name for
|
1738
|
-
</td>
|
1675
|
+
<td>Type to return quark of type name for.</td>
|
1739
1676
|
</tr>
|
1740
1677
|
<tr>
|
1741
1678
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1742
|
-
<td>
|
1743
|
-
</td>
|
1679
|
+
<td>The type names quark or 0.</td>
|
1744
1680
|
</tr>
|
1745
1681
|
</tbody>
|
1746
1682
|
</table></div>
|
1747
1683
|
</div>
|
1748
1684
|
<hr>
|
1749
|
-
<div class="refsect2"
|
1685
|
+
<div class="refsect2">
|
1750
1686
|
<a name="g-type-from-name"></a><h3>g_type_from_name ()</h3>
|
1751
1687
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_from_name (<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
|
1752
1688
|
<p>
|
@@ -1760,19 +1696,17 @@ yet).
|
|
1760
1696
|
<tbody>
|
1761
1697
|
<tr>
|
1762
1698
|
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
|
1763
|
-
<td>Type name to lookup
|
1764
|
-
</td>
|
1699
|
+
<td>Type name to lookup.</td>
|
1765
1700
|
</tr>
|
1766
1701
|
<tr>
|
1767
1702
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1768
|
-
<td>
|
1769
|
-
</td>
|
1703
|
+
<td>Corresponding type ID or 0.</td>
|
1770
1704
|
</tr>
|
1771
1705
|
</tbody>
|
1772
1706
|
</table></div>
|
1773
1707
|
</div>
|
1774
1708
|
<hr>
|
1775
|
-
<div class="refsect2"
|
1709
|
+
<div class="refsect2">
|
1776
1710
|
<a name="g-type-parent"></a><h3>g_type_parent ()</h3>
|
1777
1711
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_parent (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1778
1712
|
<p>
|
@@ -1784,19 +1718,17 @@ in type has no parent, i.e. is a fundamental type, 0 is returned.
|
|
1784
1718
|
<tbody>
|
1785
1719
|
<tr>
|
1786
1720
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1787
|
-
<td>The derived type
|
1788
|
-
</td>
|
1721
|
+
<td>The derived type.</td>
|
1789
1722
|
</tr>
|
1790
1723
|
<tr>
|
1791
1724
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1792
|
-
<td>
|
1793
|
-
</td>
|
1725
|
+
<td>The parent type.</td>
|
1794
1726
|
</tr>
|
1795
1727
|
</tbody>
|
1796
1728
|
</table></div>
|
1797
1729
|
</div>
|
1798
1730
|
<hr>
|
1799
|
-
<div class="refsect2"
|
1731
|
+
<div class="refsect2">
|
1800
1732
|
<a name="g-type-depth"></a><h3>g_type_depth ()</h3>
|
1801
1733
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> g_type_depth (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1802
1734
|
<p>
|
@@ -1808,19 +1740,17 @@ includes the type itself, so that e.g. a fundamental type has depth 1.
|
|
1808
1740
|
<tbody>
|
1809
1741
|
<tr>
|
1810
1742
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1811
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
1812
|
-
</td>
|
1743
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
1813
1744
|
</tr>
|
1814
1745
|
<tr>
|
1815
1746
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1816
|
-
<td>
|
1817
|
-
</td>
|
1747
|
+
<td>The depth of <em class="parameter"><code>type</code></em>.</td>
|
1818
1748
|
</tr>
|
1819
1749
|
</tbody>
|
1820
1750
|
</table></div>
|
1821
1751
|
</div>
|
1822
1752
|
<hr>
|
1823
|
-
<div class="refsect2"
|
1753
|
+
<div class="refsect2">
|
1824
1754
|
<a name="g-type-next-base"></a><h3>g_type_next_base ()</h3>
|
1825
1755
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_next_base (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> leaf_type</code></em>,
|
1826
1756
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> root_type</code></em>);</pre>
|
@@ -1838,24 +1768,21 @@ descended from the root type.
|
|
1838
1768
|
<tbody>
|
1839
1769
|
<tr>
|
1840
1770
|
<td><p><span class="term"><em class="parameter"><code>leaf_type</code></em> :</span></p></td>
|
1841
|
-
<td>Descendant of <em class="parameter"><code>root_type</code></em> and the type to be returned
|
1842
|
-
</td>
|
1771
|
+
<td>Descendant of <em class="parameter"><code>root_type</code></em> and the type to be returned.</td>
|
1843
1772
|
</tr>
|
1844
1773
|
<tr>
|
1845
1774
|
<td><p><span class="term"><em class="parameter"><code>root_type</code></em> :</span></p></td>
|
1846
|
-
<td>Immediate parent of the returned type
|
1847
|
-
</td>
|
1775
|
+
<td>Immediate parent of the returned type.</td>
|
1848
1776
|
</tr>
|
1849
1777
|
<tr>
|
1850
1778
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1851
|
-
<td>
|
1852
|
-
</td>
|
1779
|
+
<td>Immediate child of <em class="parameter"><code>root_type</code></em> and anchestor of <em class="parameter"><code>leaf_type</code></em>.</td>
|
1853
1780
|
</tr>
|
1854
1781
|
</tbody>
|
1855
1782
|
</table></div>
|
1856
1783
|
</div>
|
1857
1784
|
<hr>
|
1858
|
-
<div class="refsect2"
|
1785
|
+
<div class="refsect2">
|
1859
1786
|
<a name="g-type-is-a"></a><h3>g_type_is_a ()</h3>
|
1860
1787
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> g_type_is_a (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
1861
1788
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> is_a_type</code></em>);</pre>
|
@@ -1869,24 +1796,22 @@ whether <em class="parameter"><code>type</code></em> conforms to it.
|
|
1869
1796
|
<tbody>
|
1870
1797
|
<tr>
|
1871
1798
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1872
|
-
<td>Type to check anchestry for
|
1873
|
-
</td>
|
1799
|
+
<td>Type to check anchestry for.</td>
|
1874
1800
|
</tr>
|
1875
1801
|
<tr>
|
1876
1802
|
<td><p><span class="term"><em class="parameter"><code>is_a_type</code></em> :</span></p></td>
|
1877
|
-
<td>Possible anchestor of <em class="parameter"><code>type</code></em> or interface <em class="parameter"><code>type</code></em> could conform to
|
1878
|
-
</td>
|
1803
|
+
<td>Possible anchestor of <em class="parameter"><code>type</code></em> or interface <em class="parameter"><code>type</code></em> could conform to.</td>
|
1879
1804
|
</tr>
|
1880
1805
|
<tr>
|
1881
1806
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1882
|
-
<td>
|
1883
|
-
</td>
|
1807
|
+
<td>
|
1808
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>type</code></em> is_a <em class="parameter"><code>is_a_type</code></em> holds true.</td>
|
1884
1809
|
</tr>
|
1885
1810
|
</tbody>
|
1886
1811
|
</table></div>
|
1887
1812
|
</div>
|
1888
1813
|
<hr>
|
1889
|
-
<div class="refsect2"
|
1814
|
+
<div class="refsect2">
|
1890
1815
|
<a name="g-type-class-ref"></a><h3>g_type_class_ref ()</h3>
|
1891
1816
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_class_ref (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1892
1817
|
<p>
|
@@ -1899,19 +1824,19 @@ exist already.
|
|
1899
1824
|
<tbody>
|
1900
1825
|
<tr>
|
1901
1826
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1902
|
-
<td>Type ID of a classed type
|
1903
|
-
</td>
|
1827
|
+
<td>Type ID of a classed type.</td>
|
1904
1828
|
</tr>
|
1905
1829
|
<tr>
|
1906
1830
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1907
|
-
<td>
|
1831
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a>
|
1832
|
+
structure for the given type ID. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
1908
1833
|
</td>
|
1909
1834
|
</tr>
|
1910
1835
|
</tbody>
|
1911
1836
|
</table></div>
|
1912
1837
|
</div>
|
1913
1838
|
<hr>
|
1914
|
-
<div class="refsect2"
|
1839
|
+
<div class="refsect2">
|
1915
1840
|
<a name="g-type-class-peek"></a><h3>g_type_class_peek ()</h3>
|
1916
1841
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_class_peek (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1917
1842
|
<p>
|
@@ -1925,20 +1850,20 @@ exist (hasn't been referenced before).
|
|
1925
1850
|
<tbody>
|
1926
1851
|
<tr>
|
1927
1852
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1928
|
-
<td>Type ID of a classed type
|
1929
|
-
</td>
|
1853
|
+
<td>Type ID of a classed type.</td>
|
1930
1854
|
</tr>
|
1931
1855
|
<tr>
|
1932
1856
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1933
|
-
<td>
|
1934
|
-
if the class does not
|
1857
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a>
|
1858
|
+
structure for the given type ID or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the class does not
|
1859
|
+
currently exist. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
1935
1860
|
</td>
|
1936
1861
|
</tr>
|
1937
1862
|
</tbody>
|
1938
1863
|
</table></div>
|
1939
1864
|
</div>
|
1940
1865
|
<hr>
|
1941
|
-
<div class="refsect2"
|
1866
|
+
<div class="refsect2">
|
1942
1867
|
<a name="g-type-class-peek-static"></a><h3>g_type_class_peek_static ()</h3>
|
1943
1868
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_class_peek_static (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
1944
1869
|
<p>
|
@@ -1950,13 +1875,13 @@ static types.
|
|
1950
1875
|
<tbody>
|
1951
1876
|
<tr>
|
1952
1877
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
1953
|
-
<td>Type ID of a classed type
|
1954
|
-
</td>
|
1878
|
+
<td>Type ID of a classed type.</td>
|
1955
1879
|
</tr>
|
1956
1880
|
<tr>
|
1957
1881
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1958
|
-
<td>
|
1959
|
-
|
1882
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a>
|
1883
|
+
structure for the given type ID or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the class does not
|
1884
|
+
currently exist or is dynamically loaded. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
1960
1885
|
</td>
|
1961
1886
|
</tr>
|
1962
1887
|
</tbody>
|
@@ -1964,7 +1889,7 @@ static types.
|
|
1964
1889
|
<p class="since">Since 2.4</p>
|
1965
1890
|
</div>
|
1966
1891
|
<hr>
|
1967
|
-
<div class="refsect2"
|
1892
|
+
<div class="refsect2">
|
1968
1893
|
<a name="g-type-class-unref"></a><h3>g_type_class_unref ()</h3>
|
1969
1894
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_class_unref (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
1970
1895
|
<p>
|
@@ -1977,13 +1902,14 @@ class pointer after <a class="link" href="gobject-Type-Information.html#g-type-c
|
|
1977
1902
|
<col align="left" valign="top">
|
1978
1903
|
<tbody><tr>
|
1979
1904
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
1980
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
1905
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
1906
|
+
unreference. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass]</span>
|
1981
1907
|
</td>
|
1982
1908
|
</tr></tbody>
|
1983
1909
|
</table></div>
|
1984
1910
|
</div>
|
1985
1911
|
<hr>
|
1986
|
-
<div class="refsect2"
|
1912
|
+
<div class="refsect2">
|
1987
1913
|
<a name="g-type-class-peek-parent"></a><h3>g_type_class_peek_parent ()</h3>
|
1988
1914
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_class_peek_parent (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
1989
1915
|
<p>
|
@@ -2006,19 +1932,21 @@ g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class)));
|
|
2006
1932
|
<tbody>
|
2007
1933
|
<tr>
|
2008
1934
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2009
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
1935
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
1936
|
+
retrieve the parent class for. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass]</span>
|
2010
1937
|
</td>
|
2011
1938
|
</tr>
|
2012
1939
|
<tr>
|
2013
1940
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2014
|
-
<td>
|
1941
|
+
<td>The parent class
|
1942
|
+
of <em class="parameter"><code>g_class</code></em>. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
2015
1943
|
</td>
|
2016
1944
|
</tr>
|
2017
1945
|
</tbody>
|
2018
1946
|
</table></div>
|
2019
1947
|
</div>
|
2020
1948
|
<hr>
|
2021
|
-
<div class="refsect2"
|
1949
|
+
<div class="refsect2">
|
2022
1950
|
<a name="g-type-class-add-private"></a><h3>g_type_class_add_private ()</h3>
|
2023
1951
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_class_add_private (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>,
|
2024
1952
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> private_size</code></em>);</pre>
|
@@ -2133,20 +2061,18 @@ type's <code class="function">class_init()</code> function.
|
|
2133
2061
|
<tbody>
|
2134
2062
|
<tr>
|
2135
2063
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2136
|
-
<td>class structure for an instantiatable type
|
2137
|
-
</td>
|
2064
|
+
<td>class structure for an instantiatable type</td>
|
2138
2065
|
</tr>
|
2139
2066
|
<tr>
|
2140
2067
|
<td><p><span class="term"><em class="parameter"><code>private_size</code></em> :</span></p></td>
|
2141
|
-
<td>size of private structure
|
2142
|
-
</td>
|
2068
|
+
<td>size of private structure.</td>
|
2143
2069
|
</tr>
|
2144
2070
|
</tbody>
|
2145
2071
|
</table></div>
|
2146
2072
|
<p class="since">Since 2.4</p>
|
2147
2073
|
</div>
|
2148
2074
|
<hr>
|
2149
|
-
<div class="refsect2"
|
2075
|
+
<div class="refsect2">
|
2150
2076
|
<a name="g-type-add-class-private"></a><h3>g_type_add_class_private ()</h3>
|
2151
2077
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_add_class_private (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> class_type</code></em>,
|
2152
2078
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> private_size</code></em>);</pre>
|
@@ -2165,25 +2091,23 @@ The private structure can be retrieved using the
|
|
2165
2091
|
<tbody>
|
2166
2092
|
<tr>
|
2167
2093
|
<td><p><span class="term"><em class="parameter"><code>class_type</code></em> :</span></p></td>
|
2168
|
-
<td>GType of an classed type
|
2169
|
-
</td>
|
2094
|
+
<td>GType of an classed type.</td>
|
2170
2095
|
</tr>
|
2171
2096
|
<tr>
|
2172
2097
|
<td><p><span class="term"><em class="parameter"><code>private_size</code></em> :</span></p></td>
|
2173
|
-
<td>size of private structure
|
2174
|
-
</td>
|
2098
|
+
<td>size of private structure.</td>
|
2175
2099
|
</tr>
|
2176
2100
|
</tbody>
|
2177
2101
|
</table></div>
|
2178
2102
|
<p class="since">Since 2.24</p>
|
2179
2103
|
</div>
|
2180
2104
|
<hr>
|
2181
|
-
<div class="refsect2"
|
2105
|
+
<div class="refsect2">
|
2182
2106
|
<a name="g-type-interface-peek"></a><h3>g_type_interface_peek ()</h3>
|
2183
2107
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_interface_peek (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> instance_class</code></em>,
|
2184
2108
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> iface_type</code></em>);</pre>
|
2185
2109
|
<p>
|
2186
|
-
Returns the <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> structure of an interface to which the
|
2110
|
+
Returns the <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> structure of an interface to which the
|
2187
2111
|
passed in class conforms.
|
2188
2112
|
</p>
|
2189
2113
|
<div class="variablelist"><table border="0">
|
@@ -2191,29 +2115,29 @@ passed in class conforms.
|
|
2191
2115
|
<tbody>
|
2192
2116
|
<tr>
|
2193
2117
|
<td><p><span class="term"><em class="parameter"><code>instance_class</code></em> :</span></p></td>
|
2194
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure.
|
2118
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass]</span>
|
2195
2119
|
</td>
|
2196
2120
|
</tr>
|
2197
2121
|
<tr>
|
2198
2122
|
<td><p><span class="term"><em class="parameter"><code>iface_type</code></em> :</span></p></td>
|
2199
|
-
<td>An interface ID which this class conforms to
|
2200
|
-
</td>
|
2123
|
+
<td>An interface ID which this class conforms to.</td>
|
2201
2124
|
</tr>
|
2202
2125
|
<tr>
|
2203
2126
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2204
|
-
<td>
|
2205
|
-
|
2127
|
+
<td>The GTypeInterface
|
2128
|
+
structure of iface_type if implemented by <em class="parameter"><code>instance_class</code></em>, <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
2129
|
+
otherwise. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
2206
2130
|
</td>
|
2207
2131
|
</tr>
|
2208
2132
|
</tbody>
|
2209
2133
|
</table></div>
|
2210
2134
|
</div>
|
2211
2135
|
<hr>
|
2212
|
-
<div class="refsect2"
|
2136
|
+
<div class="refsect2">
|
2213
2137
|
<a name="g-type-interface-peek-parent"></a><h3>g_type_interface_peek_parent ()</h3>
|
2214
2138
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_interface_peek_parent (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>);</pre>
|
2215
2139
|
<p>
|
2216
|
-
Returns the corresponding <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> structure of the parent type
|
2140
|
+
Returns the corresponding <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> structure of the parent type
|
2217
2141
|
of the instance type to which <em class="parameter"><code>g_iface</code></em> belongs. This is useful when
|
2218
2142
|
deriving the implementation of an interface from the parent type and
|
2219
2143
|
then possibly overriding some methods.
|
@@ -2223,21 +2147,22 @@ then possibly overriding some methods.
|
|
2223
2147
|
<tbody>
|
2224
2148
|
<tr>
|
2225
2149
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
2226
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> structure.
|
2150
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> structure. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface]</span>
|
2227
2151
|
</td>
|
2228
2152
|
</tr>
|
2229
2153
|
<tr>
|
2230
2154
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2231
|
-
<td>
|
2232
|
-
|
2233
|
-
|
2155
|
+
<td>The
|
2156
|
+
corresponding <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> structure of the parent type of the
|
2157
|
+
instance type to which <em class="parameter"><code>g_iface</code></em> belongs, or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the parent
|
2158
|
+
type doesn't conform to the interface. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface]</span>
|
2234
2159
|
</td>
|
2235
2160
|
</tr>
|
2236
2161
|
</tbody>
|
2237
2162
|
</table></div>
|
2238
2163
|
</div>
|
2239
2164
|
<hr>
|
2240
|
-
<div class="refsect2"
|
2165
|
+
<div class="refsect2">
|
2241
2166
|
<a name="g-type-default-interface-ref"></a><h3>g_type_default_interface_ref ()</h3>
|
2242
2167
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_default_interface_ref (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>);</pre>
|
2243
2168
|
<p>
|
@@ -2249,7 +2174,7 @@ If the type is not currently in use, then the default vtable
|
|
2249
2174
|
for the type will be created and initalized by calling
|
2250
2175
|
the base interface init and default vtable init functions for
|
2251
2176
|
the type (the @<em class="structfield"><code>base_init</code></em>
|
2252
|
-
and <em class="structfield"><code>class_init</code></em> members of <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>).
|
2177
|
+
and <em class="structfield"><code>class_init</code></em> members of <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>).
|
2253
2178
|
Calling <a class="link" href="gobject-Type-Information.html#g-type-default-interface-ref" title="g_type_default_interface_ref ()"><code class="function">g_type_default_interface_ref()</code></a> is useful when you
|
2254
2179
|
want to make sure that signals and properties for an interface
|
2255
2180
|
have been installed.
|
@@ -2259,14 +2184,13 @@ have been installed.
|
|
2259
2184
|
<tbody>
|
2260
2185
|
<tr>
|
2261
2186
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
2262
|
-
<td>an interface type
|
2263
|
-
</td>
|
2187
|
+
<td>an interface type</td>
|
2264
2188
|
</tr>
|
2265
2189
|
<tr>
|
2266
2190
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2267
|
-
<td>
|
2268
|
-
|
2269
|
-
|
2191
|
+
<td>the default
|
2192
|
+
vtable for the interface; call <a class="link" href="gobject-Type-Information.html#g-type-default-interface-unref" title="g_type_default_interface_unref ()"><code class="function">g_type_default_interface_unref()</code></a>
|
2193
|
+
when you are done using the interface. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
2270
2194
|
</td>
|
2271
2195
|
</tr>
|
2272
2196
|
</tbody>
|
@@ -2274,7 +2198,7 @@ have been installed.
|
|
2274
2198
|
<p class="since">Since 2.4</p>
|
2275
2199
|
</div>
|
2276
2200
|
<hr>
|
2277
|
-
<div class="refsect2"
|
2201
|
+
<div class="refsect2">
|
2278
2202
|
<a name="g-type-default-interface-peek"></a><h3>g_type_default_interface_peek ()</h3>
|
2279
2203
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_default_interface_peek (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> g_type</code></em>);</pre>
|
2280
2204
|
<p>
|
@@ -2286,13 +2210,13 @@ default interface vtable.
|
|
2286
2210
|
<tbody>
|
2287
2211
|
<tr>
|
2288
2212
|
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
|
2289
|
-
<td>an interface type
|
2290
|
-
</td>
|
2213
|
+
<td>an interface type</td>
|
2291
2214
|
</tr>
|
2292
2215
|
<tr>
|
2293
2216
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2294
|
-
<td>
|
2295
|
-
|
2217
|
+
<td>the default
|
2218
|
+
vtable for the interface, or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the type is not currently in
|
2219
|
+
use. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
2296
2220
|
</td>
|
2297
2221
|
</tr>
|
2298
2222
|
</tbody>
|
@@ -2300,7 +2224,7 @@ default interface vtable.
|
|
2300
2224
|
<p class="since">Since 2.4</p>
|
2301
2225
|
</div>
|
2302
2226
|
<hr>
|
2303
|
-
<div class="refsect2"
|
2227
|
+
<div class="refsect2">
|
2304
2228
|
<a name="g-type-default-interface-unref"></a><h3>g_type_default_interface_unref ()</h3>
|
2305
2229
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_default_interface_unref (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>);</pre>
|
2306
2230
|
<p>
|
@@ -2309,23 +2233,24 @@ interface default vtable <em class="parameter"><code>g_iface</code></em>. If the
|
|
2309
2233
|
when no one is using the interface and all references have
|
2310
2234
|
been released, the finalize function for the interface's default
|
2311
2235
|
vtable (the <em class="structfield"><code>class_finalize</code></em> member of
|
2312
|
-
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>) will be called.
|
2236
|
+
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>) will be called.
|
2313
2237
|
</p>
|
2314
2238
|
<div class="variablelist"><table border="0">
|
2315
2239
|
<col align="left" valign="top">
|
2316
2240
|
<tbody><tr>
|
2317
2241
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
2318
|
-
<td>the default vtable
|
2319
|
-
|
2242
|
+
<td>the default vtable
|
2243
|
+
structure for a interface, as returned by
|
2244
|
+
<a class="link" href="gobject-Type-Information.html#g-type-default-interface-ref" title="g_type_default_interface_ref ()"><code class="function">g_type_default_interface_ref()</code></a>. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeInterface]</span>
|
2320
2245
|
</td>
|
2321
2246
|
</tr></tbody>
|
2322
2247
|
</table></div>
|
2323
2248
|
<p class="since">Since 2.4</p>
|
2324
2249
|
</div>
|
2325
2250
|
<hr>
|
2326
|
-
<div class="refsect2"
|
2251
|
+
<div class="refsect2">
|
2327
2252
|
<a name="g-type-children"></a><h3>g_type_children ()</h3>
|
2328
|
-
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
2253
|
+
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * g_type_children (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
2329
2254
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_children</code></em>);</pre>
|
2330
2255
|
<p>
|
2331
2256
|
Return a newly allocated and 0-terminated array of type IDs, listing the
|
@@ -2336,26 +2261,27 @@ child types of <em class="parameter"><code>type</code></em>. The return value ha
|
|
2336
2261
|
<tbody>
|
2337
2262
|
<tr>
|
2338
2263
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
2339
|
-
<td>The parent type
|
2340
|
-
</td>
|
2264
|
+
<td>The parent type.</td>
|
2341
2265
|
</tr>
|
2342
2266
|
<tr>
|
2343
2267
|
<td><p><span class="term"><em class="parameter"><code>n_children</code></em> :</span></p></td>
|
2344
|
-
<td>Optional <a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> pointer to contain
|
2268
|
+
<td>Optional <a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> pointer to contain
|
2269
|
+
the number of child types. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
2345
2270
|
</td>
|
2346
2271
|
</tr>
|
2347
2272
|
<tr>
|
2348
2273
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2349
|
-
<td>
|
2274
|
+
<td>Newly allocated
|
2275
|
+
and 0-terminated array of child types. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_children][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
2350
2276
|
</td>
|
2351
2277
|
</tr>
|
2352
2278
|
</tbody>
|
2353
2279
|
</table></div>
|
2354
2280
|
</div>
|
2355
2281
|
<hr>
|
2356
|
-
<div class="refsect2"
|
2282
|
+
<div class="refsect2">
|
2357
2283
|
<a name="g-type-interfaces"></a><h3>g_type_interfaces ()</h3>
|
2358
|
-
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
2284
|
+
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * g_type_interfaces (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
2359
2285
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_interfaces</code></em>);</pre>
|
2360
2286
|
<p>
|
2361
2287
|
Return a newly allocated and 0-terminated array of type IDs, listing the
|
@@ -2367,27 +2293,27 @@ interface types that <em class="parameter"><code>type</code></em> conforms to. T
|
|
2367
2293
|
<tbody>
|
2368
2294
|
<tr>
|
2369
2295
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
2370
|
-
<td>The type to list interface types for
|
2371
|
-
</td>
|
2296
|
+
<td>The type to list interface types for.</td>
|
2372
2297
|
</tr>
|
2373
2298
|
<tr>
|
2374
2299
|
<td><p><span class="term"><em class="parameter"><code>n_interfaces</code></em> :</span></p></td>
|
2375
|
-
<td>Optional <a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> pointer to
|
2376
|
-
|
2300
|
+
<td>Optional <a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> pointer to
|
2301
|
+
contain the number of interface types. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
2377
2302
|
</td>
|
2378
2303
|
</tr>
|
2379
2304
|
<tr>
|
2380
2305
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2381
|
-
<td>
|
2306
|
+
<td>Newly
|
2307
|
+
allocated and 0-terminated array of interface types. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_interfaces][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
2382
2308
|
</td>
|
2383
2309
|
</tr>
|
2384
2310
|
</tbody>
|
2385
2311
|
</table></div>
|
2386
2312
|
</div>
|
2387
2313
|
<hr>
|
2388
|
-
<div class="refsect2"
|
2314
|
+
<div class="refsect2">
|
2389
2315
|
<a name="g-type-interface-prerequisites"></a><h3>g_type_interface_prerequisites ()</h3>
|
2390
|
-
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a
|
2316
|
+
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> * g_type_interface_prerequisites (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
2391
2317
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *n_prerequisites</code></em>);</pre>
|
2392
2318
|
<p>
|
2393
2319
|
Returns the prerequisites of an interfaces type.
|
@@ -2397,18 +2323,19 @@ Returns the prerequisites of an interfaces type.
|
|
2397
2323
|
<tbody>
|
2398
2324
|
<tr>
|
2399
2325
|
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
|
2400
|
-
<td>an interface type
|
2401
|
-
</td>
|
2326
|
+
<td>an interface type</td>
|
2402
2327
|
</tr>
|
2403
2328
|
<tr>
|
2404
2329
|
<td><p><span class="term"><em class="parameter"><code>n_prerequisites</code></em> :</span></p></td>
|
2405
|
-
<td>location to return the number
|
2330
|
+
<td>location to return the number
|
2331
|
+
of prerequisites, or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
|
2406
2332
|
</td>
|
2407
2333
|
</tr>
|
2408
2334
|
<tr>
|
2409
2335
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2410
|
-
<td>
|
2411
|
-
|
2336
|
+
<td>a
|
2337
|
+
newly-allocated zero-terminated array of <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> containing
|
2338
|
+
the prerequisites of <em class="parameter"><code>interface_type</code></em>. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_prerequisites][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
|
2412
2339
|
</td>
|
2413
2340
|
</tr>
|
2414
2341
|
</tbody>
|
@@ -2416,7 +2343,7 @@ Returns the prerequisites of an interfaces type.
|
|
2416
2343
|
<p class="since">Since 2.2</p>
|
2417
2344
|
</div>
|
2418
2345
|
<hr>
|
2419
|
-
<div class="refsect2"
|
2346
|
+
<div class="refsect2">
|
2420
2347
|
<a name="g-type-set-qdata"></a><h3>g_type_set_qdata ()</h3>
|
2421
2348
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_set_qdata (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
2422
2349
|
<em class="parameter"><code><a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> quark</code></em>,
|
@@ -2434,19 +2361,17 @@ Attaches arbitrary data to a type.
|
|
2434
2361
|
</tr>
|
2435
2362
|
<tr>
|
2436
2363
|
<td><p><span class="term"><em class="parameter"><code>quark</code></em> :</span></p></td>
|
2437
|
-
<td>a <a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> id to identify the data
|
2438
|
-
</td>
|
2364
|
+
<td>a <a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> id to identify the data</td>
|
2439
2365
|
</tr>
|
2440
2366
|
<tr>
|
2441
2367
|
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
2442
|
-
<td>the data
|
2443
|
-
</td>
|
2368
|
+
<td>the data</td>
|
2444
2369
|
</tr>
|
2445
2370
|
</tbody>
|
2446
2371
|
</table></div>
|
2447
2372
|
</div>
|
2448
2373
|
<hr>
|
2449
|
-
<div class="refsect2"
|
2374
|
+
<div class="refsect2">
|
2450
2375
|
<a name="g-type-get-qdata"></a><h3>g_type_get_qdata ()</h3>
|
2451
2376
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> g_type_get_qdata (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
2452
2377
|
<em class="parameter"><code><a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> quark</code></em>);</pre>
|
@@ -2464,28 +2389,27 @@ with <a class="link" href="gobject-Type-Information.html#g-type-set-qdata" title
|
|
2464
2389
|
</tr>
|
2465
2390
|
<tr>
|
2466
2391
|
<td><p><span class="term"><em class="parameter"><code>quark</code></em> :</span></p></td>
|
2467
|
-
<td>a <a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> id to identify the data
|
2468
|
-
</td>
|
2392
|
+
<td>a <a href="./../glib/glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> id to identify the data</td>
|
2469
2393
|
</tr>
|
2470
2394
|
<tr>
|
2471
2395
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2472
|
-
<td>
|
2396
|
+
<td>the data, or <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no data was found. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
2473
2397
|
</td>
|
2474
2398
|
</tr>
|
2475
2399
|
</tbody>
|
2476
2400
|
</table></div>
|
2477
2401
|
</div>
|
2478
2402
|
<hr>
|
2479
|
-
<div class="refsect2"
|
2403
|
+
<div class="refsect2">
|
2480
2404
|
<a name="g-type-query"></a><h3>g_type_query ()</h3>
|
2481
2405
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_query (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>,
|
2482
|
-
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeQuery" title="GTypeQuery"><span class="type">GTypeQuery</span></a> *query</code></em>);</pre>
|
2406
|
+
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeQuery" title="struct GTypeQuery"><span class="type">GTypeQuery</span></a> *query</code></em>);</pre>
|
2483
2407
|
<p>
|
2484
2408
|
Queries the type system for information about a specific type.
|
2485
2409
|
This function will fill in a user-provided structure to hold
|
2486
2410
|
type-specific information. If an invalid <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> is passed in, the
|
2487
|
-
<em class="parameter"><code>type</code></em> member of the <a class="link" href="gobject-Type-Information.html#GTypeQuery" title="GTypeQuery"><span class="type">GTypeQuery</span></a> is 0. All members filled into the
|
2488
|
-
<a class="link" href="gobject-Type-Information.html#GTypeQuery" title="GTypeQuery"><span class="type">GTypeQuery</span></a> structure should be considered constant and have to be
|
2411
|
+
<em class="parameter"><code>type</code></em> member of the <a class="link" href="gobject-Type-Information.html#GTypeQuery" title="struct GTypeQuery"><span class="type">GTypeQuery</span></a> is 0. All members filled into the
|
2412
|
+
<a class="link" href="gobject-Type-Information.html#GTypeQuery" title="struct GTypeQuery"><span class="type">GTypeQuery</span></a> structure should be considered constant and have to be
|
2489
2413
|
left untouched.
|
2490
2414
|
</p>
|
2491
2415
|
<div class="variablelist"><table border="0">
|
@@ -2493,27 +2417,26 @@ left untouched.
|
|
2493
2417
|
<tbody>
|
2494
2418
|
<tr>
|
2495
2419
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
2496
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of a static, classed type
|
2497
|
-
</td>
|
2420
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of a static, classed type.</td>
|
2498
2421
|
</tr>
|
2499
2422
|
<tr>
|
2500
2423
|
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
|
2501
|
-
<td>A user provided structure that is
|
2502
|
-
upon success.
|
2424
|
+
<td>A user provided structure that is
|
2425
|
+
filled in with constant values upon success. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym> caller-allocates]</span>
|
2503
2426
|
</td>
|
2504
2427
|
</tr>
|
2505
2428
|
</tbody>
|
2506
2429
|
</table></div>
|
2507
2430
|
</div>
|
2508
2431
|
<hr>
|
2509
|
-
<div class="refsect2"
|
2510
|
-
<a name="GTypeQuery"></a><h3>GTypeQuery</h3>
|
2511
|
-
<pre class="programlisting">
|
2432
|
+
<div class="refsect2">
|
2433
|
+
<a name="GTypeQuery"></a><h3>struct GTypeQuery</h3>
|
2434
|
+
<pre class="programlisting">struct GTypeQuery {
|
2512
2435
|
GType type;
|
2513
2436
|
const gchar *type_name;
|
2514
2437
|
guint class_size;
|
2515
2438
|
guint instance_size;
|
2516
|
-
}
|
2439
|
+
};
|
2517
2440
|
</pre>
|
2518
2441
|
<p>
|
2519
2442
|
A structure holding information for a specific type. It is
|
@@ -2524,29 +2447,25 @@ filled in by the <a class="link" href="gobject-Type-Information.html#g-type-quer
|
|
2524
2447
|
<tbody>
|
2525
2448
|
<tr>
|
2526
2449
|
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> <em class="structfield"><code><a name="GTypeQuery.type"></a>type</code></em>;</span></p></td>
|
2527
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of the type
|
2528
|
-
</td>
|
2450
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of the type.</td>
|
2529
2451
|
</tr>
|
2530
2452
|
<tr>
|
2531
2453
|
<td><p><span class="term">const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GTypeQuery.type-name"></a>type_name</code></em>;</span></p></td>
|
2532
|
-
<td>the name of the type
|
2533
|
-
</td>
|
2454
|
+
<td>the name of the type.</td>
|
2534
2455
|
</tr>
|
2535
2456
|
<tr>
|
2536
2457
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GTypeQuery.class-size"></a>class_size</code></em>;</span></p></td>
|
2537
|
-
<td>the size of the class structure
|
2538
|
-
</td>
|
2458
|
+
<td>the size of the class structure.</td>
|
2539
2459
|
</tr>
|
2540
2460
|
<tr>
|
2541
2461
|
<td><p><span class="term"><a href="./../glib/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GTypeQuery.instance-size"></a>instance_size</code></em>;</span></p></td>
|
2542
|
-
<td>the size of the instance structure
|
2543
|
-
</td>
|
2462
|
+
<td>the size of the instance structure.</td>
|
2544
2463
|
</tr>
|
2545
2464
|
</tbody>
|
2546
2465
|
</table></div>
|
2547
2466
|
</div>
|
2548
2467
|
<hr>
|
2549
|
-
<div class="refsect2"
|
2468
|
+
<div class="refsect2">
|
2550
2469
|
<a name="GBaseInitFunc"></a><h3>GBaseInitFunc ()</h3>
|
2551
2470
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GBaseInitFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
2552
2471
|
<p>
|
@@ -2563,13 +2482,12 @@ intialization process.
|
|
2563
2482
|
<col align="left" valign="top">
|
2564
2483
|
<tbody><tr>
|
2565
2484
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2566
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to initialize
|
2567
|
-
</td>
|
2485
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to initialize.</td>
|
2568
2486
|
</tr></tbody>
|
2569
2487
|
</table></div>
|
2570
2488
|
</div>
|
2571
2489
|
<hr>
|
2572
|
-
<div class="refsect2"
|
2490
|
+
<div class="refsect2">
|
2573
2491
|
<a name="GBaseFinalizeFunc"></a><h3>GBaseFinalizeFunc ()</h3>
|
2574
2492
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GBaseFinalizeFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
2575
2493
|
<p>
|
@@ -2583,13 +2501,12 @@ See <a class="link" href="gobject-Type-Information.html#GClassInitFunc" title="G
|
|
2583
2501
|
<col align="left" valign="top">
|
2584
2502
|
<tbody><tr>
|
2585
2503
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2586
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to finalize
|
2587
|
-
</td>
|
2504
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to finalize.</td>
|
2588
2505
|
</tr></tbody>
|
2589
2506
|
</table></div>
|
2590
2507
|
</div>
|
2591
2508
|
<hr>
|
2592
|
-
<div class="refsect2"
|
2509
|
+
<div class="refsect2">
|
2593
2510
|
<a name="GClassInitFunc"></a><h3>GClassInitFunc ()</h3>
|
2594
2511
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GClassInitFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>,
|
2595
2512
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> class_data</code></em>);</pre>
|
@@ -2751,19 +2668,17 @@ time.
|
|
2751
2668
|
<tbody>
|
2752
2669
|
<tr>
|
2753
2670
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2754
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to initialize
|
2755
|
-
</td>
|
2671
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to initialize.</td>
|
2756
2672
|
</tr>
|
2757
2673
|
<tr>
|
2758
2674
|
<td><p><span class="term"><em class="parameter"><code>class_data</code></em> :</span></p></td>
|
2759
|
-
<td>The <em class="parameter"><code>class_data</code></em> member supplied via the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure
|
2760
|
-
</td>
|
2675
|
+
<td>The <em class="parameter"><code>class_data</code></em> member supplied via the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure.</td>
|
2761
2676
|
</tr>
|
2762
2677
|
</tbody>
|
2763
2678
|
</table></div>
|
2764
2679
|
</div>
|
2765
2680
|
<hr>
|
2766
|
-
<div class="refsect2"
|
2681
|
+
<div class="refsect2">
|
2767
2682
|
<a name="GClassFinalizeFunc"></a><h3>GClassFinalizeFunc ()</h3>
|
2768
2683
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GClassFinalizeFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>,
|
2769
2684
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> class_data</code></em>);</pre>
|
@@ -2771,7 +2686,7 @@ time.
|
|
2771
2686
|
A callback function used by the type system to finalize a class.
|
2772
2687
|
This function is rarely needed, as dynamically allocated class resources
|
2773
2688
|
should be handled by <a class="link" href="gobject-Type-Information.html#GBaseInitFunc" title="GBaseInitFunc ()"><code class="function">GBaseInitFunc()</code></a> and <a class="link" href="gobject-Type-Information.html#GBaseFinalizeFunc" title="GBaseFinalizeFunc ()"><code class="function">GBaseFinalizeFunc()</code></a>.
|
2774
|
-
Also, specification of a <a class="link" href="gobject-Type-Information.html#GClassFinalizeFunc" title="GClassFinalizeFunc ()"><code class="function">GClassFinalizeFunc()</code></a> in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>
|
2689
|
+
Also, specification of a <a class="link" href="gobject-Type-Information.html#GClassFinalizeFunc" title="GClassFinalizeFunc ()"><code class="function">GClassFinalizeFunc()</code></a> in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>
|
2775
2690
|
structure of a static type is invalid, because classes of static types
|
2776
2691
|
will never be finalized (they are artificially kept alive when their
|
2777
2692
|
reference count drops to zero).
|
@@ -2781,21 +2696,19 @@ reference count drops to zero).
|
|
2781
2696
|
<tbody>
|
2782
2697
|
<tr>
|
2783
2698
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2784
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to finalize
|
2785
|
-
</td>
|
2699
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to finalize.</td>
|
2786
2700
|
</tr>
|
2787
2701
|
<tr>
|
2788
2702
|
<td><p><span class="term"><em class="parameter"><code>class_data</code></em> :</span></p></td>
|
2789
|
-
<td>The <em class="parameter"><code>class_data</code></em> member supplied via the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure
|
2790
|
-
</td>
|
2703
|
+
<td>The <em class="parameter"><code>class_data</code></em> member supplied via the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure.</td>
|
2791
2704
|
</tr>
|
2792
2705
|
</tbody>
|
2793
2706
|
</table></div>
|
2794
2707
|
</div>
|
2795
2708
|
<hr>
|
2796
|
-
<div class="refsect2"
|
2709
|
+
<div class="refsect2">
|
2797
2710
|
<a name="GInstanceInitFunc"></a><h3>GInstanceInitFunc ()</h3>
|
2798
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*GInstanceInitFunc) (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>,
|
2711
|
+
<pre class="programlisting"><span class="returnvalue">void</span> (*GInstanceInitFunc) (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>,
|
2799
2712
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
2800
2713
|
<p>
|
2801
2714
|
A callback function used by the type system to initialize a new
|
@@ -2811,19 +2724,17 @@ belongs to the type the current initializer was introduced for.
|
|
2811
2724
|
<tbody>
|
2812
2725
|
<tr>
|
2813
2726
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
2814
|
-
<td>The instance to initialize
|
2815
|
-
</td>
|
2727
|
+
<td>The instance to initialize.</td>
|
2816
2728
|
</tr>
|
2817
2729
|
<tr>
|
2818
2730
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2819
|
-
<td>The class of the type the instance is created for
|
2820
|
-
</td>
|
2731
|
+
<td>The class of the type the instance is created for.</td>
|
2821
2732
|
</tr>
|
2822
2733
|
</tbody>
|
2823
2734
|
</table></div>
|
2824
2735
|
</div>
|
2825
2736
|
<hr>
|
2826
|
-
<div class="refsect2"
|
2737
|
+
<div class="refsect2">
|
2827
2738
|
<a name="GInterfaceInitFunc"></a><h3>GInterfaceInitFunc ()</h3>
|
2828
2739
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GInterfaceInitFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
|
2829
2740
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);</pre>
|
@@ -2837,19 +2748,17 @@ allocate any resources required by the interface.
|
|
2837
2748
|
<tbody>
|
2838
2749
|
<tr>
|
2839
2750
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
2840
|
-
<td>The interface structure to initialize
|
2841
|
-
</td>
|
2751
|
+
<td>The interface structure to initialize.</td>
|
2842
2752
|
</tr>
|
2843
2753
|
<tr>
|
2844
2754
|
<td><p><span class="term"><em class="parameter"><code>iface_data</code></em> :</span></p></td>
|
2845
|
-
<td>The <em class="parameter"><code>interface_data</code></em> supplied via the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure
|
2846
|
-
</td>
|
2755
|
+
<td>The <em class="parameter"><code>interface_data</code></em> supplied via the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure.</td>
|
2847
2756
|
</tr>
|
2848
2757
|
</tbody>
|
2849
2758
|
</table></div>
|
2850
2759
|
</div>
|
2851
2760
|
<hr>
|
2852
|
-
<div class="refsect2"
|
2761
|
+
<div class="refsect2">
|
2853
2762
|
<a name="GInterfaceFinalizeFunc"></a><h3>GInterfaceFinalizeFunc ()</h3>
|
2854
2763
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GInterfaceFinalizeFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>,
|
2855
2764
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> iface_data</code></em>);</pre>
|
@@ -2863,22 +2772,20 @@ allocated by the corresponding <a class="link" href="gobject-Type-Information.ht
|
|
2863
2772
|
<tbody>
|
2864
2773
|
<tr>
|
2865
2774
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
2866
|
-
<td>The interface structure to finalize
|
2867
|
-
</td>
|
2775
|
+
<td>The interface structure to finalize.</td>
|
2868
2776
|
</tr>
|
2869
2777
|
<tr>
|
2870
2778
|
<td><p><span class="term"><em class="parameter"><code>iface_data</code></em> :</span></p></td>
|
2871
|
-
<td>The <em class="parameter"><code>interface_data</code></em> supplied via the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure
|
2872
|
-
</td>
|
2779
|
+
<td>The <em class="parameter"><code>interface_data</code></em> supplied via the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure.</td>
|
2873
2780
|
</tr>
|
2874
2781
|
</tbody>
|
2875
2782
|
</table></div>
|
2876
2783
|
</div>
|
2877
2784
|
<hr>
|
2878
|
-
<div class="refsect2"
|
2785
|
+
<div class="refsect2">
|
2879
2786
|
<a name="GTypeClassCacheFunc"></a><h3>GTypeClassCacheFunc ()</h3>
|
2880
2787
|
<pre class="programlisting"><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GTypeClassCacheFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
2881
|
-
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> *g_class</code></em>);</pre>
|
2788
|
+
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> *g_class</code></em>);</pre>
|
2882
2789
|
<p>
|
2883
2790
|
A callback function which is called when the reference count of a class
|
2884
2791
|
drops to zero. It may use <a class="link" href="gobject-Type-Information.html#g-type-class-ref" title="g_type_class_ref ()"><code class="function">g_type_class_ref()</code></a> to prevent the class from
|
@@ -2896,25 +2803,23 @@ classes are routed through the same <a class="link" href="gobject-Type-Informati
|
|
2896
2803
|
<tbody>
|
2897
2804
|
<tr>
|
2898
2805
|
<td><p><span class="term"><em class="parameter"><code>cache_data</code></em> :</span></p></td>
|
2899
|
-
<td>data that was given to the <a class="link" href="gobject-Type-Information.html#g-type-add-class-cache-func" title="g_type_add_class_cache_func ()"><code class="function">g_type_add_class_cache_func()</code></a> call
|
2900
|
-
</td>
|
2806
|
+
<td>data that was given to the <a class="link" href="gobject-Type-Information.html#g-type-add-class-cache-func" title="g_type_add_class_cache_func ()"><code class="function">g_type_add_class_cache_func()</code></a> call</td>
|
2901
2807
|
</tr>
|
2902
2808
|
<tr>
|
2903
2809
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
2904
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure which is unreferenced
|
2905
|
-
</td>
|
2810
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure which is unreferenced</td>
|
2906
2811
|
</tr>
|
2907
2812
|
<tr>
|
2908
2813
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2909
|
-
<td>
|
2910
|
-
|
2911
|
-
</td>
|
2814
|
+
<td>
|
2815
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to stop further <a class="link" href="gobject-Type-Information.html#GTypeClassCacheFunc" title="GTypeClassCacheFunc ()"><span class="type">GTypeClassCacheFunc</span></a>s from being
|
2816
|
+
called, <a href="./../glib/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to continue.</td>
|
2912
2817
|
</tr>
|
2913
2818
|
</tbody>
|
2914
2819
|
</table></div>
|
2915
2820
|
</div>
|
2916
2821
|
<hr>
|
2917
|
-
<div class="refsect2"
|
2822
|
+
<div class="refsect2">
|
2918
2823
|
<a name="GTypeFlags"></a><h3>enum GTypeFlags</h3>
|
2919
2824
|
<pre class="programlisting">typedef enum /*< skip >*/
|
2920
2825
|
{
|
@@ -2945,7 +2850,7 @@ Bit masks used to check or determine characteristics of a type.
|
|
2945
2850
|
</table></div>
|
2946
2851
|
</div>
|
2947
2852
|
<hr>
|
2948
|
-
<div class="refsect2"
|
2853
|
+
<div class="refsect2">
|
2949
2854
|
<a name="GTypeFundamentalFlags"></a><h3>enum GTypeFundamentalFlags</h3>
|
2950
2855
|
<pre class="programlisting">typedef enum /*< skip >*/
|
2951
2856
|
{
|
@@ -2986,16 +2891,16 @@ fundamental type.
|
|
2986
2891
|
</table></div>
|
2987
2892
|
</div>
|
2988
2893
|
<hr>
|
2989
|
-
<div class="refsect2"
|
2894
|
+
<div class="refsect2">
|
2990
2895
|
<a name="g-type-register-static"></a><h3>g_type_register_static ()</h3>
|
2991
2896
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_register_static (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> parent_type</code></em>,
|
2992
2897
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
2993
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
2898
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
2994
2899
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> flags</code></em>);</pre>
|
2995
2900
|
<p>
|
2996
2901
|
Registers <em class="parameter"><code>type_name</code></em> as the name of a new static type derived from
|
2997
2902
|
<em class="parameter"><code>parent_type</code></em>. The type system uses the information contained in the
|
2998
|
-
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure pointed to by <em class="parameter"><code>info</code></em> to manage the type and its
|
2903
|
+
<a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure pointed to by <em class="parameter"><code>info</code></em> to manage the type and its
|
2999
2904
|
instances (if not abstract). The value of <em class="parameter"><code>flags</code></em> determines the nature
|
3000
2905
|
(e.g. abstract or not) of the type.
|
3001
2906
|
</p>
|
@@ -3004,34 +2909,29 @@ instances (if not abstract). The value of <em class="parameter"><code>flags</co
|
|
3004
2909
|
<tbody>
|
3005
2910
|
<tr>
|
3006
2911
|
<td><p><span class="term"><em class="parameter"><code>parent_type</code></em> :</span></p></td>
|
3007
|
-
<td>Type from which this type will be derived
|
3008
|
-
</td>
|
2912
|
+
<td>Type from which this type will be derived.</td>
|
3009
2913
|
</tr>
|
3010
2914
|
<tr>
|
3011
2915
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
3012
|
-
<td>0-terminated string used as the name of the new type
|
3013
|
-
</td>
|
2916
|
+
<td>0-terminated string used as the name of the new type.</td>
|
3014
2917
|
</tr>
|
3015
2918
|
<tr>
|
3016
2919
|
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
|
3017
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure for this type
|
3018
|
-
</td>
|
2920
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure for this type.</td>
|
3019
2921
|
</tr>
|
3020
2922
|
<tr>
|
3021
2923
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
3022
|
-
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values
|
3023
|
-
</td>
|
2924
|
+
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values.</td>
|
3024
2925
|
</tr>
|
3025
2926
|
<tr>
|
3026
2927
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3027
|
-
<td>
|
3028
|
-
</td>
|
2928
|
+
<td>The new type identifier.</td>
|
3029
2929
|
</tr>
|
3030
2930
|
</tbody>
|
3031
2931
|
</table></div>
|
3032
2932
|
</div>
|
3033
2933
|
<hr>
|
3034
|
-
<div class="refsect2"
|
2934
|
+
<div class="refsect2">
|
3035
2935
|
<a name="g-type-register-static-simple"></a><h3>g_type_register_static_simple ()</h3>
|
3036
2936
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_register_static_simple (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> parent_type</code></em>,
|
3037
2937
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
@@ -3043,7 +2943,7 @@ instances (if not abstract). The value of <em class="parameter"><code>flags</co
|
|
3043
2943
|
<p>
|
3044
2944
|
Registers <em class="parameter"><code>type_name</code></em> as the name of a new static type derived from
|
3045
2945
|
<em class="parameter"><code>parent_type</code></em>. The value of <em class="parameter"><code>flags</code></em> determines the nature (e.g.
|
3046
|
-
abstract or not) of the type. It works by filling a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>
|
2946
|
+
abstract or not) of the type. It works by filling a <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>
|
3047
2947
|
struct and calling <a class="link" href="gobject-Type-Information.html#g-type-register-static" title="g_type_register_static ()"><code class="function">g_type_register_static()</code></a>.
|
3048
2948
|
</p>
|
3049
2949
|
<div class="variablelist"><table border="0">
|
@@ -3051,50 +2951,42 @@ struct and calling <a class="link" href="gobject-Type-Information.html#g-type-re
|
|
3051
2951
|
<tbody>
|
3052
2952
|
<tr>
|
3053
2953
|
<td><p><span class="term"><em class="parameter"><code>parent_type</code></em> :</span></p></td>
|
3054
|
-
<td>Type from which this type will be derived
|
3055
|
-
</td>
|
2954
|
+
<td>Type from which this type will be derived.</td>
|
3056
2955
|
</tr>
|
3057
2956
|
<tr>
|
3058
2957
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
3059
|
-
<td>0-terminated string used as the name of the new type
|
3060
|
-
</td>
|
2958
|
+
<td>0-terminated string used as the name of the new type.</td>
|
3061
2959
|
</tr>
|
3062
2960
|
<tr>
|
3063
2961
|
<td><p><span class="term"><em class="parameter"><code>class_size</code></em> :</span></p></td>
|
3064
|
-
<td>Size of the class structure (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>)
|
3065
|
-
</td>
|
2962
|
+
<td>Size of the class structure (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>)</td>
|
3066
2963
|
</tr>
|
3067
2964
|
<tr>
|
3068
2965
|
<td><p><span class="term"><em class="parameter"><code>class_init</code></em> :</span></p></td>
|
3069
|
-
<td>Location of the class initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>)
|
3070
|
-
</td>
|
2966
|
+
<td>Location of the class initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>)</td>
|
3071
2967
|
</tr>
|
3072
2968
|
<tr>
|
3073
2969
|
<td><p><span class="term"><em class="parameter"><code>instance_size</code></em> :</span></p></td>
|
3074
|
-
<td>Size of the instance structure (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>)
|
3075
|
-
</td>
|
2970
|
+
<td>Size of the instance structure (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>)</td>
|
3076
2971
|
</tr>
|
3077
2972
|
<tr>
|
3078
2973
|
<td><p><span class="term"><em class="parameter"><code>instance_init</code></em> :</span></p></td>
|
3079
|
-
<td>Location of the instance initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a>)
|
3080
|
-
</td>
|
2974
|
+
<td>Location of the instance initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a>)</td>
|
3081
2975
|
</tr>
|
3082
2976
|
<tr>
|
3083
2977
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
3084
|
-
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values
|
3085
|
-
</td>
|
2978
|
+
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values.</td>
|
3086
2979
|
</tr>
|
3087
2980
|
<tr>
|
3088
2981
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3089
|
-
<td>
|
3090
|
-
</td>
|
2982
|
+
<td>The new type identifier.</td>
|
3091
2983
|
</tr>
|
3092
2984
|
</tbody>
|
3093
2985
|
</table></div>
|
3094
2986
|
<p class="since">Since 2.12</p>
|
3095
2987
|
</div>
|
3096
2988
|
<hr>
|
3097
|
-
<div class="refsect2"
|
2989
|
+
<div class="refsect2">
|
3098
2990
|
<a name="g-type-register-dynamic"></a><h3>g_type_register_dynamic ()</h3>
|
3099
2991
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_register_dynamic (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> parent_type</code></em>,
|
3100
2992
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
@@ -3112,45 +3004,40 @@ instances (if not abstract). The value of <em class="parameter"><code>flags</co
|
|
3112
3004
|
<tbody>
|
3113
3005
|
<tr>
|
3114
3006
|
<td><p><span class="term"><em class="parameter"><code>parent_type</code></em> :</span></p></td>
|
3115
|
-
<td>Type from which this type will be derived
|
3116
|
-
</td>
|
3007
|
+
<td>Type from which this type will be derived.</td>
|
3117
3008
|
</tr>
|
3118
3009
|
<tr>
|
3119
3010
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
3120
|
-
<td>0-terminated string used as the name of the new type
|
3121
|
-
</td>
|
3011
|
+
<td>0-terminated string used as the name of the new type.</td>
|
3122
3012
|
</tr>
|
3123
3013
|
<tr>
|
3124
3014
|
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
|
3125
|
-
<td>The <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure to retrieve the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> from
|
3126
|
-
</td>
|
3015
|
+
<td>The <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure to retrieve the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> from.</td>
|
3127
3016
|
</tr>
|
3128
3017
|
<tr>
|
3129
3018
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
3130
|
-
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values
|
3131
|
-
</td>
|
3019
|
+
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values.</td>
|
3132
3020
|
</tr>
|
3133
3021
|
<tr>
|
3134
3022
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3135
|
-
<td>
|
3136
|
-
</td>
|
3023
|
+
<td>The new type identifier or <a class="link" href="gobject-Type-Information.html#G-TYPE-INVALID:CAPS" title="G_TYPE_INVALID"><span class="type">G_TYPE_INVALID</span></a> if registration failed.</td>
|
3137
3024
|
</tr>
|
3138
3025
|
</tbody>
|
3139
3026
|
</table></div>
|
3140
3027
|
</div>
|
3141
3028
|
<hr>
|
3142
|
-
<div class="refsect2"
|
3029
|
+
<div class="refsect2">
|
3143
3030
|
<a name="g-type-register-fundamental"></a><h3>g_type_register_fundamental ()</h3>
|
3144
3031
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_register_fundamental (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type_id</code></em>,
|
3145
3032
|
<em class="parameter"><code>const <a href="./../glib/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type_name</code></em>,
|
3146
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
3147
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> *finfo</code></em>,
|
3033
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> *info</code></em>,
|
3034
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> *finfo</code></em>,
|
3148
3035
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> flags</code></em>);</pre>
|
3149
3036
|
<p>
|
3150
3037
|
Registers <em class="parameter"><code>type_id</code></em> as the predefined identifier and <em class="parameter"><code>type_name</code></em> as the
|
3151
3038
|
name of a fundamental type. The type system uses the information
|
3152
|
-
contained in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure pointed to by <em class="parameter"><code>info</code></em> and the
|
3153
|
-
<a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure pointed to by <em class="parameter"><code>finfo</code></em> to manage the
|
3039
|
+
contained in the <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure pointed to by <em class="parameter"><code>info</code></em> and the
|
3040
|
+
<a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure pointed to by <em class="parameter"><code>finfo</code></em> to manage the
|
3154
3041
|
type and its instances. The value of <em class="parameter"><code>flags</code></em> determines additional
|
3155
3042
|
characteristics of the fundamental type.
|
3156
3043
|
</p>
|
@@ -3159,43 +3046,37 @@ characteristics of the fundamental type.
|
|
3159
3046
|
<tbody>
|
3160
3047
|
<tr>
|
3161
3048
|
<td><p><span class="term"><em class="parameter"><code>type_id</code></em> :</span></p></td>
|
3162
|
-
<td>A predefined type identifier
|
3163
|
-
</td>
|
3049
|
+
<td>A predefined type identifier.</td>
|
3164
3050
|
</tr>
|
3165
3051
|
<tr>
|
3166
3052
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
3167
|
-
<td>0-terminated string used as the name of the new type
|
3168
|
-
</td>
|
3053
|
+
<td>0-terminated string used as the name of the new type.</td>
|
3169
3054
|
</tr>
|
3170
3055
|
<tr>
|
3171
3056
|
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
|
3172
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> structure for this type
|
3173
|
-
</td>
|
3057
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> structure for this type.</td>
|
3174
3058
|
</tr>
|
3175
3059
|
<tr>
|
3176
3060
|
<td><p><span class="term"><em class="parameter"><code>finfo</code></em> :</span></p></td>
|
3177
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure for this type
|
3178
|
-
</td>
|
3061
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeFundamentalInfo" title="struct GTypeFundamentalInfo"><span class="type">GTypeFundamentalInfo</span></a> structure for this type.</td>
|
3179
3062
|
</tr>
|
3180
3063
|
<tr>
|
3181
3064
|
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
|
3182
|
-
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values
|
3183
|
-
</td>
|
3065
|
+
<td>Bitwise combination of <a class="link" href="gobject-Type-Information.html#GTypeFlags" title="enum GTypeFlags"><span class="type">GTypeFlags</span></a> values.</td>
|
3184
3066
|
</tr>
|
3185
3067
|
<tr>
|
3186
3068
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3187
|
-
<td>
|
3188
|
-
</td>
|
3069
|
+
<td>The predefined type identifier.</td>
|
3189
3070
|
</tr>
|
3190
3071
|
</tbody>
|
3191
3072
|
</table></div>
|
3192
3073
|
</div>
|
3193
3074
|
<hr>
|
3194
|
-
<div class="refsect2"
|
3075
|
+
<div class="refsect2">
|
3195
3076
|
<a name="g-type-add-interface-static"></a><h3>g_type_add_interface_static ()</h3>
|
3196
3077
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_add_interface_static (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
3197
3078
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
3198
|
-
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);</pre>
|
3079
|
+
<em class="parameter"><code>const <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> *info</code></em>);</pre>
|
3199
3080
|
<p>
|
3200
3081
|
Adds the static <em class="parameter"><code>interface_type</code></em> to <em class="parameter"><code>instantiable_type</code></em>. The information
|
3201
3082
|
contained in the <span class="type">GTypeInterfaceInfo</span> structure pointed to by <em class="parameter"><code>info</code></em>
|
@@ -3207,26 +3088,23 @@ is used to manage the relationship.
|
|
3207
3088
|
<tr>
|
3208
3089
|
<td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
|
3209
3090
|
<td>
|
3210
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiable type
|
3211
|
-
</td>
|
3091
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiable type.</td>
|
3212
3092
|
</tr>
|
3213
3093
|
<tr>
|
3214
3094
|
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
|
3215
3095
|
<td>
|
3216
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type
|
3217
|
-
</td>
|
3096
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type.</td>
|
3218
3097
|
</tr>
|
3219
3098
|
<tr>
|
3220
3099
|
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
|
3221
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure for this
|
3222
|
-
|
3223
|
-
</td>
|
3100
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> structure for this
|
3101
|
+
(<em class="parameter"><code>instance_type</code></em>, <em class="parameter"><code>interface_type</code></em>) combination.</td>
|
3224
3102
|
</tr>
|
3225
3103
|
</tbody>
|
3226
3104
|
</table></div>
|
3227
3105
|
</div>
|
3228
3106
|
<hr>
|
3229
|
-
<div class="refsect2"
|
3107
|
+
<div class="refsect2">
|
3230
3108
|
<a name="g-type-add-interface-dynamic"></a><h3>g_type_add_interface_dynamic ()</h3>
|
3231
3109
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_add_interface_dynamic (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
3232
3110
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
@@ -3241,24 +3119,21 @@ is used to manage the relationship.
|
|
3241
3119
|
<tbody>
|
3242
3120
|
<tr>
|
3243
3121
|
<td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
|
3244
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiable type
|
3245
|
-
</td>
|
3122
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiable type.</td>
|
3246
3123
|
</tr>
|
3247
3124
|
<tr>
|
3248
3125
|
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
|
3249
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type
|
3250
|
-
</td>
|
3126
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type.</td>
|
3251
3127
|
</tr>
|
3252
3128
|
<tr>
|
3253
3129
|
<td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
|
3254
|
-
<td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure to retrieve the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> from
|
3255
|
-
</td>
|
3130
|
+
<td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure to retrieve the <a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> from.</td>
|
3256
3131
|
</tr>
|
3257
3132
|
</tbody>
|
3258
3133
|
</table></div>
|
3259
3134
|
</div>
|
3260
3135
|
<hr>
|
3261
|
-
<div class="refsect2"
|
3136
|
+
<div class="refsect2">
|
3262
3137
|
<a name="g-type-interface-add-prerequisite"></a><h3>g_type_interface_add_prerequisite ()</h3>
|
3263
3138
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_interface_add_prerequisite (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>,
|
3264
3139
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> prerequisite_type</code></em>);</pre>
|
@@ -3275,22 +3150,20 @@ at most one instantiatable prerequisite type.
|
|
3275
3150
|
<tr>
|
3276
3151
|
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
|
3277
3152
|
<td>
|
3278
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type
|
3279
|
-
</td>
|
3153
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type.</td>
|
3280
3154
|
</tr>
|
3281
3155
|
<tr>
|
3282
3156
|
<td><p><span class="term"><em class="parameter"><code>prerequisite_type</code></em> :</span></p></td>
|
3283
3157
|
<td>
|
3284
|
-
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface or instantiatable type
|
3285
|
-
</td>
|
3158
|
+
<a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface or instantiatable type.</td>
|
3286
3159
|
</tr>
|
3287
3160
|
</tbody>
|
3288
3161
|
</table></div>
|
3289
3162
|
</div>
|
3290
3163
|
<hr>
|
3291
|
-
<div class="refsect2"
|
3164
|
+
<div class="refsect2">
|
3292
3165
|
<a name="g-type-get-plugin"></a><h3>g_type_get_plugin ()</h3>
|
3293
|
-
<pre class="programlisting"><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a
|
3166
|
+
<pre class="programlisting"><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a> * g_type_get_plugin (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
3294
3167
|
<p>
|
3295
3168
|
Returns the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure for <em class="parameter"><code>type</code></em> or
|
3296
3169
|
<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>type</code></em> does not have a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure.
|
@@ -3300,22 +3173,21 @@ Returns the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span cl
|
|
3300
3173
|
<tbody>
|
3301
3174
|
<tr>
|
3302
3175
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
3303
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> to retrieve the plugin for
|
3304
|
-
</td>
|
3176
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> to retrieve the plugin for.</td>
|
3305
3177
|
</tr>
|
3306
3178
|
<tr>
|
3307
3179
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3308
|
-
<td>
|
3309
|
-
<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise.
|
3180
|
+
<td>The corresponding plugin if <em class="parameter"><code>type</code></em> is a
|
3181
|
+
dynamic type, <a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
3310
3182
|
</td>
|
3311
3183
|
</tr>
|
3312
3184
|
</tbody>
|
3313
3185
|
</table></div>
|
3314
3186
|
</div>
|
3315
3187
|
<hr>
|
3316
|
-
<div class="refsect2"
|
3188
|
+
<div class="refsect2">
|
3317
3189
|
<a name="g-type-interface-get-plugin"></a><h3>g_type_interface_get_plugin ()</h3>
|
3318
|
-
<pre class="programlisting"><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a
|
3190
|
+
<pre class="programlisting"><a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="returnvalue">GTypePlugin</span></a> * g_type_interface_get_plugin (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> instance_type</code></em>,
|
3319
3191
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> interface_type</code></em>);</pre>
|
3320
3192
|
<p>
|
3321
3193
|
Returns the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> structure for the dynamic interface
|
@@ -3328,25 +3200,23 @@ have a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="
|
|
3328
3200
|
<tbody>
|
3329
3201
|
<tr>
|
3330
3202
|
<td><p><span class="term"><em class="parameter"><code>instance_type</code></em> :</span></p></td>
|
3331
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiatable type
|
3332
|
-
</td>
|
3203
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an instantiatable type.</td>
|
3333
3204
|
</tr>
|
3334
3205
|
<tr>
|
3335
3206
|
<td><p><span class="term"><em class="parameter"><code>interface_type</code></em> :</span></p></td>
|
3336
|
-
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type
|
3337
|
-
</td>
|
3207
|
+
<td>the <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value of an interface type.</td>
|
3338
3208
|
</tr>
|
3339
3209
|
<tr>
|
3340
3210
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3341
|
-
<td>
|
3342
|
-
of <em class="parameter"><code>instance_type</code></em>.
|
3211
|
+
<td>the <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> for the dynamic
|
3212
|
+
interface <em class="parameter"><code>interface_type</code></em> of <em class="parameter"><code>instance_type</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
3343
3213
|
</td>
|
3344
3214
|
</tr>
|
3345
3215
|
</tbody>
|
3346
3216
|
</table></div>
|
3347
3217
|
</div>
|
3348
3218
|
<hr>
|
3349
|
-
<div class="refsect2"
|
3219
|
+
<div class="refsect2">
|
3350
3220
|
<a name="g-type-fundamental-next"></a><h3>g_type_fundamental_next ()</h3>
|
3351
3221
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_fundamental_next (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3352
3222
|
<p>
|
@@ -3359,14 +3229,13 @@ fundamental type identifier.
|
|
3359
3229
|
<col align="left" valign="top">
|
3360
3230
|
<tbody><tr>
|
3361
3231
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3362
|
-
<td>
|
3363
|
-
|
3364
|
-
</td>
|
3232
|
+
<td>The nextmost fundamental type ID to be registered,
|
3233
|
+
or 0 if the type system ran out of fundamental type IDs.</td>
|
3365
3234
|
</tr></tbody>
|
3366
3235
|
</table></div>
|
3367
3236
|
</div>
|
3368
3237
|
<hr>
|
3369
|
-
<div class="refsect2"
|
3238
|
+
<div class="refsect2">
|
3370
3239
|
<a name="g-type-fundamental"></a><h3>g_type_fundamental ()</h3>
|
3371
3240
|
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="returnvalue">GType</span></a> g_type_fundamental (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type_id</code></em>);</pre>
|
3372
3241
|
<p>
|
@@ -3378,21 +3247,19 @@ use <a class="link" href="gobject-Type-Information.html#G-TYPE-FUNDAMENTAL:CAPS"
|
|
3378
3247
|
<tbody>
|
3379
3248
|
<tr>
|
3380
3249
|
<td><p><span class="term"><em class="parameter"><code>type_id</code></em> :</span></p></td>
|
3381
|
-
<td>valid type ID
|
3382
|
-
</td>
|
3250
|
+
<td>valid type ID</td>
|
3383
3251
|
</tr>
|
3384
3252
|
<tr>
|
3385
3253
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3386
|
-
<td>
|
3387
|
-
</td>
|
3254
|
+
<td>fundamental type ID</td>
|
3388
3255
|
</tr>
|
3389
3256
|
</tbody>
|
3390
3257
|
</table></div>
|
3391
3258
|
</div>
|
3392
3259
|
<hr>
|
3393
|
-
<div class="refsect2"
|
3260
|
+
<div class="refsect2">
|
3394
3261
|
<a name="g-type-create-instance"></a><h3>g_type_create_instance ()</h3>
|
3395
|
-
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="returnvalue">GTypeInstance</span></a
|
3262
|
+
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="returnvalue">GTypeInstance</span></a> * g_type_create_instance (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
3396
3263
|
<p>
|
3397
3264
|
Creates and initializes an instance of <em class="parameter"><code>type</code></em> if <em class="parameter"><code>type</code></em> is valid and
|
3398
3265
|
can be instantiated. The type system only performs basic allocation
|
@@ -3413,22 +3280,20 @@ this function but <a class="link" href="gobject-The-Base-Object-Type.html#g-obje
|
|
3413
3280
|
<tbody>
|
3414
3281
|
<tr>
|
3415
3282
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
3416
|
-
<td>An instantiatable type to create an instance for
|
3417
|
-
</td>
|
3283
|
+
<td>An instantiatable type to create an instance for.</td>
|
3418
3284
|
</tr>
|
3419
3285
|
<tr>
|
3420
3286
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3421
|
-
<td>
|
3422
|
-
|
3423
|
-
</td>
|
3287
|
+
<td>An allocated and initialized instance, subject to further
|
3288
|
+
treatment by the fundamental type implementation.</td>
|
3424
3289
|
</tr>
|
3425
3290
|
</tbody>
|
3426
3291
|
</table></div>
|
3427
3292
|
</div>
|
3428
3293
|
<hr>
|
3429
|
-
<div class="refsect2"
|
3294
|
+
<div class="refsect2">
|
3430
3295
|
<a name="g-type-free-instance"></a><h3>g_type_free_instance ()</h3>
|
3431
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_type_free_instance (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>);</pre>
|
3296
|
+
<pre class="programlisting"><span class="returnvalue">void</span> g_type_free_instance (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInstance" title="struct GTypeInstance"><span class="type">GTypeInstance</span></a> *instance</code></em>);</pre>
|
3432
3297
|
<p>
|
3433
3298
|
Frees an instance of a type, returning it to the instance pool for
|
3434
3299
|
the type, if there is one.
|
@@ -3441,13 +3306,12 @@ implementors of fundamental types.
|
|
3441
3306
|
<col align="left" valign="top">
|
3442
3307
|
<tbody><tr>
|
3443
3308
|
<td><p><span class="term"><em class="parameter"><code>instance</code></em> :</span></p></td>
|
3444
|
-
<td>an instance of a type
|
3445
|
-
</td>
|
3309
|
+
<td>an instance of a type.</td>
|
3446
3310
|
</tr></tbody>
|
3447
3311
|
</table></div>
|
3448
3312
|
</div>
|
3449
3313
|
<hr>
|
3450
|
-
<div class="refsect2"
|
3314
|
+
<div class="refsect2">
|
3451
3315
|
<a name="g-type-add-class-cache-func"></a><h3>g_type_add_class_cache_func ()</h3>
|
3452
3316
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_add_class_cache_func (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
3453
3317
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClassCacheFunc" title="GTypeClassCacheFunc ()"><span class="type">GTypeClassCacheFunc</span></a> cache_func</code></em>);</pre>
|
@@ -3477,7 +3341,7 @@ chain.
|
|
3477
3341
|
</table></div>
|
3478
3342
|
</div>
|
3479
3343
|
<hr>
|
3480
|
-
<div class="refsect2"
|
3344
|
+
<div class="refsect2">
|
3481
3345
|
<a name="g-type-remove-class-cache-func"></a><h3>g_type_remove_class_cache_func ()</h3>
|
3482
3346
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_remove_class_cache_func (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> cache_data</code></em>,
|
3483
3347
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeClassCacheFunc" title="GTypeClassCacheFunc ()"><span class="type">GTypeClassCacheFunc</span></a> cache_func</code></em>);</pre>
|
@@ -3503,7 +3367,7 @@ maintained by <em class="parameter"><code>cache_func</code></em> has to be empty
|
|
3503
3367
|
</table></div>
|
3504
3368
|
</div>
|
3505
3369
|
<hr>
|
3506
|
-
<div class="refsect2"
|
3370
|
+
<div class="refsect2">
|
3507
3371
|
<a name="g-type-class-unref-uncached"></a><h3>g_type_class_unref_uncached ()</h3>
|
3508
3372
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_class_unref_uncached (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_class</code></em>);</pre>
|
3509
3373
|
<p>
|
@@ -3516,20 +3380,21 @@ otherwise.
|
|
3516
3380
|
<col align="left" valign="top">
|
3517
3381
|
<tbody><tr>
|
3518
3382
|
<td><p><span class="term"><em class="parameter"><code>g_class</code></em> :</span></p></td>
|
3519
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
3383
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GTypeClass" title="struct GTypeClass"><span class="type">GTypeClass</span></a> structure to
|
3384
|
+
unreference. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> GObject.TypeClass]</span>
|
3520
3385
|
</td>
|
3521
3386
|
</tr></tbody>
|
3522
3387
|
</table></div>
|
3523
3388
|
</div>
|
3524
3389
|
<hr>
|
3525
|
-
<div class="refsect2"
|
3390
|
+
<div class="refsect2">
|
3526
3391
|
<a name="g-type-add-interface-check"></a><h3>g_type_add_interface_check ()</h3>
|
3527
3392
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_add_interface_check (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> check_data</code></em>,
|
3528
3393
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInterfaceCheckFunc" title="GTypeInterfaceCheckFunc ()"><span class="type">GTypeInterfaceCheckFunc</span></a> check_func</code></em>);</pre>
|
3529
3394
|
<p>
|
3530
3395
|
Adds a function to be called after an interface vtable is
|
3531
3396
|
initialized for any class (i.e. after the <em class="parameter"><code>interface_init</code></em> member of
|
3532
|
-
<a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> has been called).
|
3397
|
+
<a class="link" href="gobject-Type-Information.html#GInterfaceInfo" title="struct GInterfaceInfo"><span class="type">GInterfaceInfo</span></a> has been called).
|
3533
3398
|
</p>
|
3534
3399
|
<p>
|
3535
3400
|
This function is useful when you want to check an invariant that
|
@@ -3549,15 +3414,14 @@ interfaces.
|
|
3549
3414
|
<tr>
|
3550
3415
|
<td><p><span class="term"><em class="parameter"><code>check_func</code></em> :</span></p></td>
|
3551
3416
|
<td>function to be called after each interface
|
3552
|
-
|
3553
|
-
</td>
|
3417
|
+
is initialized.</td>
|
3554
3418
|
</tr>
|
3555
3419
|
</tbody>
|
3556
3420
|
</table></div>
|
3557
3421
|
<p class="since">Since 2.4</p>
|
3558
3422
|
</div>
|
3559
3423
|
<hr>
|
3560
|
-
<div class="refsect2"
|
3424
|
+
<div class="refsect2">
|
3561
3425
|
<a name="g-type-remove-interface-check"></a><h3>g_type_remove_interface_check ()</h3>
|
3562
3426
|
<pre class="programlisting"><span class="returnvalue">void</span> g_type_remove_interface_check (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> check_data</code></em>,
|
3563
3427
|
<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GTypeInterfaceCheckFunc" title="GTypeInterfaceCheckFunc ()"><span class="type">GTypeInterfaceCheckFunc</span></a> check_func</code></em>);</pre>
|
@@ -3583,7 +3447,7 @@ Removes an interface check function added with
|
|
3583
3447
|
<p class="since">Since 2.4</p>
|
3584
3448
|
</div>
|
3585
3449
|
<hr>
|
3586
|
-
<div class="refsect2"
|
3450
|
+
<div class="refsect2">
|
3587
3451
|
<a name="GTypeInterfaceCheckFunc"></a><h3>GTypeInterfaceCheckFunc ()</h3>
|
3588
3452
|
<pre class="programlisting"><span class="returnvalue">void</span> (*GTypeInterfaceCheckFunc) (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> check_data</code></em>,
|
3589
3453
|
<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> g_iface</code></em>);</pre>
|
@@ -3596,24 +3460,22 @@ See <a class="link" href="gobject-Type-Information.html#g-type-add-interface-che
|
|
3596
3460
|
<tbody>
|
3597
3461
|
<tr>
|
3598
3462
|
<td><p><span class="term"><em class="parameter"><code>check_data</code></em> :</span></p></td>
|
3599
|
-
<td>data passed to <a class="link" href="gobject-Type-Information.html#g-type-add-interface-check" title="g_type_add_interface_check ()"><code class="function">g_type_add_interface_check()</code></a
|
3600
|
-
</td>
|
3463
|
+
<td>data passed to <a class="link" href="gobject-Type-Information.html#g-type-add-interface-check" title="g_type_add_interface_check ()"><code class="function">g_type_add_interface_check()</code></a>.</td>
|
3601
3464
|
</tr>
|
3602
3465
|
<tr>
|
3603
3466
|
<td><p><span class="term"><em class="parameter"><code>g_iface</code></em> :</span></p></td>
|
3604
|
-
<td>the interface that has been initialized
|
3605
|
-
</td>
|
3467
|
+
<td>the interface that has been initialized</td>
|
3606
3468
|
</tr>
|
3607
3469
|
</tbody>
|
3608
3470
|
</table></div>
|
3609
3471
|
<p class="since">Since 2.4</p>
|
3610
3472
|
</div>
|
3611
3473
|
<hr>
|
3612
|
-
<div class="refsect2"
|
3474
|
+
<div class="refsect2">
|
3613
3475
|
<a name="g-type-value-table-peek"></a><h3>g_type_value_table_peek ()</h3>
|
3614
|
-
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="returnvalue">GTypeValueTable</span></a
|
3476
|
+
<pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="returnvalue">GTypeValueTable</span></a> * g_type_value_table_peek (<em class="parameter"><code><a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> type</code></em>);</pre>
|
3615
3477
|
<p>
|
3616
|
-
Returns the location of the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="GTypeValueTable"><span class="type">GTypeValueTable</span></a> associated with <em class="parameter"><code>type</code></em>.
|
3478
|
+
Returns the location of the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> associated with <em class="parameter"><code>type</code></em>.
|
3617
3479
|
<span class="emphasis"><em>Note that this function should only be used from source code
|
3618
3480
|
that implements or has internal knowledge of the implementation of
|
3619
3481
|
<em class="parameter"><code>type</code></em>.</em></span>
|
@@ -3623,26 +3485,24 @@ that implements or has internal knowledge of the implementation of
|
|
3623
3485
|
<tbody>
|
3624
3486
|
<tr>
|
3625
3487
|
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
3626
|
-
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value
|
3627
|
-
</td>
|
3488
|
+
<td>A <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> value.</td>
|
3628
3489
|
</tr>
|
3629
3490
|
<tr>
|
3630
3491
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3631
|
-
<td>
|
3632
|
-
|
3633
|
-
</td>
|
3492
|
+
<td>Location of the <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> associated with <em class="parameter"><code>type</code></em> or
|
3493
|
+
<a href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no <a class="link" href="gobject-Type-Information.html#GTypeValueTable" title="struct GTypeValueTable"><span class="type">GTypeValueTable</span></a> associated with <em class="parameter"><code>type</code></em>.</td>
|
3634
3494
|
</tr>
|
3635
3495
|
</tbody>
|
3636
3496
|
</table></div>
|
3637
3497
|
</div>
|
3638
3498
|
<hr>
|
3639
|
-
<div class="refsect2"
|
3499
|
+
<div class="refsect2">
|
3640
3500
|
<a name="G-DEFINE-TYPE:CAPS"></a><h3>G_DEFINE_TYPE()</h3>
|
3641
3501
|
<pre class="programlisting">#define G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
|
3642
3502
|
</pre>
|
3643
3503
|
<p>
|
3644
3504
|
A convenience macro for type implementations, which declares a
|
3645
|
-
class initialization function, an instance initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="GTypeInfo"><span class="type">GTypeInfo</span></a> for information about
|
3505
|
+
class initialization function, an instance initialization function (see <a class="link" href="gobject-Type-Information.html#GTypeInfo" title="struct GTypeInfo"><span class="type">GTypeInfo</span></a> for information about
|
3646
3506
|
these) and a static variable named <em class="parameter"><code>t_n</code></em>_parent_class pointing to the parent class. Furthermore, it defines
|
3647
3507
|
a *_get_type() function. See <a class="link" href="gobject-Type-Information.html#G-DEFINE-TYPE-EXTENDED:CAPS" title="G_DEFINE_TYPE_EXTENDED()"><code class="function">G_DEFINE_TYPE_EXTENDED()</code></a> for an example.
|
3648
3508
|
</p>
|
@@ -3651,26 +3511,23 @@ a *_get_type() function. See <a class="link" href="gobject-Type-Information.html
|
|
3651
3511
|
<tbody>
|
3652
3512
|
<tr>
|
3653
3513
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3654
|
-
<td>The name of the new type, in Camel case
|
3655
|
-
</td>
|
3514
|
+
<td>The name of the new type, in Camel case.</td>
|
3656
3515
|
</tr>
|
3657
3516
|
<tr>
|
3658
3517
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3659
|
-
<td>The name of the new type, in lowercase, with words
|
3660
|
-
|
3661
|
-
</td>
|
3518
|
+
<td>The name of the new type, in lowercase, with words
|
3519
|
+
separated by '_'.</td>
|
3662
3520
|
</tr>
|
3663
3521
|
<tr>
|
3664
3522
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3665
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type
|
3666
|
-
</td>
|
3523
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type.</td>
|
3667
3524
|
</tr>
|
3668
3525
|
</tbody>
|
3669
3526
|
</table></div>
|
3670
3527
|
<p class="since">Since 2.4</p>
|
3671
3528
|
</div>
|
3672
3529
|
<hr>
|
3673
|
-
<div class="refsect2"
|
3530
|
+
<div class="refsect2">
|
3674
3531
|
<a name="G-DEFINE-TYPE-WITH-CODE:CAPS"></a><h3>G_DEFINE_TYPE_WITH_CODE()</h3>
|
3675
3532
|
<pre class="programlisting">#define G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
3676
3533
|
</pre>
|
@@ -3685,30 +3542,26 @@ See <a class="link" href="gobject-Type-Information.html#G-DEFINE-TYPE-EXTENDED:C
|
|
3685
3542
|
<tbody>
|
3686
3543
|
<tr>
|
3687
3544
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3688
|
-
<td>The name of the new type, in Camel case
|
3689
|
-
</td>
|
3545
|
+
<td>The name of the new type, in Camel case.</td>
|
3690
3546
|
</tr>
|
3691
3547
|
<tr>
|
3692
3548
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3693
|
-
<td>The name of the new type in lowercase, with words separated by '_'
|
3694
|
-
</td>
|
3549
|
+
<td>The name of the new type in lowercase, with words separated by '_'.</td>
|
3695
3550
|
</tr>
|
3696
3551
|
<tr>
|
3697
3552
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3698
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type
|
3699
|
-
</td>
|
3553
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type.</td>
|
3700
3554
|
</tr>
|
3701
3555
|
<tr>
|
3702
3556
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
3703
|
-
<td>Custom code that gets inserted in the *_get_type() function
|
3704
|
-
</td>
|
3557
|
+
<td>Custom code that gets inserted in the *_get_type() function.</td>
|
3705
3558
|
</tr>
|
3706
3559
|
</tbody>
|
3707
3560
|
</table></div>
|
3708
3561
|
<p class="since">Since 2.4</p>
|
3709
3562
|
</div>
|
3710
3563
|
<hr>
|
3711
|
-
<div class="refsect2"
|
3564
|
+
<div class="refsect2">
|
3712
3565
|
<a name="G-DEFINE-ABSTRACT-TYPE:CAPS"></a><h3>G_DEFINE_ABSTRACT_TYPE()</h3>
|
3713
3566
|
<pre class="programlisting">#define G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
|
3714
3567
|
</pre>
|
@@ -3722,26 +3575,23 @@ See <a class="link" href="gobject-Type-Information.html#G-DEFINE-TYPE-EXTENDED:C
|
|
3722
3575
|
<tbody>
|
3723
3576
|
<tr>
|
3724
3577
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3725
|
-
<td>The name of the new type, in Camel case
|
3726
|
-
</td>
|
3578
|
+
<td>The name of the new type, in Camel case.</td>
|
3727
3579
|
</tr>
|
3728
3580
|
<tr>
|
3729
3581
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3730
|
-
<td>The name of the new type, in lowercase, with words
|
3731
|
-
|
3732
|
-
</td>
|
3582
|
+
<td>The name of the new type, in lowercase, with words
|
3583
|
+
separated by '_'.</td>
|
3733
3584
|
</tr>
|
3734
3585
|
<tr>
|
3735
3586
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3736
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type
|
3737
|
-
</td>
|
3587
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type.</td>
|
3738
3588
|
</tr>
|
3739
3589
|
</tbody>
|
3740
3590
|
</table></div>
|
3741
3591
|
<p class="since">Since 2.4</p>
|
3742
3592
|
</div>
|
3743
3593
|
<hr>
|
3744
|
-
<div class="refsect2"
|
3594
|
+
<div class="refsect2">
|
3745
3595
|
<a name="G-DEFINE-ABSTRACT-TYPE-WITH-CODE:CAPS"></a><h3>G_DEFINE_ABSTRACT_TYPE_WITH_CODE()</h3>
|
3746
3596
|
<pre class="programlisting">#define G_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
3747
3597
|
</pre>
|
@@ -3756,36 +3606,32 @@ via <a class="link" href="gobject-Type-Information.html#G-IMPLEMENT-INTERFACE:CA
|
|
3756
3606
|
<tbody>
|
3757
3607
|
<tr>
|
3758
3608
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3759
|
-
<td>The name of the new type, in Camel case
|
3760
|
-
</td>
|
3609
|
+
<td>The name of the new type, in Camel case.</td>
|
3761
3610
|
</tr>
|
3762
3611
|
<tr>
|
3763
3612
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3764
|
-
<td>The name of the new type, in lowercase, with words
|
3765
|
-
|
3766
|
-
</td>
|
3613
|
+
<td>The name of the new type, in lowercase, with words
|
3614
|
+
separated by '_'.</td>
|
3767
3615
|
</tr>
|
3768
3616
|
<tr>
|
3769
3617
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3770
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type
|
3771
|
-
</td>
|
3618
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type.</td>
|
3772
3619
|
</tr>
|
3773
3620
|
<tr>
|
3774
3621
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
3775
|
-
<td>Custom code that gets inserted in the @<code class="function">type_name_get_type()</code> function
|
3776
|
-
</td>
|
3622
|
+
<td>Custom code that gets inserted in the @<code class="function">type_name_get_type()</code> function.</td>
|
3777
3623
|
</tr>
|
3778
3624
|
</tbody>
|
3779
3625
|
</table></div>
|
3780
3626
|
<p class="since">Since 2.4</p>
|
3781
3627
|
</div>
|
3782
3628
|
<hr>
|
3783
|
-
<div class="refsect2"
|
3629
|
+
<div class="refsect2">
|
3784
3630
|
<a name="G-DEFINE-INTERFACE:CAPS"></a><h3>G_DEFINE_INTERFACE()</h3>
|
3785
3631
|
<pre class="programlisting">#define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
|
3786
3632
|
</pre>
|
3787
3633
|
<p>
|
3788
|
-
A convenience macro for <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> definitions, which declares
|
3634
|
+
A convenience macro for <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> definitions, which declares
|
3789
3635
|
a default vtable initialization function and defines a *_get_type()
|
3790
3636
|
function.
|
3791
3637
|
</p>
|
@@ -3799,31 +3645,28 @@ structure to have the name <code class="literal">TN ## Interface</code>.
|
|
3799
3645
|
<tbody>
|
3800
3646
|
<tr>
|
3801
3647
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3802
|
-
<td>The name of the new type, in Camel case
|
3803
|
-
</td>
|
3648
|
+
<td>The name of the new type, in Camel case.</td>
|
3804
3649
|
</tr>
|
3805
3650
|
<tr>
|
3806
3651
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3807
|
-
<td>The name of the new type, in lowercase, with words separated by '_'
|
3808
|
-
</td>
|
3652
|
+
<td>The name of the new type, in lowercase, with words separated by '_'.</td>
|
3809
3653
|
</tr>
|
3810
3654
|
<tr>
|
3811
3655
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3812
3656
|
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the prerequisite type for the interface, or 0
|
3813
|
-
(<a class="link" href="gobject-Type-Information.html#G-TYPE-INVALID:CAPS" title="G_TYPE_INVALID"><code class="literal">G_TYPE_INVALID</code></a>) for no prerequisite type
|
3814
|
-
</td>
|
3657
|
+
(<a class="link" href="gobject-Type-Information.html#G-TYPE-INVALID:CAPS" title="G_TYPE_INVALID"><code class="literal">G_TYPE_INVALID</code></a>) for no prerequisite type.</td>
|
3815
3658
|
</tr>
|
3816
3659
|
</tbody>
|
3817
3660
|
</table></div>
|
3818
3661
|
<p class="since">Since 2.24</p>
|
3819
3662
|
</div>
|
3820
3663
|
<hr>
|
3821
|
-
<div class="refsect2"
|
3664
|
+
<div class="refsect2">
|
3822
3665
|
<a name="G-DEFINE-INTERFACE-WITH-CODE:CAPS"></a><h3>G_DEFINE_INTERFACE_WITH_CODE()</h3>
|
3823
3666
|
<pre class="programlisting">#define G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_INTERFACE_EXTENDED_BEGIN(TN, t_n, T_P) {_C_;} _G_DEFINE_INTERFACE_EXTENDED_END()
|
3824
3667
|
</pre>
|
3825
3668
|
<p>
|
3826
|
-
A convenience macro for <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="GTypeInterface"><span class="type">GTypeInterface</span></a> definitions. Similar to
|
3669
|
+
A convenience macro for <a class="link" href="gobject-Type-Information.html#GTypeInterface" title="struct GTypeInterface"><span class="type">GTypeInterface</span></a> definitions. Similar to
|
3827
3670
|
<a class="link" href="gobject-Type-Information.html#G-DEFINE-INTERFACE:CAPS" title="G_DEFINE_INTERFACE()"><code class="function">G_DEFINE_INTERFACE()</code></a>, but allows you to insert custom code into the
|
3828
3671
|
*_get_type() function, e.g. additional interface implementations
|
3829
3672
|
via <a class="link" href="gobject-Type-Information.html#G-IMPLEMENT-INTERFACE:CAPS" title="G_IMPLEMENT_INTERFACE()"><code class="function">G_IMPLEMENT_INTERFACE()</code></a>, or additional prerequisite types. See
|
@@ -3835,31 +3678,27 @@ via <a class="link" href="gobject-Type-Information.html#G-IMPLEMENT-INTERFACE:CA
|
|
3835
3678
|
<tbody>
|
3836
3679
|
<tr>
|
3837
3680
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
3838
|
-
<td>The name of the new type, in Camel case
|
3839
|
-
</td>
|
3681
|
+
<td>The name of the new type, in Camel case.</td>
|
3840
3682
|
</tr>
|
3841
3683
|
<tr>
|
3842
3684
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
3843
|
-
<td>The name of the new type, in lowercase, with words separated by '_'
|
3844
|
-
</td>
|
3685
|
+
<td>The name of the new type, in lowercase, with words separated by '_'.</td>
|
3845
3686
|
</tr>
|
3846
3687
|
<tr>
|
3847
3688
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
3848
3689
|
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the prerequisite type for the interface, or 0
|
3849
|
-
(<a class="link" href="gobject-Type-Information.html#G-TYPE-INVALID:CAPS" title="G_TYPE_INVALID"><code class="literal">G_TYPE_INVALID</code></a>) for no prerequisite type
|
3850
|
-
</td>
|
3690
|
+
(<a class="link" href="gobject-Type-Information.html#G-TYPE-INVALID:CAPS" title="G_TYPE_INVALID"><code class="literal">G_TYPE_INVALID</code></a>) for no prerequisite type.</td>
|
3851
3691
|
</tr>
|
3852
3692
|
<tr>
|
3853
3693
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
3854
|
-
<td>Custom code that gets inserted in the *_get_type() function
|
3855
|
-
</td>
|
3694
|
+
<td>Custom code that gets inserted in the *_get_type() function.</td>
|
3856
3695
|
</tr>
|
3857
3696
|
</tbody>
|
3858
3697
|
</table></div>
|
3859
3698
|
<p class="since">Since 2.24</p>
|
3860
3699
|
</div>
|
3861
3700
|
<hr>
|
3862
|
-
<div class="refsect2"
|
3701
|
+
<div class="refsect2">
|
3863
3702
|
<a name="G-IMPLEMENT-INTERFACE:CAPS"></a><h3>G_IMPLEMENT_INTERFACE()</h3>
|
3864
3703
|
<pre class="programlisting">#define G_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init)</pre>
|
3865
3704
|
<p>
|
@@ -3876,20 +3715,18 @@ macros, since it depends on variable names from those macros.
|
|
3876
3715
|
<tbody>
|
3877
3716
|
<tr>
|
3878
3717
|
<td><p><span class="term"><em class="parameter"><code>TYPE_IFACE</code></em> :</span></p></td>
|
3879
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface to add
|
3880
|
-
</td>
|
3718
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the interface to add</td>
|
3881
3719
|
</tr>
|
3882
3720
|
<tr>
|
3883
3721
|
<td><p><span class="term"><em class="parameter"><code>iface_init</code></em> :</span></p></td>
|
3884
|
-
<td>The interface init function
|
3885
|
-
</td>
|
3722
|
+
<td>The interface init function</td>
|
3886
3723
|
</tr>
|
3887
3724
|
</tbody>
|
3888
3725
|
</table></div>
|
3889
3726
|
<p class="since">Since 2.4</p>
|
3890
3727
|
</div>
|
3891
3728
|
<hr>
|
3892
|
-
<div class="refsect2"
|
3729
|
+
<div class="refsect2">
|
3893
3730
|
<a name="G-DEFINE-TYPE-EXTENDED:CAPS"></a><h3>G_DEFINE_TYPE_EXTENDED()</h3>
|
3894
3731
|
<pre class="programlisting">#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
3895
3732
|
</pre>
|
@@ -4008,19 +3845,16 @@ class init functions.
|
|
4008
3845
|
<tbody>
|
4009
3846
|
<tr>
|
4010
3847
|
<td><p><span class="term"><em class="parameter"><code>TN</code></em> :</span></p></td>
|
4011
|
-
<td>The name of the new type, in Camel case
|
4012
|
-
</td>
|
3848
|
+
<td>The name of the new type, in Camel case.</td>
|
4013
3849
|
</tr>
|
4014
3850
|
<tr>
|
4015
3851
|
<td><p><span class="term"><em class="parameter"><code>t_n</code></em> :</span></p></td>
|
4016
3852
|
<td>The name of the new type, in lowercase, with words
|
4017
|
-
|
4018
|
-
</td>
|
3853
|
+
separated by '_'.</td>
|
4019
3854
|
</tr>
|
4020
3855
|
<tr>
|
4021
3856
|
<td><p><span class="term"><em class="parameter"><code>T_P</code></em> :</span></p></td>
|
4022
|
-
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type
|
4023
|
-
</td>
|
3857
|
+
<td>The <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span class="type">GType</span></a> of the parent type.</td>
|
4024
3858
|
</tr>
|
4025
3859
|
<tr>
|
4026
3860
|
<td><p><span class="term"><em class="parameter"><code>_f_</code></em> :</span></p></td>
|
@@ -4030,15 +3864,14 @@ class init functions.
|
|
4030
3864
|
</tr>
|
4031
3865
|
<tr>
|
4032
3866
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
4033
|
-
<td>Custom code that gets inserted in the *_get_type() function
|
4034
|
-
</td>
|
3867
|
+
<td>Custom code that gets inserted in the *_get_type() function.</td>
|
4035
3868
|
</tr>
|
4036
3869
|
</tbody>
|
4037
3870
|
</table></div>
|
4038
3871
|
<p class="since">Since 2.4</p>
|
4039
3872
|
</div>
|
4040
3873
|
<hr>
|
4041
|
-
<div class="refsect2"
|
3874
|
+
<div class="refsect2">
|
4042
3875
|
<a name="G-DEFINE-BOXED-TYPE:CAPS"></a><h3>G_DEFINE_BOXED_TYPE()</h3>
|
4043
3876
|
<pre class="programlisting">#define G_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) G_DEFINE_BOXED_TYPE_WITH_CODE (TypeName, type_name, copy_func, free_func, {})
|
4044
3877
|
</pre>
|
@@ -4051,31 +3884,27 @@ A convenience macro for boxed type implementations, which defines a
|
|
4051
3884
|
<tbody>
|
4052
3885
|
<tr>
|
4053
3886
|
<td><p><span class="term"><em class="parameter"><code>TypeName</code></em> :</span></p></td>
|
4054
|
-
<td>The name of the new type, in Camel case
|
4055
|
-
</td>
|
3887
|
+
<td>The name of the new type, in Camel case.</td>
|
4056
3888
|
</tr>
|
4057
3889
|
<tr>
|
4058
3890
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
4059
3891
|
<td>The name of the new type, in lowercase, with words
|
4060
|
-
|
4061
|
-
</td>
|
3892
|
+
separated by '_'.</td>
|
4062
3893
|
</tr>
|
4063
3894
|
<tr>
|
4064
3895
|
<td><p><span class="term"><em class="parameter"><code>copy_func</code></em> :</span></p></td>
|
4065
|
-
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedCopyFunc" title="GBoxedCopyFunc ()"><span class="type">GBoxedCopyFunc</span></a> for the new type
|
4066
|
-
</td>
|
3896
|
+
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedCopyFunc" title="GBoxedCopyFunc ()"><span class="type">GBoxedCopyFunc</span></a> for the new type</td>
|
4067
3897
|
</tr>
|
4068
3898
|
<tr>
|
4069
3899
|
<td><p><span class="term"><em class="parameter"><code>free_func</code></em> :</span></p></td>
|
4070
|
-
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedFreeFunc" title="GBoxedFreeFunc ()"><span class="type">GBoxedFreeFunc</span></a> for the new type
|
4071
|
-
</td>
|
3900
|
+
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedFreeFunc" title="GBoxedFreeFunc ()"><span class="type">GBoxedFreeFunc</span></a> for the new type</td>
|
4072
3901
|
</tr>
|
4073
3902
|
</tbody>
|
4074
3903
|
</table></div>
|
4075
3904
|
<p class="since">Since 2.26</p>
|
4076
3905
|
</div>
|
4077
3906
|
<hr>
|
4078
|
-
<div class="refsect2"
|
3907
|
+
<div class="refsect2">
|
4079
3908
|
<a name="G-DEFINE-BOXED-TYPE-WITH-CODE:CAPS"></a><h3>G_DEFINE_BOXED_TYPE_WITH_CODE()</h3>
|
4080
3909
|
<pre class="programlisting">#define G_DEFINE_BOXED_TYPE_WITH_CODE(TypeName, type_name, copy_func, free_func, _C_) _G_DEFINE_BOXED_TYPE_BEGIN (TypeName, type_name, copy_func, free_func) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
4081
3910
|
</pre>
|
@@ -4090,36 +3919,31 @@ Similar to <a class="link" href="gobject-Type-Information.html#G-DEFINE-BOXED-TY
|
|
4090
3919
|
<tbody>
|
4091
3920
|
<tr>
|
4092
3921
|
<td><p><span class="term"><em class="parameter"><code>TypeName</code></em> :</span></p></td>
|
4093
|
-
<td>The name of the new type, in Camel case
|
4094
|
-
</td>
|
3922
|
+
<td>The name of the new type, in Camel case.</td>
|
4095
3923
|
</tr>
|
4096
3924
|
<tr>
|
4097
3925
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
4098
3926
|
<td>The name of the new type, in lowercase, with words
|
4099
|
-
|
4100
|
-
</td>
|
3927
|
+
separated by '_'.</td>
|
4101
3928
|
</tr>
|
4102
3929
|
<tr>
|
4103
3930
|
<td><p><span class="term"><em class="parameter"><code>copy_func</code></em> :</span></p></td>
|
4104
|
-
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedCopyFunc" title="GBoxedCopyFunc ()"><span class="type">GBoxedCopyFunc</span></a> for the new type
|
4105
|
-
</td>
|
3931
|
+
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedCopyFunc" title="GBoxedCopyFunc ()"><span class="type">GBoxedCopyFunc</span></a> for the new type</td>
|
4106
3932
|
</tr>
|
4107
3933
|
<tr>
|
4108
3934
|
<td><p><span class="term"><em class="parameter"><code>free_func</code></em> :</span></p></td>
|
4109
|
-
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedFreeFunc" title="GBoxedFreeFunc ()"><span class="type">GBoxedFreeFunc</span></a> for the new type
|
4110
|
-
</td>
|
3935
|
+
<td>the <a class="link" href="gobject-Boxed-Types.html#GBoxedFreeFunc" title="GBoxedFreeFunc ()"><span class="type">GBoxedFreeFunc</span></a> for the new type</td>
|
4111
3936
|
</tr>
|
4112
3937
|
<tr>
|
4113
3938
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
4114
|
-
<td>Custom code that gets inserted in the *_get_type() function
|
4115
|
-
</td>
|
3939
|
+
<td>Custom code that gets inserted in the *_get_type() function.</td>
|
4116
3940
|
</tr>
|
4117
3941
|
</tbody>
|
4118
3942
|
</table></div>
|
4119
3943
|
<p class="since">Since 2.26</p>
|
4120
3944
|
</div>
|
4121
3945
|
<hr>
|
4122
|
-
<div class="refsect2"
|
3946
|
+
<div class="refsect2">
|
4123
3947
|
<a name="G-DEFINE-POINTER-TYPE:CAPS"></a><h3>G_DEFINE_POINTER_TYPE()</h3>
|
4124
3948
|
<pre class="programlisting">#define G_DEFINE_POINTER_TYPE(TypeName, type_name) G_DEFINE_POINTER_TYPE_WITH_CODE (TypeName, type_name, {})
|
4125
3949
|
</pre>
|
@@ -4132,21 +3956,19 @@ A convenience macro for pointer type implementations, which defines a
|
|
4132
3956
|
<tbody>
|
4133
3957
|
<tr>
|
4134
3958
|
<td><p><span class="term"><em class="parameter"><code>TypeName</code></em> :</span></p></td>
|
4135
|
-
<td>The name of the new type, in Camel case
|
4136
|
-
</td>
|
3959
|
+
<td>The name of the new type, in Camel case.</td>
|
4137
3960
|
</tr>
|
4138
3961
|
<tr>
|
4139
3962
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
4140
3963
|
<td>The name of the new type, in lowercase, with words
|
4141
|
-
|
4142
|
-
</td>
|
3964
|
+
separated by '_'.</td>
|
4143
3965
|
</tr>
|
4144
3966
|
</tbody>
|
4145
3967
|
</table></div>
|
4146
3968
|
<p class="since">Since 2.26</p>
|
4147
3969
|
</div>
|
4148
3970
|
<hr>
|
4149
|
-
<div class="refsect2"
|
3971
|
+
<div class="refsect2">
|
4150
3972
|
<a name="G-DEFINE-POINTER-TYPE-WITH-CODE:CAPS"></a><h3>G_DEFINE_POINTER_TYPE_WITH_CODE()</h3>
|
4151
3973
|
<pre class="programlisting">#define G_DEFINE_POINTER_TYPE_WITH_CODE(TypeName, type_name, _C_) _G_DEFINE_POINTER_TYPE_BEGIN (TypeName, type_name) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
4152
3974
|
</pre>
|
@@ -4160,26 +3982,23 @@ Similar to <a class="link" href="gobject-Type-Information.html#G-DEFINE-POINTER-
|
|
4160
3982
|
<tbody>
|
4161
3983
|
<tr>
|
4162
3984
|
<td><p><span class="term"><em class="parameter"><code>TypeName</code></em> :</span></p></td>
|
4163
|
-
<td>The name of the new type, in Camel case
|
4164
|
-
</td>
|
3985
|
+
<td>The name of the new type, in Camel case.</td>
|
4165
3986
|
</tr>
|
4166
3987
|
<tr>
|
4167
3988
|
<td><p><span class="term"><em class="parameter"><code>type_name</code></em> :</span></p></td>
|
4168
3989
|
<td>The name of the new type, in lowercase, with words
|
4169
|
-
|
4170
|
-
</td>
|
3990
|
+
separated by '_'.</td>
|
4171
3991
|
</tr>
|
4172
3992
|
<tr>
|
4173
3993
|
<td><p><span class="term"><em class="parameter"><code>_C_</code></em> :</span></p></td>
|
4174
|
-
<td>Custom code that gets inserted in the *_get_type() function
|
4175
|
-
</td>
|
3994
|
+
<td>Custom code that gets inserted in the *_get_type() function.</td>
|
4176
3995
|
</tr>
|
4177
3996
|
</tbody>
|
4178
3997
|
</table></div>
|
4179
3998
|
<p class="since">Since 2.26</p>
|
4180
3999
|
</div>
|
4181
4000
|
<hr>
|
4182
|
-
<div class="refsect2"
|
4001
|
+
<div class="refsect2">
|
4183
4002
|
<a name="G-TYPE-INVALID:CAPS"></a><h3>G_TYPE_INVALID</h3>
|
4184
4003
|
<pre class="programlisting">#define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0)
|
4185
4004
|
</pre>
|
@@ -4189,7 +4008,7 @@ a <a class="link" href="gobject-Type-Information.html#GType" title="GType"><span
|
|
4189
4008
|
</p>
|
4190
4009
|
</div>
|
4191
4010
|
<hr>
|
4192
|
-
<div class="refsect2"
|
4011
|
+
<div class="refsect2">
|
4193
4012
|
<a name="G-TYPE-NONE:CAPS"></a><h3>G_TYPE_NONE</h3>
|
4194
4013
|
<pre class="programlisting">#define G_TYPE_NONE G_TYPE_MAKE_FUNDAMENTAL (1)
|
4195
4014
|
</pre>
|
@@ -4199,7 +4018,7 @@ A fundamental type which is used as a replacement for the C
|
|
4199
4018
|
</p>
|
4200
4019
|
</div>
|
4201
4020
|
<hr>
|
4202
|
-
<div class="refsect2"
|
4021
|
+
<div class="refsect2">
|
4203
4022
|
<a name="G-TYPE-INTERFACE:CAPS"></a><h3>G_TYPE_INTERFACE</h3>
|
4204
4023
|
<pre class="programlisting">#define G_TYPE_INTERFACE G_TYPE_MAKE_FUNDAMENTAL (2)
|
4205
4024
|
</pre>
|
@@ -4208,7 +4027,7 @@ The fundamental type from which all interfaces are derived.
|
|
4208
4027
|
</p>
|
4209
4028
|
</div>
|
4210
4029
|
<hr>
|
4211
|
-
<div class="refsect2"
|
4030
|
+
<div class="refsect2">
|
4212
4031
|
<a name="G-TYPE-CHAR:CAPS"></a><h3>G_TYPE_CHAR</h3>
|
4213
4032
|
<pre class="programlisting">#define G_TYPE_CHAR G_TYPE_MAKE_FUNDAMENTAL (3)
|
4214
4033
|
</pre>
|
@@ -4219,7 +4038,7 @@ This may or may not be the same type a the C type "gchar".
|
|
4219
4038
|
</p>
|
4220
4039
|
</div>
|
4221
4040
|
<hr>
|
4222
|
-
<div class="refsect2"
|
4041
|
+
<div class="refsect2">
|
4223
4042
|
<a name="G-TYPE-UCHAR:CAPS"></a><h3>G_TYPE_UCHAR</h3>
|
4224
4043
|
<pre class="programlisting">#define G_TYPE_UCHAR G_TYPE_MAKE_FUNDAMENTAL (4)
|
4225
4044
|
</pre>
|
@@ -4228,7 +4047,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4228
4047
|
</p>
|
4229
4048
|
</div>
|
4230
4049
|
<hr>
|
4231
|
-
<div class="refsect2"
|
4050
|
+
<div class="refsect2">
|
4232
4051
|
<a name="G-TYPE-BOOLEAN:CAPS"></a><h3>G_TYPE_BOOLEAN</h3>
|
4233
4052
|
<pre class="programlisting">#define G_TYPE_BOOLEAN G_TYPE_MAKE_FUNDAMENTAL (5)
|
4234
4053
|
</pre>
|
@@ -4237,7 +4056,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4237
4056
|
</p>
|
4238
4057
|
</div>
|
4239
4058
|
<hr>
|
4240
|
-
<div class="refsect2"
|
4059
|
+
<div class="refsect2">
|
4241
4060
|
<a name="G-TYPE-INT:CAPS"></a><h3>G_TYPE_INT</h3>
|
4242
4061
|
<pre class="programlisting">#define G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6)
|
4243
4062
|
</pre>
|
@@ -4246,7 +4065,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4246
4065
|
</p>
|
4247
4066
|
</div>
|
4248
4067
|
<hr>
|
4249
|
-
<div class="refsect2"
|
4068
|
+
<div class="refsect2">
|
4250
4069
|
<a name="G-TYPE-UINT:CAPS"></a><h3>G_TYPE_UINT</h3>
|
4251
4070
|
<pre class="programlisting">#define G_TYPE_UINT G_TYPE_MAKE_FUNDAMENTAL (7)
|
4252
4071
|
</pre>
|
@@ -4255,7 +4074,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4255
4074
|
</p>
|
4256
4075
|
</div>
|
4257
4076
|
<hr>
|
4258
|
-
<div class="refsect2"
|
4077
|
+
<div class="refsect2">
|
4259
4078
|
<a name="G-TYPE-LONG:CAPS"></a><h3>G_TYPE_LONG</h3>
|
4260
4079
|
<pre class="programlisting">#define G_TYPE_LONG G_TYPE_MAKE_FUNDAMENTAL (8)
|
4261
4080
|
</pre>
|
@@ -4264,7 +4083,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4264
4083
|
</p>
|
4265
4084
|
</div>
|
4266
4085
|
<hr>
|
4267
|
-
<div class="refsect2"
|
4086
|
+
<div class="refsect2">
|
4268
4087
|
<a name="G-TYPE-ULONG:CAPS"></a><h3>G_TYPE_ULONG</h3>
|
4269
4088
|
<pre class="programlisting">#define G_TYPE_ULONG G_TYPE_MAKE_FUNDAMENTAL (9)
|
4270
4089
|
</pre>
|
@@ -4273,7 +4092,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4273
4092
|
</p>
|
4274
4093
|
</div>
|
4275
4094
|
<hr>
|
4276
|
-
<div class="refsect2"
|
4095
|
+
<div class="refsect2">
|
4277
4096
|
<a name="G-TYPE-INT64:CAPS"></a><h3>G_TYPE_INT64</h3>
|
4278
4097
|
<pre class="programlisting">#define G_TYPE_INT64 G_TYPE_MAKE_FUNDAMENTAL (10)
|
4279
4098
|
</pre>
|
@@ -4282,7 +4101,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4282
4101
|
</p>
|
4283
4102
|
</div>
|
4284
4103
|
<hr>
|
4285
|
-
<div class="refsect2"
|
4104
|
+
<div class="refsect2">
|
4286
4105
|
<a name="G-TYPE-UINT64:CAPS"></a><h3>G_TYPE_UINT64</h3>
|
4287
4106
|
<pre class="programlisting">#define G_TYPE_UINT64 G_TYPE_MAKE_FUNDAMENTAL (11)
|
4288
4107
|
</pre>
|
@@ -4291,7 +4110,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4291
4110
|
</p>
|
4292
4111
|
</div>
|
4293
4112
|
<hr>
|
4294
|
-
<div class="refsect2"
|
4113
|
+
<div class="refsect2">
|
4295
4114
|
<a name="G-TYPE-ENUM:CAPS"></a><h3>G_TYPE_ENUM</h3>
|
4296
4115
|
<pre class="programlisting">#define G_TYPE_ENUM G_TYPE_MAKE_FUNDAMENTAL (12)
|
4297
4116
|
</pre>
|
@@ -4300,7 +4119,7 @@ The fundamental type from which all enumeration types are derived.
|
|
4300
4119
|
</p>
|
4301
4120
|
</div>
|
4302
4121
|
<hr>
|
4303
|
-
<div class="refsect2"
|
4122
|
+
<div class="refsect2">
|
4304
4123
|
<a name="G-TYPE-FLAGS:CAPS"></a><h3>G_TYPE_FLAGS</h3>
|
4305
4124
|
<pre class="programlisting">#define G_TYPE_FLAGS G_TYPE_MAKE_FUNDAMENTAL (13)
|
4306
4125
|
</pre>
|
@@ -4309,7 +4128,7 @@ The fundamental type from which all flags types are derived.
|
|
4309
4128
|
</p>
|
4310
4129
|
</div>
|
4311
4130
|
<hr>
|
4312
|
-
<div class="refsect2"
|
4131
|
+
<div class="refsect2">
|
4313
4132
|
<a name="G-TYPE-FLOAT:CAPS"></a><h3>G_TYPE_FLOAT</h3>
|
4314
4133
|
<pre class="programlisting">#define G_TYPE_FLOAT G_TYPE_MAKE_FUNDAMENTAL (14)
|
4315
4134
|
</pre>
|
@@ -4318,7 +4137,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4318
4137
|
</p>
|
4319
4138
|
</div>
|
4320
4139
|
<hr>
|
4321
|
-
<div class="refsect2"
|
4140
|
+
<div class="refsect2">
|
4322
4141
|
<a name="G-TYPE-DOUBLE:CAPS"></a><h3>G_TYPE_DOUBLE</h3>
|
4323
4142
|
<pre class="programlisting">#define G_TYPE_DOUBLE G_TYPE_MAKE_FUNDAMENTAL (15)
|
4324
4143
|
</pre>
|
@@ -4327,7 +4146,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4327
4146
|
</p>
|
4328
4147
|
</div>
|
4329
4148
|
<hr>
|
4330
|
-
<div class="refsect2"
|
4149
|
+
<div class="refsect2">
|
4331
4150
|
<a name="G-TYPE-STRING:CAPS"></a><h3>G_TYPE_STRING</h3>
|
4332
4151
|
<pre class="programlisting">#define G_TYPE_STRING G_TYPE_MAKE_FUNDAMENTAL (16)
|
4333
4152
|
</pre>
|
@@ -4336,7 +4155,7 @@ The fundamental type corresponding to nul-terminated C strings.
|
|
4336
4155
|
</p>
|
4337
4156
|
</div>
|
4338
4157
|
<hr>
|
4339
|
-
<div class="refsect2"
|
4158
|
+
<div class="refsect2">
|
4340
4159
|
<a name="G-TYPE-POINTER:CAPS"></a><h3>G_TYPE_POINTER</h3>
|
4341
4160
|
<pre class="programlisting">#define G_TYPE_POINTER G_TYPE_MAKE_FUNDAMENTAL (17)
|
4342
4161
|
</pre>
|
@@ -4345,7 +4164,7 @@ The fundamental type corresponding to <a href="./../glib/glib/glib-Basic-Types.h
|
|
4345
4164
|
</p>
|
4346
4165
|
</div>
|
4347
4166
|
<hr>
|
4348
|
-
<div class="refsect2"
|
4167
|
+
<div class="refsect2">
|
4349
4168
|
<a name="G-TYPE-BOXED:CAPS"></a><h3>G_TYPE_BOXED</h3>
|
4350
4169
|
<pre class="programlisting">#define G_TYPE_BOXED G_TYPE_MAKE_FUNDAMENTAL (18)
|
4351
4170
|
</pre>
|
@@ -4354,16 +4173,16 @@ The fundamental type from which all boxed types are derived.
|
|
4354
4173
|
</p>
|
4355
4174
|
</div>
|
4356
4175
|
<hr>
|
4357
|
-
<div class="refsect2"
|
4176
|
+
<div class="refsect2">
|
4358
4177
|
<a name="G-TYPE-PARAM:CAPS"></a><h3>G_TYPE_PARAM</h3>
|
4359
4178
|
<pre class="programlisting">#define G_TYPE_PARAM G_TYPE_MAKE_FUNDAMENTAL (19)
|
4360
4179
|
</pre>
|
4361
4180
|
<p>
|
4362
|
-
The fundamental type from which all <a class="link" href="gobject-GParamSpec.html#GParamSpec" title="GParamSpec"><span class="type">GParamSpec</span></a> types are derived.
|
4181
|
+
The fundamental type from which all <a class="link" href="gobject-GParamSpec.html#GParamSpec" title="struct GParamSpec"><span class="type">GParamSpec</span></a> types are derived.
|
4363
4182
|
</p>
|
4364
4183
|
</div>
|
4365
4184
|
<hr>
|
4366
|
-
<div class="refsect2"
|
4185
|
+
<div class="refsect2">
|
4367
4186
|
<a name="G-TYPE-OBJECT:CAPS"></a><h3>G_TYPE_OBJECT</h3>
|
4368
4187
|
<pre class="programlisting">#define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20)
|
4369
4188
|
</pre>
|
@@ -4372,7 +4191,7 @@ The fundamental type for <a class="link" href="gobject-The-Base-Object-Type.html
|
|
4372
4191
|
</p>
|
4373
4192
|
</div>
|
4374
4193
|
<hr>
|
4375
|
-
<div class="refsect2"
|
4194
|
+
<div class="refsect2">
|
4376
4195
|
<a name="G-TYPE-GTYPE:CAPS"></a><h3>G_TYPE_GTYPE</h3>
|
4377
4196
|
<pre class="programlisting">#define G_TYPE_GTYPE (g_gtype_get_type())
|
4378
4197
|
</pre>
|
@@ -4381,7 +4200,7 @@ The type for <a class="link" href="gobject-Type-Information.html#GType" title="G
|
|
4381
4200
|
</p>
|
4382
4201
|
</div>
|
4383
4202
|
<hr>
|
4384
|
-
<div class="refsect2"
|
4203
|
+
<div class="refsect2">
|
4385
4204
|
<a name="G-TYPE-VARIANT:CAPS"></a><h3>G_TYPE_VARIANT</h3>
|
4386
4205
|
<pre class="programlisting">#define G_TYPE_VARIANT G_TYPE_MAKE_FUNDAMENTAL (21)
|
4387
4206
|
</pre>
|
@@ -4404,7 +4223,7 @@ with this fundamental type in 2.26.
|
|
4404
4223
|
<p class="since">Since 2.26</p>
|
4405
4224
|
</div>
|
4406
4225
|
<hr>
|
4407
|
-
<div class="refsect2"
|
4226
|
+
<div class="refsect2">
|
4408
4227
|
<a name="G-TYPE-RESERVED-GLIB-FIRST:CAPS"></a><h3>G_TYPE_RESERVED_GLIB_FIRST</h3>
|
4409
4228
|
<pre class="programlisting">#define G_TYPE_RESERVED_GLIB_FIRST (22)
|
4410
4229
|
</pre>
|
@@ -4414,7 +4233,7 @@ First fundamental type number to create a new fundamental type id with
|
|
4414
4233
|
</p>
|
4415
4234
|
</div>
|
4416
4235
|
<hr>
|
4417
|
-
<div class="refsect2"
|
4236
|
+
<div class="refsect2">
|
4418
4237
|
<a name="G-TYPE-RESERVED-GLIB-LAST:CAPS"></a><h3>G_TYPE_RESERVED_GLIB_LAST</h3>
|
4419
4238
|
<pre class="programlisting">#define G_TYPE_RESERVED_GLIB_LAST (31)
|
4420
4239
|
</pre>
|
@@ -4423,7 +4242,7 @@ Last fundamental type number reserved for GLib.
|
|
4423
4242
|
</p>
|
4424
4243
|
</div>
|
4425
4244
|
<hr>
|
4426
|
-
<div class="refsect2"
|
4245
|
+
<div class="refsect2">
|
4427
4246
|
<a name="G-TYPE-RESERVED-BSE-FIRST:CAPS"></a><h3>G_TYPE_RESERVED_BSE_FIRST</h3>
|
4428
4247
|
<pre class="programlisting">#define G_TYPE_RESERVED_BSE_FIRST (32)
|
4429
4248
|
</pre>
|
@@ -4433,7 +4252,7 @@ First fundamental type number to create a new fundamental type id with
|
|
4433
4252
|
</p>
|
4434
4253
|
</div>
|
4435
4254
|
<hr>
|
4436
|
-
<div class="refsect2"
|
4255
|
+
<div class="refsect2">
|
4437
4256
|
<a name="G-TYPE-RESERVED-BSE-LAST:CAPS"></a><h3>G_TYPE_RESERVED_BSE_LAST</h3>
|
4438
4257
|
<pre class="programlisting">#define G_TYPE_RESERVED_BSE_LAST (48)
|
4439
4258
|
</pre>
|
@@ -4442,7 +4261,7 @@ Last fundamental type number reserved for BSE.
|
|
4442
4261
|
</p>
|
4443
4262
|
</div>
|
4444
4263
|
<hr>
|
4445
|
-
<div class="refsect2"
|
4264
|
+
<div class="refsect2">
|
4446
4265
|
<a name="G-TYPE-RESERVED-USER-FIRST:CAPS"></a><h3>G_TYPE_RESERVED_USER_FIRST</h3>
|
4447
4266
|
<pre class="programlisting">#define G_TYPE_RESERVED_USER_FIRST (49)
|
4448
4267
|
</pre>
|
@@ -4455,6 +4274,6 @@ type id with <a class="link" href="gobject-Type-Information.html#G-TYPE-MAKE-FUN
|
|
4455
4274
|
</div>
|
4456
4275
|
<div class="footer">
|
4457
4276
|
<hr>
|
4458
|
-
Generated by GTK-Doc V1.
|
4277
|
+
Generated by GTK-Doc V1.16.1</div>
|
4459
4278
|
</body>
|
4460
4279
|
</html>
|