grim/gobjects-101
Clone
Summary
Browse
Changes
Graph
Add a property
draft
default
tip
2021-06-23, Gary Kramlich
364ce9337d61
Add a property
#ifndef BICYCLE_H
#define BICYCLE_H
#include
<glib.h>
#include
<glib-object.h>
G_BEGIN_DECLS
#define GOBJECTS_TYPE_BICYCLE (gobjects_bicycle_get_type())
G_DECLARE_DERIVABLE_TYPE
(
GobjectsBicycle
,
gobjects_bicycle
,
GOBJECTS
,
BICYCLE
,
GObject
)
struct
_GobjectsBicycleClass
{
GObjectClass
parent
;
void
(
*
ring_bell
)(
GobjectsBicycle
*
bicycle
);
};
GobjectsBicycle
*
gobjects_bicycle_new
(
void
);
void
gobjects_bicycle_ring_bell
(
GobjectsBicycle
*
bicycle
);
const
gchar
*
gobjects_bicycle_get_color
(
GobjectsBicycle
*
bicycle
);
void
gobjects_bicycle_set_color
(
GobjectsBicycle
*
bicycle
,
const
gchar
*
color
);
G_END_DECLS
#endif
/* BICYCLE_H */