VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gvviewerwindow_ansi.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2017 Graeme Walker
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 ///
18 /// \file gvviewerwindow_ansi.h
19 ///
20 
21 #ifndef GV_VIEWERWINDOW_ANSI__H
22 #define GV_VIEWERWINDOW_ANSI__H
23 
24 #include "gdef.h"
25 #include "gvviewerwindow.h"
26 #include "gvmask.h"
27 
28 namespace Gv
29 {
30  class ViewerWindowAnsi ;
31 }
32 
33 /// \class Gv::ViewerWindowAnsi
34 /// A pimple-pattern implementation class for Gv::ViewerWindow that uses ansi
35 /// escape sequences.
36 ///
38 {
39 public:
41  ///< Constructor.
42 
43  virtual ~ViewerWindowAnsi() ;
44  ///< Destructor.
45 
46  virtual void init() override ;
47  ///< Override from ViewerWindow.
48 
49  virtual void display( int , int , int , const char * , size_t ) override ;
50  ///< Override from ViewerWindow.
51 
52  virtual int dx() const override ;
53  ///< Override from ViewerWindow.
54 
55  virtual int dy() const override ;
56  ///< Override from ViewerWindow.
57 
58 private:
60  void operator=( const ViewerWindowAnsi & ) ;
61 
62 private:
63  ViewerWindowHandler & m_handler ;
64  ViewerWindowConfig m_config ;
65  int m_dx ;
66  int m_dy ;
67  Gv::Mask m_mask ;
68 } ;
69 
70 #endif
virtual ~ViewerWindowAnsi()
Destructor.
Implements a binary mask over an image that can be edited by mouse actions, and that can be stored on...
Definition: gvmask.h:41
virtual void display(int, int, int, const char *, size_t) override
Override from ViewerWindow.
An abstract base class for a viewer window.
ViewerWindowAnsi(ViewerWindowHandler &, ViewerWindowConfig, int dx, int dy)
Constructor.
virtual int dx() const override
Override from ViewerWindow.
virtual int dy() const override
Override from ViewerWindow.
A configuration structure for Gv::ViewerWindow.
virtual void init() override
Override from ViewerWindow.
A pimple-pattern implementation class for Gv::ViewerWindow that uses ansi escape sequences.
A callback interface for Gv::ViewerWindow.