|
pico-sdl
|
All getters and setters. More...
Functions | |
| Pico_Anchor | pico_get_anchor_draw (void) |
| Gets the origin used to draw objects (center, topleft, etc). | |
| Pico_Anchor | pico_get_anchor_rotate (void) |
| Gets the origin used to rotate objects (center, topleft, etc). | |
| Pico_Color | pico_get_color_clear (void) |
| Gets the color set to clear the screen. | |
| Pico_Color | pico_get_color_draw (void) |
| Gets the color set to draw. | |
| Pico_Rect | pico_get_crop (void) |
| Gets the cropping applied to objects when drawing them. | |
| Pico_Pos | pico_get_cursor (void) |
| Gets the position of the text cursor. | |
| int | pico_get_expert (void) |
| Gets the state of expert mode. | |
| Pico_Flip | pico_get_flip (void) |
| Gets the flipping state of objects. | |
| const char * | pico_get_font (void) |
| Gets the font used to draw texts. | |
| int | pico_get_grid (void) |
| Gets the state of the logical pixel grid. | |
| int | pico_get_rotate (void) |
| Gets the rotation angle of objects (in degrees). | |
| Pico_Pct | pico_get_scale (void) |
| Gets the scaling factor of objects (percentage). | |
| Pico_Pos | pico_get_scroll (void) |
| Gets the point of view on the logical window. | |
| Pico_Size | pico_get_size (void) |
| Gets the physical and logical window size. | |
| Pico_Dim | pico_get_size_image (const char *file) |
| Gets the size of the given image. | |
| Pico_Dim | pico_get_size_text (const char *text) |
| Gets the size of the given text. | |
| int | pico_get_show (void) |
| Gets the visibility state of the window. | |
| PICO_STYLE | pico_get_style (void) |
| Gets the drawing style. | |
| Uint32 | pico_get_ticks (void) |
| Gets the amount of ticks that passed since pico was initialized. | |
| const char * | pico_get_title (void) |
| Gets the aplication title. | |
| Pico_Pct | pico_get_zoom (void) |
| Gets the scaling factor of the screen view (percentage). | |
| void | pico_set_anchor_draw (Pico_Anchor anchor) |
| Changes the reference to draw objects (center, topleft, etc). | |
| void | pico_set_anchor_rotate (Pico_Anchor anchor) |
| Changes the reference to rotate objects (center, topleft, etc). | |
| void | pico_set_color_clear (Pico_Color color) |
| Changes the color used to clear the screen. | |
| void | pico_set_color_draw (Pico_Color color) |
| Changes the color used to draw objects. | |
| void | pico_set_crop (Pico_Rect crop) |
| Changes the cropping that is applied to images before drawing them. | |
| void | pico_set_cursor (Pico_Pos pos) |
| Sets the position of the text cursor. | |
| void | pico_set_expert (int on) |
| Toggles the expert mode. | |
| void | pico_set_flip (Pico_Flip flip) |
| Sets the flipping state of objects. | |
| void | pico_set_font (const char *file, int h) |
| Changes the font used to draw texts. | |
| void | pico_set_grid (int on) |
| Toggles a grid on top of logical pixels. | |
| void | pico_set_rotate (int angle) |
| Sets the rotation angle of objects (in degrees). | |
| void | pico_set_scale (Pico_Pct scale) |
| Sets the scaling factor of objects. | |
| void | pico_set_scroll (Pico_Pos pos) |
| Sets the point of view on the logical window. | |
| void | pico_set_size (Pico_Dim phy, Pico_Dim log) |
| Sets the physical and logical window sizes. | |
| void | pico_set_show (int on) |
| Toggles the aplication window visibility. | |
| void | pico_set_style (PICO_STYLE style) |
| Sets the drawing style. | |
| void | pico_set_title (const char *title) |
| Sets the aplication title. | |
| void | pico_set_zoom (Pico_Pct zoom) |
| Sets the scaling factor of the screen view. | |
All getters and setters.
| Pico_Anchor pico_get_anchor_draw | ( | void | ) |
Gets the origin used to draw objects (center, topleft, etc).
| Pico_Anchor pico_get_anchor_rotate | ( | void | ) |
Gets the origin used to rotate objects (center, topleft, etc).
| Pico_Color pico_get_color_clear | ( | void | ) |
Gets the color set to clear the screen.
| Pico_Color pico_get_color_draw | ( | void | ) |
Gets the color set to draw.
| Pico_Rect pico_get_crop | ( | void | ) |
Gets the cropping applied to objects when drawing them.
| Pico_Pos pico_get_cursor | ( | void | ) |
Gets the position of the text cursor.
| int pico_get_expert | ( | void | ) |
Gets the state of expert mode.
| Pico_Flip pico_get_flip | ( | void | ) |
Gets the flipping state of objects.
| const char * pico_get_font | ( | void | ) |
Gets the font used to draw texts.
| int pico_get_grid | ( | void | ) |
Gets the state of the logical pixel grid.
| int pico_get_rotate | ( | void | ) |
Gets the rotation angle of objects (in degrees).
| Pico_Pct pico_get_scale | ( | void | ) |
Gets the scaling factor of objects (percentage).
| Pico_Pos pico_get_scroll | ( | void | ) |
Gets the point of view on the logical window.
| int pico_get_show | ( | void | ) |
Gets the visibility state of the window.
| Pico_Size pico_get_size | ( | void | ) |
Gets the physical and logical window size.
| Pico_Dim pico_get_size_image | ( | const char * | file | ) |
Gets the size of the given image.
| file | image filepath |
| Pico_Dim pico_get_size_text | ( | const char * | text | ) |
Gets the size of the given text.
| text | text to measure |
| PICO_STYLE pico_get_style | ( | void | ) |
Gets the drawing style.
| Uint32 pico_get_ticks | ( | void | ) |
Gets the amount of ticks that passed since pico was initialized.
| const char * pico_get_title | ( | void | ) |
Gets the aplication title.
| Pico_Pct pico_get_zoom | ( | void | ) |
Gets the scaling factor of the screen view (percentage).
| void pico_set_anchor_draw | ( | Pico_Anchor | anchor | ) |
Changes the reference to draw objects (center, topleft, etc).
| anchor | anchor for the x and y axis |
| void pico_set_anchor_rotate | ( | Pico_Anchor | anchor | ) |
Changes the reference to rotate objects (center, topleft, etc).
| anchor | anchor for the x and y axis |
| void pico_set_color_clear | ( | Pico_Color | color | ) |
Changes the color used to clear the screen.
| color | new color |
| void pico_set_color_draw | ( | Pico_Color | color | ) |
Changes the color used to draw objects.
| color | new color |
| void pico_set_crop | ( | Pico_Rect | crop | ) |
Changes the cropping that is applied to images before drawing them.
| crop | cropping region, which may have 0 area to disable cropping |
| void pico_set_cursor | ( | Pico_Pos | pos | ) |
Sets the position of the text cursor.
| pos | new cursor position |
| void pico_set_expert | ( | int | on | ) |
Toggles the expert mode.
| on | 1 to enable it, or 0 to disable it |
| void pico_set_flip | ( | Pico_Flip | flip | ) |
Sets the flipping state of objects.
| void pico_set_font | ( | const char * | file, |
| int | h ) |
Changes the font used to draw texts.
| file | path to font file |
| h | size of the font |
| void pico_set_grid | ( | int | on | ) |
Toggles a grid on top of logical pixels.
| on | 1 to show it, or 0 to hide it |
| void pico_set_rotate | ( | int | angle | ) |
Sets the rotation angle of objects (in degrees).
| void pico_set_scale | ( | Pico_Pct | scale | ) |
Sets the scaling factor of objects.
| scale | new scaling for x and y axis (percentage) |
| void pico_set_scroll | ( | Pico_Pos | pos | ) |
Sets the point of view on the logical window.
| pos | new point of view |
| void pico_set_show | ( | int | on | ) |
Toggles the aplication window visibility.
| on | 1 to show, or 0 to hide |
Sets the physical and logical window sizes.
| phy | new physical size |
| log | new logical size |
| void pico_set_style | ( | PICO_STYLE | style | ) |
Sets the drawing style.
| style | new style |
| void pico_set_title | ( | const char * | title | ) |
Sets the aplication title.
| title | new title |
| void pico_set_zoom | ( | Pico_Pct | zoom | ) |
Sets the scaling factor of the screen view.
| zoom | new scaling for x and y axis (percentage) |