 |
graph.h |
Header File |
Common (non-windowed) graphic routines
Functions
- BitmapGet
- Gets a bitmap from the port graphical functions are writing to.
![]()
- BitmapInit
- Initializes a bitmap structure.
![]()
- BitmapPut
- Puts a bitmap to the screen.
![]()
- BitmapSize
- Determines a bitmap size in bytes.
![]()
- CalcBitmapSize
- Calculates the size of a bitmap.
![]()
- ClientToScr
- Converts a window-based rectangle to screen-based coordinates.
![]()
- ClrScr
- Clears the entire screen.
![]()
- DisplayOff
- Turns the display off.
![]()
- DisplayOn
- Turns the display on.
![]()
- DrawChar
- Draws a character.
![]()
- DrawClipChar
- Draws a clipped character.
![]()
- DrawClipEllipse
- Draws a clipped ellipse.
![]()
- DrawClipLine
- Draws a clipped line.
![]()
- DrawClipPix
- Draws a clipped pixel.
![]()
- DrawClipRect
- Draws a clipped rectangle.
![]()
- DrawFkey
- Draws a function key symbol.
![]()
- DrawIcon
- Draws an icon.
![]()
- DrawLine
- Draws a line between two specified points.
![]()
- DrawMultiLines
- Draws a set of lines in one turn.
![]()
- DrawPix
- Draws a pixel.
![]()
- DrawStr
- Draws a string.
![]()
- DrawStrWidth
- Determines the width of a string, in pixels.
![]()
- DrawStrWidthP
- Returns the width of the first len characters of a string.
![]()
- FillLines2
- Draws a filled area between two lines.
![]()
- FillTriangle
- Draws a filled triangle.
![]()
- FontCharWidth
- Determines the character width in pixels.
![]()
- FontGetSys
- Gets the current font number.
![]()
- FontSetSys
- Sets the current font.
![]()
- GetPix
- Gets the status of a specified pixel.
![]()
- LCD_restore
- Restores the saved content of the LCD screen.
![]()
- LCD_save
- Saves the content of the LCD screen.
![]()
- LineTo
- Draws a clipped line from the current pen position.
![]()
- MakeScrRect
- Puts four coordinates into a SCR_RECT and returns a pointer to it.
![]()
- MakeWinRect
- Builds a structure for representing rectangular area.
![]()
- MoveTo
- Sets the current pen position.
![]()
- PortRestore
- Cancels the virtual screen.
![]()
- PortSet
- Sets up the virtual screen.
![]()
- QScrRectOverlap
- Determines whether two rectangular areas overlap or not.
![]()
- RestoreScrState
- Restores a a saved state of the graphic system.
![]()
- SaveScrState
- Saves the state of the graphic system.
![]()
- ScrRectFill
- Draws a filled rectangle.
![]()
- ScrRectOverlap
- Finds an intersection of two rectangular areas.
![]()
- ScrRectScroll
- Scrols a rectangular area upwards or downwards.
![]()
- ScrRectShift
- Shifts a rectangular area left or right.
![]()
- ScrToHome
- Shifts structure of type SCR_RECT to the home position.
![]()
- ScrToWin
- Converts a structure of type SCR_RECT to type WIN_RECT.
![]()
- SetCurAttr
- Sets the default attribute.
![]()
- SetCurClip
- Sets the default clipping area.
Global Variables
- ScrRect
- A global pointer to a SCR_RECT structure representing the whole screen.
Constants
- BITMAP_HDR_SIZE
- Defines the size of the header of the BITMAP structure.
![]()
- LCD_MEM
- A pointer to the area in memory where the contents of the LCD screen are stored.
![]()
- LCD_SIZE
- An integer constant which represents the size of the LCD screen in bytes.
Predefined Types
- Attrs
- An enumeration for describing legal attribute values.
![]()
- BITMAP
- A structure for defining a bitmap.
![]()
- Bool
- An enumeration to describe true or false values.
![]()
- BoxAttrs
- An enumeration for describing addittional box attribute values.
![]()
- Fonts
- An enumeration for describing legal font values.
![]()
- ICON
- A structure which describes an icon.
![]()
- LCD_BUFFER
- Describes a buffer to hold the screen contents.
![]()
- MULTI_LINE
- A structure for defining multiple lines for the DrawMultiLines command.
![]()
- pICON
- A pointer to the ICON scructure.
![]()
- SCR_COORDS
- An alias type for defining physical screen coordinates.
![]()
- SCR_RECT
- A scructure for defining a rectangular area.
![]()
- SCR_STATE
- A structure for saving the state of the graphics system.
![]()
- WIN_COORDS
- An alias type for defining logical screen coordinates.
![]()
- WIN_RECT
- A structure for defining a rectangular area.
For a lot of advanced drawing routines, we recommend you to download the ExtGraph library by the TI-Chess Team.
See also: wingraph.h, sprites.h, gray.h