gobject

MoonBit bindings for the GObject base type

gobject
ffi
native
gtk
moon add tonyfettes/gobject@0.2.0
Download zip
Version
0.2.0
License
Apache-2.0
Last updated
23 days ago
Downloads
250
README

#gobject

Generated MoonBit bindings for the GObject base type.

#Types

  • Object — the base GObject type that all GTK/GIO classes inherit from

#Notes

This package provides the foundational Object type used by all other generated binding packages. Bindings are generated from GIR XML by the code generator.

The IObject trait is implemented by all generated GObject-derived types, enabling type hierarchy and polymorphism across the binding packages.

#
IObject

pub(open) trait IObject {
fn as_object(Self) -> Object
fn force_floating(Self) -> Unit = _
fn freeze_notify(Self) -> Unit = _
fn is_floating(Self) -> Bool = _
fn notify(Self, String) -> Unit = _
fn ref_(Self) -> Object = _
fn ref_sink(Self) -> Object = _
fn run_dispose(Self) -> Unit = _
fn thaw_notify(Self) -> Unit = _
fn unref(Self) -> Unit = _
}

#
VObjectConstructed

pub(open) trait VObjectConstructed {
fn constructed(Self, Object) -> Unit
}

Implementation contract for Object.constructed. Self is the retained MoonBit state; the second parameter is the invoked Object object.

#
VObjectDispose

pub(open) trait VObjectDispose {
fn dispose(Self, Object) -> Unit
}

Implementation contract for Object.dispose. Self is the retained MoonBit state; the second parameter is the invoked Object object.

#
VObjectFinalize

pub(open) trait VObjectFinalize {
fn finalize(Self, Object) -> Unit
}

Implementation contract for Object.finalize. Self is the retained MoonBit state; the second parameter is the invoked Object object.

#
Object

pub type Object
impl IObject for Object

#
Object::force_floating

fn Object::force_floating(self : Object) -> Unit

#
Object::freeze_notify

fn Object::freeze_notify(self : Object) -> Unit

#
Object::is_floating

fn Object::is_floating(self : Object) -> Bool

#
Object::new

fn Object::new() -> Object

Creates a new Object with default property values.

#
Object::notify

fn Object::notify(self : Object, property_name : String) -> Unit

#
Object::ref_

fn Object::ref_(self : Object) -> Object

#
Object::ref_sink

fn Object::ref_sink(self : Object) -> Object

#
Object::run_dispose

fn Object::run_dispose(self : Object) -> Unit

#
Object::thaw_notify

fn Object::thaw_notify(self : Object) -> Unit

#
Object::unref

fn Object::unref(self : Object) -> Unit

#
PARAM_MASK

let PARAM_MASK : Int

#
PARAM_STATIC_STRINGS

let PARAM_STATIC_STRINGS : Int

#
PARAM_USER_SHIFT

let PARAM_USER_SHIFT : Int

#
SIGNAL_FLAGS_MASK

let SIGNAL_FLAGS_MASK : Int

#
SIGNAL_MATCH_MASK

let SIGNAL_MATCH_MASK : Int

#
TYPE_FLAG_RESERVED_ID_BIT

let TYPE_FLAG_RESERVED_ID_BIT : UInt64

#
TYPE_FUNDAMENTAL_MAX

let TYPE_FUNDAMENTAL_MAX : Int

#
TYPE_FUNDAMENTAL_SHIFT

let TYPE_FUNDAMENTAL_SHIFT : Int

#
TYPE_RESERVED_BSE_FIRST

let TYPE_RESERVED_BSE_FIRST : Int

#
TYPE_RESERVED_BSE_LAST

let TYPE_RESERVED_BSE_LAST : Int

#
TYPE_RESERVED_GLIB_FIRST

let TYPE_RESERVED_GLIB_FIRST : Int

#
TYPE_RESERVED_GLIB_LAST

let TYPE_RESERVED_GLIB_LAST : Int

#
TYPE_RESERVED_USER_FIRST

let TYPE_RESERVED_USER_FIRST : Int

#
VALUE_COLLECT_FORMAT_MAX_LENGTH

let VALUE_COLLECT_FORMAT_MAX_LENGTH : Int

#
VALUE_INTERNED_STRING

let VALUE_INTERNED_STRING : Int

#
VALUE_NOCOPY_CONTENTS

let VALUE_NOCOPY_CONTENTS : Int