23 #ifndef _LAX_IMAGEPATCHINTERFACE_H
24 #define _LAX_IMAGEPATCHINTERFACE_H
26 #include <lax/interfaces/patchinterface.h>
27 #include <lax/screencolor.h>
29 namespace LaxInterfaces {
46 double nscale,
unsigned int stle);
50 virtual const char *whattype() {
return "ImagePatchData"; }
60 virtual int SetImage(
const char *fname);
67 #define IMGPATCHI_POPUP_INFO 1
74 virtual int PerformAction(
int action);
79 virtual const char *IconId() {
return "ImagePatch"; }
80 virtual const char *Name();
81 virtual const char *whattype() {
return "ImagePatchInterface"; }
82 virtual const char *whatdatatype() {
return "ImagePatchData"; }
85 virtual int UseThis(
anObject *newdata,
unsigned int mask=0);
86 virtual int UseThis(
int id,
int ndata);
89 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const Laxkit::LaxKeyboard *d);
91 virtual PatchData *
newPatchData(
double xx,
double yy,
double ww,
double hh,
int nr,
int nc,
unsigned int stle);
92 virtual void drawpatch(
int roff,
int coff);
Mon Feb 17 2014 11:52:56, Laxkit