You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/languages/cpp/newclass_templates/gtk_source

36 lines
588 B

#include "$HEADER$"
$CLASSNAME$* $CLASSNAME$_new(void)
{
$CLASSNAME$* self;
self = g_new($CLASSNAME$, 1);
if(NULL != self)
{
if(!$CLASSNAME$_init(self))
{
g_free(self);
self = NULL;
}
}
return self;
}
void $CLASSNAME$_delete($CLASSNAME$* self)
{
g_return_if_fail(NULL != self);
$CLASSNAME$_end(self);
g_free(self);
}
gboolean $CLASSNAME$_init($CLASSNAME$* self)
{
/* TODO: put init code here */
return TRUE;
}
void $CLASSNAME$_end($CLASSNAME$* self)
{
/* TODO: put deinit code here */
}