Common Lisp Package: G-OBJECT-CFFI

README:

FUNCTION

Public

G-TYPE->LISP (G-TYPE)

Returns lisp class for the gtype and caches result Ex.: GType of GtkWindow -> 'gtk-cffi:window

KEYWORD->G-TYPE (TYPE)

Keyword from +fundamental-gtypes+ -> integer

Undocumented

G-OBJECT-NEWV (CLASS-TYPE N-PARAMS PARAMS)

G-TYPE-ADD-INTERFACE-STATIC (INSTANCE-TYPE INTERFACE-TYPE INFO)

G-TYPE-FROM-INSTANCE (PTR)

G-TYPE-FROM-NAME (NAME)

G-TYPE-NAME (ID)

G-TYPE-REGISTER-STATIC (PARENT-TYPE TYPE-NAME INFO FLAGS)

G-TYPE-REGISTER-STATIC-SIMPLE (PARENT-TYPE TYPE-NAME CLASS-SIZE CLASS-INIT INSTANCE-SIZE INSTANCE-INIT FLAGS)

MAKE-CLOSURE (FUNC)

NEW (ID)

REGISTER-PACKAGE (NAME PACKAGE)

REGISTER-PREFIX (PACKAGE PREFIX)

REGISTER-TYPE (LISP-CLASS GTK-TYPENAME)

Private

G-TYPE->KEYWORD (NUM)

Integer (GType) -> keyword from +fundamental-gtypes+

G-VALUE-SET (PTR VALUE TYPE)

PTR - foreign pointer, VALUE - lisp value, TYPE - GType id

TYPE-G-VALUE (VALUE)

Value is a pointer to G-Value. Type fetched from value->g_type. Depends on implementation of GLib/GObject! Returns integer GType.

Undocumented

CHILDREN (TYPE)

EXPAND-DEFFUN (PREFIX NAME RES-TYPE CLASS PARAMS &KEY GET)

EXPAND-DEFFUNS (PREFIX CLASS FUNS)

EXPAND-DEFSETTER (PREFIX NAME SLOT-TYPE CLASS PARAMS LAST)

EXPAND-DEFSLOT (PREFIX CURRENT-CLASS SLOT-NAME SLOT-TYPE)

EXPAND-DEFSLOTS (PREFIX CURRENT-CLASS SLOTS)

G-CLOSURE-ADD-FINALIZE-NOTIFIER (CLOSURE DATA FUNC)

G-CLOSURE-NEW-SIMPLE (SIZEOF DATA)

G-CLOSURE-SET-MARSHAL (CLOSURE MARSHAL)

G-OBJECT-CLASS-FIND-PROPERTY (OBJ-CLASS KEY)

G-OBJECT-CLASS-LIST-PROPERTIES (OBJ-CLASS N-PROPS)

G-OBJECT-GET-PROPERTY (OBJECT NAME VALUE)

G-OBJECT-NEW (CLASS-TYPE NULL)

G-OBJECT-REF (OBJ)

G-OBJECT-SET-PROPERTY (OBJECT NAME VALUE)

G-OBJECT-UNREF (OBJ)

G-OBJECT-WEAK-REF (OBJECT NOTIFY DATA)

G-PARAM-SPEC-GET-BLURB (PARAM)

G-PARAM-SPEC-GET-NAME (PARAM)

G-PARAM-SPEC-GET-NICK (PARAM)

G-SIGNAL-CONNECT-CLOSURE (INSTANCE DETAILED-SIGNAL CLOSURE AFTER)

G-SIGNAL-CONNECT-DATA (INSTANCE DETAILED-SIGNAL C-HANDLER DATA DESTROY-DATA CONNECT-FLAGS)

G-SIGNAL-HANDLER-DISCONNECT (INSTANCE ID)

G-TYPE-CHILDREN (TYPE N-CHILDREN)

G-TYPE-CLASS-PEEK-PARENT (CLASS)

G-TYPE-FUNDAMENTAL (ID)

G-TYPE-INTERFACE-PEEK-PARENT (IFACE)

G-TYPE-QUERY (TYPE QUERY)

G-VALUE-GET (VALUE)

G-VALUE-GET-BOOLEAN (G-VALUE)

G-VALUE-GET-BOXED (G-VALUE)

G-VALUE-GET-CHAR (G-VALUE)

G-VALUE-GET-DOUBLE (G-VALUE)

G-VALUE-GET-ENUM (G-VALUE)

G-VALUE-GET-FLAGS (G-VALUE)

G-VALUE-GET-FLOAT (G-VALUE)

G-VALUE-GET-INT (G-VALUE)

G-VALUE-GET-INT64 (G-VALUE)

G-VALUE-GET-LONG (G-VALUE)

G-VALUE-GET-OBJECT (G-VALUE)

G-VALUE-GET-PARAM (G-VALUE)

G-VALUE-GET-POINTER (G-VALUE)

G-VALUE-GET-STRING (G-VALUE)

G-VALUE-GET-UCHAR (G-VALUE)

G-VALUE-GET-UINT (G-VALUE)

G-VALUE-GET-UINT64 (G-VALUE)

G-VALUE-GET-ULONG (G-VALUE)

G-VALUE-INIT (G-VALUE TYPE)

G-VALUE-SET-BOOLEAN (G-VALUE VAL)

G-VALUE-SET-BOXED (G-VALUE VAL)

G-VALUE-SET-CHAR (G-VALUE VAL)

G-VALUE-SET-DOUBLE (G-VALUE VAL)

G-VALUE-SET-ENUM (G-VALUE VAL)

G-VALUE-SET-FLAGS (G-VALUE VAL)

G-VALUE-SET-FLOAT (G-VALUE VAL)

G-VALUE-SET-INT (G-VALUE VAL)

G-VALUE-SET-INT64 (G-VALUE VAL)

G-VALUE-SET-LONG (G-VALUE VAL)

G-VALUE-SET-OBJECT (G-VALUE VAL)

G-VALUE-SET-PARAM (G-VALUE VAL)

G-VALUE-SET-POINTER (G-VALUE VAL)

G-VALUE-SET-STRING (G-VALUE VAL)

G-VALUE-SET-UCHAR (G-VALUE VAL)

G-VALUE-SET-UINT (G-VALUE VAL)

G-VALUE-SET-UINT64 (G-VALUE VAL)

G-VALUE-SET-ULONG (G-VALUE VAL)

G-VALUE-UNSET (G-VALUE)

GET-PREFIX

INIT-G-VALUE (PTR TYPE VALUE VALUE-P)

PARAM-LIST (L)

SHOW-PROPERTIES (G-OBJECT)

MACRO

Public

MAKE-FOREACH (CLASS &REST PARAMS)

Class is a symbol: class or list: (class gtk-name)

WITH-G-VALUE (VAL &BODY BODY)

This macro allows recursive *g-value* binding

Undocumented

DEFFUN (NAME RES-TYPE CLASS &REST PARAMS)

DEFFUNS (CLASS &BODY FUNS)

DEFGDKFUN (NAME RES-TYPE CLASS &REST PARAMS)

DEFGDKFUNS (CLASS &BODY FUNS)

DEFGDKGETTER (NAME RES-TYPE CLASS &REST PARAMS)

DEFGDKSETTER (NAME SLOT-TYPE CLASS LAST &REST PARAMS)

DEFGDKSLOT (CURRENT-CLASS SLOT-NAME SLOT-TYPE)

DEFGDKSLOTS (CURRENT-CLASS &BODY SLOTS)

DEFGETTER (NAME RES-TYPE CLASS &REST PARAMS)

DEFGTKFUN (NAME RES-TYPE CLASS &REST PARAMS)

DEFGTKFUNS (CLASS &BODY FUNS)

DEFGTKGETTER (NAME RES-TYPE CLASS &REST PARAMS)

