Trait ux::StyleExt[][src]

pub trait StyleExt: 'static {
    pub fn load_from_data(&self, id: &str, data: &str) -> Result<(), Error>;
pub fn load_from_file(&self, filename: &str) -> Result<(), Error>;
pub fn load_from_resource(&self, path: &str) -> Result<(), Error>;
pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Required methods

pub fn load_from_data(&self, id: &str, data: &str) -> Result<(), Error>[src]

load_from_data: @style: a #Style @d: identifier of the style sheet to load @data: CSS data to parse @error: a #GError or #None

Load style information from @data, using @id to identify the stylesheet. @id is usually the file name of the style sheet, which is used in the search path when loading url resources.

returns: #true if the style information was loaded successfully. Returns #false on error.

pub fn load_from_file(&self, filename: &str) -> Result<(), Error>[src]

load_from_file: @style: a #Style @filename: filename of the style sheet to load @error: a #GError or #None

Load style information from the specified file.

returns: #true if the style information was loaded successfully. Returns #false on error.

pub fn load_from_resource(&self, path: &str) -> Result<(), Error>[src]

pub fn connect_changed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> StyleExt for O where
    O: Is<Style>, 
[src]

pub fn load_from_data(&self, id: &str, data: &str) -> Result<(), Error>[src]

load_from_data: @style: a #Style @d: identifier of the style sheet to load @data: CSS data to parse @error: a #GError or #None

Load style information from @data, using @id to identify the stylesheet. @id is usually the file name of the style sheet, which is used in the search path when loading url resources.

returns: #true if the style information was loaded successfully. Returns #false on error.

pub fn load_from_file(&self, filename: &str) -> Result<(), Error>[src]

load_from_file: @style: a #Style @filename: filename of the style sheet to load @error: a #GError or #None

Load style information from the specified file.

returns: #true if the style information was loaded successfully. Returns #false on error.

Loading content...