Gtk::StylePropertyBase Class Reference

Base class for widget style properties. More...

`#include <gtkmm/styleproperty.h>`

Inheritance diagram for Gtk::StylePropertyBase:
[legend]

## Public Member Functions

Glib::ustring | get_name () const
| Returns the name of the style property. More...

## Protected Member Functions

| StylePropertyBase (Gtk::Widget& widget, GType value_type)
| Constructs a style property of type value_type for widget. More...
| ~StylePropertyBase () noexcept
bool | lookup_style_property (const Glib::ustring& name)
| Checks if the style property has already been installed. More...
void | install_style_property (GParamSpec* param_spec)
| Installs the style property specified by the given param_spec. More...
const char* | get_name_internal () const
| Returns the name of the style property. More...

## Protected Attributes

Gtk::Widget* | widget_
GType | value_type_
GParamSpec* | param_spec_

## Detailed Description

Base class for widget style properties.

This class manages the value type-agnostic bits of style properties.

Since gtkmm 3.16:

## Constructor & Destructor Documentation

## StylePropertyBase()

Gtk::StylePropertyBase::StylePropertyBase | ( | Gtk::Widget& | widget,
|  | GType | value_type
| ) |  |

protected

Constructs a style property of type value_type for widget.

The property is not registered in Gtk, call install_style_property() in order to do that. The properties are usually installed on the initialization of the first instance of a widget.

## ~StylePropertyBase()

Gtk::StylePropertyBase::~StylePropertyBase | ( |  | ) |

protected noexcept

## Member Function Documentation

## get_name()

Glib::ustring Gtk::StylePropertyBase::get_name | ( |  | ) | const

Returns the name of the style property.

## get_name_internal()

const char* Gtk::StylePropertyBase::get_name_internal | ( |  | ) | const

protected

Returns the name of the style property.

## install_style_property()

void Gtk::StylePropertyBase::install_style_property | ( | GParamSpec * | param_spec | ) |

protected

Installs the style property specified by the given param_spec.

## lookup_style_property()

bool Gtk::StylePropertyBase::lookup_style_property | ( | const Glib::ustring & | name | ) |

protected

Checks if the style property has already been installed.

## Member Data Documentation

## param_spec_

GParamSpec* Gtk::StylePropertyBase::param_spec_

protected

## value_type_

GType Gtk::StylePropertyBase::value_type_

protected

## widget_

Gtk::Widget* Gtk::StylePropertyBase::widget_

protected