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

src/render/src/Control.cpp

Go to the documentation of this file.
00001 #pragma once
00002 #include "../pch.h"
00003 
00004 
00005 Control::Control(pIGeometry geometry, pITexture texture)
00006 : m_geometry(geometry), m_texture(texture)
00007 {
00008         m_index = -99;
00009         m_name = TEXT("_");
00010         m_visible = true;
00011 }
00012 
00013 Control::~Control(void)
00014 {
00015 }
00016 
00017 bool Control::hitTest(int mouseX, int mouseY)
00018 {
00019         return (mouseX >= m_x && mouseX <= (m_x + m_width) && mouseY >= m_y && mouseY <= (m_y + m_height));
00020 }

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