OSDN Git Service

6b3a2dde4d9bcf87bd200498c8a59bb190c580ee
[moflib/moflib.git] / moflib-1.0 / moflib / moflib / mof / widget / WidgetView.hpp
1 #pragma once
2 #include "mof/Component2D.hpp"
3 #include "mof/ColorComponent.hpp"
4 #include "mof/Drawable.hpp"
5 #include <memory>
6
7 namespace mof
8 {
9 namespace widget
10 {
11
12         class WidgetView  
13     :
14         public Component2D ,
15         public ColorComponent ,
16         public Drawable 
17     {
18         public:
19                 typedef std::shared_ptr<WidgetView> ptr;
20                 virtual ~WidgetView(){};
21
22                 // TODO \83\8c\83C\83A\83E\83g\82Ì\83A\83j\83\81\82Æ\83C\83x\83\93\83g\8e\9e\82Ì\83A\83j\83\81\81A\82»\82ê\82¼\82ê\82Ç\82±\82Å\82Ç\82Ì\82æ\82¤\82É\90Ý\92è\82·\82é\82©
23                 // TODO \83G\83t\83F\83N\83g\82ð\8aO\82©\82ç\90Ý\92è\82Å\82«\82é\82æ\82¤\82É\82·\82é
24                 // TODO \93Á\8eê\82È\83R\83\93\83|\81[\83l\83\93\83g\82à\8aO\82©\82ç\90Ý\92è\82Å\82«\82é\82æ\82¤\82É
25                 // TODO \83X\83v\83\89\83C\83g\82Í\82Ç\82±\82ª\8e\9d\82Â\82©
26         virtual FrameNumber show( bool imidiately = false ) = 0; 
27         virtual FrameNumber hide( bool imidiately = false ) = 0;
28         virtual FrameNumber focus( bool imidiately = false ) = 0; 
29         virtual FrameNumber blur( bool imidiately = false ) = 0;
30         virtual FrameNumber click( bool imidiately = false ) = 0;
31
32                 /**
33                  * \82±\82Ì\83I\83u\83W\83F\83N\83g\82ª\90\84\8f§\82·\82é\8f\89\8aú\83T\83C\83Y
34                  */
35                 virtual mof::Vector2D getPreferredSize() const = 0;
36
37                 virtual void update() = 0;
38                 virtual void draw() const = 0;
39                 virtual void setVisible(bool visible) = 0;
40         };
41
42 }
43 }