Krita Source Code Documentation
Loading...
Searching...
No Matches
KoInsets Struct Reference

#include <KoInsets.h>

Public Member Functions

void clear ()
 clears the insets so all sides are set to zero
 
 KoInsets ()
 
 KoInsets (qreal top, qreal left, qreal bottom, qreal right)
 

Public Attributes

qreal bottom
 Bottom inset.
 
qreal left
 Left inset.
 
qreal right
 Right inset.
 
qreal top
 Top inset.
 

Detailed Description

An Insets object is a representation of the strokes of a shape.

Definition at line 17 of file KoInsets.h.

Constructor & Destructor Documentation

◆ KoInsets() [1/2]

KoInsets::KoInsets ( qreal top,
qreal left,
qreal bottom,
qreal right )
inline

Constructor.

Parameters
topthe inset at the top.
leftthe inset at the left
bottomthe inset at the bottom
rightthe inset at the right

Definition at line 27 of file KoInsets.h.

28 : top(top)
29 , bottom(bottom)
30 , left(left)
31 , right(right)
32 {
33 }
qreal bottom
Bottom inset.
Definition KoInsets.h:50
qreal right
Right inset.
Definition KoInsets.h:52
qreal top
Top inset.
Definition KoInsets.h:49
qreal left
Left inset.
Definition KoInsets.h:51

◆ KoInsets() [2/2]

KoInsets::KoInsets ( )
inline

Constructor. Initializes all values to 0

Definition at line 38 of file KoInsets.h.

38 : top(0.), bottom(0.), left(0.), right(0.) {
39 }

Member Function Documentation

◆ clear()

void KoInsets::clear ( )
inline

clears the insets so all sides are set to zero

Definition at line 42 of file KoInsets.h.

42 {
43 top = 0;
44 bottom = 0;
45 left = 0;
46 right = 0;
47 }

Member Data Documentation

◆ bottom

qreal KoInsets::bottom

Bottom inset.

Definition at line 50 of file KoInsets.h.

◆ left

qreal KoInsets::left

Left inset.

Definition at line 51 of file KoInsets.h.

◆ right

qreal KoInsets::right

Right inset.

Definition at line 52 of file KoInsets.h.

◆ top

qreal KoInsets::top

Top inset.

Definition at line 49 of file KoInsets.h.


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