Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F621800
rectarea.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
rectarea.cpp
View Options
#include
"r-tech1/graphics/bitmap.h"
#include
"r-tech1/gui/rectarea.h"
using
namespace
Gui
;
RectArea
::
RectArea
()
:
x
(
0
),
y
(
0
),
width
(
0
),
height
(
0
),
radius
(
0
){
}
RectArea
::
RectArea
(
int
x
,
int
y
,
int
w
,
int
h
)
:
x
(
x
),
y
(
y
),
width
(
w
),
height
(
h
),
radius
(
0
){
}
bool
RectArea
::
empty
(){
// return (x==0 && y==0 && width==0 && height==0);
return
width
==
0
&&
height
==
0
;
}
bool
RectArea
::
operator
==
(
const
RectArea
&
rect
){
return
(
(
x
==
rect
.
x
)
&&
(
y
==
rect
.
y
)
&&
(
width
==
rect
.
width
)
&&
(
height
==
rect
.
height
));
}
bool
RectArea
::
operator
!=
(
const
RectArea
&
rect
){
return
(
(
x
!=
rect
.
x
)
||
(
y
!=
rect
.
y
)
||
(
width
!=
rect
.
width
)
||
(
height
!=
rect
.
height
));
}
bool
RectArea
::
operator
==
(
const
Graphics
::
Bitmap
&
bmp
){
return
(
(
width
==
bmp
.
getWidth
())
&&
(
height
==
bmp
.
getHeight
()));
}
bool
RectArea
::
operator
!=
(
const
Graphics
::
Bitmap
&
bmp
){
return
(
(
width
!=
bmp
.
getWidth
())
||
(
height
!=
bmp
.
getHeight
()));
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 7:30 PM (20 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
135806
Default Alt Text
rectarea.cpp (1 KB)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline