Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
ICursorControl.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_CURSOR_CONTROL_H_INCLUDED__
6 #define __I_CURSOR_CONTROL_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "position2d.h"
10 #include "rect.h"
11 
12 namespace irr
13 {
14 namespace gui
15 {
16 
18  class ICursorControl : public virtual IReferenceCounted
19  {
20  public:
21 
23 
25  virtual void setVisible(bool visible) = 0;
26 
28 
29  virtual bool isVisible() const = 0;
30 
32 
37  virtual void setPosition(const core::position2d<f32> &pos) = 0;
38 
40 
46  virtual void setPosition(f32 x, f32 y) = 0;
47 
49 
50  virtual void setPosition(const core::position2d<s32> &pos) = 0;
51 
53 
55  virtual void setPosition(s32 x, s32 y) = 0;
56 
58 
60  virtual const core::position2d<s32>& getPosition() = 0;
61 
63 
67  virtual core::position2d<f32> getRelativePosition() = 0;
68 
70 
75  virtual void setReferenceRect(core::rect<s32>* rect=0) = 0;
76  };
77 
78 
79 } // end namespace gui
80 } // end namespace irr
81 
82 #endif
83 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:16 by Doxygen (1.8.1.2)