NoDisplay_Multi.h
1 /*
2 
3 Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu)
4 All rights reserved.
5 
6 This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
7 Dynacoe was released under the MIT License, as detailed below.
8 
9 
10 
11 Permission is hereby granted, free of charge, to any person obtaining a copy
12 of this software and associated documentation files (the "Software"), to deal
13 in the Software without restriction, including without limitation the rights
14 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 copies of the Software, and to permit persons to whom the Software is furnished
16 to do so, subject to the following conditions:
17 
18 The above copyright notice and this permission notice shall
19 be included in all copies or substantial portions of the Software.
20 
21 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 DEALINGS IN THE SOFTWARE.
28 
29 
30 
31 */
32 
33 
34 #ifndef H_DC_BACKENDS_NODISPLAY_INCLUDED
35 #define H_DC_BACKENDS_NODISPLAY_INCLUDED
36 
37 #include <Dynacoe/Backends/Display/Display.h>
38 
39 namespace Dynacoe {
40 class NoDisplay : public Display {
41  public:
42  NoDisplay();
43  ~NoDisplay();
44 
45  std::string Name();
46  std::string Version();
47  bool Valid();
48 
49 
50  void Resize(int, int);
51  void SetPosition(int, int);
52  void Fullscreen(bool);
53  void Hide(bool);
54  bool HasInputFocus();
55  void LockClientResize(bool);
56  void LockClientPosition(bool);
57  void SetViewPolicy(ViewPolicy);
58 
59  int Width();
60  int Height();
61  int X();
62  int Y();
63 
64  void SetName(const std::string &);
65  void AddResizeCallback(ResizeCallback *);
66  void RemoveResizeCallback(ResizeCallback *);
67  void AddCloseCallback(CloseCallback *);
68  void RemoveCloseCallback(CloseCallback *);
69 
70  bool IsCapable(Dynacoe::Display::Capability);
71  void Update(){}
72  void AttachSource(Dynacoe::Framebuffer *){}
73  Dynacoe::Framebuffer * GetSource(){return nullptr;}
74  std::vector<Dynacoe::Framebuffer::Type> SupportedFramebuffers(){
75  return {
78  };
79  }
80 
81  DisplayHandleType GetSystemHandleType();
82  void * GetSystemHandle();
83  DisplayEventType GetSystemEventType();
84  void * GetLastSystemEvent();
85 
86 };
87 }
88 
89 
90 #endif
DisplayEventType
The varienty of system event types that Display can give.
Definition: Display.h:113
(uint8_t *) RGBA-ordered pixel array with no padding, matched to the dimensions given ...
Contains a visual state.
Definition: Framebuffer.h:49
Capability
The standard functional capabilities of a Display.
Definition: Display.h:86
Horizontal axis.
Definition: AssetID.h:37
Vertical axis.
DisplayHandleType
The variety of system handle types that Display can represent.
Definition: Display.h:106