wxGraphicsPath

wxGraphicsPath

Creation Parameters:

  • atom renderer [=default graphics renderer] The graphics renderer to use

    A wxGraphicsPath is a native representation of an geometric path. The contents are specific an private to the respective renderer. Instances are ref counted and can therefore be assigned as usual. The only way to get a valid instance is via a CreatePath call on the graphics context or the renderer instance.instance

  • Functions/Procedures
    Supertopics

    wxGraphicsPath

    [proc]
    path_add
    ( atom path, atom path_to_add )

    Category: wxGraphicsPath

    Adds another path.


    wxGraphicsPath

    [proc]
    path_add_arc
    ( atom path, atom x, atom y, atom r, atom start_angle, atom end_angle, atom clockwise )

    Category: wxGraphicsPath

    Adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle.


    wxGraphicsPath

    [proc]
    path_add_arc_to_point
    ( atom path, atom x1, atom y1, atom x2, atom y2, atom r )

    Category: wxGraphicsPath

    Appends a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1).


    wxGraphicsPath

    [proc]
    path_add_circle
    ( atom path, atom x, atom y, atom r )

    Category: wxGraphicsPath

    Appends a circle around (x,y) with radius r as a new closed subpath.


    wxGraphicsPath

    [proc]
    path_add_curve_to_point
    ( atom path, atom cx1, atom cy1, atom cx2, atom cy2, atom x, atom y )

    Category: wxGraphicsPath

    Adds a cubic Bezier curve from the current point, using two control points and an end point.


    wxGraphicsPath

    [proc]
    path_add_ellipse
    ( atom path, atom x, atom y, atom w, atom h )

    Category: wxGraphicsPath

    Appends an ellipse fitting into the passed in rectangle.


    wxGraphicsPath

    [proc]
    path_add_line_to_point
    ( atom path, atom x, atom y )

    Category: wxGraphicsPath

    Adds a straight line from the current point to (x,y).


    wxGraphicsPath

    [proc]
    path_add_quad_curve_to_point
    ( atom path, atom cx, atom cy, atom x, atom y )

    Category: wxGraphicsPath

    Adds a quadratic Bezier curve from the current point, using a control point and an end point.


    wxGraphicsPath

    [proc]
    path_add_rectangle
    ( atom path, atom x, atom y, atom w, atom h )

    Category: wxGraphicsPath

    Appends a rectangle as a new closed subpath.


    wxGraphicsPath

    [proc]
    path_add_rounded_rectangle
    ( atom path, atom x, atom y, atom w, atom h, atom radius )

    Category: wxGraphicsPath

    Appends a rounded rectangle as a new closed subpath.


    wxGraphicsPath

    [proc]
    path_close_subpath
    ( atom path )

    Category: wxGraphicsPath

    Closes the current sub-path.


    wxGraphicsPath

    [func]
    path_contains
    ( atom path, atom x, atom y, atom fill_style )

    Category: wxGraphicsPath

    Returns true if the point is within the path.


    wxGraphicsPath

    [func]
    path_get_box
    ( atom path )

    Category: wxGraphicsPath

    Gets the bounding box enclosing all points (possibly including control points).


    wxGraphicsPath

    [func]
    path_get_current_point
    ( atom path )

    Category: wxGraphicsPath

    Gets the last point of the current path, {0,0} if not yet set.


    wxGraphicsPath

    [func]
    path_get_native
    ( atom path )

    Category: wxGraphicsPath

    Returns the native path (CGPathRef for Core Graphics, Path pointer for GDIPlus and a cairo_path_t pointer for cairo).


    wxGraphicsPath

    [proc]
    path_move_to
    ( atom path, atom x, atom y )

    Category: wxGraphicsPath

    Begins a new subpath at (x,y)


    wxGraphicsPath

    [func]
    path_transform
    ( atom path, atom matrix )

    Category: wxGraphicsPath

    Transforms each point of this path by the matrix.


    wxGraphicsPath

    [func]
    path_unget_native_path
    ( atom path, atom native )

    Category: wxGraphicsPath

    Gives back the native path returned by GetNativePath() because there might be some deallocations necessary (eg on cairo the native path returned by GetNativePath is newly allocated each time).