gtkmm  4.8.0
Public Member Functions | Protected Attributes | List of all members
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

◆ TimeCoord() [1/3]

Gdk::TimeCoord::TimeCoord ( GdkTimeCoord *  gobject,
bool  make_a_copy = true 
)
explicit

◆ TimeCoord() [2/3]

Gdk::TimeCoord::TimeCoord ( const TimeCoord other)

◆ TimeCoord() [3/3]

Gdk::TimeCoord::TimeCoord ( TimeCoord &&  other)
noexcept

◆ ~TimeCoord()

Gdk::TimeCoord::~TimeCoord ( )
noexcept

Member Function Documentation

◆ get_time()

guint32 Gdk::TimeCoord::get_time ( ) const

◆ get_value_at_axis()

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.

◆ gobj() [1/2]

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

Provides access to the underlying C object.

◆ gobj() [2/2]

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

Provides access to the underlying C object.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ gobject_

GdkTimeCoord* Gdk::TimeCoord::gobject_
protected