[−][src]Struct ul::config::UltralightConfig
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]
fn default() -> UltralightConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for UltralightConfig
impl Send for UltralightConfig
impl Sync for UltralightConfig
impl Unpin for UltralightConfig
impl UnwindSafe for UltralightConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,