Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeMeshGradientHandles::Handle Struct Reference

#include <KoShapeMeshGradientHandles.h>

Public Types

enum  Index { First = 1 , Second }
 
enum  Type { None , Corner , BezierHandle }
 

Public Member Functions

SvgMeshPosition getPosition () const
 
 Handle ()
 
 Handle (Type t, const QPointF &p, int row, int col, SvgMeshPatch::Type segmentType, Index index=First)
 

Public Attributes

int col {0}
 
Index index { First }
 
QPointF pos
 
int row {0}
 
SvgMeshPatch::Type segmentType {SvgMeshPatch::Top}
 
Type type {None}
 

Detailed Description

Definition at line 20 of file KoShapeMeshGradientHandles.h.

Member Enumeration Documentation

◆ Index

◆ Type

Constructor & Destructor Documentation

◆ Handle() [1/2]

KoShapeMeshGradientHandles::Handle::Handle ( )
inline

◆ Handle() [2/2]

KoShapeMeshGradientHandles::Handle::Handle ( Type t,
const QPointF & p,
int row,
int col,
SvgMeshPatch::Type segmentType,
Index index = First )
inline

Member Function Documentation

◆ getPosition()

SvgMeshPosition KoShapeMeshGradientHandles::Handle::getPosition ( ) const
inline

Definition at line 41 of file KoShapeMeshGradientHandles.h.

References col, row, and segmentType.

Member Data Documentation

◆ col

int KoShapeMeshGradientHandles::Handle::col {0}

Definition at line 48 of file KoShapeMeshGradientHandles.h.

48{0};

◆ index

Index KoShapeMeshGradientHandles::Handle::index { First }

Definition at line 50 of file KoShapeMeshGradientHandles.h.

50{ First }; // first or the second bezier handle

◆ pos

QPointF KoShapeMeshGradientHandles::Handle::pos

Definition at line 46 of file KoShapeMeshGradientHandles.h.

◆ row

int KoShapeMeshGradientHandles::Handle::row {0}

Definition at line 47 of file KoShapeMeshGradientHandles.h.

47{0};

◆ segmentType

SvgMeshPatch::Type KoShapeMeshGradientHandles::Handle::segmentType {SvgMeshPatch::Top}

Definition at line 49 of file KoShapeMeshGradientHandles.h.

◆ type

Type KoShapeMeshGradientHandles::Handle::type {None}

Definition at line 45 of file KoShapeMeshGradientHandles.h.

45{None};

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