Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::JSContext Class Referenceabstract

#include <Ultralight/JavaScript.h>

Details

This class wraps a JSContextRef (a JavaScript execution context for use with JavaScriptCore) and locks the context on the current thread for the duration of its lifetime.

Inheritance diagram for ultralight::JSContext:
ultralight::RefCounted

Public Member Functions

virtual JSContextRef ctx ()=0
 Get the underlying JSContextRef for use with JavaScriptCore C API.
 
 operator JSContextRef ()
 Typecast to a JSContextRef for use with JavaScriptCore C API.
 
- Public Member Functions inherited from ultralight::RefCounted
virtual void AddRef () const =0
 
virtual void Release () const =0
 
virtual int ref_count () const =0
 

Protected Member Functions

virtual ~JSContext ()
 
- Protected Member Functions inherited from ultralight::RefCounted
virtual ~RefCounted ()
 

Constructor & Destructor Documentation

◆ ~JSContext()

virtual ultralight::JSContext::~JSContext ( )
protectedvirtual

Member Function Documentation

◆ ctx()

virtual JSContextRef ultralight::JSContext::ctx ( )
pure virtual

Get the underlying JSContextRef for use with JavaScriptCore C API.

◆ operator JSContextRef()

ultralight::JSContext::operator JSContextRef ( )

Typecast to a JSContextRef for use with JavaScriptCore C API.


The documentation for this class was generated from the following file: