Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628036
hover.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
784 B
Referenced Files
None
Subscribers
None
hover.cpp
View Options
#include
"hover.h"
Hover
::
Hover
()
{
width
=
150
;
height
=
100
;
rectangle
.
setSize
(
sf
::
Vector2f
(
width
,
height
));
init
();
}
Hover
::
Hover
(
int
width
,
int
height
)
{
this
->
width
=
width
;
this
->
height
=
height
;
rectangle
.
setSize
(
sf
::
Vector2f
(
width
,
height
));
init
();
}
void
Hover
::
init
()
{
rectangle
.
setFillColor
(
sf
::
Color
(
230
,
230
,
233
,
218
));
rectangle
.
setOutlineColor
(
sf
::
Color
(
33
,
33
,
33
));
rectangle
.
setOutlineThickness
(
1
);
active
=
false
;
}
void
Hover
::
draw
(
sf
::
RenderTarget
&
target
,
sf
::
RenderStates
states
)
const
{
states
.
transform
*=
getTransform
();
// // apply the tileset texture
// states.texture = m_tileset;
// // draw the vertex array
if
(
active
==
true
)
target
.
draw
(
rectangle
,
states
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 3:10 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112823
Default Alt Text
hover.cpp (784 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline