Class GObject

java.lang.Object
All Implemented Interfaces:
Proxy
Direct Known Subclasses:
Accessible.AccessibleImpl, AccessibleRange.AccessibleRangeImpl, AccessibleText.AccessibleTextImpl, Action.ActionImpl, ActionGroup.ActionGroupImpl, ActionMap.ActionMapImpl, Adapter, AlertDialog, Animation, AnimationTarget, AppInfo.AppInfoImpl, AppInfoMonitor, AppLaunchContext, Application, ApplicationCommandLine, AssistantPage, AsyncInitable.AsyncInitableImpl, AsyncResult.AsyncResultImpl, ATContext, Auth, AuthDomain, AuthenticationRequest, AuthManager, AutomationSession, BackForwardList, Binding, BindingGroup, BookmarkList, Breakpoint, Buildable.BuildableImpl, BuilderCScope, BuilderScope.BuilderScopeImpl, BytesIcon, Cache, Cancellable, CellAreaContext, CellLayout.CellLayoutImpl, CharsetConverter, ChildProxy.ChildProxyImpl, CicpParams, Class, Clipboard, ClipboardPermissionRequest, ColorBalance.ColorBalanceImpl, ColorBalanceChannel, ColorChooser.ColorChooserImpl, ColorChooserRequest, ColorDialog, ColumnViewColumn, ColumnViewRow, Completion, CompletionContext, CompletionProposal.CompletionProposalImpl, CompletionProvider.CompletionProviderImpl, CompletionSnippets, CompletionWords, Constraint, ConstraintGuide, ConstraintTarget.ConstraintTargetImpl, ContentDecoder, ContentDeserializer, ContentProvider, ContentSerializer, ContentSniffer, Context, Context, ContextMenu, ContextMenu, Converter.ConverterImpl, CookieJar, CookieManager, Coverage, Credentials, CssProvider, Cursor, DatagramBased.DatagramBasedImpl, DataQueue, DBusActionGroup, DBusAuthObserver, DBusConnection, DBusInterface.DBusInterfaceImpl, DBusInterfaceSkeleton, DBusMessage, DBusMethodInvocation, DBusObject.DBusObjectImpl, DBusObjectManager.DBusObjectManagerImpl, DBusObjectManagerClient, DBusObjectManagerServer, DBusObjectProxy, DBusObjectSkeleton, DBusProxy, DBusServer, DebugController.DebugControllerImpl, DebugControllerDBus, DesktopAppInfo, DesktopAppInfoLookup.DesktopAppInfoLookupImpl, Device, DeviceInfoPermissionRequest, DeviceTool, DirectoryList, Discoverer, DiscovererInfo, DiscovererStreamInfo, Display, DisplayManager, DmabufTextureBuilder, Download, Drag, DrawContext, Drive.DriveImpl, Drop, DtlsClientConnection.DtlsClientConnectionImpl, DtlsConnection.DtlsConnectionImpl, DtlsServerConnection.DtlsServerConnectionImpl, EditorState, Emblem, EmblemedIcon, EncodingProfile, EncodingTarget, EntryBuffer, EntryCompletion, EnumListItem, EnumListModel, EventController, Exception, FaviconDatabase, File, File.FileImpl, FileChooser.FileChooserImpl, FileChooserRequest, FileDescriptorBased.FileDescriptorBasedImpl, FileDialog, FileEnumerator, FileIcon, FileInfo, FileLauncher, FileLoader, FileMonitor, FilenameCompleter, FileSaver, Filter, FilterListModel, FindController, FlattenListModel, Font, FontChooser.FontChooserImpl, FontDialog, FontFace, FontFamily, FontMap, Fontset, FormSubmissionRequest, Frame, FrameClock, GeolocationManager, GeolocationPermissionRequest, GLShader, GLTextureBuilder, GtkBuilder, GutterLines, HitTestResult, HitTestResult, Hover, HoverContext, HoverProvider.HoverProviderImpl, HSTSEnforcer, Icon.IconImpl, IconPaintable, IconTheme, IMContext, Indenter.IndenterImpl, InetAddress, InetAddressMask, Initable.InitableImpl, InitiallyUnowned, InputMethodContext, InputStream, IOStream, Language, LanguageManager, Layout, Layout, LayoutChild, LayoutManager, LeafletPage, ListHeader, ListIndexModel, ListIndexModel.ListIndex, ListItem, ListItemFactory, ListModel.ListModelImpl, ListStore, ListStore, LoadableIcon.LoadableIconImpl, Logger, MapListModel, MarkAttributes, MediaKeySystemPermissionRequest, MediaStream, MemoryMonitor.MemoryMonitorImpl, MemoryTextureBuilder, MenuAttributeIter, MenuItem, MenuLinkIter, MenuModel, Message, Monitor, Mount.MountImpl, MountOperation, MultiSelection, NativeDialog, Navigation.NavigationImpl, NetworkAddress, NetworkMonitor.NetworkMonitorImpl, NetworkService, NetworkSession, NoSelection, NotebookPage, Notification, Notification, NotificationPermissionRequest, OptionMenu, Orientable.OrientableImpl, OsxAppInfo, OutputStream, PageSetup, Paintable.PaintableImpl, Permission, PermissionRequest.PermissionRequestImpl, Pixbuf, PixbufAnimation, PixbufAnimationIter, PixbufLoader, PointerLockPermissionRequest, PolicyDecision, PowerProfileMonitor.PowerProfileMonitorImpl, Preset.PresetImpl, PrintCompositor, PrintContext, PrintDialog, Printer, PrintJob, PrintOperation, PrintOperation, PrintOperationPreview.PrintOperationPreviewImpl, PrintSettings, PropertyAction, Proxy.ProxyImpl, ProxyResolver.ProxyResolverImpl, RecentManager, Region, RemoteActionGroup.RemoteActionGroupImpl, Renderer, Renderer, Resolver, ScriptWorld, Scrollable.ScrollableImpl, SearchContext, SearchSettings, Seat, SectionModel.SectionModelImpl, SecurityManager, Seekable.SeekableImpl, SelectionFilterModel, SelectionModel.SelectionModelImpl, Server, ServerMessage, Session, SessionFeature.SessionFeatureImpl, Settings, Settings, Settings, SettingsBackend, Shortcut, ShortcutAction, ShortcutManager.ShortcutManagerImpl, ShortcutTrigger, SignalGroup, SimpleAction, SimpleActionGroup, SimpleAsyncResult, SimpleProxyResolver, SingleSelection, SizeGroup, SliceListModel, Snapshot, Snippet, SnippetContext, SnippetManager, Socket, SocketAddress, SocketAddressEnumerator, SocketClient, SocketConnectable.SocketConnectableImpl, SocketControlMessage, SocketListener, Sorter, SortListModel, SpaceDrawer, SpinnerPaintable, SqueezerPage, StackPage, StreamVolume.StreamVolumeImpl, StringList, StringObject, Style, StyleContext, StyleManager, StyleProvider.StyleProviderImpl, StyleScheme, StyleSchemeChooser.StyleSchemeChooserImpl, StyleSchemeManager, Subprocess, SubprocessLauncher, Surface, SwipeTracker, SymbolicPaintable.SymbolicPaintableImpl, TabPage, Task, TestDBus, TextBuffer, TextChildAnchor, TextMark, TextTag, TextTagTable, Texture, ThemedIcon, TlsBackend.TlsBackendImpl, TlsCertificate, TlsDatabase, TlsInteraction, TlsPassword, Toast, Tooltip, TreeDragDest.TreeDragDestImpl, TreeDragSource.TreeDragSourceImpl, TreeListModel, TreeListRow, TreeModel.TreeModelImpl, TreeModelFilter, TreeModelSort, TreeSelection, TreeSortable.TreeSortableImpl, TreeStore, TypeModule, TypePlugin.TypePluginImpl, UnixFDList, UnixMountMonitor, URIHandler.URIHandlerImpl, UriLauncher, URIRequest, URIRequest, URIResponse, URIResponse, URISchemeRequest, URISchemeResponse, UserContentFilterStore, UserContentManager, UserMediaPermissionRequest, Value, Vfs, VideoDirection.VideoDirectionImpl, VideoOrientation.VideoOrientationImpl, VideoOverlay.VideoOverlayImpl, ViewStackPage, ViewStackPages, VirtualMachine, Volume.VolumeImpl, VolumeMonitor, WeakValue, WebContext, WebEditor, WebFormManager, WebHitTestResult, WebInspector, WebPage, WebProcessExtension, WebResource, WebsiteDataAccessPermissionRequest, WebsiteDataManager, WebsitePolicies, WebsocketConnection, WebsocketExtension, WebsocketExtensionManager, WidgetPaintable, WindowGroup, WindowProperties, ZlibCompressor, ZlibDecompressor

@Generated("io.github.jwharm.JavaGI") public class GObject extends TypeInstance
The base object type.

GObject is the fundamental type providing the common attributes and methods for all object types in GTK, Pango and other libraries based on GObject. The GObject class provides methods for object construction and destruction, property access methods, and signal support. Signals are described in detail [here][gobject-Signals].

For a tutorial on implementing a new GObject class, see [How to define and implement a new GObject](tutorial.htmlhow-to-define-and-implement-a-new-gobject). For a list of naming conventions for GObjects and their methods, see the GType conventions. For the high-level concepts behind GObject, read Instantiatable classed types: Objects.

Since GLib 2.72, all GObjects are guaranteed to be aligned to at least the alignment of the largest basic GLib type (typically this is guint64 or gdouble). If you need larger alignment for an element in a GObject, you should allocate it on the heap (aligned), or arrange for your GObject to be appropriately padded. This guarantee applies to the GObject (or derived) struct, the GObjectClass (or derived) struct, and any private data allocated by G_ADD_PRIVATE().