]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/element.cpp
Creating Qt/Experimental branch of trunk.
[virtualjaguar] / src / gui / element.cpp
1 //
2 // GUI element base class
3 //
4 // by James L. Hammons
5 //
6
7 #include "element.h"
8
9 // Initialize class variables (Element)
10
11 uint32 * Element::screenBuffer = NULL;
12 uint32 Element::pitch = 0;
13
14 bool Element::Inside(uint32 x, uint32 y)
15 {
16         return (x >= (uint32)extents.x && x < (uint32)(extents.x + extents.w)
17                 && y >= (uint32)extents.y && y < (uint32)(extents.y + extents.h) ? true : false);
18 }