Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
Overlay.h
Go to the documentation of this file.
1 #pragma once
15 #include "Window.h"
16 #include <Ultralight/View.h>
17 
18 namespace ultralight {
19 
26 class AExport Overlay : public RefCounted {
27 public:
44  static Ref<Overlay> Create(Ref<Window> window, int width, int height, int x, int y);
45 
49  virtual ultralight::Ref<ultralight::View> view() = 0;
50 
54  virtual int width() const = 0;
55 
59  virtual int height() const = 0;
60 
65  virtual int x() const = 0;
66 
71  virtual int y() const = 0;
72 
76  virtual bool is_hidden() const = 0;
77 
81  virtual void Hide() = 0;
82 
86  virtual void Show() = 0;
87 
91  virtual bool has_focus() const = 0;
92 
96  virtual void Focus() = 0;
97 
101  virtual void Unfocus() = 0;
102 
106  virtual void MoveTo(int x, int y) = 0;
107 
112  virtual void Resize(int width, int height) = 0;
113 
114 protected:
115  virtual ~Overlay();
116  virtual void Draw() = 0;
117  friend class OverlayManager;
118 };
119 
120 } // namespace framework
A non-nullable smart pointer.
Definition: RefPtr.h:64
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
The header for the Window class.
Interface for all ref-counted objects that will be managed using the Ref<> and RefPtr<> smart pointer...
Definition: RefPtr.h:53
Web-content overlay.
Definition: Overlay.h:26
The header for the View class.