42 bool is_accelerated =
false;
51 bool is_transparent =
false;
59 double initial_device_scale = 1.0;
64 bool initial_focus =
true;
69 bool enable_images =
true;
74 bool enable_javascript =
true;
79 String font_family_standard =
"Times New Roman";
84 String font_family_fixed =
"Courier New";
89 String font_family_serif =
"Times New Roman";
94 String font_family_sans_serif =
"Arial";
99 String user_agent =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
100 "AppleWebKit/610.4.3.1.4 (KHTML, like Gecko) "
101 "Ultralight/1.3.0 Version/14.0.3 Safari/610.4.3.1.4";
217 virtual void Resize(uint32_t width, uint32_t height) = 0;
#define UExport
Definition Defines.h:65
Generic keyboard event representing a change in keyboard state.
Definition KeyEvent.h:23
User-defined interface to listen for load-related events for a View.
Definition Listener.h:185
Generic mouse event representing a change in mouse state.
Definition MouseEvent.h:18
Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer.
Definition RefPtr.h:47
A nullable smart pointer.
Definition RefPtr.h:79
UTF-8 String container with conversions for UTF-16 and UTF-32.
Definition String.h:21
Offscreen pixel buffer surface.
Definition Surface.h:34
Web-page container rendered to an offscreen surface that you display yourself.
Definition View.h:114
virtual void set_load_listener(LoadListener *listener)=0
Set a LoadListener to receive callbacks for Load-related events.
virtual uint32_t height() const =0
Get the height of the View, in pixels.
virtual bool HasInputFocus()=0
Whether or not the View has an input element with visible keyboard focus (indicated by a blinking car...
virtual void Unfocus()=0
Remove focus from the View and unfocus any focused input elements.
virtual bool CanGoForward()=0
Whether or not we can navigate forwards in history.
virtual void Stop()=0
Stop all page loads.
virtual void CreateLocalInspectorView()=0
Create an Inspector View to inspect / debug this View locally.
virtual String EvaluateScript(const String &script, String *exception=nullptr)=0
Helper function to evaluate a raw string of JavaScript and return the result as a String.
virtual void Resize(uint32_t width, uint32_t height)=0
Resize View to a certain size.
virtual void GoBack()=0
Navigate backwards in history.
virtual RenderTarget render_target()=0
Get the RenderTarget for the View.
virtual bool CanGoBack()=0
Whether or not we can navigate backwards in history.
virtual uint32_t width() const =0
Get the width of the View, in pixels.
virtual void Reload()=0
Reload current page.
virtual LoadListener * load_listener() const =0
Get the active LoadListener, if any.
virtual void FireMouseEvent(const MouseEvent &evt)=0
Fire a mouse event.
virtual String url()=0
Get the URL of the current page loaded into this View, if any.
virtual void GoForward()=0
Navigate forwards in history.
virtual double device_scale() const =0
Get the device scale, ie.
virtual void LoadHTML(const String &html, const String &url="", bool add_to_history=false)=0
Load a raw string of HTML, the View will navigate to it as a new page.
virtual ViewListener * view_listener() const =0
Get the active ViewListener, if any.
virtual void set_view_listener(ViewListener *listener)=0
Set a ViewListener to receive callbacks for View-related events.
virtual void Focus()=0
Give focus to the View.
virtual bool needs_paint() const =0
Whether or not this View should be repainted during the next call to Renderer::Render.
virtual void set_needs_paint(bool needs_paint)=0
Set whether or not this View should be repainted during the next call to Renderer::Render.
virtual void FireScrollEvent(const ScrollEvent &evt)=0
Fire a scroll event.
virtual bool HasFocus()=0
Whether or not the View has focus.
virtual bool is_loading()=0
Check if the main frame of the page is currently loading.
virtual RefPtr< JSContext > LockJSContext()=0
Acquire the page's JSContext for use with the JavaScriptCore API.
virtual void * JavaScriptVM()=0
Get a handle to the internal JavaScriptCore VM.
virtual String title()=0
Get the title of the current page loaded into this View, if any.
virtual void GoToHistoryOffset(int offset)=0
Navigate to an arbitrary offset in history.
virtual bool is_transparent() const =0
Whether or not the View supports transparent backgrounds.
virtual bool is_accelerated() const =0
Whether or not the View is GPU-accelerated.
virtual void LoadURL(const String &url)=0
Load a URL, the View will navigate to it as a new page.
virtual void set_device_scale(double scale)=0
Set the device scale.
virtual void FireKeyEvent(const KeyEvent &evt)=0
Fire a keyboard event.
virtual Surface * surface()=0
Get the Surface for the View (native pixel buffer that the CPU renderer draws into).
User-defined interface to listen for View-specific events.
Definition Listener.h:101
Rendering details for a View, to be used with your own GPUDriver.
Definition RenderTarget.h:24
View-specific configuration settings.
Definition View.h:28