Example #1
0
File: main.c Project: gnkarn/ucglib
void draw_rframe(ucg_t *ucg)
{
    prepare_picture(ucg);
    hrule(ucg, ox+50, 30, 45, 0);
    vrule(ucg, ox+50+45-1, 30, 20, 1);

    vrule(ucg, ox+50+1, 30+20-8, 8, 0);
    hrule(ucg, ox+50, 30+20-1-1, 8, 1);
    ucg_SetColor(ucg, 0, 255, 255, 255);

    ucg_DrawRFrame(ucg, ox+50, 30, 45, 20, 8);
    pos(ucg, ox+50, 30,0);
    save_picture(ucg, "draw_rframe");
}
Example #2
0
// Lua: ucg.drawRFrame( self, x, y, w, h, r )
static int lucg_drawRFrame( lua_State *L )
{
    lucg_userdata_t *lud;

    if ((lud = get_lud( L )) == NULL)
        return 0;

    ucg_int_t args[5];
    lucg_get_int_args( L, 2, 5, args );

    ucg_DrawRFrame( LUCG, args[0], args[1], args[2], args[3], args[4] );

    return 0;
}