CHDK_DE Vorschauversion
Trunk Rev. 6014
|
#include "platform.h"
#include "touchscreen.h"
#include "conf.h"
#include "font.h"
#include "lang.h"
#include "gui_draw.h"
#include "../lib/font/font_8x16_uni_packed.h"
gehe zum Quellcode dieser Datei
Datenstrukturen | |
struct | FontData |
Makrodefinitionen | |
#define | GET_FONT_COMPRESSION_MODE 1 |
#define | GUARD_VAL COLOR_GREY_DK |
#define | swap(v1, v2) {v1^=v2; v2^=v1; v1^=v2;} |
Funktionen | |
static void | draw_pixel_std (unsigned int offset, color cl) |
unsigned int | color_to_rawpx (__attribute__((unused)) color cl, __attribute__((unused)) unsigned int *op) |
void | draw_dblpixel_raw (__attribute__((unused)) unsigned int offset, __attribute__((unused)) unsigned int px, __attribute__((unused)) unsigned int op) |
void | erase_zebra () |
void | draw_pixel_proc_rotated (unsigned int offset, color cl) |
void | draw_set_draw_proc (void(*pixel_proc)(unsigned int offset, color cl)) |
void | update_draw_proc () |
void | draw_set_guard () |
int | draw_test_guard () |
void | draw_init () |
void | draw_suspend (int ms) |
int | draw_is_suspended (void) |
void | draw_restore () |
void | draw_pixel (coord x, coord y, color cl) |
void | draw_or_erase_edge_pixel (coord px, coord py, color cl, int is_draw) |
color | draw_get_pixel (coord x, coord y) |
void | draw_line (coord x1, coord y1, coord x2, coord y2, color cl) |
void | draw_hline (coord x, coord y, int len, color cl) |
void | draw_vline (coord x, coord y, int len, color cl) |
void | draw_rectangle (coord x1, coord y1, coord x2, coord y2, twoColors cl, int flags) |
static unsigned char * | get_cdata (unsigned int *offset, unsigned int *size, const char ch) |
void | draw_char (coord x, coord y, const char ch, twoColors cl) |
void | draw_char_scaled (coord x, coord y, const char ch, twoColors cl, int xsize, int ysize) |
int | draw_string_clipped (coord x, coord y, const char *s, twoColors cl, int max_width) |
int | draw_string (coord x, coord y, const char *s, twoColors cl) |
int | draw_string_justified (coord x, coord y, const char *s, twoColors cl, int xo, int max_width, int justification) |
int | text_dimensions (const char *s, int width, int max_chars, int *max_lines) |
int | draw_text_justified (coord x, coord y, const char *s, twoColors cl, int max_chars, int max_lines, int justification) |
void | draw_string_scaled (coord x, coord y, const char *s, twoColors cl, int xsize, int ysize) |
void | draw_osd_string (OSD_pos pos, int xo, int yo, char *s, twoColors c, OSD_scale scale) |
void | draw_txt_string (coord col, coord row, const char *str, twoColors cl) |
void | draw_ellipse (coord CX, coord CY, unsigned int XRadius, unsigned int YRadius, color cl, int flags) |
void | draw_button (int x, int y, int w, int str_id, int active) |
void | draw_icon_cmds (coord x, coord y, icon_cmd *cmds) |
void | set_palette () |
color | get_script_color (int cl) |
color | chdkColorToCanonColor (chdkColor col) |
twoColors | user_color (confColor cc) |
Variablen | |
static char * | frame_buffer [2] |
int | draw_restore_suspend_tick |
void(* | draw_pixel_proc )(unsigned int offset, color cl) |
void(* | draw_pixel_proc_norm )(unsigned int offset, color cl) |
unsigned int | rotate_base |
unsigned char | ply_colors [] |
unsigned char | rec_colors [] |
unsigned char * | chdk_colors = ply_colors |
#define GET_FONT_COMPRESSION_MODE 1 |
Definiert in Zeile 8 der Datei gui_draw.c.
#define GUARD_VAL COLOR_GREY_DK |
Definiert in Zeile 471 der Datei gui_draw.c.
#define swap | ( | v1, | |
v2 | |||
) | {v1^=v2; v2^=v1; v1^=v2;} |
Definiert in Zeile 697 der Datei gui_draw.c.
Definiert in Zeile 1672 der Datei gui_draw.c.
unsigned int color_to_rawpx | ( | __attribute__((unused)) color | cl, |
__attribute__((unused)) unsigned int * | op | ||
) |
Definiert in Zeile 207 der Datei gui_draw.c.
void draw_button | ( | int | x, |
int | y, | ||
int | w, | ||
int | str_id, | ||
int | active | ||
) |
Definiert in Zeile 1554 der Datei gui_draw.c.
Definiert in Zeile 890 der Datei gui_draw.c.
Definiert in Zeile 1093 der Datei gui_draw.c.
void draw_dblpixel_raw | ( | __attribute__((unused)) unsigned int | offset, |
__attribute__((unused)) unsigned int | px, | ||
__attribute__((unused)) unsigned int | op | ||
) |
Definiert in Zeile 208 der Datei gui_draw.c.
void draw_ellipse | ( | coord | CX, |
coord | CY, | ||
unsigned int | XRadius, | ||
unsigned int | YRadius, | ||
color | cl, | ||
int | flags | ||
) |
Definiert in Zeile 1468 der Datei gui_draw.c.
Definiert in Zeile 669 der Datei gui_draw.c.
Definiert in Zeile 776 der Datei gui_draw.c.
Definiert in Zeile 1566 der Datei gui_draw.c.
void draw_init | ( | ) |
Definiert in Zeile 521 der Datei gui_draw.c.
int draw_is_suspended | ( | void | ) |
Definiert in Zeile 544 der Datei gui_draw.c.
Definiert in Zeile 699 der Datei gui_draw.c.
Definiert in Zeile 581 der Datei gui_draw.c.
Definiert in Zeile 564 der Datei gui_draw.c.
void draw_pixel_proc_rotated | ( | unsigned int | offset, |
color | cl | ||
) |
Definiert in Zeile 215 der Datei gui_draw.c.
|
static |
Definiert in Zeile 61 der Datei gui_draw.c.
Definiert in Zeile 809 der Datei gui_draw.c.
void draw_restore | ( | ) |
Definiert in Zeile 550 der Datei gui_draw.c.
Definiert in Zeile 220 der Datei gui_draw.c.
void draw_set_guard | ( | ) |
Definiert in Zeile 473 der Datei gui_draw.c.
Definiert in Zeile 1249 der Datei gui_draw.c.
Definiert in Zeile 1231 der Datei gui_draw.c.
int draw_string_justified | ( | coord | x, |
coord | y, | ||
const char * | s, | ||
twoColors | cl, | ||
int | xo, | ||
int | max_width, | ||
int | justification | ||
) |
Definiert in Zeile 1259 der Datei gui_draw.c.
Definiert in Zeile 1351 der Datei gui_draw.c.
void draw_suspend | ( | int | ms) |
Definiert in Zeile 535 der Datei gui_draw.c.
int draw_test_guard | ( | ) |
Definiert in Zeile 484 der Datei gui_draw.c.
int draw_text_justified | ( | coord | x, |
coord | y, | ||
const char * | s, | ||
twoColors | cl, | ||
int | max_chars, | ||
int | max_lines, | ||
int | justification | ||
) |
Definiert in Zeile 1332 der Datei gui_draw.c.
Definiert in Zeile 1433 der Datei gui_draw.c.
Definiert in Zeile 797 der Datei gui_draw.c.
void erase_zebra | ( | ) |
Definiert in Zeile 209 der Datei gui_draw.c.
|
static |
Definiert in Zeile 876 der Datei gui_draw.c.
color get_script_color | ( | int | cl) |
Definiert in Zeile 1663 der Datei gui_draw.c.
void set_palette | ( | ) |
Definiert in Zeile 1653 der Datei gui_draw.c.
int text_dimensions | ( | const char * | s, |
int | width, | ||
int | max_chars, | ||
int * | max_lines | ||
) |
Definiert in Zeile 1301 der Datei gui_draw.c.
void update_draw_proc | ( | ) |
Definiert in Zeile 234 der Datei gui_draw.c.
Definiert in Zeile 1679 der Datei gui_draw.c.
unsigned char* chdk_colors = ply_colors |
Definiert in Zeile 1651 der Datei gui_draw.c.
Definiert in Zeile 56 der Datei gui_draw.c.
Definiert in Zeile 57 der Datei gui_draw.c.
int draw_restore_suspend_tick |
Definiert in Zeile 54 der Datei gui_draw.c.
|
static |
Definiert in Zeile 46 der Datei gui_draw.c.
unsigned char ply_colors[] |
Definiert in Zeile 8 der Datei platform_palette.c.
unsigned char rec_colors[] |
Definiert in Zeile 33 der Datei platform_palette.c.
unsigned int rotate_base |
Definiert in Zeile 213 der Datei gui_draw.c.