php man page for cairo_has_current_point

Query: cairo_has_current_point

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CAIRO_HAS_CURRENT_POINT(3)						 1						CAIRO_HAS_CURRENT_POINT(3)

CairoContext::hasCurrentPoint - The hasCurrentPoint purpose

       Object oriented style (method):

SYNOPSIS
public bool CairoContext::hasCurrentPoint (void )
DESCRIPTION
Procedural style: bool cairo_has_current_point (CairoContext $context) Returns whether a current point is defined on the current path. See CairoContext::getCurrentPoint for details on the current point.
PARAMETERS
o $context - A valid CairoContext object.
RETURN VALUES
Whether a current point is defined
EXAMPLES
Example #1 Object oriented style <?php $s = new CairoImageSurface(CairoFormat::ARGB32, 100, 100); $c = new CairoContext($s); var_dump($c->hasCurrentPoint()); $c->moveTo(10, 10); var_dump($c->hasCurrentPoint()); ?> The above example will output: bool(false) bool(true) Example #2 Procedural style <?php $s = cairo_image_surface_create(CAIRO_SURFACE_TYPE_IMAGE, 100, 100); $c = cairo_create($s); var_dump(cairo_has_current_point($c)); cairo_move_to($c, 10, 10); var_dump(cairo_has_current_point($c)); ?> The above example will output: bool(false) bool(true)
SEE ALSO
CairoContext::getCurrentPoint. PHP Documentation Group CAIRO_HAS_CURRENT_POINT(3)
Related Man Pages
cairo_status_to_string(3) - php
cairo_copy_path(3) - php
cairo_append_path(3) - php
cairo_clip_preserve(3) - php
cairo_fill(3) - php
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun