Next: , Previous: g-class-property-definition, Up: Object types information


4.4.2 class-properties

— Function: class-properties
     (class-properties type) => properties
type
A GType designator. Specifies the object type (class)
properties
A list of g-property-definition structures.

This function returns the list of properties that are available in class type.

Example:

     (class-properties "GtkWidget")
     =>
     (#<PROPERTY gpointer GtkObject.user-data (flags: readable writable)>
      #<PROPERTY gchararray GtkWidget.name (flags: readable writable)>
      #<PROPERTY GtkContainer GtkWidget.parent (flags: readable writable)>
      #<PROPERTY gint GtkWidget.width-request (flags: readable writable)>
      #<PROPERTY gint GtkWidget.height-request (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.visible (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.sensitive (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.app-paintable (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.can-focus (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.has-focus (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.is-focus (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.can-default (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.has-default (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.receives-default (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.composite-child (flags: readable)>
      #<PROPERTY GtkStyle GtkWidget.style (flags: readable writable)>
      #<PROPERTY GdkEventMask GtkWidget.events (flags: readable writable)>
      #<PROPERTY GdkExtensionMode GtkWidget.extension-events (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.no-show-all (flags: readable writable)>
      #<PROPERTY gboolean GtkWidget.has-tooltip (flags: readable writable)>
      #<PROPERTY gchararray GtkWidget.tooltip-markup (flags: readable writable)>
      #<PROPERTY gchararray GtkWidget.tooltip-text (flags: readable writable)>
      #<PROPERTY GdkWindow GtkWidget.window (flags: readable)>)