Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
Renderer.h
Go to the documentation of this file.
1 #pragma once
15 #include <Ultralight/Defines.h>
16 #include <Ultralight/RefPtr.h>
17 #include <Ultralight/View.h>
18 
19 namespace ultralight {
20 
32 class UExport Renderer : public RefCounted {
33 public:
44  static Ref<Renderer> Create();
45 
63  virtual Ref<View> CreateView(uint32_t width, uint32_t height,
64  bool transparent) = 0;
65 
70  virtual void Update() = 0;
71 
78  virtual void Render() = 0;
79 
84  virtual void PurgeMemory() = 0;
85 
86 protected:
87  virtual ~Renderer();
88 };
89 
90 } // namespace ultralight
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 all ref-counting utilities.
Interface for all ref-counted objects that will be managed using the Ref<> and RefPtr<> smart pointer...
Definition: RefPtr.h:53
The core of Ultralight.
Definition: Renderer.h:32
The header for the View class.