Picasso API  2.8
Typedefs | Enumerations | Functions
Common Functions

Typedefs

typedef enum _ps_status ps_status
 Status code return by call ps_last_status function.
 

Enumerations

enum  _ps_status {
  STATUS_SUCCEED, STATUS_OUT_OF_MEMORY, STATUS_INVALID_ARGUMENT, STATUS_NOT_SUPPORT,
  STATUS_DEVICE_ERROR, STATUS_MISMATCHING_FORMAT, STATUS_UNKNOWN_ERROR
}
 Status code return by call ps_last_status function. More...
 

Functions

PEXPORT int PICAPI ps_version (void)
 Return current version of picasso. More...
 
PEXPORT ps_bool PICAPI ps_initialize (void)
 Initialize the picasso drawing environment. More...
 
PEXPORT void PICAPI ps_shutdown (void)
 Shutdown the picasso drawing environment. More...
 
PEXPORT ps_status PICAPI ps_last_status (void)
 Return the last status code of picasso. More...
 

Detailed Description

Enumeration Type Documentation

◆ _ps_status

enum _ps_status

Status code return by call ps_last_status function.

Enumerator
STATUS_SUCCEED 

The successful status no errors.

STATUS_OUT_OF_MEMORY 

Out of memory.

STATUS_INVALID_ARGUMENT 

Invalid argument input.

STATUS_NOT_SUPPORT 

Not support this feature.

STATUS_DEVICE_ERROR 

Device is not ready.

STATUS_MISMATCHING_FORMAT 

Mismatching error.

STATUS_UNKNOWN_ERROR 

Unknown error.

Definition at line 262 of file picasso.h.

Function Documentation

◆ ps_initialize()

ps_bool ps_initialize ( void  )

Initialize the picasso drawing environment.

It must be the first to be call.

Returns
True if is initialized, otherwise False.
See also
ps_shutdown

◆ ps_last_status()

ps_status ps_last_status ( void  )

Return the last status code of picasso.

See also
ps_version

◆ ps_shutdown()

void ps_shutdown ( void  )

Shutdown the picasso drawing environment.

It must be call in the end.

See also
ps_initialize

◆ ps_version()

int ps_version ( void  )

Return current version of picasso.

See also
ps_last_status