LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc_swim_font.c File Reference
#include "lpc_swim_font.h"

Go to the source code of this file.

Functions

static int16_t swim_get_word_len (SWIM_WINDOW_T *win, const CHAR *text)
 
static int32_t swim_put_word (SWIM_WINDOW_T *win, const CHAR *text)
 
void swim_put_text_xy (SWIM_WINDOW_T *win, const CHAR *text, int32_t x, int32_t y)
 Put text at x, y (char) position on screen.
 
void swim_set_xy (SWIM_WINDOW_T *win, int32_t x, int32_t y)
 Sets the X, Y pixel coordinates for the next text operation.
 
void swim_get_xy (SWIM_WINDOW_T *win, int32_t *x, int32_t *y)
 Returns the X, Y pixel coordinates for the next text operation.
 
void swim_put_text (SWIM_WINDOW_T *win, const CHAR *text)
 Puts a string of text in a window.
 
void swim_put_ltext (SWIM_WINDOW_T *win, const CHAR *text)
 Puts a string of text in a window with breaks.
 
void swim_window_scroll (SWIM_WINDOW_T *win, int32_t lines)
 Scrolls the window up one line.
 
void swim_put_char (SWIM_WINDOW_T *win, const CHAR textchar)
 Puts a single character in the window.
 
void swim_put_newline (SWIM_WINDOW_T *win)
 Puts a newline in the window.
 
void swim_set_font (SWIM_WINDOW_T *win, FONT_T *font)
 Sets the active font.
 
int16_t swim_get_font_height (SWIM_WINDOW_T *win)
 Returns the active font's height in pixels.
 
void swim_set_title (SWIM_WINDOW_T *win, const CHAR *title, COLOR_T ttlbkcolor)
 Creates a title bar for the window.
 
void swim_set_font_trasparency (SWIM_WINDOW_T *win, int32_t trans)
 Enables and disables font backgrounds.
 

Function Documentation

static int16_t swim_get_word_len ( SWIM_WINDOW_T win,
const CHAR text 
)
static

Definition at line 48 of file lpc_swim_font.c.

static int32_t swim_put_word ( SWIM_WINDOW_T win,
const CHAR text 
)
static

Definition at line 68 of file lpc_swim_font.c.