view inkscape/firefox/template/textmenu/app.c @ 1096:c18ad321844d

Create a pattern, for an image paint, from image directly. It skips a surface as an intermediate stage between image and pattern. We create the pattern directly from an image (mb_img_data_t).
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 04 Dec 2010 16:22:11 +0800
parents 26c302b47de1
children
line wrap: on
line source

#include <stdio.h>
#include <mb.h>
#include "mb_af.h"
#include "mb_ani_menu.h"
#include "%n.h"

void myselect_callback(mb_animated_menu_t *m, int select)
{
    printf("menu %d is selected\n", select);
    // Put the callback function for menu select here
}

void MyApp_InitContent(mbaf_t *app,int argc,char *argv[])
{
   // This function is called when the application is started.
}