Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Display Namespace Reference

Rendering-related code. More...

Classes

class  SnapIndicator
 
class  TemporaryItem
 Provides a class to put a canvasitem temporarily on-canvas. More...
 
class  TemporaryItemList
 Provides a class that can contain active TemporaryItems on a desktop. More...
 
class  TranslucencyGroup
 

Functions

void ExtractARGB32 (guint32 px, guint32 &a, guint32 &r, guint32 &g, guint &b)
 
void ExtractRGB32 (guint32 px, guint32 &r, guint32 &g, guint &b)
 
guint AssembleARGB32 (guint32 a, guint32 r, guint32 g, guint32 b)
 
std::pair< Geom::Coord, int > get_y_and_sign (Geom::Rect const &source, Geom::Rect const &target, double const offset)
 
std::pair< Geom::Coord, int > get_x_and_sign (Geom::Rect const &source, Geom::Rect const &target, double const offset)
 

Variables

static std::map< SnapSourceType, Glib::ustring > source2string
 
static std::map< SnapTargetType, Glib::ustring > target2string
 
static double TRANSLUCENCY_AMOUNT = 0.2
 

Detailed Description

Rendering-related code.

This namespace contains code related to the renderer.

Function Documentation

◆ AssembleARGB32()

guint Inkscape::Display::AssembleARGB32 ( guint32  a,
guint32  r,
guint32  g,
guint32  b 
)
inline

Definition at line 207 of file cairo-utils.h.

References AssembleARGB32().

Referenced by AssembleARGB32().

◆ ExtractARGB32()

void Inkscape::Display::ExtractARGB32 ( guint32  px,
guint32 a,
guint32 r,
guint32 g,
guint &  b 
)
inline

Definition at line 192 of file cairo-utils.h.

References ExtractARGB32().

Referenced by ExtractARGB32().

◆ ExtractRGB32()

void Inkscape::Display::ExtractRGB32 ( guint32  px,
guint32 r,
guint32 g,
guint &  b 
)
inline

Definition at line 200 of file cairo-utils.h.

References ExtractRGB32().

Referenced by ExtractRGB32().

◆ get_x_and_sign()

std::pair< Geom::Coord, int > Inkscape::Display::get_x_and_sign ( Geom::Rect const &  source,
Geom::Rect const &  target,
double const  offset 
)

◆ get_y_and_sign()

std::pair< Geom::Coord, int > Inkscape::Display::get_y_and_sign ( Geom::Rect const &  source,
Geom::Rect const &  target,
double const  offset 
)

Variable Documentation

◆ source2string

std::map<SnapSourceType, Glib::ustring> Inkscape::Display::source2string
static
Initial value:
= {
{SNAPSOURCE_UNDEFINED, _("UNDEFINED")},
{SNAPSOURCE_BBOX_CORNER, _("Bounding box corner")},
{SNAPSOURCE_BBOX_MIDPOINT, _("Bounding box midpoint")},
{SNAPSOURCE_BBOX_EDGE_MIDPOINT, _("Bounding box side midpoint")},
{SNAPSOURCE_NODE_SMOOTH, _("Smooth node")},
{SNAPSOURCE_NODE_CUSP, _("Cusp node")},
{SNAPSOURCE_LINE_MIDPOINT, _("Line midpoint")},
{SNAPSOURCE_PATH_INTERSECTION, _("Path intersection")},
{SNAPSOURCE_RECT_CORNER, _("Corner")},
{SNAPSOURCE_CONVEX_HULL_CORNER, _("Convex hull corner")},
{SNAPSOURCE_ELLIPSE_QUADRANT_POINT, _("Quadrant point")},
{SNAPSOURCE_NODE_HANDLE, _("Handle")},
{SNAPSOURCE_GUIDE, _("Guide")},
{SNAPSOURCE_GUIDE_ORIGIN, _("Guide origin")},
{SNAPSOURCE_ROTATION_CENTER, _("Object rotation center")},
{SNAPSOURCE_OBJECT_MIDPOINT, _("Object midpoint")},
{SNAPSOURCE_IMG_CORNER, _("Corner")},
{SNAPSOURCE_TEXT_ANCHOR, _("Text anchor")},
{SNAPSOURCE_OTHER_HANDLE, _("Handle")},
{SNAPSOURCE_GRID_PITCH, _("Multiple of grid spacing")},
{SNAPSOURCE_PAGE_CORNER, _("Page corner")},
{SNAPSOURCE_PAGE_CENTER, _("Page center")},
}
@ SNAPSOURCE_NODE_CUSP
Definition snap-enums.h:37
@ SNAPSOURCE_BBOX_MIDPOINT
Definition snap-enums.h:26
@ SNAPSOURCE_GUIDE
Definition snap-enums.h:47
@ SNAPSOURCE_PATH_INTERSECTION
Definition snap-enums.h:39
@ SNAPSOURCE_UNDEFINED
Definition snap-enums.h:19
@ SNAPSOURCE_OTHER_HANDLE
Definition snap-enums.h:56
@ SNAPSOURCE_BBOX_CORNER
Definition snap-enums.h:25
@ SNAPSOURCE_TEXT_ANCHOR
Definition snap-enums.h:55
@ SNAPSOURCE_NODE_SMOOTH
Definition snap-enums.h:36
@ SNAPSOURCE_RECT_CORNER
Definition snap-enums.h:40
@ SNAPSOURCE_GUIDE_ORIGIN
Definition snap-enums.h:48
@ SNAPSOURCE_CONVEX_HULL_CORNER
Definition snap-enums.h:41
@ SNAPSOURCE_PAGE_CORNER
Definition snap-enums.h:31
@ SNAPSOURCE_GRID_PITCH
Definition snap-enums.h:57
@ SNAPSOURCE_OBJECT_MIDPOINT
Definition snap-enums.h:53
@ SNAPSOURCE_IMG_CORNER
Definition snap-enums.h:54
@ SNAPSOURCE_NODE_HANDLE
Definition snap-enums.h:43
@ SNAPSOURCE_LINE_MIDPOINT
Definition snap-enums.h:38
@ SNAPSOURCE_PAGE_CENTER
Definition snap-enums.h:30
@ SNAPSOURCE_ELLIPSE_QUADRANT_POINT
Definition snap-enums.h:42
@ SNAPSOURCE_ROTATION_CENTER
Definition snap-enums.h:52

Definition at line 42 of file snap-indicator.cpp.

Referenced by Inkscape::Display::SnapIndicator::set_new_snaptarget().

◆ target2string

std::map<SnapTargetType, Glib::ustring> Inkscape::Display::target2string
static

◆ TRANSLUCENCY_AMOUNT

double Inkscape::Display::TRANSLUCENCY_AMOUNT = 0.2
static