forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
Kha/Backends/Kinc-hxcpp/khacpp/test/native/externs/RectangleDef.h
Executable file
26
Kha/Backends/Kinc-hxcpp/khacpp/test/native/externs/RectangleDef.h
Executable file
@ -0,0 +1,26 @@
|
||||
#ifndef RECTANGLE_DEF_INCLUDED
|
||||
#define RECTANGLE_DEF_INCLUDED
|
||||
|
||||
struct Rectangle
|
||||
{
|
||||
static int instanceCount;
|
||||
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
|
||||
inline Rectangle(int inX=0, int inY=0, int inW=0, int inH=0) :
|
||||
x(inX), y(inY), width(inW), height(inH)
|
||||
{
|
||||
instanceCount++;
|
||||
}
|
||||
inline ~Rectangle()
|
||||
{
|
||||
instanceCount--;
|
||||
}
|
||||
|
||||
int area();
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user