Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
GrDraggable Struct Reference

This class represents a single draggable point of a gradient. More...

#include <gradient-drag.h>

Public Member Functions

 GrDraggable (SPItem *item, GrPointType point_type, guint point_i, Inkscape::PaintTarget fill_or_stroke)
 
virtual ~GrDraggable ()
 
SPObjectgetServer ()
 
bool mayMerge (GrDraggable *da2)
 
int equals (GrDraggable *other)
 

Public Attributes

SPItemitem
 
GrPointType point_type
 
gint point_i
 
Inkscape::PaintTarget fill_or_stroke
 

Detailed Description

This class represents a single draggable point of a gradient.

It remembers the item which has the gradient, whether it's fill or stroke, the point type (from the GrPointType enum), and the point number (needed if more than 2 stops are present).

Definition at line 60 of file gradient-drag.h.

Constructor & Destructor Documentation

◆ GrDraggable()

GrDraggable::GrDraggable ( SPItem item,
GrPointType  point_type,
guint  point_i,
Inkscape::PaintTarget  fill_or_stroke 
)

Definition at line 740 of file gradient-drag.cpp.

References item, and sp_object_ref().

◆ ~GrDraggable()

GrDraggable::~GrDraggable ( )
virtual

Definition at line 749 of file gradient-drag.cpp.

References item, and sp_object_unref().

Member Function Documentation

◆ equals()

int GrDraggable::equals ( GrDraggable other)
inline

Definition at line 73 of file gradient-drag.h.

References fill_or_stroke, item, point_i, and point_type.

◆ getServer()

◆ mayMerge()

bool GrDraggable::mayMerge ( GrDraggable da2)

Member Data Documentation

◆ fill_or_stroke

◆ item

◆ point_i

◆ point_type


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