![]() |
microvg
8.0.3
microvg
|
MicroEJ MicroVG library low level API: implementation of Path. More...
Go to the source code of this file.
Data Structures | |
| struct | MICROVG_PATH_HEADER |
| Map a jbyte array that represents a path. More... | |
Typedefs | |
| typedef struct MICROVG_PATH_HEADER | VG_PATH_HEADER_t |
| Map a jbyte array that represents a path. | |
Functions | |
| uint8_t | VG_PATH_get_path_encoder_format (void) |
| Gets the path's array format used to encode the commands and parameters. This format is stored into the path's header. More... | |
| uint32_t | VG_PATH_convert_path_command (jint command) |
| Converts the command in destination format. More... | |
| void | VG_PATH_initialize (void) |
| Initializes the path builder. More... | |
| uint32_t | VG_PATH_get_path_header_size (void) |
| Gets the path's array header size. More... | |
| uint32_t | VG_PATH_get_path_command_size (jint command, uint32_t nbParams) |
| Gets the size to add in the path array to encode the command and its parameters. More... | |
| uint32_t | VG_PATH_append_path_command0 (jbyte *path, jint array_length, jint cmd) |
| Appends the command with zero parameter in the path's array. More... | |
| uint32_t | VG_PATH_append_path_command1 (jbyte *path, jint array_length, jint cmd, jfloat x, jfloat y) |
| Appends the command with 1 point parameter in the path's array. More... | |
| uint32_t | VG_PATH_append_path_command2 (jbyte *path, jint array_length, jint cmd, jfloat x1, jfloat y1, jfloat x2, jfloat y2) |
| Appends the command with 2 points parameter in the path's array. More... | |
| uint32_t | VG_PATH_append_path_command3 (jbyte *path, jint array_length, jint cmd, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) |
| Appends the command with 3 points parameter in the path's array. More... | |
| uint32_t | VG_PATH_get_command_parameter_number (jint command) |
| Gets the number of parameters for a specific command. More... | |
MicroEJ MicroVG library low level API: implementation of Path.
Definition in file vg_path.h.
| uint32_t VG_PATH_append_path_command0 | ( | jbyte * | path, |
| jint | array_length, | ||
| jint | cmd | ||
| ) |
Appends the command with zero parameter in the path's array.
The caller ensures the path's array is large enough to encode the command and its parameters.
The default implementation uses 32-bit fields for the command and for each data.
| [in] | path | the path's array |
| [in] | array_length | the length of the array |
| [in] | cmd | the command to add |
| uint32_t VG_PATH_append_path_command1 | ( | jbyte * | path, |
| jint | array_length, | ||
| jint | cmd, | ||
| jfloat | x, | ||
| jfloat | y | ||
| ) |
Appends the command with 1 point parameter in the path's array.
| [in] | path | the path's array |
| [in] | array_length | the length of the array |
| [in] | cmd | the command to add |
| [in] | x | the command data 1. |
| [in] | y | the command data 2. |
| uint32_t VG_PATH_append_path_command2 | ( | jbyte * | path, |
| jint | array_length, | ||
| jint | cmd, | ||
| jfloat | x1, | ||
| jfloat | y1, | ||
| jfloat | x2, | ||
| jfloat | y2 | ||
| ) |
Appends the command with 2 points parameter in the path's array.
| [in] | path | the path's array |
| [in] | array_length | the length of the array |
| [in] | cmd | the command to add |
| [in] | x1 | the command data 1. |
| [in] | y1 | the command data 2. |
| [in] | x2 | the command data 3. |
| [in] | y2 | the command data 4. |
| uint32_t VG_PATH_append_path_command3 | ( | jbyte * | path, |
| jint | array_length, | ||
| jint | cmd, | ||
| jfloat | x1, | ||
| jfloat | y1, | ||
| jfloat | x2, | ||
| jfloat | y2, | ||
| jfloat | x3, | ||
| jfloat | y3 | ||
| ) |
Appends the command with 3 points parameter in the path's array.
| [in] | path | the path's array |
| [in] | array_length | the length of the array |
| [in] | cmd | the command to add |
| [in] | x1 | the command data 1. |
| [in] | y1 | the command data 2. |
| [in] | x2 | the command data 3. |
| [in] | y2 | the command data 4. |
| [in] | x3 | the command data 5. |
| [in] | y3 | the command data 6. |
| uint32_t VG_PATH_convert_path_command | ( | jint | command | ) |
Converts the command in destination format.
| [in] | command | the command to convert |
| uint32_t VG_PATH_get_command_parameter_number | ( | jint | command | ) |
Gets the number of parameters for a specific command.
| [in] | command | the command. |
| uint32_t VG_PATH_get_path_command_size | ( | jint | command, |
| uint32_t | nbParams | ||
| ) |
Gets the size to add in the path array to encode the command and its parameters.
The default implementation uses 32-bit fields for the command and for each data.
| [in] | command | the command to add. |
| [in] | nbParams | the available number of command's parameters |
| uint8_t VG_PATH_get_path_encoder_format | ( | void | ) |
Gets the path's array format used to encode the commands and parameters. This format is stored into the path's header.
| uint32_t VG_PATH_get_path_header_size | ( | void | ) |
Gets the path's array header size.
The default implementation returns sizeof(VG_PATH_HEADER_t).
| void VG_PATH_initialize | ( | void | ) |
Initializes the path builder.
The default implementation does nothing.
1.9.1