4.1 g-class-property-definition
— Structure:
g-class-property-definition
(defstruct g-class-property-definition
name
type
readable
writable
constructor
constructor-only
owner-type)
- name
- A string that names the property
- type
- A GType designator. Identifies the type of the property
- readable
- A boolean. Identifies whether the property can be read
- writable
- A boolean. Identifies whether the property can be assigned
- constructor
- A boolean. Identifies whether constructor of object accepts this property
- constructor-only
- A boolean. Identifies whether this property may only be set in constructor, not in property setter
- owner-type
- A GType designator. Identifies the type on which the property was defined.
This structure identifies a single property. Its field specify attributes of a property.
Structures of this type have shortened print syntax:
#<PROPERTY gchararray GtkButton.label (flags: readable writable constructor)>
(When *print-readably*
is T, usual defstruct
print syntax is used)
This syntax specifies:
- type of property
- the owner type of property
- name of property
- additional flags of property