DEFGTKSETTER (NAME SLOT-TYPE CLASS LAST &REST PARAMS)

DEFGTKSLOT (CURRENT-CLASS SLOT-NAME SLOT-TYPE)

DEFGTKSLOTS (CURRENT-CLASS &BODY SLOTS)

DEFSETTER (NAME SLOT-TYPE CLASS LAST &REST PARAMS)

DEFSLOT (CURRENT-CLASS SLOT-NAME SLOT-TYPE)

DEFSLOTS (CURRENT-CLASS &BODY SLOTS)

SET-CALLBACK (OBJECT SETTER CB-STANDARD FUNC DATA DESTROY-NOTIFY &REST ADD-PARAMS)

WITH-OBJECT ((NAME &OPTIONAL FOR-FREE) INIT &REST BODY)

Private

Undocumented

GENERATE-PROPERTY-ACCESSORS (NAME OBJECT SET GET TYPE CLASS FIND PROP-SLOT)

GENERIC-FUNCTION

Public

FOREACH (CLASS FUNC &OPTIONAL DATA)

For each element in CLASS execute FUNC

Undocumented

CONNECT (G-OBJECT HANDLER &REST KEYS &KEY SIGNAL DATA AFTER SWAPPED)

FIND-PROPERTY (G-OBJECT-CLASS KEY)

G-TYPE (G-VALUE &REST FLAGS &KEY OWNER)

G-TYPE-INSTANCE (G-PARAM-SPEC-STRUCT)

SETFG-TYPE-INSTANCE (VAL G-PARAM-SPEC-STRUCT)

GSIGNAL (G-OBJECT SIGNAL)

SETFGSIGNAL (C-HANDLER G-OBJECT DETAILED-SIGNAL &REST FLAGS &KEY DATA AFTER SWAPPED)

INIT (G-VALUE &REST KEYS &KEY (VALUE NIL VALUE-P) G-TYPE)

SETFPROPERTIES (PROPERTIES G-OBJECT)

PROPERTY (G-OBJECT &REST KEYS)

SETFPROPERTY (VALUES G-OBJECT &REST KEYS)

REF (OBJ)

SETFSIGNALS (SIGNALS G-OBJECT)

UNREF (OBJ)

UNSET (G-VALUE)

VALUE (G-VALUE)

SETFVALUE (VAL G-VALUE)

Private

Undocumented

BLURB (G-OBJECT-VLASS)

CLASS-SIZE (G-TYPE-QUERY)

SETFCLASS-SIZE (VAL G-TYPE-QUERY)

CONSTRUCT-PROPERTIES (G-OBJECT-CLASS-STRUCT)

SETFCONSTRUCT-PROPERTIES (VAL G-OBJECT-CLASS-STRUCT)

CONSTRUCTED (G-OBJECT-CLASS-STRUCT)

SETFCONSTRUCTED (VAL G-OBJECT-CLASS-STRUCT)

CONSTRUCTOR (G-OBJECT-CLASS-STRUCT)

SETFCONSTRUCTOR (VAL G-OBJECT-CLASS-STRUCT)

DISPATCH-PROPERTIES-CHANGED (G-OBJECT-CLASS-STRUCT)

SETFDISPATCH-PROPERTIES-CHANGED (VAL G-OBJECT-CLASS-STRUCT)

DISPOSE (G-OBJECT-CLASS-STRUCT)

SETFDISPOSE (VAL G-OBJECT-CLASS-STRUCT)

FINALIZE (G-OBJECT-CLASS-STRUCT)

SETFFINALIZE (VAL G-OBJECT-CLASS-STRUCT)

FLAGS (G-OBJECT-CLASS)

SETFFLAGS (VAL G-PARAM-SPEC-STRUCT)

G-CLASS (G-TYPE-INSTANCE)

SETFG-CLASS (VAL G-TYPE-INSTANCE)

G-INSTANCE-TYPE (G-TYPE-INTERFACE)

SETFG-INSTANCE-TYPE (VAL G-TYPE-INTERFACE)

