OSDN Git Service

fix build system ofmoflib1 and saisei1
[moflib/moflib.git] / moflib-1.0 / src / mof / widget / FrameBuilder.hpp
1 #pragma once
2 #include <boost/utility.hpp>
3 #include <boost/scoped_ptr.hpp>
4 #include <mof/tstring.hpp>
5 #include <memory>
6 #include <mof/widget/Frame.hpp>
7 #include <mof/widget/WidgetView.hpp>
8 #include <mof/FactoryMethod.hpp>
9
10 namespace mof
11 {
12     class Font;
13 namespace widget
14 {
15
16     class FrameBuilder : boost::noncopyable
17     {
18     public:
19         FrameBuilder();
20         ~FrameBuilder();
21
22         void setTitle( const mof::tstring& title , const mof::Font& font );
23         void setContentBackgroundView( const mof::FactoryMethod<WidgetView>& contentBackground );
24         void setTitleBackgroundView( const mof::FactoryMethod<WidgetView>& titleBackground );
25         std::auto_ptr<Frame> create( );
26
27     private:
28         struct Impl;
29         boost::scoped_ptr<Impl> m_pImpl;
30
31     }; // class FrameBuilder
32 } // namespace widget
33 } // namespace mof