119 "AppleWebKit/615.1.18.100.1 (KHTML, like Gecko) "
120 "Ultralight/1.4.0 Version/16.4.1 Safari/615.1.18.100.1";
#define UExport
Definition Exports.h:25
User-defined interface to handle download-related events for a View.
Definition Listener.h:276
Keyboard event representing a change in keyboard state.
Definition KeyEvent.h:23
User-defined interface to handle load-related events for a View.
Definition Listener.h:160
Mouse event representing a change in mouse state.
Definition MouseEvent.h:18
User-defined interface to handle network-related events for a View.
Definition Listener.h:334
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
Unicode string container with conversions for UTF-8, UTF-16, and UTF-32.
Definition String.h:34
User-defined pixel buffer surface.
Definition Surface.h:47
Web-page container rendered to an offscreen surface.
Definition View.h:202
virtual String url()=0
Get the URL of the current page loaded into this View, if any.
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 RefPtr< JSContext > LockJSContext()=0
Acquire the page's JSContext for use with the JavaScriptCore API.
virtual uint32_t height() const =0
Get the height of the View, in pixels.
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 void LoadURL(const String &url)=0
Load a URL, the View will navigate to it as a new page.
virtual void set_view_listener(ViewListener *listener)=0
Set a ViewListener to receive callbacks for View-related events.
virtual String title()=0
Get the title of the current page loaded into this View, if any.
virtual bool needs_paint() const =0
Whether or not this View should be repainted during the next call to Renderer::Render.
virtual void Resize(uint32_t width, uint32_t height)=0
Resize View to a certain size.
virtual NetworkListener * network_listener() const =0
Get the active NetworkListener, if any.
virtual void set_device_scale(double scale)=0
Set the device scale.
virtual RenderTarget render_target()=0
Get the RenderTarget for the View.
virtual void Stop()=0
Stop all page loads.
virtual ViewListener * view_listener() const =0
Get the active ViewListener, if any.
virtual uint32_t width() const =0
Get the width of the View, in pixels.
virtual void CreateLocalInspectorView()=0
Create an Inspector View to inspect / debug this View locally.
virtual void FireScrollEvent(const ScrollEvent &evt)=0
Fire a scroll event.
virtual void set_download_listener(DownloadListener *listener)=0
Set a DownloadListener to receive callbacks for download-related events.
virtual bool CanGoBack()=0
Whether or not we can navigate backwards in history.
virtual Surface * surface()=0
Get the Surface for the View (native pixel buffer that the CPU renderer draws into).
virtual void set_network_listener(NetworkListener *listener)=0
Set a NetworkListener to receive callbacks for network-related events.
virtual void FireKeyEvent(const KeyEvent &evt)=0
Fire a keyboard event.
virtual LoadListener * load_listener() const =0
Get the active LoadListener, if any.
virtual void FireMouseEvent(const MouseEvent &evt)=0
Fire a mouse event.
virtual double device_scale() const =0
Get the device scale, ie.
virtual bool CanGoForward()=0
Whether or not we can navigate forwards in history.
virtual bool HasInputFocus()=0
Whether or not the View has an input element with visible keyboard focus (indicated by a blinking car...
virtual bool HasFocus()=0
Whether or not the View has focus.
virtual void CancelDownload(DownloadId id)=0
Cancel an active download.
virtual void GoToHistoryOffset(int offset)=0
Navigate to an arbitrary offset in history.
virtual void * JavaScriptVM()=0
Get a handle to the internal JavaScriptCore VM.
virtual void Focus()=0
Give focus to the View.
virtual bool is_loading()=0
Check if the main frame of the page is currently loading.
virtual void Unfocus()=0
Remove focus from the View and unfocus any focused input elements.
virtual DownloadListener * download_listener() const =0
Get the active DownloadListener, if any.
virtual void GoForward()=0
Navigate forwards in history.
virtual void GoBack()=0
Navigate backwards in history.
virtual void set_display_id(uint32_t id)=0
Set the display id of the View.
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 set_load_listener(LoadListener *listener)=0
Set a LoadListener to receive callbacks for Load-related events.
virtual uint32_t display_id() const =0
Get the display id of the View.
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 Reload()=0
Reload current page.
User-defined interface to handle general events for a View.
Definition Listener.h:77
uint32_t DownloadId
A unique identifier representing an active download.
Definition Listener.h:267
Offscreen render target, used when rendering Views via the GPU renderer.
Definition RenderTarget.h:34
View-specific configuration settings.
Definition View.h:28
String font_family_fixed
Default font-family to use for fixed fonts.
Definition View.h:103
uint32_t display_id
A user-generated id for the display (monitor, TV, or screen) that this View will be shown on.
Definition View.h:40
String font_family_standard
Default font-family to use.
Definition View.h:98
String font_family_serif
Default font-family to use for serif fonts.
Definition View.h:108
bool is_transparent
Whether or not this View should support transparency.
Definition View.h:73
String user_agent
Default user-agent string.
Definition View.h:118
bool is_accelerated
Whether to render using the GPU renderer (accelerated) or the CPU renderer (unaccelerated).
Definition View.h:54
bool enable_compositor
Whether or not compositing should be enabled.
Definition View.h:93
bool initial_focus
Whether or not the View should initially have input focus,.
Definition View.h:78
double initial_device_scale
The initial device scale, ie.
Definition View.h:64
String font_family_sans_serif
Default font-family to use for sans-serif fonts.
Definition View.h:113
bool enable_images
Whether or not images should be enabled.
Definition View.h:83
bool enable_javascript
Whether or not JavaScript should be enabled.
Definition View.h:88