CSS-like styling for widgets, implementing the StyleProvider base class. More...
List of all members.
Detailed Description
CSS-like styling for widgets, implementing the StyleProvider base class.
It is able to parse <ulink url="http://www.w3.org/TR/CSS2">CSS</ulink>-like input in order to style widgets.
An application can cause GTK+ to parse a specific CSS style sheet by calling load_from_file() and adding the provider with StyleContext::add_provider() or StyleContext::add_provider_for_screen(). In addition, certain files will be read when GTK+ is initialized. See the <ulink url="http://library.gnome.org/devel/gtk3/unstable/GtkCssProvider.html#GtkCssProvider.description">GtkCssProvider documentation</ulink> for details of these default files and details of the stylesheets.
- Since gtkmm 3.0:
Constructor & Destructor Documentation
virtual Gtk::CssProvider::~CssProvider |
( |
) |
[virtual] |
Gtk::CssProvider::CssProvider |
( |
) |
[protected] |
Member Function Documentation
const GtkCssProvider* Gtk::CssProvider::gobj |
( |
) |
const [inline] |
GtkCssProvider* Gtk::CssProvider::gobj |
( |
) |
[inline] |
GtkCssProvider* Gtk::CssProvider::gobj_copy |
( |
) |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool Gtk::CssProvider::load_from_data |
( |
const std::string & |
data ) |
|
Loads data into this css provider, making it clear any previously loaded information.
- Parameters:
-
data | CSS data loaded in memory. |
- Returns:
- True if the data could be loaded.
bool Gtk::CssProvider::load_from_path |
( |
const std::string & |
path ) |
|
Friends And Related Function Documentation
A Glib::wrap() method for this object.
- Parameters:
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns:
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: