Class: Gtk::CssProvider
- Inherits:
-
Object
- Object
- Gtk::CssProvider
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#load_from_data(data, length) ⇒ TrueClass
Loads data into css_provider, and by doing so clears any previously loaded information.
-
#load_from_file(file) ⇒ TrueClass
Loads the data contained in file into css_provider, making it clear any previously loaded information.
-
#load_from_path(path) ⇒ TrueClass
Loads the data contained in path into css_provider, making it clear any previously loaded information.
-
#load_from_resource(resource_path) ⇒ nil
Loads the data contained in the resource at resource_path into the Gtk::CssProvider, clearing any previously loaded information.
-
#new ⇒ Gtk::CssProvider
Returns a newly created Gtk::CssProvider.
-
#to_string ⇒ String
Converts the provider into a string representation in CSS format.
Instance Method Details
#load_from_data(data, length) ⇒ TrueClass
Loads data into css_provider, and by doing so clears any previously loaded information.
#load_from_file(file) ⇒ TrueClass
Loads the data contained in file into css_provider, making it clear any previously loaded information.
#load_from_path(path) ⇒ TrueClass
Loads the data contained in path into css_provider, making it clear any previously loaded information.
#load_from_resource(resource_path) ⇒ nil
Loads the data contained in the resource at resource_path into the Gtk::CssProvider, clearing any previously loaded information.
To track errors while loading CSS, connect to the Gtk::CssProvider::parsing-error signal.
#new ⇒ Gtk::CssProvider
Returns a newly created Gtk::CssProvider.
#to_string ⇒ String
Converts the provider into a string representation in CSS format.
Using gtk_css_provider_load_from_data() with the return value from this function on a new provider created with gtk_css_provider_new() will basically create a duplicate of this provider.