• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/render/header/Control.h

Go to the documentation of this file.
00001 #pragma once
00002 
00004 class Control : public IControl
00005 {
00006 public:
00009         Control(pIGeometry geometry, pITexture texture);
00011         virtual ~Control(void);
00012 
00013         virtual bool hitTest(int mouseX, int mouseY);
00014 
00015         pIGeometry getGeometry() { return m_geometry; }
00016         pITexture getTexture() { return m_texture; }
00017 
00018         wchar* getName() { return m_name; }
00019         void setName(wchar* name) { m_name = name; }
00020 
00021         int getX() { return m_x; }
00022         void setX(int x) { m_x = x; }
00023         int getY() { return m_y; }
00024         void setY(int y) { m_y = y; }
00025         int getWidth() { return m_width; }
00026         void setWidth(int width) { m_width = width; }
00027         int getHeight() { return m_height; }
00028         void setHeight(int height) { m_height = height; }
00029         int getIndex() { return m_index; }
00030         void setIndex(int index) { m_index = index; }
00031         void setVisible(bool visible) { m_visible = visible; }
00032         bool getVisible() { return m_visible; }
00033 
00034 protected:
00035         wchar* m_name;
00036         pIGeometry m_geometry;
00037         pITexture m_texture;
00038 
00039         int m_x,m_y;
00040         int m_width, m_height;
00041         int m_index;
00042         bool m_visible;
00043 
00044 };
00045 
00046 typedef Control* pControl;

Generated on Fri Jun 18 2010 17:48:39 for Cannonball by  doxygen 1.7.0