comparison dwt/internal/gtk/c/gobjecttypes.d @ 15:758bbbe4b86a

Fixup gtk bindings; OS.d updates
author John Reimer<terminal.node@gmail.com>
date Sun, 06 Jan 2008 13:35:33 -0800
parents 5f725d09c076
children 92223a4ecca7
comparison
equal deleted inserted replaced
11:5f725d09c076 15:758bbbe4b86a
235 235
236 236
237 /** 237 /**
238 * An opaque structure used as the base of all type instances. 238 * An opaque structure used as the base of all type instances.
239 */ 239 */
240 public struct GTypeInstance{} 240 public struct GTypeInstance
241 241 {
242 /*< private >*/
243 GTypeClass *g_class;
244 }
242 245
243 /** 246 /**
244 * An opaque structure used as the base of all classes. 247 * An opaque structure used as the base of all classes.
245 */ 248 */
246 public struct GTypeClass{} 249 public struct GTypeClass
250 {
251 /*< private >*/
252 GType g_type;
253 }
247 254
248 255
249 /** 256 /**
250 * This structure is used to provide the type system with the information 257 * This structure is used to provide the type system with the information
251 * required to initialize and destruct (finalize) a type's class and 258 * required to initialize and destruct (finalize) a type's class and
454 * Example4.Implementing singletons using a constructor 461 * Example4.Implementing singletons using a constructor
455 * static MySingleton *the_singleton = NULL; 462 * static MySingleton *the_singleton = NULL;
456 * static GObject* 463 * static GObject*
457 * my_singleton_constructor (GType type, 464 * my_singleton_constructor (GType type,
458 */ 465 */
459 public struct GObjectClass{} 466
460 // GTypeClass gTypeClass; 467 public struct GObjectClass
461 // gobject-The-Base-Object-Type.html 468 {
462 // /+* seldomly overidden +/ 469 GTypeClass g_type_class;
463 // gobject-The-Base-Object-Type.html 470
464 // GObject* (*constructor) (GType type, 471 /*< private >*/
465 // gobject-The-Base-Object-Type.html 472 GSList *construct_properties;
466 // uint nConstructProperties, 473
467 // gobject-The-Base-Object-Type.html 474 /*< public >*/
468 // GObjectConstructParam *constructProperties); 475 /* seldomly overidden */
469 // gobject-The-Base-Object-Type.html 476 GObject* (*constructor) (GType type,
470 // /+* overridable methods +/ 477 guint n_construct_properties,
471 // gobject-The-Base-Object-Type.html 478 GObjectConstructParam *construct_properties);
472 // void (*setProperty) (GObject *object, 479 /* overridable methods */
473 // gobject-The-Base-Object-Type.html 480 void (*set_property) (GObject *object,
474 // uint propertyId, 481 guint property_id,
475 // gobject-The-Base-Object-Type.html 482 GValue *value,
476 // GValue *value, 483 GParamSpec *pspec);
477 // gobject-The-Base-Object-Type.html 484 void (*get_property) (GObject *object,
478 // GParamSpec *pspec); 485 guint property_id,
479 // gobject-The-Base-Object-Type.html 486 GValue *value,
480 // void (*getProperty) (GObject *object, 487 GParamSpec *pspec);
481 // gobject-The-Base-Object-Type.html 488 void (*dispose) (GObject *object);
482 // uint propertyId, 489 void (*finalize) (GObject *object);
483 // gobject-The-Base-Object-Type.html 490 /* seldomly overidden */
484 // GValue *value, 491 void (*dispatch_properties_changed) (GObject *object,
485 // gobject-The-Base-Object-Type.html 492 guint n_pspecs,
486 // GParamSpec *pspec); 493 GParamSpec **pspecs);
487 // gobject-The-Base-Object-Type.html 494 /* signals */
488 // void (*dispose) (GObject *object); 495 void (*notify) (GObject *object,
489 // gobject-The-Base-Object-Type.html 496 GParamSpec *pspec);
490 // void (*finalize) (GObject *object); 497
491 // gobject-The-Base-Object-Type.html 498 /* called when done constructing */
492 // /+* seldomly overidden +/ 499 void (*constructed) (GObject *object);
493 // gobject-The-Base-Object-Type.html 500
494 // void (*dispatchPropertiesChanged) (GObject *object, 501 /*< private >*/
495 // gobject-The-Base-Object-Type.html 502 /* padding */
496 // uint nPspecs, 503 gpointer pdummy[7];
497 // gobject-The-Base-Object-Type.html 504 }
498 // GParamSpec **pspecs);
499 // gobject-The-Base-Object-Type.html
500 // /+* signals +/
501 // gobject-The-Base-Object-Type.html
502 // void (*notify) (GObject *object,
503 // gobject-The-Base-Object-Type.html
504 // GParamSpec *pspec);
505 // gobject-The-Base-Object-Type.html
506 // /+* called when done constructing +/
507 // gobject-The-Base-Object-Type.html
508 // void (*constructed) (GObject *object);
509 // gobject-The-Base-Object-Type.html
510
511
512 /** 505 /**
513 * The GObjectConstructParam struct is an auxiliary 506 * The GObjectConstructParam struct is an auxiliary
514 * structure used to hand GParamSpec/GValue pairs to the constructor of 507 * structure used to hand GParamSpec/GValue pairs to the constructor of
515 * a GObjectClass. 508 * a GObjectClass.
516 * GParamSpec*pspec; 509 * GParamSpec*pspec;
549 542
550 543
551 /** 544 /**
552 * The class structure for the GInitiallyUnowned type. 545 * The class structure for the GInitiallyUnowned type.
553 */ 546 */
554 public struct GInitiallyUnownedClass{} 547 alias GObjectClass GInitiallyUnownedClass;
555 548
556 549
557 /** 550 /**
558 * The class of an enumeration type holds information about its 551 * The class of an enumeration type holds information about its
559 * possible values. 552 * possible values.