expedite/src/bin/cxx/rect_solid_few.cc

54 lines
886 B
C++

#undef FNAME
#undef NAME
#undef ICON
/* metadata */
#define FNAME rect_solid_few_start
#define NAME "Rect Solid Few"
#define ICON "rect.png"
#ifndef PROTO
# ifndef UI
# include "main.h"
#undef OBNUM
#define OBNUM 3
/* standard var */
static int done = 0;
/* private data */
static efl::eina::list<evas::image> images;
/* setup */
static void _setup(void)
{
int i;
evas::canvas canvas(::eo_ref(G_evas));
srnd();
for (i = 0; i < OBNUM; i++)
{
int r, g, b, a;
evas::image o(efl::eo::parent = canvas);
images.push_back(o);
a = 0xff;
r = ((rnd()&0xff) * a) / 255;
g = ((rnd()&0xff) * a) / 255;
b = ((rnd()&0xff) * a) / 255;
eo_do(o, evas_obj_color_set(r, g, b, a),
evas_obj_visibility_set(EINA_TRUE));
}
done = 0;
}
/* cleanup */
static void _cleanup(void)
{
int i;
extern "C" static void _key(char *key)
{
KEY_STD;
}