BrightSign Object Reference Manual (FW 5.1) User Manual
Page 72

64
•
SetZoomLevel(scale_factor as Float): Adjusts the scale factor for the displayed page (the default equals
1.0).
•
EnableSecurity(a As Boolean) As Boolean: Enables security checks by the Webkit. Setting this method
to False disables security checks.
•
EnableMouseEvents() As Boolean: Enables response to button presses if True. Setting this method to False
(the default) disables this feature.
•
SetPortrait(portrait_mode As Boolean) As Boolean: Sets the screen orientation to portrait if True. If
this method is False (the default), the screen is oriented as a landscape.
•
SetAlpha(alpha As Integer) As Boolean: Sets the overall alpha level for the widget (the default equals
255).
•
EnableScrollbars(scrollbars As Boolean) As Boolean: Enables automatic scrollbars for content that
does not fit into the viewport if True. Setting this method to False (the default) disables this feature.
•
AddFont(filename As String) As Boolean: Makes a font available for text rendering. The AddFont()
method can be used to supply additional or custom typefaces for the WebKit renderer. These should be supplied in
the form of TTF files, and the filename should be passed as the argument to
AddFont().
•
SetHWZDefault(default As String): Sets the default HWZ mode for HTML video. Normally, HWZ must be
enabled in each
<video> tag, but passing "on" to this string enables HWZ for all <video> elements.
•
SetUserStylesheet(URI As String) As Boolean: Applies the specified user stylesheet to the page(s)
loaded in the widget. The parameter can be a URI specifying any
file: resource in the storage. The stylesheet
can also be specified as inline data in the following form: "data:text/css;charset=utf-8;base64,<base64 encoded
data>". This method will fail if you specify the inline data in any other order or if you use any data format other than
base64.
•
SetAppCacheDir(file_path As String) As Boolean: Sets the directory to use for storing the application
cache (which services
<html manifest="example.appcache"> tags). The file path is passed to the method
as a string (e.g. "SD:/appcache").
•
SetAppCacheSize(maximum As Integer) As Boolean: Sets the maximum size (in bytes) for the
application cache. Changing the storage size of the application cache will clear the cache and rebuild the cache