OSDN Git Service

1dd1fdff2c2808d27be351f10423bf997803a2f7
[moflib/moflib.git] / moflib-1.0 / moflib / moflib / mof / widget / RectangleView.hpp
1 #pragma once
2 #include "mof/widget/WidgetView.hpp"
3 #include <memory>
4
5 namespace mof
6 {
7     class Font;
8
9 namespace widget
10 {
11
12     class RectangleView 
13     : 
14         public WidgetView
15     {
16     public:
17         RectangleView(const mof::Vector2D& scale, mof::Color color);
18         virtual ~RectangleView( );
19
20         virtual FrameNumber show( bool imidiately = false );
21         virtual FrameNumber hide( bool imidiately = false );
22         virtual FrameNumber focus( bool imidiately = false );
23         virtual FrameNumber blur( bool imidiately = false );
24         virtual FrameNumber click( bool imidiately = false );
25         virtual mof::Vector2D getPreferredSize() const;
26         virtual void update( );
27         virtual void draw( ) const;
28         virtual void setVisible(bool visible);
29
30     private:
31         struct Impl;
32         std::unique_ptr<Impl> pImpl_;
33     };
34
35 }// namespace widget
36 }// namespace mof
37