~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Plugins/Plugin_BerkeliumWidget/BerkeliumDelegate.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         George Evmenov
4
 
        @date           02/2011
5
 
*/
6
 
#ifndef __WINDOW_DELEGATE_H__
7
 
#define __WINDOW_DELEGATE_H__
8
 
 
9
 
#include "MyGUI_Prerequest.h"
10
 
#include <string>
11
 
#include "Buffer.h"
12
 
#include <berkelium/WindowDelegate.hpp>
13
 
 
14
 
namespace MyGUI
15
 
{
16
 
 
17
 
        class BerkeliumWidget;
18
 
 
19
 
        class MYGUI_EXPORT_DLL BerkeliumDelegate :
20
 
                public Berkelium::WindowDelegate
21
 
        {
22
 
        public:
23
 
                BerkeliumDelegate();
24
 
                virtual ~BerkeliumDelegate() { }
25
 
 
26
 
                void setWindow(Berkelium::Window* _window);
27
 
                void setBuffer(helpers::Buffer* _buffer);
28
 
                void setWidget(MyGUI::BerkeliumWidget* _widget);
29
 
 
30
 
        protected:
31
 
                virtual void onPaint(
32
 
                        Berkelium::Window *win,
33
 
                        const unsigned char *sourceBuffer,
34
 
                        const Berkelium::Rect &sourceBufferRect,
35
 
                        size_t numCopyRects,
36
 
                        const Berkelium::Rect *copyRects,
37
 
                        int dx, int dy,
38
 
                        const Berkelium::Rect &scrollRect);
39
 
 
40
 
                virtual void onCursorUpdated(Berkelium::Window *win, const Berkelium::Cursor& newCursor);
41
 
 
42
 
        private:
43
 
                Berkelium::Window* mWindow;
44
 
                helpers::Buffer* mBuffer;
45
 
                MyGUI::BerkeliumWidget* mWidget;
46
 
        };
47
 
 
48
 
} // namespace MyGUI
49
 
 
50
 
#endif // __WINDOW_DELEGATE_H__
 
1
/*!
 
2
        @file
 
3
        @author         George Evmenov
 
4
        @date           02/2011
 
5
*/
 
6
#ifndef __WINDOW_DELEGATE_H__
 
7
#define __WINDOW_DELEGATE_H__
 
8
 
 
9
#include "MyGUI_Prerequest.h"
 
10
#include <string>
 
11
#include "Buffer.h"
 
12
#include <berkelium/WindowDelegate.hpp>
 
13
 
 
14
namespace MyGUI
 
15
{
 
16
 
 
17
        class BerkeliumWidget;
 
18
 
 
19
        class MYGUI_EXPORT_DLL BerkeliumDelegate :
 
20
                public Berkelium::WindowDelegate
 
21
        {
 
22
        public:
 
23
                BerkeliumDelegate();
 
24
                virtual ~BerkeliumDelegate() { }
 
25
 
 
26
                void setWindow(Berkelium::Window* _window);
 
27
                void setBuffer(helpers::Buffer* _buffer);
 
28
                void setWidget(MyGUI::BerkeliumWidget* _widget);
 
29
 
 
30
        protected:
 
31
                virtual void onPaint(
 
32
                        Berkelium::Window *win,
 
33
                        const unsigned char *sourceBuffer,
 
34
                        const Berkelium::Rect &sourceBufferRect,
 
35
                        size_t numCopyRects,
 
36
                        const Berkelium::Rect *copyRects,
 
37
                        int dx, int dy,
 
38
                        const Berkelium::Rect &scrollRect);
 
39
 
 
40
                virtual void onCursorUpdated(Berkelium::Window *win, const Berkelium::Cursor& newCursor);
 
41
 
 
42
        private:
 
43
                Berkelium::Window* mWindow;
 
44
                helpers::Buffer* mBuffer;
 
45
                MyGUI::BerkeliumWidget* mWidget;
 
46
        };
 
47
 
 
48
} // namespace MyGUI
 
49
 
 
50
#endif // __WINDOW_DELEGATE_H__