OSDN Git Service

e44adff2a4dd4296d38fcece7af581020d24e238
[moflib/moflib.git] / moflib-1.0 / moflib / moflib / mof / widget / ImageView.hpp
1 #pragma once
2 #include "mof/widget/WidgetView.hpp"
3 #include "mof/graphics/utilities.hpp"
4 #include "mof/tstring.hpp"
5 #include <boost/scoped_ptr.hpp>
6
7 namespace mof
8 {
9     class Font;
10
11 namespace widget
12 {
13
14     class ImageView 
15     : 
16         public WidgetView
17     {
18     public:
19         ImageView( const tstring& caption , const Font& font );
20         ImageView( const TextureHandler& texture , const Rectangle<float>& tRect );
21         ImageView( const TextureHandler& texture );
22         virtual ~ImageView( );
23
24         virtual FrameNumber show( bool imidiately = false );
25         virtual FrameNumber hide( bool imidiately = false );
26         virtual FrameNumber focus( bool imidiately = false );
27         virtual FrameNumber blur( bool imidiately = false );
28         virtual FrameNumber click( bool imidiately = false );
29                 virtual mof::Vector2D getPreferredSize() const;
30         virtual void update( );
31         virtual void draw( ) const;
32         virtual void setVisible(bool visible);
33
34     private:
35         struct Impl;
36         boost::scoped_ptr<Impl> m_pImpl;
37         
38     };
39
40 }
41 }