Difference between revisions of "PrintMiniMini"
From WikiPrizm
Jump to navigationJump to search (Created page with "{{syscall | name = PrintMiniMini | index = 0x021B | signature = void PrintMiniMini(int *x, int *y, unsigned char* MB_string, int mode, char color, int simulate) | header = fxc...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
| name = PrintMiniMini | | name = PrintMiniMini | ||
| index = 0x021B | | index = 0x021B | ||
− | | signature = void PrintMiniMini(int *x, int *y, | + | | signature = void PrintMiniMini(int *x, int *y, const char* MB_string, int mode, char color, int simulate) |
| header = fxcg/display.h | | header = fxcg/display.h | ||
| parameters = * ''int*'' '''x''' - Pointer to an integer containing the position of the text on a horizontal axis, in pixels. It is automatically updated to the position for the next character as the text is drawn | | parameters = * ''int*'' '''x''' - Pointer to an integer containing the position of the text on a horizontal axis, in pixels. It is automatically updated to the position for the next character as the text is drawn | ||
* ''int*'' '''y''' - Pointer to an integer containing the position of the text on a vertical axis, in pixels. Under normal conditions the drawing happens 24 pixels below the coordinate specified, to take care of the status area. | * ''int*'' '''y''' - Pointer to an integer containing the position of the text on a vertical axis, in pixels. Under normal conditions the drawing happens 24 pixels below the coordinate specified, to take care of the status area. | ||
− | * ''unsigned char*'' '''MB_string''' - The string to display. Can include a limited set of multi-byte characters. | + | * ''unsigned char*'' '''MB_string''' - The string to display. Can include a limited set of [[Multi-byte_strings|multi-byte characters]]. |
* ''int'' '''mode''' - The individual bits of this ''int'' control different aspects: | * ''int'' '''mode''' - The individual bits of this ''int'' control different aspects: | ||
** Bit 0 controls whether '''color''' should be the back color and text color is white; | ** Bit 0 controls whether '''color''' should be the back color and text color is white; | ||
Line 16: | Line 16: | ||
* ''char'' '''color''' - indexed color in the range 0 to 7, same as those used with [[PrintXY]] | * ''char'' '''color''' - indexed color in the range 0 to 7, same as those used with [[PrintXY]] | ||
* ''int'' '''simulate''' - if not zero, the function does not actually write to VRAM and will only update the x and y values, simulating the draw. Useful to check the dimension of a string when drawn. | * ''int'' '''simulate''' - if not zero, the function does not actually write to VRAM and will only update the x and y values, simulating the draw. Useful to check the dimension of a string when drawn. | ||
− | | synopsis = | + | | synopsis = Draws a line of text on the VRAM using the [[Fonts#10_px_font|10 px font]], smaller than the ones used by [[PrintMini]] and [[Bdisp_MMPrint]]. It can be seen on the axis labels of graphs, for example. |
}} | }} |
Latest revision as of 15:26, 10 May 2016
Synopsis
Header: fxcg/display.h
Syscall index: 0x021B
Function signature: void PrintMiniMini(int *x, int *y, const char* MB_string, int mode, char color, int simulate)
Draws a line of text on the VRAM using the 10 px font, smaller than the ones used by PrintMini and Bdisp_MMPrint. It can be seen on the axis labels of graphs, for example.
Parameters
- int* x - Pointer to an integer containing the position of the text on a horizontal axis, in pixels. It is automatically updated to the position for the next character as the text is drawn
- int* y - Pointer to an integer containing the position of the text on a vertical axis, in pixels. Under normal conditions the drawing happens 24 pixels below the coordinate specified, to take care of the status area.
- unsigned char* MB_string - The string to display. Can include a limited set of multi-byte characters.
- int mode - The individual bits of this int control different aspects:
- Bit 0 controls whether color should be the back color and text color is white;
- Bit 2 controls whether the string is written using black as back color. The font color is the inverted color.
- Bit 4 controls whether the string font used is boldfaced.
- Bit 6 controls whether the status area is unlocked (so that the y coordinate is not incremented).
- Bit 7 controls whether the background is cleared or not.
- Other bits have no obvious effect.
- char color - indexed color in the range 0 to 7, same as those used with PrintXY
- int simulate - if not zero, the function does not actually write to VRAM and will only update the x and y values, simulating the draw. Useful to check the dimension of a string when drawn.