[][src]Struct ul::config::UltralightConfig

pub struct UltralightConfig { /* fields omitted */ }

Methods

impl UltralightConfig[src]

pub fn new() -> UltralightConfig[src]

pub fn to_ulconfig(&self) -> ULConfig[src]

pub fn enableImages(&mut self, flag: bool)[src]

Set whether images should be enabled (Default = true)

pub fn enableJavaScript(&mut self, flag: bool)[src]

Set whether JavaScript should be eanbled (Default = true)

pub fn useBGRAForOffscreenRendering(&mut self, flag: bool)[src]

Set whether we should use BGRA byte order (instead of RGBA) for View bitmaps. (Default = false)

pub fn animationTimerDelay(&mut self, flag: f64)[src]

Set the amount of time to wait before triggering another repaint when a CSS animation is active. (Default = 1.0 / 60.0)

pub fn deviceScaleHint(&mut self, flag: f64)[src]

Set the amount that the application DPI has been scaled, used for oversampling raster shapes. (Default = 1f64)

pub fn memoryCacheSize(&mut self, flag: u32)[src]

Set the size of WebCore's memory cache for decoded images, scripts, and other assets in bytes. (Default = 64 * 1024 * 1024)

pub fn pageCacheSize(&mut self, flag: u32)[src]

Set the number of pages to keep in the cache. (Default = 0)

pub fn fontFamilyStandard(&mut self, flag: String)[src]

Set default font-family to use (Default = Times New Roman)

pub fn fontFamilyFixed(&mut self, flag: String)[src]

Set default font-family to use for fixed fonts, eg pre and code tags. (Default = Courier New)

pub fn fontFamilySerif(&mut self, flag: String)[src]

Set default font-family to use for serif fonts. (Default = Times New Roman)

pub fn fontFamilySansSerif(&mut self, flag: String)[src]

Set default font-family to use for sans-serif fonts. (Default = Arial)

pub fn userAgent(&mut self, flag: String)[src]

Set user agent string. (See <Ultralight/platform/Config.h> for the default)

pub fn userStylesheet(&mut self, flag: String)[src]

Set user stylesheet (CSS). (Default = Empty)

Trait Implementations

impl Default for UltralightConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.