Ejemplo n.º 1
0
struct s_uiable_attributes *p_uiable_alloc(struct s_object *self) {
	struct s_uiable_attributes *result = d_prepare(self, uiable);
	f_memory_new(self);									/* inherit */
	f_mutex_new(self);									/* inherit */
	f_drawable_new(self, (e_drawable_kind_single|e_drawable_kind_force_visibility));	/* inherit */
	return result;
}
Ejemplo n.º 2
0
struct s_container_attributes *p_container_alloc(struct s_object *self) {
  struct s_container_attributes *result = d_prepare(self, container);
  f_mutex_new(self);    /* inherit */
  f_memory_new(self);   /* inherit */
  f_uiable_new(self);   /* inherit */
  return result;
}
Ejemplo n.º 3
0
struct s_label_attributes *p_label_alloc(struct s_object *self) {
    struct s_label_attributes *result = d_prepare(self, label);
    f_mutex_new(self);	/* inherit */
    f_memory_new(self);	/* inherit */
    f_uiable_new(self);	/* inherit */
    return result;
}
Ejemplo n.º 4
0
struct s_bitmap_attributes *p_bitmap_alloc(struct s_object *self) {
	struct s_bitmap_attributes *result = d_prepare(self, bitmap);
	f_memory_new(self);				/* inherit */
	f_mutex_new(self);				/* inherit */
	f_drawable_new(self, e_drawable_kind_single);	/* inherit */
	return result;
}
Ejemplo n.º 5
0
struct s_fonts_attributes *p_fonts_alloc(struct s_object *self) {
	struct s_fonts_attributes *result = d_prepare(self, fonts);
	f_memory_new(self);	/* inherit */
	f_mutex_new(self);	/* inherit */
	return result;
}
Ejemplo n.º 6
0
struct s_checkbox_attributes *p_checkbox_alloc(struct s_object *self, char *string_content, TTF_Font *font, struct s_object *environment) {
    struct s_checkbox_attributes *result = d_prepare(self, checkbox);
    f_label_new_alignment(self, string_content, font, d_checkbox_background, d_checkbox_alignment, d_checkbox_alignment, environment); /* inherit */
    return result;
}
Ejemplo n.º 7
0
struct s_object *f_memory_new(struct s_object *self) {
	struct s_memory_attributes *attributes = d_prepare(self, memory);
	attributes->references = 1; /* first reference */
	return self;
}
Ejemplo n.º 8
0
struct s_illuminable_bitmap_attributes *p_illuminable_bitmap_alloc(struct s_object *self, struct s_object *stream, struct s_object *environment) {
  struct s_illuminable_bitmap_attributes *result = d_prepare(self, illuminable_bitmap);
  f_bitmap_new(self, stream, environment); /* inherit */
  return result;
}
Ejemplo n.º 9
0
struct s_object *f_emitter_new(struct s_object *self) {
    struct s_emitter_attributes *attributes = d_prepare(self, emitter);
    attributes = attributes;
    return self;
}
Ejemplo n.º 10
0
struct s_environment_attributes *p_environment_alloc(struct s_object *self) {
	struct s_environment_attributes *result = d_prepare(self, environment);
	f_memory_new(self);	/* inherit */
	f_mutex_new(self);	/* inherit */
	return result;
}
Ejemplo n.º 11
0
struct s_drawable_attributes *p_drawable_alloc(struct s_object *self) {
	struct s_drawable_attributes *result = d_prepare(self, drawable);
	/* abstract (no inerithance from memory) */
	f_memory_new(self);
	return result;
}
Ejemplo n.º 12
0
struct s_line_attributes *p_line_alloc(struct s_object *self) {
	struct s_line_attributes *result = d_prepare(self, line);
	f_memory_new(self);	/* inherit */
	return result;
}
Ejemplo n.º 13
0
struct s_object *f_emitter_new(struct s_object *self) {
	struct s_emitter_attributes *attributes = d_prepare(self, emitter);
	f_list_init(&(attributes->signals));
	return self;
}
Ejemplo n.º 14
0
struct s_object *f_mutex_new(struct s_object *self) {
    struct s_mutex_attributes *attributes = d_prepare(self, mutex);
    pthread_mutex_init(&(attributes->mutex), NULL);
    return self;
}