gtkmm: Gtk::ExpressionBase Class Reference

Base class for Gtk::Expression. More...

#include <gtkmm/expression.h>

Inheritance diagram for Gtk::ExpressionBase:

Public Types

using SlotNotify = sigc::slot< void()>
 For instance: void on_notify();. More...

 

Public Member Functions

void reference () const
 Increment the reference count for this object. More...

 
void unreference () const
 Decrement the reference count for this object. More...

 
GtkExpression* gobj ()
 Provides access to the underlying C instance. More...

 
const GtkExpression* gobj () const
 Provides access to the underlying C instance. More...

 
GtkExpression* gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...

 
 ExpressionBase ()=delete
 
 ExpressionBase (const ExpressionBase&)=delete
 
ExpressionBaseoperator= (const ExpressionBase&)=delete
 
GType get_value_type () const
 Gets the GType that this expression evaluates to. More...

 
bool is_static () const
 Checks if the expression is static. More...

 

Protected Member Functions

void operator delete (void*, std::size_t)
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::ExpressionBasewrap (GtkExpression* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...

 

Detailed Description

Member Typedef Documentation

using Gtk::ExpressionBase::SlotNotify = sigc::slot<void()>

For instance: void on_notify();.

Callback called by Gtk::Expression::watch() when the expression value changes.

Constructor & Destructor Documentation

Gtk::ExpressionBase::ExpressionBase ( )
delete
Gtk::ExpressionBase::ExpressionBase ( const ExpressionBase )
delete

Member Function Documentation

GType Gtk::ExpressionBase::get_value_type ( ) const

Gets the GType that this expression evaluates to.

This type is constant and will not change over the lifetime of this expression.

Returns
The type returned from Gtk::Expression::evaluate().
GtkExpression* Gtk::ExpressionBase::gobj ( )

Provides access to the underlying C instance.

const GtkExpression* Gtk::ExpressionBase::gobj ( ) const

Provides access to the underlying C instance.

GtkExpression* Gtk::ExpressionBase::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

bool Gtk::ExpressionBase::is_static ( ) const

Checks if the expression is static.

A static expression will never change its result when Gtk::Expression::evaluate() is called on it with the same arguments.

That means a call to Gtk::Expression::watch() is not necessary because it will never trigger a notify.

Returns
true if the expression is static.
void Gtk::ExpressionBase::operator delete ( void *  ,
std::size_t   
)
protected
ExpressionBase& Gtk::ExpressionBase::operator= ( const ExpressionBase )
delete
void Gtk::ExpressionBase::reference ( ) const

Increment the reference count for this object.

You should never need to do this manually - use the object via a RefPtr instead.

void Gtk::ExpressionBase::unreference ( ) const

Decrement the reference count for this object.

You should never need to do this manually - use the object via a RefPtr instead.

Friends And Related Function Documentation

Glib::RefPtr< Gtk::ExpressionBase > wrap ( GtkExpression *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse 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.