Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cairo_status_to_string(3) [php man page]

CAIRO_STATUS_TO_STRING(3)						 1						 CAIRO_STATUS_TO_STRING(3)

Cairo::statusToString - Retrieves the current status as string

       Object oriented style (method):

SYNOPSIS
publicstatic string Cairo::statusToString (int $status) DESCRIPTION
Procedural style: string cairo_status_to_string (int $status) Retrieves the current status as a readable string PARAMETERS
o $status - A valid status code given by cairo_status(3) or CairoContext::status RETURN VALUES
A string containing the current status of a CairoContext object EXAMPLES
Example #1 Object oriented style <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $context = new CairoContext($surface); var_dump(Cairo::statusToString($context->status())); ?> The above example will output something similar to: string(7) "success" Example #2 Procedural style <?php $surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $context = cairo_create($surface); var_dump(cairo_status_to_string(cairo_status($context))); ?> The above example will output something similar to: string(7) "success" SEE ALSO
CairoContext::status. PHP Documentation Group CAIRO_STATUS_TO_STRING(3)

Check Out this Related Man Page

CAIRO_COPY_PATH(3)							 1							CAIRO_COPY_PATH(3)

CairoContext::copyPath - Creates a copy of the current path

       Object oriented style (method):

SYNOPSIS
public CairoPath CairoContext::copyPath (void ) DESCRIPTION
Procedural style: CairoPath cairo_copy_path (CairoContext $context) Creates a copy of the current path and returns it to the user as a CairoPath. See CairoPath for hints on how to iterate over the returned data structure. This function will always return a valid CairoPath object, but the result will have no data, if either of the following conditions hold: o1. If there is insufficient memory to copy the path. In this case CairoPath->status will be set to CAIRO_STATUS_NO_MEMORY. o2. If $context is already in an error state. In this case CairoPath->status will contain the same status that would be returned by cairo_status(3). In either case, CairoPath->status will be set to CAIRO_STATUS_NO_MEMORY (regardless of what the error status in cr might have been). PARAMETERS
o $context - A valid CairoContext object created with CairoContext::__construct or cairo_create(3) RETURN VALUES
A copy of the current CairoPath in the context EXAMPLES
Example #1 Object oriented style <?php $surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50); $context = new CairoContext($surface); var_dump($context->copyPath()) ?> The above example will output something similar to: object(CairoPath)#3 (0) { } Example #2 Procedural style <?php $surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 50, 50); $context = cairo_create($surface); var_dump(cairo_copy_path($context)); ?> The above example will output something similar to: object(CairoPath)#3 (0) { } SEE ALSO
CairoContext::closePath. PHP Documentation Group CAIRO_COPY_PATH(3)
Man Page

We Also Found This Discussion For You

1. AIX

Dashboard style tool(s)?

I was wondering if anyone knows of any dashboard style tools for AIX. One of my many responsibilities is to report the status of the boxes and whether certain things are "up" and running each and every day. Nonetheless, this is a MAJOR pain as I have to logon to each box, pull up URLs through my... (3 Replies)
Discussion started by: dsimpg1
3 Replies