Documentation
¶
Overview ¶
Ultralight bindings for golang
Index ¶
- Constants
- func JSCheckScriptSyntax(ctx JSContextRef, script JSStringRef, sourceURL JSStringRef, ...) bool
- func JSClassRelease(jsClass JSClassRef)
- func JSContextGroupRelease(group JSContextGroupRef)
- func JSGarbageCollect(ctx JSContextRef)
- func JSGlobalContextRelease(ctx JSGlobalContextRef)
- func JSGlobalContextSetName(ctx JSGlobalContextRef, name JSStringRef)
- func JSObjectDeleteProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, ...) bool
- func JSObjectGetArrayBufferByteLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
- func JSObjectGetArrayBufferBytesPtr(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) unsafe.Pointer
- func JSObjectGetPrivate(object JSObjectRef) unsafe.Pointer
- func JSObjectGetTypedArrayByteLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
- func JSObjectGetTypedArrayByteOffset(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
- func JSObjectGetTypedArrayBytesPtr(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) unsafe.Pointer
- func JSObjectGetTypedArrayLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
- func JSObjectHasProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef) bool
- func JSObjectIsConstructor(ctx JSContextRef, object JSObjectRef) bool
- func JSObjectIsFunction(ctx JSContextRef, object JSObjectRef) bool
- func JSObjectSetPrivate(object JSObjectRef, data unsafe.Pointer) bool
- func JSObjectSetProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, ...)
- func JSObjectSetPropertyAtIndex(ctx JSContextRef, object JSObjectRef, propertyIndex uint32, value JSValueRef, ...)
- func JSObjectSetPrototype(ctx JSContextRef, object JSObjectRef, value JSValueRef)
- func JSPropertyNameAccumulatorAddName(accumulator JSPropertyNameAccumulatorRef, propertyName JSStringRef)
- func JSPropertyNameArrayGetCount(array JSPropertyNameArrayRef) uint
- func JSPropertyNameArrayRelease(array JSPropertyNameArrayRef)
- func JSStringGetLength(string JSStringRef) uint
- func JSStringGetMaximumUTF8CStringSize(string JSStringRef) uint
- func JSStringGetUTF8CString(string JSStringRef, buffer []byte, bufferSize uint) uint
- func JSStringIsEqual(a JSStringRef, b JSStringRef) bool
- func JSStringIsEqualToUTF8CString(a JSStringRef, b string) bool
- func JSStringRelease(string JSStringRef)
- func JSValueIsArray(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsBoolean(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsDate(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsEqual(ctx JSContextRef, a JSValueRef, b JSValueRef, exception []JSValueRef) bool
- func JSValueIsInstanceOfConstructor(ctx JSContextRef, value JSValueRef, constructor JSObjectRef, ...) bool
- func JSValueIsNull(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsNumber(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsObject(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsObjectOfClass(ctx JSContextRef, value JSValueRef, jsClass JSClassRef) bool
- func JSValueIsStrictEqual(ctx JSContextRef, a JSValueRef, b JSValueRef) bool
- func JSValueIsString(ctx JSContextRef, value JSValueRef) bool
- func JSValueIsUndefined(ctx JSContextRef, value JSValueRef) bool
- func JSValueProtect(ctx JSContextRef, value JSValueRef)
- func JSValueToBoolean(ctx JSContextRef, value JSValueRef) bool
- func JSValueToNumber(ctx JSContextRef, value JSValueRef, exception []JSValueRef) float64
- func JSValueUnprotect(ctx JSContextRef, value JSValueRef)
- func UlAppIsRunning(app ULApp) bool
- func UlAppQuit(app ULApp)
- func UlAppRun(app ULApp)
- func UlAppSetUpdateCallback(app ULApp, callback ULUpdateCallback, user_data unsafe.Pointer)
- func UlAppSetWindow(app ULApp, window ULWindow)
- func UlBitmapErase(bitmap ULBitmap)
- func UlBitmapGetBpp(bitmap ULBitmap) uint32
- func UlBitmapGetHeight(bitmap ULBitmap) uint32
- func UlBitmapGetRowBytes(bitmap ULBitmap) uint32
- func UlBitmapGetSize(bitmap ULBitmap) uint
- func UlBitmapGetWidth(bitmap ULBitmap) uint32
- func UlBitmapIsEmpty(bitmap ULBitmap) bool
- func UlBitmapLockPixels(bitmap ULBitmap) unsafe.Pointer
- func UlBitmapOwnsPixels(bitmap ULBitmap) bool
- func UlBitmapRawPixels(bitmap ULBitmap) unsafe.Pointer
- func UlBitmapUnlockPixels(bitmap ULBitmap)
- func UlBitmapWritePNG(bitmap ULBitmap, path string) bool
- func UlConfigSetAnimationTimerDelay(config ULConfig, delay float64)
- func UlConfigSetDeviceScaleHint(config ULConfig, value float64)
- func UlConfigSetEnableImages(config ULConfig, enabled bool)
- func UlConfigSetEnableJavaScript(config ULConfig, enabled bool)
- func UlConfigSetFontFamilyFixed(config ULConfig, font_name ULString)
- func UlConfigSetFontFamilySansSerif(config ULConfig, font_name ULString)
- func UlConfigSetFontFamilySerif(config ULConfig, font_name ULString)
- func UlConfigSetFontFamilyStandard(config ULConfig, font_name ULString)
- func UlConfigSetForceRepaint(config ULConfig, enabled bool)
- func UlConfigSetMemoryCacheSize(config ULConfig, size uint32)
- func UlConfigSetPageCacheSize(config ULConfig, size uint32)
- func UlConfigSetUseBGRAForOffscreenRendering(config ULConfig, enabled bool)
- func UlConfigSetUserAgent(config ULConfig, agent_string ULString)
- func UlConfigSetUserStylesheet(config ULConfig, css_string ULString)
- func UlDestroyApp(app ULApp)
- func UlDestroyBitmap(bitmap ULBitmap)
- func UlDestroyConfig(config ULConfig)
- func UlDestroyKeyEvent(evt ULKeyEvent)
- func UlDestroyMouseEvent(evt ULMouseEvent)
- func UlDestroyOverlay(overlay ULOverlay)
- func UlDestroyRenderer(renderer ULRenderer)
- func UlDestroyScrollEvent(evt ULScrollEvent)
- func UlDestroySettings(settings ULSettings)
- func UlDestroyString(str ULString)
- func UlDestroyView(view ULView)
- func UlDestroyWindow(window ULWindow)
- func UlMonitorGetHeight(monitor ULMonitor) uint32
- func UlMonitorGetScale(monitor ULMonitor) float64
- func UlMonitorGetWidth(monitor ULMonitor) uint32
- func UlOverlayFocus(overlay ULOverlay)
- func UlOverlayGetHeight(overlay ULOverlay) uint32
- func UlOverlayGetWidth(overlay ULOverlay) uint32
- func UlOverlayGetX(overlay ULOverlay) int32
- func UlOverlayGetY(overlay ULOverlay) int32
- func UlOverlayHasFocus(overlay ULOverlay) bool
- func UlOverlayHide(overlay ULOverlay)
- func UlOverlayIsHidden(overlay ULOverlay) bool
- func UlOverlayMoveTo(overlay ULOverlay, x int32, y int32)
- func UlOverlayResize(overlay ULOverlay, width uint32, height uint32)
- func UlOverlayShow(overlay ULOverlay)
- func UlOverlayUnfocus(overlay ULOverlay)
- func UlRender(renderer ULRenderer)
- func UlSettingsSetFileSystemPath(settings ULSettings, path ULString)
- func UlSettingsSetLoadShadersFromFileSystem(settings ULSettings, enabled bool)
- func UlStringGetLength(str ULString) uint
- func UlStringIsEmpty(str ULString) bool
- func UlUpdate(renderer ULRenderer)
- func UlViewCanGoBack(view ULView) bool
- func UlViewCanGoForward(view ULView) bool
- func UlViewFireKeyEvent(view ULView, key_event ULKeyEvent)
- func UlViewFireMouseEvent(view ULView, mouse_event ULMouseEvent)
- func UlViewFireScrollEvent(view ULView, scroll_event ULScrollEvent)
- func UlViewGetNeedsPaint(view ULView) bool
- func UlViewGoBack(view ULView)
- func UlViewGoForward(view ULView)
- func UlViewGoToHistoryOffset(view ULView, offset int32)
- func UlViewIsBitmapDirty(view ULView) bool
- func UlViewIsLoading(view ULView) bool
- func UlViewLoadHTML(view ULView, html_string ULString)
- func UlViewLoadURL(view ULView, url_string ULString)
- func UlViewReload(view ULView)
- func UlViewResize(view ULView, width uint32, height uint32)
- func UlViewSetAddConsoleMessageCallback(view ULView, callback ULAddConsoleMessageCallback, user_data unsafe.Pointer)
- func UlViewSetBeginLoadingCallback(view ULView, callback ULBeginLoadingCallback, user_data unsafe.Pointer)
- func UlViewSetChangeCursorCallback(view ULView, callback ULChangeCursorCallback, user_data unsafe.Pointer)
- func UlViewSetChangeTitleCallback(view ULView, callback ULChangeTitleCallback, user_data unsafe.Pointer)
- func UlViewSetChangeTooltipCallback(view ULView, callback ULChangeTooltipCallback, user_data unsafe.Pointer)
- func UlViewSetChangeURLCallback(view ULView, callback ULChangeURLCallback, user_data unsafe.Pointer)
- func UlViewSetDOMReadyCallback(view ULView, callback ULDOMReadyCallback, user_data unsafe.Pointer)
- func UlViewSetFinishLoadingCallback(view ULView, callback ULFinishLoadingCallback, user_data unsafe.Pointer)
- func UlViewSetNeedsPaint(view ULView, needs_paint bool)
- func UlViewSetUpdateHistoryCallback(view ULView, callback ULUpdateHistoryCallback, user_data unsafe.Pointer)
- func UlViewStop(view ULView)
- func UlWindowClose(window ULWindow)
- func UlWindowDeviceToPixel(window ULWindow, val int32) int32
- func UlWindowGetHeight(window ULWindow) uint32
- func UlWindowGetScale(window ULWindow) float64
- func UlWindowGetWidth(window ULWindow) uint32
- func UlWindowIsFullscreen(window ULWindow) bool
- func UlWindowPixelsToDevice(window ULWindow, val int32) int32
- func UlWindowSetCloseCallback(window ULWindow, callback ULCloseCallback, user_data unsafe.Pointer)
- func UlWindowSetCursor(window ULWindow, cursor ULCursor)
- func UlWindowSetResizeCallback(window ULWindow, callback ULResizeCallback, user_data unsafe.Pointer)
- func UlWindowSetTitle(window ULWindow, title string)
- type JSChar
- type JSClassAttributes
- type JSClassDefinition
- type JSClassRef
- type JSContextGroupRef
- type JSContextRef
- type JSGlobalContextRef
- func JSContextGetGlobalContext(ctx JSContextRef) JSGlobalContextRef
- func JSGlobalContextCreate(globalObjectClass JSClassRef) JSGlobalContextRef
- func JSGlobalContextCreateInGroup(group JSContextGroupRef, globalObjectClass JSClassRef) JSGlobalContextRef
- func JSGlobalContextRetain(ctx JSGlobalContextRef) JSGlobalContextRef
- type JSObjectCallAsConstructorCallback
- type JSObjectCallAsFunctionCallback
- type JSObjectConvertToTypeCallback
- type JSObjectDeletePropertyCallback
- type JSObjectFinalizeCallback
- type JSObjectGetPropertyCallback
- type JSObjectGetPropertyNamesCallback
- type JSObjectHasInstanceCallback
- type JSObjectHasPropertyCallback
- type JSObjectInitializeCallback
- type JSObjectRef
- func JSContextGetGlobalObject(ctx JSContextRef) JSObjectRef
- func JSObjectCallAsConstructor(ctx JSContextRef, object JSObjectRef, argumentCount uint, ...) JSObjectRef
- func JSObjectGetTypedArrayBuffer(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) JSObjectRef
- func JSObjectMake(ctx JSContextRef, jsClass JSClassRef, data unsafe.Pointer) JSObjectRef
- func JSObjectMakeArray(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, ...) JSObjectRef
- func JSObjectMakeArrayBufferWithBytesNoCopy(ctx JSContextRef, bytes unsafe.Pointer, byteLength uint, ...) JSObjectRef
- func JSObjectMakeConstructor(ctx JSContextRef, jsClass JSClassRef, ...) JSObjectRef
- func JSObjectMakeDate(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, ...) JSObjectRef
- func JSObjectMakeError(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, ...) JSObjectRef
- func JSObjectMakeFunction(ctx JSContextRef, name JSStringRef, parameterCount uint32, ...) JSObjectRef
- func JSObjectMakeFunctionWithCallback(ctx JSContextRef, name JSStringRef, ...) JSObjectRef
- func JSObjectMakeRegExp(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, ...) JSObjectRef
- func JSObjectMakeTypedArray(ctx JSContextRef, arrayType JSTypedArrayType, length uint, ...) JSObjectRef
- func JSObjectMakeTypedArrayWithArrayBuffer(ctx JSContextRef, arrayType JSTypedArrayType, buffer JSObjectRef, ...) JSObjectRef
- func JSObjectMakeTypedArrayWithArrayBufferAndOffset(ctx JSContextRef, arrayType JSTypedArrayType, buffer JSObjectRef, ...) JSObjectRef
- func JSObjectMakeTypedArrayWithBytesNoCopy(ctx JSContextRef, arrayType JSTypedArrayType, bytes unsafe.Pointer, ...) JSObjectRef
- func JSValueToObject(ctx JSContextRef, value JSValueRef, exception []JSValueRef) JSObjectRef
- type JSObjectSetPropertyCallback
- type JSPropertyAttributes
- type JSPropertyNameAccumulatorRef
- type JSPropertyNameArrayRef
- type JSStaticFunction
- type JSStaticValue
- type JSStringRef
- func JSGlobalContextCopyName(ctx JSGlobalContextRef) JSStringRef
- func JSPropertyNameArrayGetNameAtIndex(array JSPropertyNameArrayRef, index uint) JSStringRef
- func JSStringCreateWithCharacters(chars []JSChar, numChars uint) JSStringRef
- func JSStringCreateWithUTF8CString(string string) JSStringRef
- func JSStringRetain(string JSStringRef) JSStringRef
- func JSValueCreateJSONString(ctx JSContextRef, value JSValueRef, indent uint32, exception []JSValueRef) JSStringRef
- func JSValueToStringCopy(ctx JSContextRef, value JSValueRef, exception []JSValueRef) JSStringRef
- type JSType
- type JSTypedArrayBytesDeallocator
- type JSTypedArrayType
- type JSValueRef
- func JSEvaluateScript(ctx JSContextRef, script JSStringRef, thisObject JSObjectRef, ...) JSValueRef
- func JSObjectCallAsFunction(ctx JSContextRef, object JSObjectRef, thisObject JSObjectRef, ...) JSValueRef
- func JSObjectGetProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, ...) JSValueRef
- func JSObjectGetPropertyAtIndex(ctx JSContextRef, object JSObjectRef, propertyIndex uint32, ...) JSValueRef
- func JSObjectGetPrototype(ctx JSContextRef, object JSObjectRef) JSValueRef
- func JSValueMakeBoolean(ctx JSContextRef, boolean bool) JSValueRef
- func JSValueMakeFromJSONString(ctx JSContextRef, string JSStringRef) JSValueRef
- func JSValueMakeNull(ctx JSContextRef) JSValueRef
- func JSValueMakeNumber(ctx JSContextRef, number float64) JSValueRef
- func JSValueMakeString(ctx JSContextRef, string JSStringRef) JSValueRef
- func JSValueMakeUndefined(ctx JSContextRef) JSValueRef
- func UlViewEvaluateScript(view ULView, js_string ULString) JSValueRef
- type RawString
- type ULAddConsoleMessageCallback
- type ULApp
- type ULBeginLoadingCallback
- type ULBitmap
- func UlCreateBitmap(width uint32, height uint32, format ULBitmapFormat) ULBitmap
- func UlCreateBitmapFromCopy(existing_bitmap ULBitmap) ULBitmap
- func UlCreateBitmapFromPixels(width uint32, height uint32, format ULBitmapFormat, row_bytes uint32, ...) ULBitmap
- func UlCreateEmptyBitmap() ULBitmap
- func UlViewGetBitmap(view ULView) ULBitmap
- type ULBitmapFormat
- type ULBuffer
- type ULChangeCursorCallback
- type ULChangeTitleCallback
- type ULChangeTooltipCallback
- type ULChangeURLCallback
- type ULChar16
- type ULCloseCallback
- type ULConfig
- type ULCursor
- type ULDOMReadyCallback
- type ULFinishLoadingCallback
- type ULKeyEvent
- type ULKeyEventType
- type ULMessageLevel
- type ULMessageSource
- type ULMonitor
- type ULMouseButton
- type ULMouseEvent
- type ULMouseEventType
- type ULOverlay
- type ULRenderTarget
- type ULRenderer
- type ULResizeCallback
- type ULScrollEvent
- type ULScrollEventType
- type ULSettings
- type ULString
- type ULUpdateCallback
- type ULUpdateHistoryCallback
- type ULView
- type ULWindow
- type ULWindowFlags
Constants ¶
const ( // KJSPropertyAttributeNone as declared in JavaScriptCore/JSObjectRef.h:51 KJSPropertyAttributeNone = iota // KJSPropertyAttributeReadOnly as declared in JavaScriptCore/JSObjectRef.h:52 KJSPropertyAttributeReadOnly = 2 // KJSPropertyAttributeDontEnum as declared in JavaScriptCore/JSObjectRef.h:53 KJSPropertyAttributeDontEnum = 4 // KJSPropertyAttributeDontDelete as declared in JavaScriptCore/JSObjectRef.h:54 KJSPropertyAttributeDontDelete = 8 )
const ( // KJSClassAttributeNone as declared in JavaScriptCore/JSObjectRef.h:69 KJSClassAttributeNone = iota // KJSClassAttributeNoAutomaticPrototype as declared in JavaScriptCore/JSObjectRef.h:70 KJSClassAttributeNoAutomaticPrototype = 2 )
const (
// JSC_OBJC_API_ENABLED as defined in JavaScriptCore/JSBase.h:141
JSC_OBJC_API_ENABLED = 0
)
Variables ¶
This section is empty.
Functions ¶
func JSCheckScriptSyntax ¶
func JSCheckScriptSyntax(ctx JSContextRef, script JSStringRef, sourceURL JSStringRef, startingLineNumber int32, exception []JSValueRef) bool
JSCheckScriptSyntax function as declared in JavaScriptCore/JSBase.h:118
func JSClassRelease ¶
func JSClassRelease(jsClass JSClassRef)
JSClassRelease function as declared in JavaScriptCore/JSObjectRef.h:397
func JSContextGroupRelease ¶
func JSContextGroupRelease(group JSContextGroupRef)
JSContextGroupRelease function as declared in JavaScriptCore/JSContextRef.h:66
func JSGarbageCollect ¶
func JSGarbageCollect(ctx JSContextRef)
JSGarbageCollect function as declared in JavaScriptCore/JSBase.h:133
func JSGlobalContextRelease ¶
func JSGlobalContextRelease(ctx JSGlobalContextRef)
JSGlobalContextRelease function as declared in JavaScriptCore/JSContextRef.h:110
func JSGlobalContextSetName ¶
func JSGlobalContextSetName(ctx JSGlobalContextRef, name JSStringRef)
JSGlobalContextSetName function as declared in JavaScriptCore/JSContextRef.h:152
func JSObjectDeleteProperty ¶
func JSObjectDeleteProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, exception []JSValueRef) bool
JSObjectDeleteProperty function as declared in JavaScriptCore/JSObjectRef.h:554
func JSObjectGetArrayBufferByteLength ¶
func JSObjectGetArrayBufferByteLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
JSObjectGetArrayBufferByteLength function as declared in JavaScriptCore/JSTypedArray.h:174
func JSObjectGetArrayBufferBytesPtr ¶
func JSObjectGetArrayBufferBytesPtr(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) unsafe.Pointer
JSObjectGetArrayBufferBytesPtr function as declared in JavaScriptCore/JSTypedArray.h:164
func JSObjectGetPrivate ¶
func JSObjectGetPrivate(object JSObjectRef) unsafe.Pointer
JSObjectGetPrivate function as declared in JavaScriptCore/JSObjectRef.h:586
func JSObjectGetTypedArrayByteLength ¶
func JSObjectGetTypedArrayByteLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
JSObjectGetTypedArrayByteLength function as declared in JavaScriptCore/JSTypedArray.h:118
func JSObjectGetTypedArrayByteOffset ¶
func JSObjectGetTypedArrayByteOffset(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
JSObjectGetTypedArrayByteOffset function as declared in JavaScriptCore/JSTypedArray.h:128
func JSObjectGetTypedArrayBytesPtr ¶
func JSObjectGetTypedArrayBytesPtr(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) unsafe.Pointer
JSObjectGetTypedArrayBytesPtr function as declared in JavaScriptCore/JSTypedArray.h:98
func JSObjectGetTypedArrayLength ¶
func JSObjectGetTypedArrayLength(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) uint
JSObjectGetTypedArrayLength function as declared in JavaScriptCore/JSTypedArray.h:108
func JSObjectHasProperty ¶
func JSObjectHasProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef) bool
JSObjectHasProperty function as declared in JavaScriptCore/JSObjectRef.h:520
func JSObjectIsConstructor ¶
func JSObjectIsConstructor(ctx JSContextRef, object JSObjectRef) bool
JSObjectIsConstructor function as declared in JavaScriptCore/JSObjectRef.h:627
func JSObjectIsFunction ¶
func JSObjectIsFunction(ctx JSContextRef, object JSObjectRef) bool
JSObjectIsFunction function as declared in JavaScriptCore/JSObjectRef.h:605
func JSObjectSetPrivate ¶
func JSObjectSetPrivate(object JSObjectRef, data unsafe.Pointer) bool
JSObjectSetPrivate function as declared in JavaScriptCore/JSObjectRef.h:596
func JSObjectSetProperty ¶
func JSObjectSetProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, value JSValueRef, attributes JSPropertyAttributes, exception []JSValueRef)
JSObjectSetProperty function as declared in JavaScriptCore/JSObjectRef.h:543
func JSObjectSetPropertyAtIndex ¶
func JSObjectSetPropertyAtIndex(ctx JSContextRef, object JSObjectRef, propertyIndex uint32, value JSValueRef, exception []JSValueRef)
JSObjectSetPropertyAtIndex function as declared in JavaScriptCore/JSObjectRef.h:578
func JSObjectSetPrototype ¶
func JSObjectSetPrototype(ctx JSContextRef, object JSObjectRef, value JSValueRef)
JSObjectSetPrototype function as declared in JavaScriptCore/JSObjectRef.h:511
func JSPropertyNameAccumulatorAddName ¶
func JSPropertyNameAccumulatorAddName(accumulator JSPropertyNameAccumulatorRef, propertyName JSStringRef)
JSPropertyNameAccumulatorAddName function as declared in JavaScriptCore/JSObjectRef.h:688
func JSPropertyNameArrayGetCount ¶
func JSPropertyNameArrayGetCount(array JSPropertyNameArrayRef) uint
JSPropertyNameArrayGetCount function as declared in JavaScriptCore/JSObjectRef.h:671
func JSPropertyNameArrayRelease ¶
func JSPropertyNameArrayRelease(array JSPropertyNameArrayRef)
JSPropertyNameArrayRelease function as declared in JavaScriptCore/JSObjectRef.h:663
func JSStringGetLength ¶
func JSStringGetLength(string JSStringRef) uint
JSStringGetLength function as declared in JavaScriptCore/JSStringRef.h:90
func JSStringGetMaximumUTF8CStringSize ¶
func JSStringGetMaximumUTF8CStringSize(string JSStringRef) uint
JSStringGetMaximumUTF8CStringSize function as declared in JavaScriptCore/JSStringRef.h:111
func JSStringGetUTF8CString ¶
func JSStringGetUTF8CString(string JSStringRef, buffer []byte, bufferSize uint) uint
JSStringGetUTF8CString function as declared in JavaScriptCore/JSStringRef.h:125
func JSStringIsEqual ¶
func JSStringIsEqual(a JSStringRef, b JSStringRef) bool
JSStringIsEqual function as declared in JavaScriptCore/JSStringRef.h:134
func JSStringIsEqualToUTF8CString ¶
func JSStringIsEqualToUTF8CString(a JSStringRef, b string) bool
JSStringIsEqualToUTF8CString function as declared in JavaScriptCore/JSStringRef.h:142
func JSStringRelease ¶
func JSStringRelease(string JSStringRef)
JSStringRelease function as declared in JavaScriptCore/JSStringRef.h:82
func JSValueIsArray ¶
func JSValueIsArray(ctx JSContextRef, value JSValueRef) bool
JSValueIsArray function as declared in JavaScriptCore/JSValueRef.h:169
func JSValueIsBoolean ¶
func JSValueIsBoolean(ctx JSContextRef, value JSValueRef) bool
JSValueIsBoolean function as declared in JavaScriptCore/JSValueRef.h:123
func JSValueIsDate ¶
func JSValueIsDate(ctx JSContextRef, value JSValueRef) bool
JSValueIsDate function as declared in JavaScriptCore/JSValueRef.h:178
func JSValueIsEqual ¶
func JSValueIsEqual(ctx JSContextRef, a JSValueRef, b JSValueRef, exception []JSValueRef) bool
JSValueIsEqual function as declared in JavaScriptCore/JSValueRef.h:201
func JSValueIsInstanceOfConstructor ¶
func JSValueIsInstanceOfConstructor(ctx JSContextRef, value JSValueRef, constructor JSObjectRef, exception []JSValueRef) bool
JSValueIsInstanceOfConstructor function as declared in JavaScriptCore/JSValueRef.h:222
func JSValueIsNull ¶
func JSValueIsNull(ctx JSContextRef, value JSValueRef) bool
JSValueIsNull function as declared in JavaScriptCore/JSValueRef.h:114
func JSValueIsNumber ¶
func JSValueIsNumber(ctx JSContextRef, value JSValueRef) bool
JSValueIsNumber function as declared in JavaScriptCore/JSValueRef.h:132
func JSValueIsObject ¶
func JSValueIsObject(ctx JSContextRef, value JSValueRef) bool
JSValueIsObject function as declared in JavaScriptCore/JSValueRef.h:150
func JSValueIsObjectOfClass ¶
func JSValueIsObjectOfClass(ctx JSContextRef, value JSValueRef, jsClass JSClassRef) bool
JSValueIsObjectOfClass function as declared in JavaScriptCore/JSValueRef.h:160
func JSValueIsStrictEqual ¶
func JSValueIsStrictEqual(ctx JSContextRef, a JSValueRef, b JSValueRef) bool
JSValueIsStrictEqual function as declared in JavaScriptCore/JSValueRef.h:211
func JSValueIsString ¶
func JSValueIsString(ctx JSContextRef, value JSValueRef) bool
JSValueIsString function as declared in JavaScriptCore/JSValueRef.h:141
func JSValueIsUndefined ¶
func JSValueIsUndefined(ctx JSContextRef, value JSValueRef) bool
JSValueIsUndefined function as declared in JavaScriptCore/JSValueRef.h:105
func JSValueProtect ¶
func JSValueProtect(ctx JSContextRef, value JSValueRef)
JSValueProtect function as declared in JavaScriptCore/JSValueRef.h:343
func JSValueToBoolean ¶
func JSValueToBoolean(ctx JSContextRef, value JSValueRef) bool
JSValueToBoolean function as declared in JavaScriptCore/JSValueRef.h:301
func JSValueToNumber ¶
func JSValueToNumber(ctx JSContextRef, value JSValueRef, exception []JSValueRef) float64
JSValueToNumber function as declared in JavaScriptCore/JSValueRef.h:311
func JSValueUnprotect ¶
func JSValueUnprotect(ctx JSContextRef, value JSValueRef)
JSValueUnprotect function as declared in JavaScriptCore/JSValueRef.h:353
func UlAppIsRunning ¶
UlAppIsRunning function as declared in AppCore/CAPI.h:133
func UlAppSetUpdateCallback ¶
func UlAppSetUpdateCallback(app ULApp, callback ULUpdateCallback, user_data unsafe.Pointer)
UlAppSetUpdateCallback function as declared in AppCore/CAPI.h:127
func UlAppSetWindow ¶
UlAppSetWindow function as declared in AppCore/CAPI.h:110
func UlBitmapErase ¶
func UlBitmapErase(bitmap ULBitmap)
UlBitmapErase function as declared in Ultralight/CAPI.h:668
func UlBitmapGetBpp ¶
UlBitmapGetBpp function as declared in Ultralight/CAPI.h:627
func UlBitmapGetHeight ¶
UlBitmapGetHeight function as declared in Ultralight/CAPI.h:617
func UlBitmapGetRowBytes ¶
UlBitmapGetRowBytes function as declared in Ultralight/CAPI.h:632
func UlBitmapGetSize ¶
UlBitmapGetSize function as declared in Ultralight/CAPI.h:637
func UlBitmapGetWidth ¶
UlBitmapGetWidth function as declared in Ultralight/CAPI.h:612
func UlBitmapIsEmpty ¶
UlBitmapIsEmpty function as declared in Ultralight/CAPI.h:663
func UlBitmapLockPixels ¶
UlBitmapLockPixels function as declared in Ultralight/CAPI.h:647
func UlBitmapOwnsPixels ¶
UlBitmapOwnsPixels function as declared in Ultralight/CAPI.h:642
func UlBitmapRawPixels ¶
UlBitmapRawPixels function as declared in Ultralight/CAPI.h:658
func UlBitmapUnlockPixels ¶
func UlBitmapUnlockPixels(bitmap ULBitmap)
UlBitmapUnlockPixels function as declared in Ultralight/CAPI.h:652
func UlBitmapWritePNG ¶
UlBitmapWritePNG function as declared in Ultralight/CAPI.h:673
func UlConfigSetAnimationTimerDelay ¶
UlConfigSetAnimationTimerDelay function as declared in Ultralight/CAPI.h:249
func UlConfigSetDeviceScaleHint ¶
UlConfigSetDeviceScaleHint function as declared in Ultralight/CAPI.h:203
func UlConfigSetEnableImages ¶
UlConfigSetEnableImages function as declared in Ultralight/CAPI.h:184
func UlConfigSetEnableJavaScript ¶
UlConfigSetEnableJavaScript function as declared in Ultralight/CAPI.h:189
func UlConfigSetFontFamilyFixed ¶
UlConfigSetFontFamilyFixed function as declared in Ultralight/CAPI.h:215
func UlConfigSetFontFamilySansSerif ¶
UlConfigSetFontFamilySansSerif function as declared in Ultralight/CAPI.h:225
func UlConfigSetFontFamilySerif ¶
UlConfigSetFontFamilySerif function as declared in Ultralight/CAPI.h:220
func UlConfigSetFontFamilyStandard ¶
UlConfigSetFontFamilyStandard function as declared in Ultralight/CAPI.h:208
func UlConfigSetForceRepaint ¶
UlConfigSetForceRepaint function as declared in Ultralight/CAPI.h:243
func UlConfigSetMemoryCacheSize ¶
UlConfigSetMemoryCacheSize function as declared in Ultralight/CAPI.h:255
func UlConfigSetPageCacheSize ¶
UlConfigSetPageCacheSize function as declared in Ultralight/CAPI.h:260
func UlConfigSetUseBGRAForOffscreenRendering ¶
UlConfigSetUseBGRAForOffscreenRendering function as declared in Ultralight/CAPI.h:195
func UlConfigSetUserAgent ¶
UlConfigSetUserAgent function as declared in Ultralight/CAPI.h:231
func UlConfigSetUserStylesheet ¶
UlConfigSetUserStylesheet function as declared in Ultralight/CAPI.h:236
func UlDestroyApp ¶
func UlDestroyApp(app ULApp)
UlDestroyApp function as declared in AppCore/CAPI.h:100
func UlDestroyBitmap ¶
func UlDestroyBitmap(bitmap ULBitmap)
UlDestroyBitmap function as declared in Ultralight/CAPI.h:607
func UlDestroyConfig ¶
func UlDestroyConfig(config ULConfig)
UlDestroyConfig function as declared in Ultralight/CAPI.h:179
func UlDestroyKeyEvent ¶
func UlDestroyKeyEvent(evt ULKeyEvent)
UlDestroyKeyEvent function as declared in Ultralight/CAPI.h:708
func UlDestroyMouseEvent ¶
func UlDestroyMouseEvent(evt ULMouseEvent)
UlDestroyMouseEvent function as declared in Ultralight/CAPI.h:723
func UlDestroyOverlay ¶
func UlDestroyOverlay(overlay ULOverlay)
UlDestroyOverlay function as declared in AppCore/CAPI.h:285
func UlDestroyRenderer ¶
func UlDestroyRenderer(renderer ULRenderer)
UlDestroyRenderer function as declared in Ultralight/CAPI.h:274
func UlDestroyScrollEvent ¶
func UlDestroyScrollEvent(evt ULScrollEvent)
UlDestroyScrollEvent function as declared in Ultralight/CAPI.h:738
func UlDestroySettings ¶
func UlDestroySettings(settings ULSettings)
UlDestroySettings function as declared in AppCore/CAPI.h:57
func UlDestroyString ¶
func UlDestroyString(str ULString)
UlDestroyString function as declared in Ultralight/CAPI.h:555
func UlDestroyView ¶
func UlDestroyView(view ULView)
UlDestroyView function as declared in Ultralight/CAPI.h:299
func UlDestroyWindow ¶
func UlDestroyWindow(window ULWindow)
UlDestroyWindow function as declared in AppCore/CAPI.h:192
func UlMonitorGetHeight ¶
UlMonitorGetHeight function as declared in AppCore/CAPI.h:170
func UlMonitorGetScale ¶
UlMonitorGetScale function as declared in AppCore/CAPI.h:160
func UlMonitorGetWidth ¶
UlMonitorGetWidth function as declared in AppCore/CAPI.h:165
func UlOverlayFocus ¶
func UlOverlayFocus(overlay ULOverlay)
UlOverlayFocus function as declared in AppCore/CAPI.h:349
func UlOverlayGetHeight ¶
UlOverlayGetHeight function as declared in AppCore/CAPI.h:300
func UlOverlayGetWidth ¶
UlOverlayGetWidth function as declared in AppCore/CAPI.h:295
func UlOverlayGetX ¶
UlOverlayGetX function as declared in AppCore/CAPI.h:306
func UlOverlayGetY ¶
UlOverlayGetY function as declared in AppCore/CAPI.h:312
func UlOverlayHasFocus ¶
UlOverlayHasFocus function as declared in AppCore/CAPI.h:344
func UlOverlayHide ¶
func UlOverlayHide(overlay ULOverlay)
UlOverlayHide function as declared in AppCore/CAPI.h:334
func UlOverlayIsHidden ¶
UlOverlayIsHidden function as declared in AppCore/CAPI.h:329
func UlOverlayMoveTo ¶
UlOverlayMoveTo function as declared in AppCore/CAPI.h:317
func UlOverlayResize ¶
UlOverlayResize function as declared in AppCore/CAPI.h:323
func UlOverlayShow ¶
func UlOverlayShow(overlay ULOverlay)
UlOverlayShow function as declared in AppCore/CAPI.h:339
func UlOverlayUnfocus ¶
func UlOverlayUnfocus(overlay ULOverlay)
UlOverlayUnfocus function as declared in AppCore/CAPI.h:354
func UlRender ¶
func UlRender(renderer ULRenderer)
UlRender function as declared in Ultralight/CAPI.h:284
func UlSettingsSetFileSystemPath ¶
func UlSettingsSetFileSystemPath(settings ULSettings, path ULString)
UlSettingsSetFileSystemPath function as declared in AppCore/CAPI.h:69
func UlSettingsSetLoadShadersFromFileSystem ¶
func UlSettingsSetLoadShadersFromFileSystem(settings ULSettings, enabled bool)
UlSettingsSetLoadShadersFromFileSystem function as declared in AppCore/CAPI.h:78
func UlStringGetLength ¶
UlStringGetLength function as declared in Ultralight/CAPI.h:565
func UlStringIsEmpty ¶
UlStringIsEmpty function as declared in Ultralight/CAPI.h:570
func UlUpdate ¶
func UlUpdate(renderer ULRenderer)
UlUpdate function as declared in Ultralight/CAPI.h:279
func UlViewCanGoBack ¶
UlViewCanGoBack function as declared in Ultralight/CAPI.h:361
func UlViewCanGoForward ¶
UlViewCanGoForward function as declared in Ultralight/CAPI.h:366
func UlViewFireKeyEvent ¶
func UlViewFireKeyEvent(view ULView, key_event ULKeyEvent)
UlViewFireKeyEvent function as declared in Ultralight/CAPI.h:396
func UlViewFireMouseEvent ¶
func UlViewFireMouseEvent(view ULView, mouse_event ULMouseEvent)
UlViewFireMouseEvent function as declared in Ultralight/CAPI.h:401
func UlViewFireScrollEvent ¶
func UlViewFireScrollEvent(view ULView, scroll_event ULScrollEvent)
UlViewFireScrollEvent function as declared in Ultralight/CAPI.h:406
func UlViewGetNeedsPaint ¶
UlViewGetNeedsPaint function as declared in Ultralight/CAPI.h:516
func UlViewGoBack ¶
func UlViewGoBack(view ULView)
UlViewGoBack function as declared in Ultralight/CAPI.h:371
func UlViewGoForward ¶
func UlViewGoForward(view ULView)
UlViewGoForward function as declared in Ultralight/CAPI.h:376
func UlViewGoToHistoryOffset ¶
UlViewGoToHistoryOffset function as declared in Ultralight/CAPI.h:381
func UlViewIsBitmapDirty ¶
UlViewIsBitmapDirty function as declared in Ultralight/CAPI.h:323
func UlViewIsLoading ¶
UlViewIsLoading function as declared in Ultralight/CAPI.h:318
func UlViewLoadHTML ¶
UlViewLoadHTML function as declared in Ultralight/CAPI.h:335
func UlViewLoadURL ¶
UlViewLoadURL function as declared in Ultralight/CAPI.h:340
func UlViewReload ¶
func UlViewReload(view ULView)
UlViewReload function as declared in Ultralight/CAPI.h:386
func UlViewResize ¶
UlViewResize function as declared in Ultralight/CAPI.h:345
func UlViewSetAddConsoleMessageCallback ¶
func UlViewSetAddConsoleMessageCallback(view ULView, callback ULAddConsoleMessageCallback, user_data unsafe.Pointer)
UlViewSetAddConsoleMessageCallback function as declared in Ultralight/CAPI.h:459
func UlViewSetBeginLoadingCallback ¶
func UlViewSetBeginLoadingCallback(view ULView, callback ULBeginLoadingCallback, user_data unsafe.Pointer)
UlViewSetBeginLoadingCallback function as declared in Ultralight/CAPI.h:469
func UlViewSetChangeCursorCallback ¶
func UlViewSetChangeCursorCallback(view ULView, callback ULChangeCursorCallback, user_data unsafe.Pointer)
UlViewSetChangeCursorCallback function as declared in Ultralight/CAPI.h:444
func UlViewSetChangeTitleCallback ¶
func UlViewSetChangeTitleCallback(view ULView, callback ULChangeTitleCallback, user_data unsafe.Pointer)
UlViewSetChangeTitleCallback function as declared in Ultralight/CAPI.h:414
func UlViewSetChangeTooltipCallback ¶
func UlViewSetChangeTooltipCallback(view ULView, callback ULChangeTooltipCallback, user_data unsafe.Pointer)
UlViewSetChangeTooltipCallback function as declared in Ultralight/CAPI.h:434
func UlViewSetChangeURLCallback ¶
func UlViewSetChangeURLCallback(view ULView, callback ULChangeURLCallback, user_data unsafe.Pointer)
UlViewSetChangeURLCallback function as declared in Ultralight/CAPI.h:424
func UlViewSetDOMReadyCallback ¶
func UlViewSetDOMReadyCallback(view ULView, callback ULDOMReadyCallback, user_data unsafe.Pointer)
UlViewSetDOMReadyCallback function as declared in Ultralight/CAPI.h:500
func UlViewSetFinishLoadingCallback ¶
func UlViewSetFinishLoadingCallback(view ULView, callback ULFinishLoadingCallback, user_data unsafe.Pointer)
UlViewSetFinishLoadingCallback function as declared in Ultralight/CAPI.h:479
func UlViewSetNeedsPaint ¶
UlViewSetNeedsPaint function as declared in Ultralight/CAPI.h:511
func UlViewSetUpdateHistoryCallback ¶
func UlViewSetUpdateHistoryCallback(view ULView, callback ULUpdateHistoryCallback, user_data unsafe.Pointer)
UlViewSetUpdateHistoryCallback function as declared in Ultralight/CAPI.h:489
func UlViewStop ¶
func UlViewStop(view ULView)
UlViewStop function as declared in Ultralight/CAPI.h:391
func UlWindowClose ¶
func UlWindowClose(window ULWindow)
UlWindowClose function as declared in AppCore/CAPI.h:248
func UlWindowDeviceToPixel ¶
UlWindowDeviceToPixel function as declared in AppCore/CAPI.h:253
func UlWindowGetHeight ¶
UlWindowGetHeight function as declared in AppCore/CAPI.h:223
func UlWindowGetScale ¶
UlWindowGetScale function as declared in AppCore/CAPI.h:233
func UlWindowGetWidth ¶
UlWindowGetWidth function as declared in AppCore/CAPI.h:218
func UlWindowIsFullscreen ¶
UlWindowIsFullscreen function as declared in AppCore/CAPI.h:228
func UlWindowPixelsToDevice ¶
UlWindowPixelsToDevice function as declared in AppCore/CAPI.h:258
func UlWindowSetCloseCallback ¶
func UlWindowSetCloseCallback(window ULWindow, callback ULCloseCallback, user_data unsafe.Pointer)
UlWindowSetCloseCallback function as declared in AppCore/CAPI.h:200
func UlWindowSetCursor ¶
UlWindowSetCursor function as declared in AppCore/CAPI.h:243
func UlWindowSetResizeCallback ¶
func UlWindowSetResizeCallback(window ULWindow, callback ULResizeCallback, user_data unsafe.Pointer)
UlWindowSetResizeCallback function as declared in AppCore/CAPI.h:211
func UlWindowSetTitle ¶
UlWindowSetTitle function as declared in AppCore/CAPI.h:238
Types ¶
type JSChar ¶
type JSChar uint16
JSChar type as declared in JavaScriptCore/JSStringRef.h:49
func JSStringGetCharactersPtr ¶
func JSStringGetCharactersPtr(string JSStringRef) *JSChar
JSStringGetCharactersPtr function as declared in JavaScriptCore/JSStringRef.h:99
type JSClassAttributes ¶
type JSClassAttributes uint32
JSClassAttributes type as declared in JavaScriptCore/JSObjectRef.h:77
type JSClassDefinition ¶
type JSClassDefinition struct { Version int32 Attributes JSClassAttributes ClassName string ParentClass JSClassRef StaticValues []JSStaticValue StaticFunctions []JSStaticFunction Initialize JSObjectInitializeCallback Finalize JSObjectFinalizeCallback HasProperty JSObjectHasPropertyCallback GetProperty JSObjectGetPropertyCallback SetProperty JSObjectSetPropertyCallback DeleteProperty JSObjectDeletePropertyCallback GetPropertyNames JSObjectGetPropertyNamesCallback CallAsFunction JSObjectCallAsFunctionCallback CallAsConstructor JSObjectCallAsConstructorCallback HasInstance JSObjectHasInstanceCallback ConvertToType JSObjectConvertToTypeCallback // contains filtered or unexported fields }
JSClassDefinition as declared in JavaScriptCore/JSObjectRef.h:364
var KJSClassDefinitionEmpty JSClassDefinition
func NewJSClassDefinitionRef ¶
func NewJSClassDefinitionRef(ref unsafe.Pointer) *JSClassDefinition
NewJSClassDefinitionRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*JSClassDefinition) Deref ¶
func (x *JSClassDefinition) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*JSClassDefinition) Free ¶
func (x *JSClassDefinition) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*JSClassDefinition) PassRef ¶
func (x *JSClassDefinition) PassRef() (*C.JSClassDefinition, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (JSClassDefinition) PassValue ¶
func (x JSClassDefinition) PassValue() (C.JSClassDefinition, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*JSClassDefinition) Ref ¶
func (x *JSClassDefinition) Ref() *C.JSClassDefinition
Ref returns the underlying reference to C object or nil if struct is nil.
type JSClassRef ¶
type JSClassRef C.JSClassRef
JSClassRef as declared in JavaScriptCore/JSBase.h:52
func JSClassCreate ¶
func JSClassCreate(definition []JSClassDefinition) JSClassRef
JSClassCreate function as declared in JavaScriptCore/JSObjectRef.h:382
func JSClassRetain ¶
func JSClassRetain(jsClass JSClassRef) JSClassRef
JSClassRetain function as declared in JavaScriptCore/JSObjectRef.h:390
type JSContextGroupRef ¶
type JSContextGroupRef C.JSContextGroupRef
JSContextGroupRef as declared in JavaScriptCore/JSBase.h:40
func JSContextGetGroup ¶
func JSContextGetGroup(ctx JSContextRef) JSContextGroupRef
JSContextGetGroup function as declared in JavaScriptCore/JSContextRef.h:126
func JSContextGroupCreate ¶
func JSContextGroupCreate() JSContextGroupRef
JSContextGroupCreate function as declared in JavaScriptCore/JSContextRef.h:51
func JSContextGroupRetain ¶
func JSContextGroupRetain(group JSContextGroupRef) JSContextGroupRef
JSContextGroupRetain function as declared in JavaScriptCore/JSContextRef.h:59
type JSContextRef ¶
type JSContextRef C.JSContextRef
JSContextRef as declared in JavaScriptCore/JSBase.h:43
func UlViewGetJSContext ¶
func UlViewGetJSContext(view ULView) JSContextRef
UlViewGetJSContext function as declared in Ultralight/CAPI.h:351
type JSGlobalContextRef ¶
type JSGlobalContextRef C.JSGlobalContextRef
JSGlobalContextRef as declared in JavaScriptCore/JSBase.h:46
func JSContextGetGlobalContext ¶
func JSContextGetGlobalContext(ctx JSContextRef) JSGlobalContextRef
JSContextGetGlobalContext function as declared in JavaScriptCore/JSContextRef.h:134
func JSGlobalContextCreate ¶
func JSGlobalContextCreate(globalObjectClass JSClassRef) JSGlobalContextRef
JSGlobalContextCreate function as declared in JavaScriptCore/JSContextRef.h:81
func JSGlobalContextCreateInGroup ¶
func JSGlobalContextCreateInGroup(group JSContextGroupRef, globalObjectClass JSClassRef) JSGlobalContextRef
JSGlobalContextCreateInGroup function as declared in JavaScriptCore/JSContextRef.h:95
func JSGlobalContextRetain ¶
func JSGlobalContextRetain(ctx JSGlobalContextRef) JSGlobalContextRef
JSGlobalContextRetain function as declared in JavaScriptCore/JSContextRef.h:103
type JSObjectCallAsConstructorCallback ¶
type JSObjectCallAsConstructorCallback func(ctx JSContextRef, constructor JSObjectRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectCallAsConstructorCallback type as declared in JavaScriptCore/JSObjectRef.h:240
func NewJSObjectCallAsConstructorCallbackRef ¶
func NewJSObjectCallAsConstructorCallbackRef(ref unsafe.Pointer) *JSObjectCallAsConstructorCallback
func (JSObjectCallAsConstructorCallback) PassRef ¶
func (x JSObjectCallAsConstructorCallback) PassRef() (ref *C.JSObjectCallAsConstructorCallback, allocs *cgoAllocMap)
func (JSObjectCallAsConstructorCallback) PassValue ¶
func (x JSObjectCallAsConstructorCallback) PassValue() (ref C.JSObjectCallAsConstructorCallback, allocs *cgoAllocMap)
type JSObjectCallAsFunctionCallback ¶
type JSObjectCallAsFunctionCallback func(ctx JSContextRef, function JSObjectRef, thisObject JSObjectRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSValueRef
JSObjectCallAsFunctionCallback type as declared in JavaScriptCore/JSObjectRef.h:220
func NewJSObjectCallAsFunctionCallbackRef ¶
func NewJSObjectCallAsFunctionCallbackRef(ref unsafe.Pointer) *JSObjectCallAsFunctionCallback
func (JSObjectCallAsFunctionCallback) PassRef ¶
func (x JSObjectCallAsFunctionCallback) PassRef() (ref *C.JSObjectCallAsFunctionCallback, allocs *cgoAllocMap)
func (JSObjectCallAsFunctionCallback) PassValue ¶
func (x JSObjectCallAsFunctionCallback) PassValue() (ref C.JSObjectCallAsFunctionCallback, allocs *cgoAllocMap)
type JSObjectConvertToTypeCallback ¶
type JSObjectConvertToTypeCallback func(ctx JSContextRef, object JSObjectRef, _type JSType, exception []JSValueRef) JSValueRef
JSObjectConvertToTypeCallback type as declared in JavaScriptCore/JSObjectRef.h:280
func NewJSObjectConvertToTypeCallbackRef ¶
func NewJSObjectConvertToTypeCallbackRef(ref unsafe.Pointer) *JSObjectConvertToTypeCallback
func (JSObjectConvertToTypeCallback) PassRef ¶
func (x JSObjectConvertToTypeCallback) PassRef() (ref *C.JSObjectConvertToTypeCallback, allocs *cgoAllocMap)
func (JSObjectConvertToTypeCallback) PassValue ¶
func (x JSObjectConvertToTypeCallback) PassValue() (ref C.JSObjectConvertToTypeCallback, allocs *cgoAllocMap)
type JSObjectDeletePropertyCallback ¶
type JSObjectDeletePropertyCallback func(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, exception []JSValueRef) bool
JSObjectDeletePropertyCallback type as declared in JavaScriptCore/JSObjectRef.h:182
func NewJSObjectDeletePropertyCallbackRef ¶
func NewJSObjectDeletePropertyCallbackRef(ref unsafe.Pointer) *JSObjectDeletePropertyCallback
func (JSObjectDeletePropertyCallback) PassRef ¶
func (x JSObjectDeletePropertyCallback) PassRef() (ref *C.JSObjectDeletePropertyCallback, allocs *cgoAllocMap)
func (JSObjectDeletePropertyCallback) PassValue ¶
func (x JSObjectDeletePropertyCallback) PassValue() (ref C.JSObjectDeletePropertyCallback, allocs *cgoAllocMap)
type JSObjectFinalizeCallback ¶
type JSObjectFinalizeCallback func(object JSObjectRef)
JSObjectFinalizeCallback type as declared in JavaScriptCore/JSObjectRef.h:110
func NewJSObjectFinalizeCallbackRef ¶
func NewJSObjectFinalizeCallbackRef(ref unsafe.Pointer) *JSObjectFinalizeCallback
func (JSObjectFinalizeCallback) PassRef ¶
func (x JSObjectFinalizeCallback) PassRef() (ref *C.JSObjectFinalizeCallback, allocs *cgoAllocMap)
func (JSObjectFinalizeCallback) PassValue ¶
func (x JSObjectFinalizeCallback) PassValue() (ref C.JSObjectFinalizeCallback, allocs *cgoAllocMap)
type JSObjectGetPropertyCallback ¶
type JSObjectGetPropertyCallback func(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, exception []JSValueRef) JSValueRef
JSObjectGetPropertyCallback type as declared in JavaScriptCore/JSObjectRef.h:147
func NewJSObjectGetPropertyCallbackRef ¶
func NewJSObjectGetPropertyCallbackRef(ref unsafe.Pointer) *JSObjectGetPropertyCallback
func (JSObjectGetPropertyCallback) PassRef ¶
func (x JSObjectGetPropertyCallback) PassRef() (ref *C.JSObjectGetPropertyCallback, allocs *cgoAllocMap)
func (JSObjectGetPropertyCallback) PassValue ¶
func (x JSObjectGetPropertyCallback) PassValue() (ref C.JSObjectGetPropertyCallback, allocs *cgoAllocMap)
type JSObjectGetPropertyNamesCallback ¶
type JSObjectGetPropertyNamesCallback func(ctx JSContextRef, object JSObjectRef, propertyNames JSPropertyNameAccumulatorRef)
JSObjectGetPropertyNamesCallback type as declared in JavaScriptCore/JSObjectRef.h:199
func NewJSObjectGetPropertyNamesCallbackRef ¶
func NewJSObjectGetPropertyNamesCallbackRef(ref unsafe.Pointer) *JSObjectGetPropertyNamesCallback
func (JSObjectGetPropertyNamesCallback) PassRef ¶
func (x JSObjectGetPropertyNamesCallback) PassRef() (ref *C.JSObjectGetPropertyNamesCallback, allocs *cgoAllocMap)
func (JSObjectGetPropertyNamesCallback) PassValue ¶
func (x JSObjectGetPropertyNamesCallback) PassValue() (ref C.JSObjectGetPropertyNamesCallback, allocs *cgoAllocMap)
type JSObjectHasInstanceCallback ¶
type JSObjectHasInstanceCallback func(ctx JSContextRef, constructor JSObjectRef, possibleInstance JSValueRef, exception []JSValueRef) bool
JSObjectHasInstanceCallback type as declared in JavaScriptCore/JSObjectRef.h:261
func NewJSObjectHasInstanceCallbackRef ¶
func NewJSObjectHasInstanceCallbackRef(ref unsafe.Pointer) *JSObjectHasInstanceCallback
func (JSObjectHasInstanceCallback) PassRef ¶
func (x JSObjectHasInstanceCallback) PassRef() (ref *C.JSObjectHasInstanceCallback, allocs *cgoAllocMap)
func (JSObjectHasInstanceCallback) PassValue ¶
func (x JSObjectHasInstanceCallback) PassValue() (ref C.JSObjectHasInstanceCallback, allocs *cgoAllocMap)
type JSObjectHasPropertyCallback ¶
type JSObjectHasPropertyCallback func(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef) bool
JSObjectHasPropertyCallback type as declared in JavaScriptCore/JSObjectRef.h:130
func NewJSObjectHasPropertyCallbackRef ¶
func NewJSObjectHasPropertyCallbackRef(ref unsafe.Pointer) *JSObjectHasPropertyCallback
func (JSObjectHasPropertyCallback) PassRef ¶
func (x JSObjectHasPropertyCallback) PassRef() (ref *C.JSObjectHasPropertyCallback, allocs *cgoAllocMap)
func (JSObjectHasPropertyCallback) PassValue ¶
func (x JSObjectHasPropertyCallback) PassValue() (ref C.JSObjectHasPropertyCallback, allocs *cgoAllocMap)
type JSObjectInitializeCallback ¶
type JSObjectInitializeCallback func(ctx JSContextRef, object JSObjectRef)
JSObjectInitializeCallback type as declared in JavaScriptCore/JSObjectRef.h:92
func NewJSObjectInitializeCallbackRef ¶
func NewJSObjectInitializeCallbackRef(ref unsafe.Pointer) *JSObjectInitializeCallback
func (JSObjectInitializeCallback) PassRef ¶
func (x JSObjectInitializeCallback) PassRef() (ref *C.JSObjectInitializeCallback, allocs *cgoAllocMap)
func (JSObjectInitializeCallback) PassValue ¶
func (x JSObjectInitializeCallback) PassValue() (ref C.JSObjectInitializeCallback, allocs *cgoAllocMap)
type JSObjectRef ¶
type JSObjectRef C.JSObjectRef
JSObjectRef as declared in JavaScriptCore/JSBase.h:69
func JSContextGetGlobalObject ¶
func JSContextGetGlobalObject(ctx JSContextRef) JSObjectRef
JSContextGetGlobalObject function as declared in JavaScriptCore/JSContextRef.h:118
func JSObjectCallAsConstructor ¶
func JSObjectCallAsConstructor(ctx JSContextRef, object JSObjectRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectCallAsConstructor function as declared in JavaScriptCore/JSObjectRef.h:639
func JSObjectGetTypedArrayBuffer ¶
func JSObjectGetTypedArrayBuffer(ctx JSContextRef, object JSObjectRef, exception []JSValueRef) JSObjectRef
JSObjectGetTypedArrayBuffer function as declared in JavaScriptCore/JSTypedArray.h:138
func JSObjectMake ¶
func JSObjectMake(ctx JSContextRef, jsClass JSClassRef, data unsafe.Pointer) JSObjectRef
JSObjectMake function as declared in JavaScriptCore/JSObjectRef.h:410
func JSObjectMakeArray ¶
func JSObjectMakeArray(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectMakeArray function as declared in JavaScriptCore/JSObjectRef.h:444
func JSObjectMakeArrayBufferWithBytesNoCopy ¶
func JSObjectMakeArrayBufferWithBytesNoCopy(ctx JSContextRef, bytes unsafe.Pointer, byteLength uint, bytesDeallocator JSTypedArrayBytesDeallocator, deallocatorContext unsafe.Pointer, exception []JSValueRef) JSObjectRef
JSObjectMakeArrayBufferWithBytesNoCopy function as declared in JavaScriptCore/JSTypedArray.h:154
func JSObjectMakeConstructor ¶
func JSObjectMakeConstructor(ctx JSContextRef, jsClass JSClassRef, callAsConstructor JSObjectCallAsConstructorCallback) JSObjectRef
JSObjectMakeConstructor function as declared in JavaScriptCore/JSObjectRef.h:431
func JSObjectMakeDate ¶
func JSObjectMakeDate(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectMakeDate function as declared in JavaScriptCore/JSObjectRef.h:455
func JSObjectMakeError ¶
func JSObjectMakeError(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectMakeError function as declared in JavaScriptCore/JSObjectRef.h:466
func JSObjectMakeFunction ¶
func JSObjectMakeFunction(ctx JSContextRef, name JSStringRef, parameterCount uint32, parameterNames []JSStringRef, body JSStringRef, sourceURL JSStringRef, startingLineNumber int32, exception []JSValueRef) JSObjectRef
JSObjectMakeFunction function as declared in JavaScriptCore/JSObjectRef.h:493
func JSObjectMakeFunctionWithCallback ¶
func JSObjectMakeFunctionWithCallback(ctx JSContextRef, name JSStringRef, callAsFunction JSObjectCallAsFunctionCallback) JSObjectRef
JSObjectMakeFunctionWithCallback function as declared in JavaScriptCore/JSObjectRef.h:420
func JSObjectMakeRegExp ¶
func JSObjectMakeRegExp(ctx JSContextRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSObjectRef
JSObjectMakeRegExp function as declared in JavaScriptCore/JSObjectRef.h:477
func JSObjectMakeTypedArray ¶
func JSObjectMakeTypedArray(ctx JSContextRef, arrayType JSTypedArrayType, length uint, exception []JSValueRef) JSObjectRef
JSObjectMakeTypedArray function as declared in JavaScriptCore/JSTypedArray.h:48
func JSObjectMakeTypedArrayWithArrayBuffer ¶
func JSObjectMakeTypedArrayWithArrayBuffer(ctx JSContextRef, arrayType JSTypedArrayType, buffer JSObjectRef, exception []JSValueRef) JSObjectRef
JSObjectMakeTypedArrayWithArrayBuffer function as declared in JavaScriptCore/JSTypedArray.h:74
func JSObjectMakeTypedArrayWithArrayBufferAndOffset ¶
func JSObjectMakeTypedArrayWithArrayBufferAndOffset(ctx JSContextRef, arrayType JSTypedArrayType, buffer JSObjectRef, byteOffset uint, length uint, exception []JSValueRef) JSObjectRef
JSObjectMakeTypedArrayWithArrayBufferAndOffset function as declared in JavaScriptCore/JSTypedArray.h:87
func JSObjectMakeTypedArrayWithBytesNoCopy ¶
func JSObjectMakeTypedArrayWithBytesNoCopy(ctx JSContextRef, arrayType JSTypedArrayType, bytes unsafe.Pointer, byteLength uint, bytesDeallocator JSTypedArrayBytesDeallocator, deallocatorContext unsafe.Pointer, exception []JSValueRef) JSObjectRef
JSObjectMakeTypedArrayWithBytesNoCopy function as declared in JavaScriptCore/JSTypedArray.h:63
func JSValueToObject ¶
func JSValueToObject(ctx JSContextRef, value JSValueRef, exception []JSValueRef) JSObjectRef
JSValueToObject function as declared in JavaScriptCore/JSValueRef.h:331
type JSObjectSetPropertyCallback ¶
type JSObjectSetPropertyCallback func(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, value JSValueRef, exception []JSValueRef) bool
JSObjectSetPropertyCallback type as declared in JavaScriptCore/JSObjectRef.h:165
func NewJSObjectSetPropertyCallbackRef ¶
func NewJSObjectSetPropertyCallbackRef(ref unsafe.Pointer) *JSObjectSetPropertyCallback
func (JSObjectSetPropertyCallback) PassRef ¶
func (x JSObjectSetPropertyCallback) PassRef() (ref *C.JSObjectSetPropertyCallback, allocs *cgoAllocMap)
func (JSObjectSetPropertyCallback) PassValue ¶
func (x JSObjectSetPropertyCallback) PassValue() (ref C.JSObjectSetPropertyCallback, allocs *cgoAllocMap)
type JSPropertyAttributes ¶
type JSPropertyAttributes uint32
JSPropertyAttributes type as declared in JavaScriptCore/JSObjectRef.h:61
type JSPropertyNameAccumulatorRef ¶
type JSPropertyNameAccumulatorRef C.JSPropertyNameAccumulatorRef
JSPropertyNameAccumulatorRef as declared in JavaScriptCore/JSBase.h:58
type JSPropertyNameArrayRef ¶
type JSPropertyNameArrayRef C.JSPropertyNameArrayRef
JSPropertyNameArrayRef as declared in JavaScriptCore/JSBase.h:55
func JSObjectCopyPropertyNames ¶
func JSObjectCopyPropertyNames(ctx JSContextRef, object JSObjectRef) JSPropertyNameArrayRef
JSObjectCopyPropertyNames function as declared in JavaScriptCore/JSObjectRef.h:648
func JSPropertyNameArrayRetain ¶
func JSPropertyNameArrayRetain(array JSPropertyNameArrayRef) JSPropertyNameArrayRef
JSPropertyNameArrayRetain function as declared in JavaScriptCore/JSObjectRef.h:656
type JSStaticFunction ¶
type JSStaticFunction struct { Name string CallAsFunction JSObjectCallAsFunctionCallback Attributes JSPropertyAttributes // contains filtered or unexported fields }
JSStaticFunction as declared in JavaScriptCore/JSObjectRef.h:308
func NewJSStaticFunctionRef ¶
func NewJSStaticFunctionRef(ref unsafe.Pointer) *JSStaticFunction
NewJSStaticFunctionRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*JSStaticFunction) Deref ¶
func (x *JSStaticFunction) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*JSStaticFunction) Free ¶
func (x *JSStaticFunction) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*JSStaticFunction) PassRef ¶
func (x *JSStaticFunction) PassRef() (*C.JSStaticFunction, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (JSStaticFunction) PassValue ¶
func (x JSStaticFunction) PassValue() (C.JSStaticFunction, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*JSStaticFunction) Ref ¶
func (x *JSStaticFunction) Ref() *C.JSStaticFunction
Ref returns the underlying reference to C object or nil if struct is nil.
type JSStaticValue ¶
type JSStaticValue struct { Name string GetProperty JSObjectGetPropertyCallback SetProperty JSObjectSetPropertyCallback Attributes JSPropertyAttributes // contains filtered or unexported fields }
JSStaticValue as declared in JavaScriptCore/JSObjectRef.h:295
func NewJSStaticValueRef ¶
func NewJSStaticValueRef(ref unsafe.Pointer) *JSStaticValue
NewJSStaticValueRef creates a new wrapper struct with underlying reference set to the original C object. Returns nil if the provided pointer to C object is nil too.
func (*JSStaticValue) Deref ¶
func (x *JSStaticValue) Deref()
Deref uses the underlying reference to C object and fills the wrapping struct with values. Do not forget to call this method whether you get a struct for C object and want to read its values.
func (*JSStaticValue) Free ¶
func (x *JSStaticValue) Free()
Free invokes alloc map's free mechanism that cleanups any allocated memory using C free. Does nothing if struct is nil or has no allocation map.
func (*JSStaticValue) PassRef ¶
func (x *JSStaticValue) PassRef() (*C.JSStaticValue, *cgoAllocMap)
PassRef returns the underlying C object, otherwise it will allocate one and set its values from this wrapping struct, counting allocations into an allocation map.
func (JSStaticValue) PassValue ¶
func (x JSStaticValue) PassValue() (C.JSStaticValue, *cgoAllocMap)
PassValue does the same as PassRef except that it will try to dereference the returned pointer.
func (*JSStaticValue) Ref ¶
func (x *JSStaticValue) Ref() *C.JSStaticValue
Ref returns the underlying reference to C object or nil if struct is nil.
type JSStringRef ¶
type JSStringRef C.JSStringRef
JSStringRef as declared in JavaScriptCore/JSBase.h:49
func JSGlobalContextCopyName ¶
func JSGlobalContextCopyName(ctx JSGlobalContextRef) JSStringRef
JSGlobalContextCopyName function as declared in JavaScriptCore/JSContextRef.h:144
func JSPropertyNameArrayGetNameAtIndex ¶
func JSPropertyNameArrayGetNameAtIndex(array JSPropertyNameArrayRef, index uint) JSStringRef
JSPropertyNameArrayGetNameAtIndex function as declared in JavaScriptCore/JSObjectRef.h:680
func JSStringCreateWithCharacters ¶
func JSStringCreateWithCharacters(chars []JSChar, numChars uint) JSStringRef
JSStringCreateWithCharacters function as declared in JavaScriptCore/JSStringRef.h:61
func JSStringCreateWithUTF8CString ¶
func JSStringCreateWithUTF8CString(string string) JSStringRef
JSStringCreateWithUTF8CString function as declared in JavaScriptCore/JSStringRef.h:68
func JSStringRetain ¶
func JSStringRetain(string JSStringRef) JSStringRef
JSStringRetain function as declared in JavaScriptCore/JSStringRef.h:76
func JSValueCreateJSONString ¶
func JSValueCreateJSONString(ctx JSContextRef, value JSValueRef, indent uint32, exception []JSValueRef) JSStringRef
JSValueCreateJSONString function as declared in JavaScriptCore/JSValueRef.h:290
func JSValueToStringCopy ¶
func JSValueToStringCopy(ctx JSContextRef, value JSValueRef, exception []JSValueRef) JSStringRef
JSValueToStringCopy function as declared in JavaScriptCore/JSValueRef.h:321
type JSType ¶
type JSType int32
JSType as declared in JavaScriptCore/JSValueRef.h:53
const ( KJSTypeUndefined JSType = iota KJSTypeNull JSType = 1 KJSTypeBoolean JSType = 2 KJSTypeNumber JSType = 3 KJSTypeString JSType = 4 KJSTypeObject JSType = 5 )
JSType enumeration from JavaScriptCore/JSValueRef.h:53
func JSValueGetType ¶
func JSValueGetType(ctx JSContextRef, value JSValueRef) JSType
JSValueGetType function as declared in JavaScriptCore/JSValueRef.h:96
type JSTypedArrayBytesDeallocator ¶
JSTypedArrayBytesDeallocator type as declared in JavaScriptCore/JSBase.h:61
func NewJSTypedArrayBytesDeallocatorRef ¶
func NewJSTypedArrayBytesDeallocatorRef(ref unsafe.Pointer) *JSTypedArrayBytesDeallocator
func (JSTypedArrayBytesDeallocator) PassRef ¶
func (x JSTypedArrayBytesDeallocator) PassRef() (ref *C.JSTypedArrayBytesDeallocator, allocs *cgoAllocMap)
func (JSTypedArrayBytesDeallocator) PassValue ¶
func (x JSTypedArrayBytesDeallocator) PassValue() (ref C.JSTypedArrayBytesDeallocator, allocs *cgoAllocMap)
type JSTypedArrayType ¶
type JSTypedArrayType int32
JSTypedArrayType as declared in JavaScriptCore/JSValueRef.h:83
const ( KJSTypedArrayTypeInt8Array JSTypedArrayType = iota KJSTypedArrayTypeInt16Array JSTypedArrayType = 1 KJSTypedArrayTypeInt32Array JSTypedArrayType = 2 KJSTypedArrayTypeUint8Array JSTypedArrayType = 3 KJSTypedArrayTypeUint8ClampedArray JSTypedArrayType = 4 KJSTypedArrayTypeUint16Array JSTypedArrayType = 5 KJSTypedArrayTypeUint32Array JSTypedArrayType = 6 KJSTypedArrayTypeFloat32Array JSTypedArrayType = 7 KJSTypedArrayTypeFloat64Array JSTypedArrayType = 8 KJSTypedArrayTypeArrayBuffer JSTypedArrayType = 9 KJSTypedArrayTypeNone JSTypedArrayType = 10 )
JSTypedArrayType enumeration from JavaScriptCore/JSValueRef.h:83
func JSValueGetTypedArrayType ¶
func JSValueGetTypedArrayType(ctx JSContextRef, value JSValueRef, exception []JSValueRef) JSTypedArrayType
JSValueGetTypedArrayType function as declared in JavaScriptCore/JSValueRef.h:188
type JSValueRef ¶
type JSValueRef C.JSValueRef
JSValueRef as declared in JavaScriptCore/JSBase.h:66
func JSEvaluateScript ¶
func JSEvaluateScript(ctx JSContextRef, script JSStringRef, thisObject JSObjectRef, sourceURL JSStringRef, startingLineNumber int32, exception []JSValueRef) JSValueRef
JSEvaluateScript function as declared in JavaScriptCore/JSBase.h:106
func JSObjectCallAsFunction ¶
func JSObjectCallAsFunction(ctx JSContextRef, object JSObjectRef, thisObject JSObjectRef, argumentCount uint, arguments []JSValueRef, exception []JSValueRef) JSValueRef
JSObjectCallAsFunction function as declared in JavaScriptCore/JSObjectRef.h:618
func JSObjectGetProperty ¶
func JSObjectGetProperty(ctx JSContextRef, object JSObjectRef, propertyName JSStringRef, exception []JSValueRef) JSValueRef
JSObjectGetProperty function as declared in JavaScriptCore/JSObjectRef.h:531
func JSObjectGetPropertyAtIndex ¶
func JSObjectGetPropertyAtIndex(ctx JSContextRef, object JSObjectRef, propertyIndex uint32, exception []JSValueRef) JSValueRef
JSObjectGetPropertyAtIndex function as declared in JavaScriptCore/JSObjectRef.h:566
func JSObjectGetPrototype ¶
func JSObjectGetPrototype(ctx JSContextRef, object JSObjectRef) JSValueRef
JSObjectGetPrototype function as declared in JavaScriptCore/JSObjectRef.h:502
func JSValueMakeBoolean ¶
func JSValueMakeBoolean(ctx JSContextRef, boolean bool) JSValueRef
JSValueMakeBoolean function as declared in JavaScriptCore/JSValueRef.h:249
func JSValueMakeFromJSONString ¶
func JSValueMakeFromJSONString(ctx JSContextRef, string JSStringRef) JSValueRef
JSValueMakeFromJSONString function as declared in JavaScriptCore/JSValueRef.h:279
func JSValueMakeNull ¶
func JSValueMakeNull(ctx JSContextRef) JSValueRef
JSValueMakeNull function as declared in JavaScriptCore/JSValueRef.h:240
func JSValueMakeNumber ¶
func JSValueMakeNumber(ctx JSContextRef, number float64) JSValueRef
JSValueMakeNumber function as declared in JavaScriptCore/JSValueRef.h:258
func JSValueMakeString ¶
func JSValueMakeString(ctx JSContextRef, string JSStringRef) JSValueRef
JSValueMakeString function as declared in JavaScriptCore/JSValueRef.h:268
func JSValueMakeUndefined ¶
func JSValueMakeUndefined(ctx JSContextRef) JSValueRef
JSValueMakeUndefined function as declared in JavaScriptCore/JSValueRef.h:232
func UlViewEvaluateScript ¶
func UlViewEvaluateScript(view ULView, js_string ULString) JSValueRef
UlViewEvaluateScript function as declared in Ultralight/CAPI.h:356
type ULAddConsoleMessageCallback ¶
type ULAddConsoleMessageCallback func(user_data unsafe.Pointer, caller ULView, source ULMessageSource, level ULMessageLevel, message ULString, line_number uint32, column_number uint32, source_id ULString)
ULAddConsoleMessageCallback type as declared in Ultralight/CAPI.h:449
func NewULAddConsoleMessageCallbackRef ¶
func NewULAddConsoleMessageCallbackRef(ref unsafe.Pointer) *ULAddConsoleMessageCallback
func (ULAddConsoleMessageCallback) PassRef ¶
func (x ULAddConsoleMessageCallback) PassRef() (ref *C.ULAddConsoleMessageCallback, allocs *cgoAllocMap)
func (ULAddConsoleMessageCallback) PassValue ¶
func (x ULAddConsoleMessageCallback) PassValue() (ref C.ULAddConsoleMessageCallback, allocs *cgoAllocMap)
type ULApp ¶
ULApp as declared in AppCore/CAPI.h:34
func UlCreateApp ¶
func UlCreateApp(settings ULSettings, config ULConfig) ULApp
UlCreateApp function as declared in AppCore/CAPI.h:95
type ULBeginLoadingCallback ¶
ULBeginLoadingCallback type as declared in Ultralight/CAPI.h:464
func NewULBeginLoadingCallbackRef ¶
func NewULBeginLoadingCallbackRef(ref unsafe.Pointer) *ULBeginLoadingCallback
func (ULBeginLoadingCallback) PassRef ¶
func (x ULBeginLoadingCallback) PassRef() (ref *C.ULBeginLoadingCallback, allocs *cgoAllocMap)
func (ULBeginLoadingCallback) PassValue ¶
func (x ULBeginLoadingCallback) PassValue() (ref C.ULBeginLoadingCallback, allocs *cgoAllocMap)
type ULBitmap ¶
ULBitmap as declared in Ultralight/CAPI.h:53
func UlCreateBitmap ¶
func UlCreateBitmap(width uint32, height uint32, format ULBitmapFormat) ULBitmap
UlCreateBitmap function as declared in Ultralight/CAPI.h:584
func UlCreateBitmapFromCopy ¶
UlCreateBitmapFromCopy function as declared in Ultralight/CAPI.h:601
func UlCreateBitmapFromPixels ¶
func UlCreateBitmapFromPixels(width uint32, height uint32, format ULBitmapFormat, row_bytes uint32, pixels unsafe.Pointer, size uint, should_copy bool) ULBitmap
UlCreateBitmapFromPixels function as declared in Ultralight/CAPI.h:591
func UlCreateEmptyBitmap ¶
func UlCreateEmptyBitmap() ULBitmap
UlCreateEmptyBitmap function as declared in Ultralight/CAPI.h:579
func UlViewGetBitmap ¶
UlViewGetBitmap function as declared in Ultralight/CAPI.h:330
type ULBitmapFormat ¶
type ULBitmapFormat int32
ULBitmapFormat as declared in Ultralight/CAPI.h:133
const ( KBitmapFormat_A8 ULBitmapFormat = iota KBitmapFormat_RGBA8 ULBitmapFormat = 1 )
ULBitmapFormat enumeration from Ultralight/CAPI.h:133
func UlBitmapGetFormat ¶
func UlBitmapGetFormat(bitmap ULBitmap) ULBitmapFormat
UlBitmapGetFormat function as declared in Ultralight/CAPI.h:622
type ULChangeCursorCallback ¶
ULChangeCursorCallback type as declared in Ultralight/CAPI.h:439
func NewULChangeCursorCallbackRef ¶
func NewULChangeCursorCallbackRef(ref unsafe.Pointer) *ULChangeCursorCallback
func (ULChangeCursorCallback) PassRef ¶
func (x ULChangeCursorCallback) PassRef() (ref *C.ULChangeCursorCallback, allocs *cgoAllocMap)
func (ULChangeCursorCallback) PassValue ¶
func (x ULChangeCursorCallback) PassValue() (ref C.ULChangeCursorCallback, allocs *cgoAllocMap)
type ULChangeTitleCallback ¶
ULChangeTitleCallback type as declared in Ultralight/CAPI.h:409
func NewULChangeTitleCallbackRef ¶
func NewULChangeTitleCallbackRef(ref unsafe.Pointer) *ULChangeTitleCallback
func (ULChangeTitleCallback) PassRef ¶
func (x ULChangeTitleCallback) PassRef() (ref *C.ULChangeTitleCallback, allocs *cgoAllocMap)
func (ULChangeTitleCallback) PassValue ¶
func (x ULChangeTitleCallback) PassValue() (ref C.ULChangeTitleCallback, allocs *cgoAllocMap)
type ULChangeTooltipCallback ¶
ULChangeTooltipCallback type as declared in Ultralight/CAPI.h:429
func NewULChangeTooltipCallbackRef ¶
func NewULChangeTooltipCallbackRef(ref unsafe.Pointer) *ULChangeTooltipCallback
func (ULChangeTooltipCallback) PassRef ¶
func (x ULChangeTooltipCallback) PassRef() (ref *C.ULChangeTooltipCallback, allocs *cgoAllocMap)
func (ULChangeTooltipCallback) PassValue ¶
func (x ULChangeTooltipCallback) PassValue() (ref C.ULChangeTooltipCallback, allocs *cgoAllocMap)
type ULChangeURLCallback ¶
ULChangeURLCallback type as declared in Ultralight/CAPI.h:419
func NewULChangeURLCallbackRef ¶
func NewULChangeURLCallbackRef(ref unsafe.Pointer) *ULChangeURLCallback
func (ULChangeURLCallback) PassRef ¶
func (x ULChangeURLCallback) PassRef() (ref *C.ULChangeURLCallback, allocs *cgoAllocMap)
func (ULChangeURLCallback) PassValue ¶
func (x ULChangeURLCallback) PassValue() (ref C.ULChangeURLCallback, allocs *cgoAllocMap)
type ULChar16 ¶
type ULChar16 uint16
ULChar16 type as declared in Ultralight/CAPI.h:43
func UlStringGetData ¶
UlStringGetData function as declared in Ultralight/CAPI.h:560
type ULCloseCallback ¶
ULCloseCallback type as declared in AppCore/CAPI.h:195
func NewULCloseCallbackRef ¶
func NewULCloseCallbackRef(ref unsafe.Pointer) *ULCloseCallback
func (ULCloseCallback) PassRef ¶
func (x ULCloseCallback) PassRef() (ref *C.ULCloseCallback, allocs *cgoAllocMap)
func (ULCloseCallback) PassValue ¶
func (x ULCloseCallback) PassValue() (ref C.ULCloseCallback, allocs *cgoAllocMap)
type ULConfig ¶
ULConfig as declared in Ultralight/CAPI.h:50
func UlCreateConfig ¶
func UlCreateConfig() ULConfig
UlCreateConfig function as declared in Ultralight/CAPI.h:174
type ULCursor ¶
type ULCursor int32
ULCursor as declared in Ultralight/CAPI.h:128
const ( KCursor_Pointer ULCursor = iota KCursor_Cross ULCursor = 1 KCursor_Hand ULCursor = 2 KCursor_IBeam ULCursor = 3 KCursor_Wait ULCursor = 4 KCursor_Help ULCursor = 5 KCursor_EastResize ULCursor = 6 KCursor_NorthResize ULCursor = 7 KCursor_NorthEastResize ULCursor = 8 KCursor_NorthWestResize ULCursor = 9 KCursor_SouthResize ULCursor = 10 KCursor_SouthEastResize ULCursor = 11 KCursor_SouthWestResize ULCursor = 12 KCursor_WestResize ULCursor = 13 KCursor_NorthSouthResize ULCursor = 14 KCursor_EastWestResize ULCursor = 15 KCursor_NorthEastSouthWestResize ULCursor = 16 KCursor_NorthWestSouthEastResize ULCursor = 17 KCursor_ColumnResize ULCursor = 18 KCursor_RowResize ULCursor = 19 KCursor_MiddlePanning ULCursor = 20 KCursor_EastPanning ULCursor = 21 KCursor_NorthPanning ULCursor = 22 KCursor_NorthEastPanning ULCursor = 23 KCursor_NorthWestPanning ULCursor = 24 KCursor_SouthPanning ULCursor = 25 KCursor_SouthEastPanning ULCursor = 26 KCursor_SouthWestPanning ULCursor = 27 KCursor_WestPanning ULCursor = 28 KCursor_Move ULCursor = 29 KCursor_VerticalText ULCursor = 30 KCursor_Cell ULCursor = 31 KCursor_ContextMenu ULCursor = 32 KCursor_Alias ULCursor = 33 KCursor_Progress ULCursor = 34 KCursor_NoDrop ULCursor = 35 KCursor_Copy ULCursor = 36 KCursor_None ULCursor = 37 KCursor_NotAllowed ULCursor = 38 KCursor_ZoomIn ULCursor = 39 KCursor_ZoomOut ULCursor = 40 KCursor_Grab ULCursor = 41 KCursor_Grabbing ULCursor = 42 KCursor_Custom ULCursor = 43 )
ULCursor enumeration from Ultralight/CAPI.h:128
type ULDOMReadyCallback ¶
ULDOMReadyCallback type as declared in Ultralight/CAPI.h:494
func NewULDOMReadyCallbackRef ¶
func NewULDOMReadyCallbackRef(ref unsafe.Pointer) *ULDOMReadyCallback
func (ULDOMReadyCallback) PassRef ¶
func (x ULDOMReadyCallback) PassRef() (ref *C.ULDOMReadyCallback, allocs *cgoAllocMap)
func (ULDOMReadyCallback) PassValue ¶
func (x ULDOMReadyCallback) PassValue() (ref C.ULDOMReadyCallback, allocs *cgoAllocMap)
type ULFinishLoadingCallback ¶
ULFinishLoadingCallback type as declared in Ultralight/CAPI.h:474
func NewULFinishLoadingCallbackRef ¶
func NewULFinishLoadingCallbackRef(ref unsafe.Pointer) *ULFinishLoadingCallback
func (ULFinishLoadingCallback) PassRef ¶
func (x ULFinishLoadingCallback) PassRef() (ref *C.ULFinishLoadingCallback, allocs *cgoAllocMap)
func (ULFinishLoadingCallback) PassValue ¶
func (x ULFinishLoadingCallback) PassValue() (ref C.ULFinishLoadingCallback, allocs *cgoAllocMap)
type ULKeyEvent ¶
type ULKeyEvent C.ULKeyEvent
ULKeyEvent as declared in Ultralight/CAPI.h:57
func UlCreateKeyEvent ¶
func UlCreateKeyEvent(_type ULKeyEventType, modifiers uint32, virtual_key_code int32, native_key_code int32, text ULString, unmodified_text ULString, is_keypad bool, is_auto_repeat bool, is_system_key bool) ULKeyEvent
UlCreateKeyEvent function as declared in Ultralight/CAPI.h:682
type ULKeyEventType ¶
type ULKeyEventType int32
ULKeyEventType as declared in Ultralight/CAPI.h:140
const ( KKeyEventType_KeyDown ULKeyEventType = iota KKeyEventType_KeyUp ULKeyEventType = 1 KKeyEventType_RawKeyDown ULKeyEventType = 2 KKeyEventType_Char ULKeyEventType = 3 )
ULKeyEventType enumeration from Ultralight/CAPI.h:140
type ULMessageLevel ¶
type ULMessageLevel int32
ULMessageLevel as declared in Ultralight/CAPI.h:81
const ( KMessageLevel_Log ULMessageLevel = 1 KMessageLevel_Warning ULMessageLevel = 2 KMessageLevel_Error ULMessageLevel = 3 KMessageLevel_Debug ULMessageLevel = 4 KMessageLevel_Info ULMessageLevel = 5 )
ULMessageLevel enumeration from Ultralight/CAPI.h:81
type ULMessageSource ¶
type ULMessageSource int32
ULMessageSource as declared in Ultralight/CAPI.h:73
const ( KMessageSource_XML ULMessageSource = iota KMessageSource_JS ULMessageSource = 1 KMessageSource_Network ULMessageSource = 2 KMessageSource_ConsoleAPI ULMessageSource = 3 KMessageSource_Storage ULMessageSource = 4 KMessageSource_AppCache ULMessageSource = 5 KMessageSource_Rendering ULMessageSource = 6 KMessageSource_CSS ULMessageSource = 7 KMessageSource_Security ULMessageSource = 8 KMessageSource_ContentBlocker ULMessageSource = 9 KMessageSource_Other ULMessageSource = 10 )
ULMessageSource enumeration from Ultralight/CAPI.h:73
type ULMonitor ¶
ULMonitor as declared in AppCore/CAPI.h:36
func UlAppGetMainMonitor ¶
UlAppGetMainMonitor function as declared in AppCore/CAPI.h:140
type ULMouseButton ¶
type ULMouseButton int32
ULMouseButton as declared in Ultralight/CAPI.h:153
const ( KMouseButton_None ULMouseButton = iota KMouseButton_Left ULMouseButton = 1 KMouseButton_Middle ULMouseButton = 2 KMouseButton_Right ULMouseButton = 3 )
ULMouseButton enumeration from Ultralight/CAPI.h:153
type ULMouseEvent ¶
type ULMouseEvent C.ULMouseEvent
ULMouseEvent as declared in Ultralight/CAPI.h:58
func UlCreateMouseEvent ¶
func UlCreateMouseEvent(_type ULMouseEventType, x int32, y int32, button ULMouseButton) ULMouseEvent
UlCreateMouseEvent function as declared in Ultralight/CAPI.h:717
type ULMouseEventType ¶
type ULMouseEventType int32
ULMouseEventType as declared in Ultralight/CAPI.h:146
const ( KMouseEventType_MouseMoved ULMouseEventType = iota KMouseEventType_MouseDown ULMouseEventType = 1 KMouseEventType_MouseUp ULMouseEventType = 2 )
ULMouseEventType enumeration from Ultralight/CAPI.h:146
type ULRenderTarget ¶
type ULRenderTarget C.ULRenderTarget
ULRenderTarget as declared in Ultralight/CAPI.h:56
type ULRenderer ¶
type ULRenderer C.ULRenderer
ULRenderer as declared in Ultralight/CAPI.h:51
func UlAppGetRenderer ¶
func UlAppGetRenderer(app ULApp) ULRenderer
UlAppGetRenderer function as declared in AppCore/CAPI.h:145
func UlCreateRenderer ¶
func UlCreateRenderer(config ULConfig) ULRenderer
UlCreateRenderer function as declared in Ultralight/CAPI.h:269
type ULResizeCallback ¶
ULResizeCallback type as declared in AppCore/CAPI.h:205
func NewULResizeCallbackRef ¶
func NewULResizeCallbackRef(ref unsafe.Pointer) *ULResizeCallback
func (ULResizeCallback) PassRef ¶
func (x ULResizeCallback) PassRef() (ref *C.ULResizeCallback, allocs *cgoAllocMap)
func (ULResizeCallback) PassValue ¶
func (x ULResizeCallback) PassValue() (ref C.ULResizeCallback, allocs *cgoAllocMap)
type ULScrollEvent ¶
type ULScrollEvent C.ULScrollEvent
ULScrollEvent as declared in Ultralight/CAPI.h:59
func UlCreateScrollEvent ¶
func UlCreateScrollEvent(_type ULScrollEventType, delta_x int32, delta_y int32) ULScrollEvent
UlCreateScrollEvent function as declared in Ultralight/CAPI.h:732
type ULScrollEventType ¶
type ULScrollEventType int32
ULScrollEventType as declared in Ultralight/CAPI.h:158
const ( KScrollEventType_ScrollByPixel ULScrollEventType = iota KScrollEventType_ScrollByPage ULScrollEventType = 1 )
ULScrollEventType enumeration from Ultralight/CAPI.h:158
type ULSettings ¶
type ULSettings C.ULSettings
ULSettings as declared in AppCore/CAPI.h:33
func UlCreateSettings ¶
func UlCreateSettings() ULSettings
UlCreateSettings function as declared in AppCore/CAPI.h:52
type ULString ¶
ULString as declared in Ultralight/CAPI.h:54
func UlCreateString ¶
UlCreateString function as declared in Ultralight/CAPI.h:540
func UlCreateStringUTF16 ¶
UlCreateStringUTF16 function as declared in Ultralight/CAPI.h:550
func UlCreateStringUTF8 ¶
UlCreateStringUTF8 function as declared in Ultralight/CAPI.h:545
func UlViewGetTitle ¶
UlViewGetTitle function as declared in Ultralight/CAPI.h:313
func UlViewGetURL ¶
UlViewGetURL function as declared in Ultralight/CAPI.h:306
type ULUpdateCallback ¶
ULUpdateCallback type as declared in AppCore/CAPI.h:118
func NewULUpdateCallbackRef ¶
func NewULUpdateCallbackRef(ref unsafe.Pointer) *ULUpdateCallback
func (ULUpdateCallback) PassRef ¶
func (x ULUpdateCallback) PassRef() (ref *C.ULUpdateCallback, allocs *cgoAllocMap)
func (ULUpdateCallback) PassValue ¶
func (x ULUpdateCallback) PassValue() (ref C.ULUpdateCallback, allocs *cgoAllocMap)
type ULUpdateHistoryCallback ¶
ULUpdateHistoryCallback type as declared in Ultralight/CAPI.h:484
func NewULUpdateHistoryCallbackRef ¶
func NewULUpdateHistoryCallbackRef(ref unsafe.Pointer) *ULUpdateHistoryCallback
func (ULUpdateHistoryCallback) PassRef ¶
func (x ULUpdateHistoryCallback) PassRef() (ref *C.ULUpdateHistoryCallback, allocs *cgoAllocMap)
func (ULUpdateHistoryCallback) PassValue ¶
func (x ULUpdateHistoryCallback) PassValue() (ref C.ULUpdateHistoryCallback, allocs *cgoAllocMap)
type ULView ¶
ULView as declared in Ultralight/CAPI.h:52
func UlCreateView ¶
func UlCreateView(renderer ULRenderer, width uint32, height uint32, transparent bool) ULView
UlCreateView function as declared in Ultralight/CAPI.h:293
func UlOverlayGetView ¶
UlOverlayGetView function as declared in AppCore/CAPI.h:290
func UlViewCreateInspectorView ¶
UlViewCreateInspectorView function as declared in Ultralight/CAPI.h:531
type ULWindow ¶
ULWindow as declared in AppCore/CAPI.h:35
func UlAppGetWindow ¶
UlAppGetWindow function as declared in AppCore/CAPI.h:115
type ULWindowFlags ¶
type ULWindowFlags int32
ULWindowFlags as declared in AppCore/CAPI.h:47
const ( KWindowFlags_Borderless ULWindowFlags = 1 KWindowFlags_Titled ULWindowFlags = 2 KWindowFlags_Resizable ULWindowFlags = 4 KWindowFlags_Maximizable ULWindowFlags = 8 )
ULWindowFlags enumeration from AppCore/CAPI.h:47