|
| CssProvider (CssProvider&& src) noexcept |
|
CssProvider& | operator= (CssProvider&& src) noexcept |
|
| ~CssProvider () noexceptoverride |
|
GtkCssProvider* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkCssProvider* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkCssProvider* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::ustring | to_string () const |
| Converts the provider into a string representation in CSS format. More...
|
|
bool | load_from_data (const std::string& data) |
| Loads data into this css provider, making it clear any previously loaded information. More...
|
|
bool | load_from_file (const Glib::RefPtr< const Gio::File >& file) |
| Loads the data contained in file into css_provider, making it clear any previously loaded information. More...
|
|
bool | load_from_path (const std::string& path) |
| Loads the data contained in path into css_provider, making it clear any previously loaded information. More...
|
|
void | load_from_resource (const std::string& resource_path) |
| Loads the data contained in the resource at resource_path into the Gtk::CssProvider, clearing any previously loaded information. More...
|
|
Glib::SignalProxy< void, const Glib::RefPtr< const CssSection >&, const Glib::Error& > | signal_parsing_error () |
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) |
|
void | remove_destroy_notify_callback (void *data) const |
|
| StyleProvider (StyleProvider&& src) noexcept |
|
StyleProvider& | operator= (StyleProvider&& src) noexcept |
|
| ~StyleProvider () noexceptoverride |
|
GtkStyleProvider* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkStyleProvider* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
| ~Interface () noexceptoverride |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
CSS-like styling for widgets, implementing the StyleProvider base class.
It is able to parse CSS-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 GtkCssProvider documentation for details of these default files and details of the stylesheets.
- Since gtkmm 3.0:
- Parameters
-
- Slot Prototype:
void on_my_parsing_error(const Glib::RefPtr<const CssSection>& section, const Glib::Error& error)
Signals that a parsing error occurred. the path, line and position describe the actual location of the error as accurately as possible.
Parsing errors are never fatal, so the parsing will resume after the error. Errors may however cause parts of the given data or even all of it to not be parsed at all. So it is a useful idea to check that the parsing succeeds by connecting to this signal.
Note that this signal may be emitted at any time as the css provider may opt to defer parsing parts or all of the input to a later time than when a loading function was called.
- Parameters
-
section | Section the error happened in. |