X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgdi%2Fgrc.h;h=e91e7e8dd3212b36380b5faa69de0653d1f731bd;hp=38caa107a460ce61ceb0578a11fd5b290cf38767;hb=74f5884fdc5a23465cf40c27b5c069ff7d882746;hpb=dec9693d8437a31dab8e4010b33b57e1476a315c diff --git a/lib/gdi/grc.h b/lib/gdi/grc.h index 38caa10..e91e7e8 100644 --- a/lib/gdi/grc.h +++ b/lib/gdi/grc.h @@ -64,6 +64,13 @@ struct gOpcode shutdown, setCompositing, + sendShow, + sendHide, +#ifdef USE_LIBVUGLES2 + sendShowItem, + setFlush, + setView, +#endif } opcode; gDC *dc; @@ -84,6 +91,8 @@ struct gOpcode eRect area; char *text; int flags; + int border; + gRGB bordercolor; } *renderText; struct prenderPara @@ -142,6 +151,31 @@ struct gOpcode } *setOffset; gCompositingData *setCompositing; + + struct psetShowHideInfo + { + ePoint point; + eSize size; + } *setShowHideInfo; + +#ifdef USE_LIBVUGLES2 + struct psetShowItemInfo + { + long dir; + ePoint point; + eSize size; + } *setShowItemInfo; + + struct psetFlush + { + bool enable; + } *setFlush; + + struct psetViewInfo + { + eSize size; + } *setViewInfo; +#endif } parm; }; @@ -226,7 +260,7 @@ public: RT_WRAP = 32 }; - void renderText(const eRect &position, const std::string &string, int flags=0); + void renderText(const eRect &position, const std::string &string, int flags=0, gRGB bordercolor=gRGB(), int border=0); void renderPara(eTextPara *para, ePoint offset=ePoint(0, 0)); @@ -265,6 +299,13 @@ public: void setCompositing(gCompositingData *comp); void flush(); + void sendShow(ePoint point, eSize size); + void sendHide(ePoint point, eSize size); +#ifdef USE_LIBVUGLES2 + void sendShowItem(long dir, ePoint point, eSize size); + void setFlush(bool val); + void setView(eSize size); +#endif }; class gDC: public iObject