#include "camera_info.h"
#include "keyboard.h"
#include "conf.h"
#include "gui.h"
#include "gui_draw.h"
#include "gui_lang.h"
#include "gui_grid.h"
#include "fileutil.h"
#include "module_def.h"
gehe zum Quellcode dieser Datei
#define GRID_REDRAW_INTERVAL 4 |
Aufzählungswerte |
---|
GRID_ELEM_LINE |
|
GRID_ELEM_RECT |
|
GRID_ELEM_FILLED_RECT |
|
GRID_ELEM_ELLIPSE |
|
GRID_ELEM_FILLED_ELLIPSE |
|
Definiert in Zeile 16 der Datei gui_grid.c.
int _module_can_unload |
( |
) | |
|
int _module_loader |
( |
__attribute__((unused)) unsigned int * |
chdk_export_list) | |
|
static int get_color |
( |
char * |
p, |
|
|
char ** |
np |
|
) |
| |
|
static |
Definiert in Zeile 95 der Datei gui_grid.c.
97 if (
strncmp(p,
"trans",5) == 0) rv = 255+1;
98 else if (
strncmp(p,
"black",5) == 0) rv = 255+2;
99 else if (
strncmp(p,
"white",5) == 0) rv = 255+3;
100 else if (
strncmp(p,
"red_dark",8) == 0) rv = 255+5;
101 else if (
strncmp(p,
"red_light",9) == 0) rv = 255+6;
102 else if (
strncmp(p,
"red",3) == 0) rv = 255+4;
103 else if (
strncmp(p,
"green_dark",10) == 0) rv = 255+8;
104 else if (
strncmp(p,
"green_light",11) == 0) rv = 255+9;
105 else if (
strncmp(p,
"green",5) == 0) rv = 255+7;
106 else if (
strncmp(p,
"blue_dark",9) == 0) rv = 255+11;
107 else if (
strncmp(p,
"blue_light",10) == 0) rv = 255+12;
108 else if (
strncmp(p,
"blue",4) == 0) rv = 255+10;
109 else if (
strncmp(p,
"grey_trans",10) == 0) rv = 255+19;
110 else if (
strncmp(p,
"grey_dark",9) == 0) rv = 255+14;
111 else if (
strncmp(p,
"grey_light",10) == 0) rv = 255+15;
112 else if (
strncmp(p,
"grey",4) == 0) rv = 255+13;
113 else if (
strncmp(p,
"yellow_dark",11) == 0) rv = 255+17;
114 else if (
strncmp(p,
"yellow_light",12) == 0) rv = 255+18;
115 else if (
strncmp(p,
"yellow",6) == 0) rv = 255+16;
116 else if (
strncmp(p,
"magenta",7) == 0) rv = 255+20;
118 while (*p && *p !=
' ' && *p !=
'\t' && *p !=
',' && *p !=
'\n') p += 1;
static int get_value |
( |
char * |
p, |
|
|
int * |
failed, |
|
|
int |
is_color |
|
) |
| |
|
static |
Definiert in Zeile 123 der Datei gui_grid.c.
128 if (np != p) fnd = 1;
129 if (!fnd && is_color) {
132 if (np != p) fnd = 1;
static void grid_lines_free_data |
( |
) | |
|
|
static |
void grid_lines_load |
( |
const char * |
fn) | |
|
void gui_grid_draw_osd |
( |
int |
force) | |
|
Definiert in Zeile 226 der Datei gui_grid.c.
230 int xs=0, xo=0, ys=0, yo=0;
250 x0 = ((x0 * xs + 8192) >> 14) + xo;
251 y0 = ((y0 * ys + 8192) >> 14) + yo;
252 x1 = ((x1 * xs + 8192) >> 14);
253 y1 = ((y1 * ys + 8192) >> 14);
266 draw_ellipse(x0, y0, (
unsigned int)x1, (
unsigned int)y1, col, 0);
static gline* new_gline |
( |
) | |
|
|
static |
static int parse_grid_file |
( |
char * |
ptr, |
|
|
int |
size |
|
) |
| |
|
static |
static void process_element |
( |
char * |
ptr, |
|
|
int |
n, |
|
|
grid_elem_type |
type |
|
) |
| |
|
static |
Definiert in Zeile 138 der Datei gui_grid.c.
142 for (i=0; i<(int)(
sizeof(nums)/
sizeof(nums[0])) && i<
n; ++i) {
156 nums[0] = ((nums[0] << 14) + 180) / 360;
157 nums[1] = ((nums[1] << 14) + 120) / 240;
158 nums[2] = ((nums[2] << 14) + 180) / 360;
159 nums[3] = ((nums[3] << 14) + 120) / 240;
161 gptr->
x0=nums[0]; gptr->
y0=nums[1];
162 gptr->
x1=nums[2]; gptr->
y1=nums[3];
163 gptr->
clf=nums[4]; gptr->
clb=nums[5];
static void process_title |
( |
char * |
ptr) | |
|
|
static |
static char* skip_to_eol |
( |
char * |
p) | |
|
|
static |
Definiert in Zeile 70 der Datei gui_grid.c.
71 while (*p && *p !=
'\n') p += 1;
static char* skip_token |
( |
char * |
p) | |
|
|
static |
Definiert in Zeile 76 der Datei gui_grid.c.
77 while (*p && *p !=
' ' && *p !=
'\t' && *p !=
',' && *p !=
'\n') p += 1;
static char* skip_whitespace |
( |
char * |
p) | |
|
|
static |
Definiert in Zeile 65 der Datei gui_grid.c.
66 while (*p && (*p ==
' ' || *p ==
'\t' || *p ==
',')) p += 1;