Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630862
bitmap.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
772 B
Referenced Files
None
Subscribers
None
bitmap.h
View Options
struct
SDL_Surface
;
struct
BitmapData
{
BitmapData
()
:
surface
(
0
),
clip_left
(
0
),
clip_right
(
0
),
clip_top
(
0
),
clip_bottom
(
0
){}
inline
SDL_Surface
*
getSurface
()
const
{
return
surface
;
}
inline
void
setClip
(
int
left
,
int
top
,
int
right
,
int
bottom
)
const
{
clip_left
=
left
;
clip_right
=
right
;
clip_top
=
top
;
clip_bottom
=
bottom
;
}
bool
isClipped
(
int
x
,
int
y
)
const
{
return
(
x
<
clip_left
||
y
<
clip_top
||
x
>=
clip_right
||
y
>=
clip_bottom
);
}
void
setSurface
(
SDL_Surface
*
surface
);
SDL_Surface
*
surface
;
mutable
int
clip_left
,
clip_right
;
mutable
int
clip_top
,
clip_bottom
;
};
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 10:35 AM (6 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145644
Default Alt Text
bitmap.h (772 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline