X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/573256d3bc21896c54c511d5c0e6927f09b4209e..refs/tags/v2.0.10:/doc/gob2.1.in diff --git a/doc/gob2.1.in b/doc/gob2.1.in index 67c6f55..0a591df 100644 --- a/doc/gob2.1.in +++ b/doc/gob2.1.in @@ -97,12 +97,16 @@ some private data members without breaking binary compatibility. .TP .B -o --output-dir The directory into which output should be placed. +.TP +.B --file-sep[=c] +Replace default \`-\' file name separator. If no separator character +is given then none is used. Only one character can be used. .SH TYPENAMES .PP Because we need to parse out different parts of the typename, sometimes you need to specify the typename with some special syntax. Types are specified in -capitalized form and words are separated by \':\'. The first word of the type +capitalized form and words are separated by \`:\'. The first word of the type (which can be empty) is the "namespace". This fact is for example used for the type checking macro and the type macro. For "Gtk:New:Button", the macros will be GTK_IS_NEW_BUTTON and GTK_TYPE_NEW_BUTTON. This colon separated format of @@ -112,7 +116,8 @@ types. .SH OUTPUT FILES .PP The filenames are created from the typename. The words are -separated by \'-\' and all in lower case. For example for an object named +separated by \`-\' (this can be changed with +\fB--file-sep\fR option) and all in lower case. For example for an object named "Gtk:New:Button", the files are \fBgtk-new-button.c\fR and \fBgtk-new-button.h\fR. If you are using C++ mode, the output .c file will in fact be a .cc file. @@ -522,6 +527,21 @@ To get bettery type safety on some of the property types, you can specify the \'type\' attribute which will add casts where appropriate in code dealing with this property. This is especially useful for POINTER and OBJECT types. But even for others. +.PP +You can also override properties from parent objects (that is override their +implementation, not their attributes). Do this by adding the +special \'override\' attribute. For example if the parent object +had a \'height\' property then you could override it by +.nf + + private int height; + property INT height + (override) + set { self->_priv->height = g_value_get_int (VAL); } + get { g_value_set_int (VAL, self->_priv->height); }; + +.fi +Overriding is supported since gob 2.0.10. .SH METHODS .PP