Krita Source Code Documentation
Loading...
Searching...
No Matches
boost::polygon::point_mutable_traits< QPoint > Struct Reference

Static Public Member Functions

static QPoint construct (int x_value, int y_value)
 
static void set (QPoint &point, orientation_2d orient, int value)
 

Detailed Description

Definition at line 32 of file KoPolygonUtils.cpp.

Member Function Documentation

◆ construct()

static QPoint boost::polygon::point_mutable_traits< QPoint >::construct ( int x_value,
int y_value )
inlinestatic

Definition at line 39 of file KoPolygonUtils.cpp.

39 {
40 QPoint retval;
41 retval.rx() = x_value;
42 retval.ry() = y_value;
43 return retval;
44 }

◆ set()

static void boost::polygon::point_mutable_traits< QPoint >::set ( QPoint & point,
orientation_2d orient,
int value )
inlinestatic

Definition at line 33 of file KoPolygonUtils.cpp.

33 {
34 if(orient == HORIZONTAL)
35 point.rx() = value;
36 else
37 point.ry() = value;
38 }
float value(const T *src, size_t ch)

References value().


The documentation for this struct was generated from the following file: