Example #1
0
File: button.c Project: cran/R2SWF
static SWFButtonRecord newSWFButtonRecord(byte flags, SWFCharacter character,
									 unsigned short layer, SWFMatrix matrix)
{
	SWFButtonRecord record = (SWFButtonRecord) malloc(sizeof(struct SWFButtonRecord_s));

	record->flags = flags;
	record->character = character;
	record->layer = layer;
	record->position = newSWFPosition(matrix);
	record->filterList = NULL;
	record->blendMode = 0;
	return record;
}
Example #2
0
SWFFill
newSWFFill(SWFFillStyle fillstyle)
{
	SWFFill fill = (SWFFill)malloc(sizeof(struct SWFFill_s));

	fill->fillstyle = fillstyle;
	fill->position = newSWFPosition(SWFFillStyle_getMatrix(fill->fillstyle));

#if TRACK_ALLOCS
	fill->gcnode = ming_gc_add_node(fill, (dtorfunctype) destroySWFFill);
#endif

	return fill;
}