fw4spl
include/fwGui/Cursor.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGUI_CURSOR_HPP__
8 #define __FWGUI_CURSOR_HPP__
9 
10 #include "fwGui/config.hpp"
11 #include "fwGui/ICursor.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwGui
16 {
17 
22 class FWGUI_CLASS_API Cursor : public ::fwGui::ICursor
23 {
24 
25 public:
26 
28 
30  FWGUI_API Cursor();
32  FWGUI_API virtual ~Cursor();
33 
34  // TODO : update API to reflect the cursor stack
36  FWGUI_API virtual void setCursor( ::fwGui::ICursor::CursorType cursor) override;
37 
39  FWGUI_API virtual void setDefaultCursor() override;
40 
41 protected:
42 
44  ::fwGui::ICursor::sptr m_implementation;
45 };
46 
47 } // namespace fwGui
48 
49 #endif /*__FWGUI_CURSOR_HPP__*/
50 
CursorType
Cursor type.
Definition: ICursor.hpp:29
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
Defines the generic cursor for IHM.
Definition: ICursor.hpp:23
::fwGui::ICursor::sptr m_implementation
Implementation of a cursor in a specific IHM (wx/Qt)
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the generic cursor for IHM. Use the Delegate design pattern.