ultimatepp/rainbow/VirtualGui/Image.cpp
cxl e22a6587f3 rainbow: VirtualGui
git-svn-id: svn://ultimatepp.org/upp/trunk@11910 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2018-04-24 12:15:43 +00:00

47 lines
950 B
C++

#include <CtrlCore/CtrlCore.h>
#ifdef VIRTUALGUI
NAMESPACE_UPP
#define LTIMING(x) // RTIMING(x)
void SetSurface(SystemDraw& w, int x, int y, int cx, int cy, const RGBA *pixels)
{
GuiLock __;
// Empty as CanSetSurface is false
}
void SetSurface(SystemDraw& w, const Rect& dest, const RGBA *pixels, Size psz, Point poff)
{
GuiLock __;
// Empty as CanSetSurface is false
}
#define IMAGECLASS FBImg
#define IMAGEFILE <SDL20GL/FB.iml>
#include <Draw/iml_source.h>
#define STD_CURSOR(name) \
Image Image::name() { static Image img; ONCELOCK { img = FBImg::name(); } return img; }
STD_CURSOR(Arrow)
STD_CURSOR(Wait)
STD_CURSOR(IBeam)
STD_CURSOR(No)
STD_CURSOR(SizeAll)
STD_CURSOR(SizeHorz)
STD_CURSOR(SizeVert)
STD_CURSOR(SizeTopLeft)
STD_CURSOR(SizeTop)
STD_CURSOR(SizeTopRight)
STD_CURSOR(SizeLeft)
STD_CURSOR(SizeRight)
STD_CURSOR(SizeBottomLeft)
STD_CURSOR(SizeBottom)
STD_CURSOR(SizeBottomRight)
STD_CURSOR(Hand)
END_UPP_NAMESPACE
#endif