G-PARAM-SPEC-TYPE (G-PARAM-SPEC-STRUCT)

SETFG-PARAM-SPEC-TYPE (VAL G-PARAM-SPEC-STRUCT)

G-TYPE-TYPE (G-TYPE-INTERFACE)

SETFG-TYPE-TYPE (VAL G-TYPE-INTERFACE)

GET-PROPERTY (G-OBJECT-CLASS-STRUCT)

SETFGET-PROPERTY (VAL G-OBJECT-CLASS-STRUCT)

INSTANCE-SIZE (G-TYPE-QUERY)

SETFINSTANCE-SIZE (VAL G-TYPE-QUERY)

LIST-PROPERTIES (G-OBJECT-CLASS)

NAME (G-OBJECT-CLASS)

SETFNAME (VAL G-TYPE-QUERY)

NICK (G-OBJECT-CLASS)

NOTIFY (G-OBJECT-CLASS-STRUCT)

SETFNOTIFY (VAL G-OBJECT-CLASS-STRUCT)

OWNER-TYPE (G-PARAM-SPEC-STRUCT)

SETFOWNER-TYPE (VAL G-PARAM-SPEC-STRUCT)

PDUMMY (G-OBJECT-CLASS-STRUCT)

SETFPDUMMY (VAL G-OBJECT-CLASS-STRUCT)

PROPERTY-TYPE (G-OBJECT KEY)

SET-PROPERTY (G-OBJECT-CLASS-STRUCT)

SETFSET-PROPERTY (VAL G-OBJECT-CLASS-STRUCT)

TYPE-CLASS (G-OBJECT-CLASS-STRUCT)

SETFTYPE-CLASS (VAL G-OBJECT-CLASS-STRUCT)

SLOT-ACCESSOR

Public

Undocumented

DATA (OBJECT)

SETFDATA (NEW-VALUE OBJECT)

Private

Undocumented

%PROPERTIES (OBJECT)

SETF%PROPERTIES (NEW-VALUE OBJECT)

GSIGNALS (OBJECT)

SETFGSIGNALS (NEW-VALUE OBJECT)

VARIABLE

Public

*CALLBACK*

Lisp callback for use in gtk methods, that need callback function

Undocumented

*G-VALUE*

Private

*GTK-PACKAGES*

Assoc: gtk-prefix -> lisp package

*GTK-PREFIXES*

Assoc: lisp package -> C function prefix

*TYPENAMES*

Assoc: GTK type name (string) -> lisp object

*TYPES*

Hash table: GType num -> lisp object

Undocumented

+FUNDAMENTAL-G-TYPES+

CLASS

Public

G-OBJECT

Lisp wrapper for GObject

STORAGE

A storage for any data for callbacks. On make-instance it allocates one byte on heap and associates itself with the address of that byte.

Undocumented

CFFI-KEYWORD

G-OBJECT-CLASS

G-OBJECT-CLASS-STRUCT

G-PARAM-SPEC

G-TYPE-CLASS

G-TYPE-INSTANCE (G-PARAM-SPEC-STRUCT)

G-TYPE-INTERFACE

G-VALUE

Private

CFFI-PDATA

PDATA lets send any data via a c-pointer. C-pointer used as an id for the data. NB! Don't forget to free pointers after use.

Undocumented

CFFI-POBJECT

G-INTERFACE-INFO-TCLASS

G-OBJECT-CLASS-STRUCT-TCLASS

G-OBJECT-TCLASS

G-PARAM-SPEC-STRUCT

G-PARAM-SPEC-STRUCT-TCLASS

G-TYPE-CLASS-TCLASS

G-TYPE-INFO-TCLASS

G-TYPE-INSTANCE-TCLASS

G-TYPE-INTERFACE-TCLASS

G-TYPE-QUERY (TYPE QUERY)

G-TYPE-QUERY-TCLASS

G-VALUE-STRUCT

G-VALUE-STRUCT-TCLASS