Module display

Source
Expand description

Brain Display

Structs§

v5_image
A decoded image written to by VEXos.

Functions§

vexDisplayBackgroundColor
Sets the color (encoded as RGB8) used for all future erasing display draws.
vexDisplayBackgroundColorGet
Gets the currently set background color as an RGB8 color.
vexDisplayBigCenteredString
vexDisplayBigString
vexDisplayBigStringAt
vexDisplayCenteredString
vexDisplayCircleClear
Fills a circular region of the screen with the current background color.
vexDisplayCircleDraw
Strokes a one-pixel wide circle defined by a center-point and a radius with the current foreground color.
vexDisplayCircleFill
Fills a circular region of the screen with the current foreground color.
vexDisplayClipRegionSet
Sets a rectangular region of the display’s framebuffer that the current task is allowed to modify.
vexDisplayClipRegionSetWithIndex
Sets a rectangular region of the display’s framebuffer that the a given task index is allowed to modify.
vexDisplayCopyRect
Draw a buffer of pixels to a rectangular region of the screen.
vexDisplayDoubleBufferDisable
Disables double-buffered mode, switching back to immediate mode rendering.
vexDisplayErase
Fills the entire framebuffer with the current background color.
vexDisplayFontNamedSet
Safety
vexDisplayForegroundColor
Sets the color (encoded as RGB8) used for all future non-erasing display draws.
vexDisplayForegroundColorGet
Gets the currently set foreground color as an RGB8 color.
vexDisplayLineClear
Draws a one-pixel wide stroke line between two points with the current background color.
vexDisplayLineDraw
Draws a one-pixel wide stroke line between two points with the current foreground color.
vexDisplayPixelClear
Fills a given pixel of the screen with the current background color.
vexDisplayPixelSet
Fills a given pixel of the screen with the current foreground color.
vexDisplayPrintf
vexDisplayRectClear
Fills a rectangular region of the screen with the current background color.
vexDisplayRectDraw
Strokes a one-pixel wide rectangular region of the screen with the current foreground color.
vexDisplayRectFill
Fills rectangular region of the screen with the current foreground color.
vexDisplayRender
Enables double-buffered mode on the display, flushing the intermediate framebuffer.
vexDisplayScroll
Moves a region of the screen defined by all the pixels whose y-axis coordinate are within the range [nStartLine, 272) nLines pixels upwards, without affecting portions of the screen outside the specified scroll region.
vexDisplayScrollRect
Moves a rectangular region of the screen nLines pixels upwards, without affecting portions of the screen outside the specified scroll region.
vexDisplaySmallStringAt
vexDisplayString
vexDisplayStringAt
vexDisplayStringHeightGet
Returns the calculated height (in pixels) of a string if it were to be drawn to the display.
vexDisplayStringWidthGet
Returns the calculated width (in pixels) of a string if it were to be drawn to the display.
vexDisplayTextSize
Safety
vexDisplayVBigCenteredString
Draws a string of large-sized, center-justified text to the display at a given line.
vexDisplayVBigString
Draws a string of large-sized text to the display at a given line.
vexDisplayVBigStringAt
Draws a string of large-sized text to the display at a top-left coordinate.
vexDisplayVCenteredString
Draws a string of center-justified text to the display at a given line.
vexDisplayVPrintf
Draws a string of text to the display at a given top-left coordinate.
vexDisplayVSmallStringAt
Draws a string of small-sized text to the display at a given line.
vexDisplayVString
Draws a string of text to the display at a given line.
vexDisplayVStringAt
Draws a string of text to the display at a given top-left coordinate.
vexImageBmpRead
Decodes a bitmap-encoded image passed to ibuf into a buffer of pixels that can be drawn to the display.
vexImagePngRead
Decodes a PNG file passed to ibuf into a buffer of pixels that can be drawn to the display. This function uses libpng internally to decode the file’s contents.