/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to src/Object.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-08-31 20:00:04 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140831200004-yxmcbn8ilq7tl34m
* Starded working on making GameObject compile with the new "base class".

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
BEGIN_DECLS
19
19
 
 
20
 
 
21
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
22
typedef struct Object Object;
 
23
typedef struct ObjectClass ObjectClass;
 
24
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
25
 
20
26
/**
21
27
 * Is the primitive for the the <tt> to_string </tt> method in the
22
28
 * <tt>ObjectClass</tt>.
34
40
typedef struct ObjectClass {
35
41
  NewFunc new_func;
36
42
  FreeFunc free_func;
37
 
  ToStringFunc to_string;
 
43
  ToStringFunc to_string_func;
38
44
} ObjectClass;
39
45
 
40
46
typedef struct Object {
69
75
                        _pointer klass);
70
76
 
71
77
 
72
 
void object_class_initialize (ObjectClass * klass, )
 
78
void object_class_initialize (ObjectClass * klass,
 
79
                              NewFunc new_func,
 
80
                              FreeFunc free_func,
 
81
                              ToStringFunc to_string_func
 
82
                              );
73
83
 
74
84
 
75
85
/**
78
88
 * This is does not copy the data in the object, it only crates a new instance
79
89
 * of the object. This is generally not helpful.
80
90
 */
81
 
Object * object_new_from_object (object * self);
 
91
Object * object_new_from_object (Object * self);
82
92
 
83
93
/**
84
94
 * Creates a null-terminated string that can be used with in different ways, be