gtkmm: Gdk::TimeCoord Class Reference

A Gdk::TimeCoord instance contains a single event of motion history. More...

#include <gdkmm/timecoord.h>

Public Member Functions

 TimeCoord (GdkTimeCoord* gobject, bool make_a_copy=true)
 
 TimeCoord (const TimeCoord& other)
 
TimeCoordoperator= (const TimeCoord& other)
 
 TimeCoord (TimeCoord&& other) noexcept
 
TimeCoordoperator= (TimeCoord&& other) noexcept
 
 ~TimeCoord () noexcept
 
guint32 get_time () const
 
double get_value_at_axis (guint index) const
 Gets value at index axis. More...

 
GdkTimeCoord* gobj ()
 Provides access to the underlying C object. More...

 
const GdkTimeCoord* gobj () const
 Provides access to the underlying C object. More...

 

Protected Attributes

GdkTimeCoord* gobject_
 

Detailed Description

A Gdk::TimeCoord instance contains a single event of motion history.

You shouldn't be using it as a standalone object.

Constructor & Destructor Documentation

Gdk::TimeCoord::TimeCoord ( GdkTimeCoord *  gobject,
bool  make_a_copy = true 
)
explicit
Gdk::TimeCoord::TimeCoord ( const TimeCoord other)
Gdk::TimeCoord::TimeCoord ( TimeCoord&&  other)
noexcept
Gdk::TimeCoord::~TimeCoord ( )
noexcept

Member Function Documentation

guint32 Gdk::TimeCoord::get_time ( ) const
double Gdk::TimeCoord::get_value_at_axis ( guint  index) const

Gets value at index axis.

Note
Gdk::Device::get_n_axes() will tell you how many axes are stored here.
Parameters
indexIndex of an axis from which the value will be taken.
Returns
A value at index.
GdkTimeCoord* Gdk::TimeCoord::gobj ( )
inline

Provides access to the underlying C object.

const GdkTimeCoord* Gdk::TimeCoord::gobj ( ) const
inline

Provides access to the underlying C object.

TimeCoord& Gdk::TimeCoord::operator= ( const TimeCoord other)
TimeCoord& Gdk::TimeCoord::operator= ( TimeCoord&&  other)
noexcept

Member Data Documentation

GdkTimeCoord* Gdk::TimeCoord::gobject_
protected