Trait components::StyleExt [−][src]
pub trait StyleExt: 'static { fn load_from_data(&self, id: &str, data: &str) -> Result<(), Error>; fn load_from_file(&self, filename: &str) -> Result<(), Error>; fn load_from_resource(&self, path: &str) -> Result<(), Error>; fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; }
Required methods
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.
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.
fn load_from_resource(&self, path: &str) -> Result<(), Error>
[src]
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
Implementors
impl<O: Is<Style>> StyleExt for O
[src]
impl<O: Is<Style>> StyleExt for O
[src]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.
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.