Picasso API  2.8
Functions

Functions

PEXPORT void PICAPI ps_clip (ps_context *ctx)
 Clipping the current path, using the current fill rule. After called, the current path will be cleared from the context. More...
 
PEXPORT void PICAPI ps_clip_path (ps_context *ctx, const ps_path *path, ps_fill_rule rule)
 Clipping specified path, using the given fill rule. More...
 
PEXPORT void PICAPI ps_clip_rect (ps_context *ctx, const ps_rect *rect)
 Clipping specified rectangle. More...
 
PEXPORT void PICAPI ps_scissor_rect (ps_context *ctx, const ps_rect *rect)
 The fast way to clipping specified rectangle, the clip rect can not be transformed by world matrix. More...
 
PEXPORT void PICAPI ps_clip_rects (ps_context *ctx, const ps_rect *rects, unsigned int num_rects)
 Clipping specified area defined by an array of rectangles. More...
 
PEXPORT void PICAPI ps_reset_clip (ps_context *ctx)
 Clear the clipping area from the context. More...
 

Detailed Description

Function Documentation

◆ ps_clip()

void ps_clip ( ps_context ctx)

Clipping the current path, using the current fill rule. After called, the current path will be cleared from the context.

Parameters
ctxPointer to an existing context object.
See also
ps_clip_path, ps_clip_rect, ps_clip_rects, ps_reset_clip

◆ ps_clip_path()

void ps_clip_path ( ps_context ctx,
const ps_path path,
ps_fill_rule  rule 
)

Clipping specified path, using the given fill rule.

Parameters
ctxPointer to an existing context object.
pathThe path which will be clipped.
ruleThe rule of the path.
See also
ps_clip, ps_clip_rect, ps_clip_rects, ps_reset_clip

◆ ps_clip_rect()

void ps_clip_rect ( ps_context ctx,
const ps_rect rect 
)

Clipping specified rectangle.

Parameters
ctxPointer to an existing context object.
rectThe rectangle which will be clipped.
See also
ps_clip, ps_clip_path, ps_clip_rects, ps_reset_clip, ps_scissor_rect

◆ ps_clip_rects()

void ps_clip_rects ( ps_context ctx,
const ps_rect rects,
unsigned int  num_rects 
)

Clipping specified area defined by an array of rectangles.

Parameters
ctxPointer to an existing context object.
rectsThe array of rectangles which will be clipped.
num_rectsThe number of array entries.
See also
ps_clip, ps_clip_path, ps_clip_rect, ps_reset_clip

◆ ps_reset_clip()

void ps_reset_clip ( ps_context ctx)

Clear the clipping area from the context.

Parameters
ctxPointer to an existing context object.
See also
ps_clip, ps_clip_path, ps_clip_rect, ps_clip_rects

◆ ps_scissor_rect()

void ps_scissor_rect ( ps_context ctx,
const ps_rect rect 
)

The fast way to clipping specified rectangle, the clip rect can not be transformed by world matrix.

Parameters
ctxPointer to an existing context object.
rectThe rectangle which will be clipped.
Note
This function is deprecated, will be remove feature.
See also
ps_clip, ps_clip_path, ps_clip_rects, ps_reset_clip, ps_clip_rect