Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EEButton.h
Go to the documentation of this file.
1 /*
2 * EEButton.h
3 *
4 *
5 * Epee Engine
6 * Created by Alan Uthoff on 3/12/06.
7 Copyright (C) 2011
8 
9 This Code is free software; you can redistribute it and/or
10 modify it under the terms of the zlib/libpng License as published
11 by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13 This software is provided 'as-is', without any express or implied warranty.
14 
15 In no event will the authors be held liable for any damages arising from the use of this software.
16 
17 Permission is granted to anyone to use this software for any purpose,
18 including commercial applications, and to alter it and redistribute
19 it freely, subject to the following restrictions:
20 
21 1. The origin of this software must not be misrepresented;
22 you must not claim that you wrote the original software.
23 If you use this software in a product, an acknowledgment
24 in the product documentation would be appreciated but is not required.
25 
26 2. Altered source versions must be plainly marked as such,
27 and must not be misrepresented as being the original software.
28 
29 3. This notice may not be removed or altered from any source distribution.
30 
31 
32 */
33 
34 #ifndef EEBUTTON_H
35 #define EEBUTTON_H
36 #include "EEImage.h"
38 //*******************Begin of Button Class****************************************
39 
40 class Button :public image
41 {
42  int m_ibuttonheight;
43  int m_ibuttonwidth;
44  int m_ibuttonx;
45  int m_ibuttony;
46 
47 public:
48  Button(const std::string & _ButtonFileNameImage, const std::string & _ButtonName,int _Buttonx,int _Buttony,int _Buttonz,bool _Transparency=false,bool _SButtonactive=true);//:image( _ButtonFileNameImage, _ButtonName, _Buttonx, _Buttony, _Buttonz,Type_Button,_Transparency)
49  Button(const std::string & _ButtonName,int _Buttonx,int _Buttony,int _Buttonz,int m_iButtonHeight,int m_iButtonwidth,bool _Transparency=false,bool _SButtonactive=true);//:image(" ", _ButtonName, _Buttonx, _Buttony, _Buttonz,Type_Button,_Transparency)
50  Button();
51 
52  virtual EEWidget * WasClicked(int _mouselocationX, int _mouselocationY);
53 
54 
55 };
56 
57 //********************************End of Button Class******************************
58 
59 
60 #endif // EEBUTTON_H
virtual EEWidget * WasClicked(int _mouselocationX, int _mouselocationY)
Definition: EEButton.cpp:62
Definition: EEImage.h:44
Definition: EEWidget.h:43
Definition: EEButton.h:40
Button()
Definition: EEButton.cpp:57