Class GObject.ObjectClass

java.lang.Object
All Implemented Interfaces:
Proxy
Direct Known Subclasses:
AlertDialog.AlertDialogClass, AppLaunchContext.AppLaunchContextClass, Application.ApplicationClass, ApplicationCommandLine.ApplicationCommandLineClass, Auth.AuthClass, AuthDomain.AuthDomainClass, AuthenticationRequest.AuthenticationRequestClass, AuthManager.AuthManagerClass, AutomationSession.AutomationSessionClass, BackForwardList.BackForwardListClass, BookmarkList.BookmarkListClass, Breakpoint.BreakpointClass, BuilderCScope.BuilderCScopeClass, Cache.CacheClass, Cancellable.CancellableClass, CellAreaContext.CellAreaContextClass, CharsetConverter.CharsetConverterClass, Class.ClassClass, ClipboardPermissionRequest.ClipboardPermissionRequestClass, ColorBalanceChannel.ColorBalanceChannelClass, ColorChooserRequest.ColorChooserRequestClass, ColorDialog.ColorDialogClass, Completion.CompletionClass, CompletionContext.CompletionContextClass, CompletionSnippets.CompletionSnippetsClass, CompletionWords.CompletionWordsClass, Constraint.ConstraintClass, ConstraintGuide.ConstraintGuideClass, ContentDecoder.ContentDecoderClass, ContentProvider.ContentProviderClass, ContentSniffer.ContentSnifferClass, Context.ContextClass, ContextMenu.ContextMenuClass, ContextMenu.ContextMenuClass, CookieJar.CookieJarClass, CookieManager.CookieManagerClass, DataQueue.DataQueueClass, DBusInterfaceSkeleton.DBusInterfaceSkeletonClass, DBusObjectManagerClient.DBusObjectManagerClientClass, DBusObjectManagerServer.DBusObjectManagerServerClass, DBusObjectProxy.DBusObjectProxyClass, DBusObjectSkeleton.DBusObjectSkeletonClass, DBusProxy.DBusProxyClass, DebugControllerDBus.DebugControllerDBusClass, DesktopAppInfo.DesktopAppInfoClass, DeviceInfoPermissionRequest.DeviceInfoPermissionRequestClass, DirectoryList.DirectoryListClass, Download.DownloadClass, EditorState.EditorStateClass, EmblemedIcon.EmblemedIconClass, EntryBuffer.EntryBufferClass, EnumListItem.EnumListItemClass, EnumListModel.EnumListModelClass, Exception.ExceptionClass, FaviconDatabase.FaviconDatabaseClass, File.FileClass, FileChooserRequest.FileChooserRequestClass, FileDialog.FileDialogClass, FileEnumerator.FileEnumeratorClass, FileLauncher.FileLauncherClass, FileLoader.FileLoaderClass, FileMonitor.FileMonitorClass, FilenameCompleter.FilenameCompleterClass, FileSaver.FileSaverClass, Filter.FilterClass, FilterListModel.FilterListModelClass, FindController.FindControllerClass, FlattenListModel.FlattenListModelClass, Font.FontClass, FontDialog.FontDialogClass, FontFace.FontFaceClass, FontFamily.FontFamilyClass, FontMap.FontMapClass, Fontset.FontsetClass, FormSubmissionRequest.FormSubmissionRequestClass, Frame.FrameClass, GeolocationManager.GeolocationManagerClass, GeolocationPermissionRequest.GeolocationPermissionRequestClass, GLShader.GLShaderClass, GutterLines.GutterLinesClass, HitTestResult.HitTestResultClass, HitTestResult.HitTestResultClass, Hover.HoverClass, HoverContext.HoverContextClass, HSTSEnforcer.HSTSEnforcerClass, IMContext.IMContextClass, InetAddress.InetAddressClass, InetAddressMask.InetAddressMaskClass, InitiallyUnowned.InitiallyUnownedClass, InputMethodContext.InputMethodContextClass, InputStream.InputStreamClass, IOStream.IOStreamClass, Language.LanguageClass, LanguageManager.LanguageManagerClass, Layout.LayoutClass, LayoutChild.LayoutChildClass, LayoutManager.LayoutManagerClass, LeafletPage.LeafletPageClass, ListStore.ListStoreClass, ListStore.ListStoreClass, Logger.LoggerClass, MapListModel.MapListModelClass, MarkAttributes.MarkAttributesClass, MediaKeySystemPermissionRequest.MediaKeySystemPermissionRequestClass, MediaStream.MediaStreamClass, MenuAttributeIter.MenuAttributeIterClass, MenuLinkIter.MenuLinkIterClass, MenuModel.MenuModelClass, Message.MessageClass, MountOperation.MountOperationClass, MultiSelection.MultiSelectionClass, NativeDialog.NativeDialogClass, NetworkAddress.NetworkAddressClass, NetworkService.NetworkServiceClass, NetworkSession.NetworkSessionClass, NoSelection.NoSelectionClass, Notification.NotificationClass, NotificationPermissionRequest.NotificationPermissionRequestClass, OptionMenu.OptionMenuClass, OsxAppInfo.OsxAppInfoClass, OutputStream.OutputStreamClass, Permission.PermissionClass, PixbufAnimation.PixbufAnimationClass, PixbufAnimationIter.PixbufAnimationIterClass, PixbufLoader.PixbufLoaderClass, PointerLockPermissionRequest.PointerLockPermissionRequestClass, PolicyDecision.PolicyDecisionClass, PrintCompositor.PrintCompositorClass, PrintDialog.PrintDialogClass, PrintOperation.PrintOperationClass, PrintOperation.PrintOperationClass, RecentManager.RecentManagerClass, Region.RegionClass, Renderer.RendererClass, Resolver.ResolverClass, ScriptWorld.ScriptWorldClass, SearchContext.SearchContextClass, SearchSettings.SearchSettingsClass, SecurityManager.SecurityManagerClass, SelectionFilterModel.SelectionFilterModelClass, Server.ServerClass, ServerMessage.ServerMessageClass, Session.SessionClass, Settings.SettingsClass, Settings.SettingsClass, SettingsBackend.SettingsBackendClass, Shortcut.ShortcutClass, SimpleActionGroup.SimpleActionGroupClass, SimpleProxyResolver.SimpleProxyResolverClass, SingleSelection.SingleSelectionClass, SliceListModel.SliceListModelClass, Snippet.SnippetClass, SnippetContext.SnippetContextClass, SnippetManager.SnippetManagerClass, Socket.SocketClass, SocketAddress.SocketAddressClass, SocketAddressEnumerator.SocketAddressEnumeratorClass, SocketClient.SocketClientClass, SocketControlMessage.SocketControlMessageClass, SocketListener.SocketListenerClass, Sorter.SorterClass, SortListModel.SortListModelClass, SpaceDrawer.SpaceDrawerClass, SpinnerPaintable.SpinnerPaintableClass, SqueezerPage.SqueezerPageClass, StringList.StringListClass, StringObject.StringObjectClass, Style.StyleClass, StyleContext.StyleContextClass, StyleManager.StyleManagerClass, StyleScheme.StyleSchemeClass, StyleSchemeManager.StyleSchemeManagerClass, SwipeTracker.SwipeTrackerClass, TabPage.TabPageClass, TextBuffer.TextBufferClass, TextChildAnchor.TextChildAnchorClass, TextMark.TextMarkClass, TextTag.TextTagClass, TlsCertificate.TlsCertificateClass, TlsDatabase.TlsDatabaseClass, TlsInteraction.TlsInteractionClass, TlsPassword.TlsPasswordClass, Toast.ToastClass, TreeListModel.TreeListModelClass, TreeListRow.TreeListRowClass, TreeModelFilter.TreeModelFilterClass, TreeModelSort.TreeModelSortClass, TreeStore.TreeStoreClass, TypeModule.TypeModuleClass, UnixFDList.UnixFDListClass, UriLauncher.UriLauncherClass, URIRequest.URIRequestClass, URIRequest.URIRequestClass, URIResponse.URIResponseClass, URIResponse.URIResponseClass, URISchemeRequest.URISchemeRequestClass, URISchemeResponse.URISchemeResponseClass, UserContentFilterStore.UserContentFilterStoreClass, UserContentManager.UserContentManagerClass, UserMediaPermissionRequest.UserMediaPermissionRequestClass, Value.ValueClass, Vfs.VfsClass, ViewStackPage.ViewStackPageClass, ViewStackPages.ViewStackPagesClass, VirtualMachine.VirtualMachineClass, VolumeMonitor.VolumeMonitorClass, WeakValue.WeakValueClass, WebContext.WebContextClass, WebEditor.WebEditorClass, WebFormManager.WebFormManagerClass, WebHitTestResult.WebHitTestResultClass, WebInspector.WebInspectorClass, WebPage.WebPageClass, WebProcessExtension.WebProcessExtensionClass, WebResource.WebResourceClass, WebsiteDataAccessPermissionRequest.WebsiteDataAccessPermissionRequestClass, WebsiteDataManager.WebsiteDataManagerClass, WebsitePolicies.WebsitePoliciesClass, WebsocketConnection.WebsocketConnectionClass, WebsocketExtension.WebsocketExtensionClass, WebsocketExtensionManager.WebsocketExtensionManagerClass, WidgetPaintable.WidgetPaintableClass, WindowGroup.WindowGroupClass, WindowProperties.WindowPropertiesClass, ZlibCompressor.ZlibCompressorClass, ZlibDecompressor.ZlibDecompressorClass
Enclosing class:
GObject

public static class GObject.ObjectClass extends TypeClass
The class structure for the GObject type.
// Example of implementing a singleton using a constructor.
 static MySingleton *the_singleton = NULL;

 static GObject*
 my_singleton_constructor (GType                  type,
                           guint                  n_construct_params,
                           GObjectConstructParam *construct_params)
 {
   GObject *object;
   
   if (!the_singleton)
     {
       object = G_OBJECT_CLASS (parent_class)->constructor (type,
                                                            n_construct_params,
                                                            construct_params);
       the_singleton = MY_SINGLETON (object);
     }
   else
     object = g_object_ref (G_OBJECT (the_singleton));

   return object;
 }