Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
PointHandle Class Reference

#include <toy-framework-2.h>

Inheritance diagram for PointHandle:
Handle

Public Member Functions

 PointHandle (double x, double y)
 
 PointHandle (Geom::Point pt)
 
 PointHandle ()
 
void draw (cairo_t *cr, bool annotes=false) override
 
void * hit (Geom::Point mouse) override
 
void move_to (void *hit, Geom::Point om, Geom::Point m) override
 
void load (FILE *f) override
 
void save (FILE *f) override
 
- Public Member Functions inherited from Handle
 Handle ()
 
virtual ~Handle ()
 

Public Attributes

Geom::Point pos
 
- Public Attributes inherited from Handle
std::string name
 
float rgb [3]
 

Detailed Description

Definition at line 166 of file toy-framework-2.h.

Constructor & Destructor Documentation

◆ PointHandle() [1/3]

PointHandle::PointHandle ( double  x,
double  y 
)
inline

Definition at line 168 of file toy-framework-2.h.

◆ PointHandle() [2/3]

PointHandle::PointHandle ( Geom::Point  pt)
inline

Definition at line 169 of file toy-framework-2.h.

◆ PointHandle() [3/3]

PointHandle::PointHandle ( )
inline

Definition at line 170 of file toy-framework-2.h.

Member Function Documentation

◆ draw()

void PointHandle::draw ( cairo_t cr,
bool  annotes = false 
)
overridevirtual

Implements Handle.

Definition at line 852 of file toy-framework-2.cpp.

References draw_circ(), and pos.

Referenced by Slider::draw().

◆ hit()

void * PointHandle::hit ( Geom::Point  mouse)
overridevirtual

Implements Handle.

Definition at line 856 of file toy-framework-2.cpp.

References Geom::distance(), and pos.

Referenced by Slider::hit().

◆ load()

void PointHandle::load ( FILE *  f)
overridevirtual

Implements Handle.

Definition at line 866 of file toy-framework-2.cpp.

References pos, and read_point().

Referenced by Slider::load().

◆ move_to()

void PointHandle::move_to ( void *  hit,
Geom::Point  om,
Geom::Point  m 
)
overridevirtual

Implements Handle.

Definition at line 862 of file toy-framework-2.cpp.

References pos.

Referenced by Slider::move_to().

◆ save()

void PointHandle::save ( FILE *  f)
overridevirtual

Implements Handle.

Definition at line 870 of file toy-framework-2.cpp.

References pos.

Referenced by Slider::save().

Member Data Documentation

◆ pos

Geom::Point PointHandle::pos

The documentation for this class was generated from the following files: