ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | ckb_key |
struct | ckb_runctx |
struct | ckb_gradient |
Macros | |
#define | M_PI 3.14159265358979323846 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | CKB_DOWN 1 |
#define | CKB_UP 0 |
#define | CKB_CONTAINER(macro) do { macro } while(0) |
#define | CKB_GUID(guid) CKB_CONTAINER( printf("guid "); printurl(guid); printf("\n"); ) |
#define | CKB_NAME(name) CKB_CONTAINER( printf("name "); printurl(name); printf("\n"); ) |
#define | CKB_VERSION(version) CKB_CONTAINER( printf("version "); printurl(version); printf("\n"); ) |
#define | CKB_COPYRIGHT(year, author) CKB_CONTAINER( printf("author "); printurl(author); printf("\nyear %s\n", year); ) |
#define | CKB_LICENSE(license) CKB_CONTAINER( printf("license "); printurl(license); printf("\n"); ) |
#define | CKB_DESCRIPTION(description) CKB_CONTAINER( printf("description "); printurl(description); printf("\n"); ) |
#define | CKB_PARAM(type, name, prefix, postfix, extra) CKB_CONTAINER( printf("param %s %s ", type, name); printurl(prefix); printf(" "); printurl(postfix); printf(" "); extra; printf("\n"); ) |
#define | CKB_PARAM_LONG(name, prefix, postfix, default, min, max) CKB_PARAM("long", name, prefix, postfix, printf("%ld %ld %ld", (long)(default), (long)(min), (long)(max))) |
#define | CKB_PARAM_DOUBLE(name, prefix, postfix, default, min, max) CKB_PARAM("double", name, prefix, postfix, printf("%lf %lf %lf", (double)(default), (double)(min), (double)(max))) |
#define | CKB_PARAM_BOOL(name, text, default) CKB_PARAM("bool", name, text, "", printf((default) ? "1" : "0")) |
#define | CKB_PARAM_RGB(name, prefix, postfix, r, g, b) CKB_PARAM("rgb", name, prefix, postfix, printf("%02x%02x%02x", (unsigned char)(r), (unsigned char)(g), (unsigned char)(b))) |
#define | CKB_PARAM_ARGB(name, prefix, postfix, a, r, g, b) CKB_PARAM("argb", name, prefix, postfix, printf("%02x%02x%02x%02x", (unsigned char)(a), (unsigned char)(r), (unsigned char)(g), (unsigned char)(b))) |
#define | CKB_PARAM_GRADIENT(name, prefix, postfix, default) CKB_PARAM("gradient", name, prefix, postfix, printurl(default)) |
#define | CKB_PARAM_AGRADIENT(name, prefix, postfix, default) CKB_PARAM("agradient", name, prefix, postfix, printurl(default)) |
#define | CKB_PARAM_ANGLE(name, prefix, postfix, default) CKB_PARAM("angle", name, prefix, postfix, printf("%ld", (long)(default))) |
#define | CKB_PARAM_STRING(name, prefix, postfix, default) CKB_PARAM("string", name, prefix, postfix, printurl(default)) |
#define | CKB_PARAM_LABEL(name, text) CKB_PARAM("label", name, text, "", ) |
#define | CKB_PRESET_START(name) CKB_CONTAINER( printf("preset "); printurl(name); ) |
#define | CKB_PRESET_PARAM(name, value) CKB_CONTAINER( printf(" %s=", name); printurl(value); ) |
#define | CKB_PRESET_END CKB_CONTAINER( printf("\n"); ) |
#define | CKB_KP_NONE "none" |
#define | CKB_KP_NAME "name" |
#define | CKB_KP_POSITION "position" |
#define | CKB_KPMODE(mode) CKB_CONTAINER( printf("kpmode %s\n", mode); ) |
#define | CKB_TIME_DURATION "duration" |
#define | CKB_TIME_ABSOLUTE "absolute" |
#define | CKB_TIMEMODE(mode) CKB_CONTAINER( printf("time %s\n", mode); ) |
#define | CKB_REPEAT(enable) CKB_CONTAINER( printf("repeat %s\n", (enable) ? "on" : "off"); ) |
#define | CKB_PREEMPT(enable) CKB_CONTAINER( printf("preempt %s\n", (enable) ? "on" : "off"); ) |
#define | CKB_LIVEPARAMS(enable) CKB_CONTAINER( printf("parammode %s\n", (enable) ? "live" : "static"); ) |
#define | CKB_PARSE_LONG(param_name, value_ptr) if(!strcmp(name, param_name) && sscanf(value, "%ld", value_ptr) == 1) |
#define | CKB_PARSE_DOUBLE(param_name, value_ptr) if(!strcmp(name, param_name) && sscanf(value, "%lf", value_ptr) == 1) |
#define | CKB_PARSE_BOOL(param_name, value_ptr) if(!strcmp(name, param_name) && sscanf(value, "%u", value_ptr) == 1) |
#define | CKB_PARSE_RGB(param_name, r_ptr, g_ptr, b_ptr) if(!strcmp(name, param_name) && sscanf(value, "%2hhx%2hhx%2hhx", r_ptr, g_ptr, b_ptr) == 3) |
#define | CKB_PARSE_ARGB(param_name, a_ptr, r_ptr, g_ptr, b_ptr) if(!strcmp(name, param_name) && sscanf(value, "%2hhx%2hhx%2hhx%2hhx", a_ptr, r_ptr, g_ptr, b_ptr) == 4) |
#define | CKB_PARSE_GRADIENT(param_name, gradient_ptr) if(!strcmp(name, param_name) && ckb_scan_grad(value, gradient_ptr, 0)) |
#define | CKB_PARSE_AGRADIENT(param_name, gradient_ptr) if(!strcmp(name, param_name) && ckb_scan_grad(value, gradient_ptr, 1)) |
#define | CKB_PARSE_ANGLE(param_name, value_ptr) if(!strcmp(name, param_name) && sscanf(value, "%ld", value_ptr) == 1) |
#define | CKB_PARSE_STRING(param_name) if(!strcmp(name, param_name)) |
#define | CKB_REAL_ANGLE(angle) fmod((-(angle) + 90.) * M_PI / 180. + M_PI * 2., M_PI * 2.) |
#define | CKB_KEYNAME_MAX 12 |
#define | CKB_KEYCLEAR(context) CKB_CONTAINER( ckb_key* key = context->keys; unsigned count = context->keycount; unsigned i = 0; for(; i < count; i++) key[i].a = key[i].r = key[i].g = key[i].b = 0; ) |
#define | CKB_GRAD_MAX 100 |
#define | CKB_MAX_WORD (4 * 1024) |
Functions | |
int | ckb_scan_grad (const char *string, ckb_gradient *gradient, int alpha) |
void | ckb_grad_color (float *a, float *r, float *g, float *b, const ckb_gradient *grad, float pos) |
void | ckb_alpha_blend (ckb_key *key, float a, float r, float g, float b) |
void | printurl (const char *src) |
void | urldecode (char *dst, const char *src) |
void | ckb_getline (char word1[(4 *1024)], char word2[(4 *1024)], char word3[(4 *1024)]) |
void | ckb_info () |
void | ckb_init (ckb_runctx *context) |
void | ckb_parameter (ckb_runctx *, const char *, const char *) |
void | ckb_keypress (ckb_runctx *, ckb_key *, int, int, int) |
void | ckb_start (ckb_runctx *, int) |
void | ckb_time (ckb_runctx *, double) |
int | ckb_frame (ckb_runctx *) |
void | ckb_read_params (ckb_runctx *ctx) |
int | main (int argc, char *argv[]) |
struct ckb_key |
Definition at line 131 of file ckb-anim.h.
Data Fields | ||
---|---|---|
unsigned char | a | |
unsigned char | b | |
unsigned char | g | |
char | name[12] | |
unsigned char | r | |
int | x | |
int | y |
struct ckb_runctx |
Definition at line 138 of file ckb-anim.h.
Data Fields | ||
---|---|---|
unsigned | height | |
unsigned | keycount | |
ckb_key * | keys | |
unsigned | width |
struct ckb_gradient |
Definition at line 152 of file ckb-anim.h.
Data Fields | ||
---|---|---|
unsigned char | a[100] | |
unsigned char | b[100] | |
unsigned char | g[100] | |
int | ptcount | |
char | pts[100] | |
unsigned char | r[100] |
#define CKB_CONTAINER | ( | macro | ) | do { macro } while(0) |
Definition at line 57 of file ckb-anim.h.
#define CKB_COPYRIGHT | ( | year, | |
author | |||
) | CKB_CONTAINER( printf("author "); printurl(author); printf("\nyear %s\n", year); ) |
Definition at line 66 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_DESCRIPTION | ( | description | ) | CKB_CONTAINER( printf("description "); printurl(description); printf("\n"); ) |
Definition at line 70 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_DOWN 1 |
Definition at line 52 of file ckb-anim.h.
#define CKB_GRAD_MAX 100 |
Definition at line 151 of file ckb-anim.h.
#define CKB_GUID | ( | guid | ) | CKB_CONTAINER( printf("guid "); printurl(guid); printf("\n"); ) |
Definition at line 60 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_KEYCLEAR | ( | context | ) | CKB_CONTAINER( ckb_key* key = context->keys; unsigned count = context->keycount; unsigned i = 0; for(; i < count; i++) key[i].a = key[i].r = key[i].g = key[i].b = 0; ) |
Definition at line 148 of file ckb-anim.h.
Referenced by ckb_frame().
#define CKB_KEYNAME_MAX 12 |
Definition at line 130 of file ckb-anim.h.
Referenced by main().
#define CKB_KP_NAME "name" |
Definition at line 91 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_KP_NONE "none" |
Definition at line 90 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_KP_POSITION "position" |
Definition at line 92 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_KPMODE | ( | mode | ) | CKB_CONTAINER( printf("kpmode %s\n", mode); ) |
Definition at line 93 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_LICENSE | ( | license | ) | CKB_CONTAINER( printf("license "); printurl(license); printf("\n"); ) |
Definition at line 68 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_LIVEPARAMS | ( | enable | ) | CKB_CONTAINER( printf("parammode %s\n", (enable) ? "live" : "static"); ) |
Definition at line 104 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_MAX_WORD (4 * 1024) |
Definition at line 238 of file ckb-anim.h.
Referenced by ckb_read_params(), and main().
#define CKB_NAME | ( | name | ) | CKB_CONTAINER( printf("name "); printurl(name); printf("\n"); ) |
Definition at line 62 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM | ( | type, | |
name, | |||
prefix, | |||
postfix, | |||
extra | |||
) | CKB_CONTAINER( printf("param %s %s ", type, name); printurl(prefix); printf(" "); printurl(postfix); printf(" "); extra; printf("\n"); ) |
Definition at line 73 of file ckb-anim.h.
#define CKB_PARAM_AGRADIENT | ( | name, | |
prefix, | |||
postfix, | |||
default | |||
) | CKB_PARAM("agradient", name, prefix, postfix, printurl(default)) |
Definition at line 80 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_ANGLE | ( | name, | |
prefix, | |||
postfix, | |||
default | |||
) | CKB_PARAM("angle", name, prefix, postfix, printf("%ld", (long)(default))) |
Definition at line 81 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_ARGB | ( | name, | |
prefix, | |||
postfix, | |||
a, | |||
r, | |||
g, | |||
b | |||
) | CKB_PARAM("argb", name, prefix, postfix, printf("%02x%02x%02x%02x", (unsigned char)(a), (unsigned char)(r), (unsigned char)(g), (unsigned char)(b))) |
Definition at line 78 of file ckb-anim.h.
#define CKB_PARAM_BOOL | ( | name, | |
text, | |||
default | |||
) | CKB_PARAM("bool", name, text, "", printf((default) ? "1" : "0")) |
Definition at line 76 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_DOUBLE | ( | name, | |
prefix, | |||
postfix, | |||
default, | |||
min, | |||
max | |||
) | CKB_PARAM("double", name, prefix, postfix, printf("%lf %lf %lf", (double)(default), (double)(min), (double)(max))) |
Definition at line 75 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_GRADIENT | ( | name, | |
prefix, | |||
postfix, | |||
default | |||
) | CKB_PARAM("gradient", name, prefix, postfix, printurl(default)) |
Definition at line 79 of file ckb-anim.h.
#define CKB_PARAM_LABEL | ( | name, | |
text | |||
) | CKB_PARAM("label", name, text, "", ) |
Definition at line 83 of file ckb-anim.h.
#define CKB_PARAM_LONG | ( | name, | |
prefix, | |||
postfix, | |||
default, | |||
min, | |||
max | |||
) | CKB_PARAM("long", name, prefix, postfix, printf("%ld %ld %ld", (long)(default), (long)(min), (long)(max))) |
Definition at line 74 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_RGB | ( | name, | |
prefix, | |||
postfix, | |||
r, | |||
g, | |||
b | |||
) | CKB_PARAM("rgb", name, prefix, postfix, printf("%02x%02x%02x", (unsigned char)(r), (unsigned char)(g), (unsigned char)(b))) |
Definition at line 77 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PARAM_STRING | ( | name, | |
prefix, | |||
postfix, | |||
default | |||
) | CKB_PARAM("string", name, prefix, postfix, printurl(default)) |
Definition at line 82 of file ckb-anim.h.
#define CKB_PARSE_AGRADIENT | ( | param_name, | |
gradient_ptr | |||
) | if(!strcmp(name, param_name) && ckb_scan_grad(value, gradient_ptr, 1)) |
Definition at line 121 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_ANGLE | ( | param_name, | |
value_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%ld", value_ptr) == 1) |
Definition at line 122 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_ARGB | ( | param_name, | |
a_ptr, | |||
r_ptr, | |||
g_ptr, | |||
b_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%2hhx%2hhx%2hhx%2hhx", a_ptr, r_ptr, g_ptr, b_ptr) == 4) |
Definition at line 119 of file ckb-anim.h.
#define CKB_PARSE_BOOL | ( | param_name, | |
value_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%u", value_ptr) == 1) |
Definition at line 117 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_DOUBLE | ( | param_name, | |
value_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%lf", value_ptr) == 1) |
Definition at line 116 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_GRADIENT | ( | param_name, | |
gradient_ptr | |||
) | if(!strcmp(name, param_name) && ckb_scan_grad(value, gradient_ptr, 0)) |
Definition at line 120 of file ckb-anim.h.
#define CKB_PARSE_LONG | ( | param_name, | |
value_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%ld", value_ptr) == 1) |
Definition at line 115 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_RGB | ( | param_name, | |
r_ptr, | |||
g_ptr, | |||
b_ptr | |||
) | if(!strcmp(name, param_name) && sscanf(value, "%2hhx%2hhx%2hhx", r_ptr, g_ptr, b_ptr) == 3) |
Definition at line 118 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_PARSE_STRING | ( | param_name | ) | if(!strcmp(name, param_name)) |
Definition at line 123 of file ckb-anim.h.
#define CKB_PREEMPT | ( | enable | ) | CKB_CONTAINER( printf("preempt %s\n", (enable) ? "on" : "off"); ) |
Definition at line 102 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PRESET_END CKB_CONTAINER( printf("\n"); ) |
Definition at line 87 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PRESET_PARAM | ( | name, | |
value | |||
) | CKB_CONTAINER( printf(" %s=", name); printurl(value); ) |
Definition at line 86 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_PRESET_START | ( | name | ) | CKB_CONTAINER( printf("preset "); printurl(name); ) |
Definition at line 85 of file ckb-anim.h.
Referenced by ckb_info().
Definition at line 127 of file ckb-anim.h.
Referenced by ckb_parameter().
#define CKB_REPEAT | ( | enable | ) | CKB_CONTAINER( printf("repeat %s\n", (enable) ? "on" : "off"); ) |
Definition at line 99 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_TIME_ABSOLUTE "absolute" |
Definition at line 96 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_TIME_DURATION "duration" |
Definition at line 95 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_TIMEMODE | ( | mode | ) | CKB_CONTAINER( printf("time %s\n", mode); ) |
Definition at line 97 of file ckb-anim.h.
Referenced by ckb_info().
#define CKB_UP 0 |
Definition at line 53 of file ckb-anim.h.
#define CKB_VERSION | ( | version | ) | CKB_CONTAINER( printf("version "); printurl(version); printf("\n"); ) |
Definition at line 64 of file ckb-anim.h.
Referenced by ckb_info().
#define FALSE 0 |
Definition at line 49 of file ckb-anim.h.
Referenced by ckb_info().
#define M_PI 3.14159265358979323846 |
Definition at line 42 of file ckb-anim.h.
Referenced by ckb_frame(), and ckb_parameter().
#define TRUE 1 |
Definition at line 46 of file ckb-anim.h.
Referenced by ckb_info().
void ckb_alpha_blend | ( | ckb_key * | key, |
float | a, | ||
float | r, | ||
float | g, | ||
float | b | ||
) |
Definition at line 283 of file ckb-anim.h.
References ckb_key::a, ckb_key::b, ckb_key::g, and ckb_key::r.
Referenced by ckb_frame().
int ckb_frame | ( | ckb_runctx * | ) |
Definition at line 137 of file main.c.
References ckb_key::a, aa, ab, ag, angle, ANGLE, anim, ANIM_MAX, animcolor, animlength, ar, ckb_key::b, ckb_alpha_blend(), ckb_grad_color(), CKB_KEYCLEAR, counter_clock, drop, DROP_MAX, ffade, frame, ckb_key::g, getFreqDec(), keyAnim::gradient, ckb_runctx::height, HOLD, ckb_runctx::keycount, ckb_runctx::keys, M_PI, max(), min(), phase, power, powers, pressestofull, ckb_key::r, randomBright, randomize, symmetric, keyAnim::target, width, ckb_runctx::width, x, and y.
Referenced by main().
void ckb_getline | ( | char | word1[(4 *1024)], |
char | word2[(4 *1024)], | ||
char | word3[(4 *1024)] | ||
) |
Definition at line 239 of file ckb-anim.h.
References urldecode().
Referenced by ckb_read_params(), and main().
void ckb_grad_color | ( | float * | a, |
float * | r, | ||
float * | g, | ||
float * | b, | ||
const ckb_gradient * | grad, | ||
float | pos | ||
) |
Definition at line 254 of file ckb-anim.h.
References ckb_gradient::a, ckb_gradient::b, ckb_gradient::g, ckb_gradient::ptcount, ckb_gradient::pts, and ckb_gradient::r.
Referenced by ckb_frame(), and ckb_keypress().
void ckb_info | ( | ) |
Definition at line 5 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_NAME, CKB_KP_NONE, CKB_KP_POSITION, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_AGRADIENT, CKB_PARAM_ANGLE, CKB_PARAM_BOOL, CKB_PARAM_DOUBLE, CKB_PARAM_LONG, CKB_PARAM_RGB, CKB_PREEMPT, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_REPEAT, CKB_TIME_ABSOLUTE, CKB_TIME_DURATION, CKB_TIMEMODE, CKB_VERSION, FALSE, and TRUE.
Referenced by main(), and quitWithLock().
void ckb_init | ( | ckb_runctx * | context | ) |
Definition at line 57 of file main.c.
References ckb_runctx::height, kbsize, ckb_runctx::keycount, ckb_runctx::keys, NONE, pas, ckb_runctx::width, keyanim::x, ckb_key::x, keyanim::y, and ckb_key::y.
Referenced by main().
void ckb_keypress | ( | ckb_runctx * | , |
ckb_key * | , | ||
int | , | ||
int | , | ||
int | |||
) |
Definition at line 75 of file main.c.
References ckb_gradient::a, anim_add(), anim_remove(), ckb_gradient::b, ckb_grad_color(), drop_add(), ckb_gradient::g, keyAnim::gradient, ckb_runctx::height, HOLD, ckb_runctx::keys, kphold, kprelease, NONE, ckb_gradient::ptcount, ckb_gradient::pts, ckb_gradient::r, randomize, keyAnim::target, and ckb_runctx::width.
Referenced by main().
void ckb_parameter | ( | ckb_runctx * | , |
const char * | , | ||
const char * | |||
) |
Definition at line 68 of file main.c.
References aa, ab, ag, angle, animlength, ar, CKB_PARSE_AGRADIENT, CKB_PARSE_ANGLE, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, CKB_PARSE_LONG, CKB_PARSE_RGB, CKB_REAL_ANGLE, counter_clock, fadein, ffade, ckb_runctx::height, kphold, kprelease, left, M_PI, maxsize, period, power, pressestofull, randomBright, randomize, spawn, speed, symmetric, top, useopacity, width, ckb_runctx::width, x, x_offset, y, and y_offset.
Referenced by ckb_read_params().
void ckb_read_params | ( | ckb_runctx * | ctx | ) |
Definition at line 349 of file ckb-anim.h.
References ckb_getline(), CKB_MAX_WORD, and ckb_parameter().
Referenced by main().
int ckb_scan_grad | ( | const char * | string, |
ckb_gradient * | gradient, | ||
int | alpha | ||
) |
Definition at line 298 of file ckb-anim.h.
References ckb_gradient::a, ckb_gradient::b, ckb_gradient::g, ckb_gradient::ptcount, ckb_gradient::pts, and ckb_gradient::r.
void ckb_start | ( | ckb_runctx * | , |
int | |||
) |
Definition at line 114 of file main.c.
References rgb::a, ckb_key::a, anim_add(), anim_remove(), rgb::b, ckb_key::b, fadein, frame, rgb::g, ckb_key::g, ckb_runctx::height, ckb_runctx::keycount, ckb_runctx::keys, kprelease, left, newtarget(), NONE, phase, rgb::r, ckb_key::r, keyAnim::target, tick, top, ckb_runctx::width, x, x_offset, y, and y_offset.
Referenced by main().
void ckb_time | ( | ckb_runctx * | , |
double | |||
) |
Definition at line 126 of file main.c.
References anim, ANIM_MAX, animlength, current, drop, drop_add(), DROP_MAX, frame, ckb_runctx::height, kbsize, ckb_runctx::keycount, maxsize, newtarget(), period, phase, spawn, speed, target, keyAnim::target, tick, keyanim::timing, keyanim::usages, width, and ckb_runctx::width.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 365 of file ckb-anim.h.
References ckb_key::a, ckb_key::b, ckb_frame(), ckb_getline(), ckb_info(), ckb_init(), CKB_KEYNAME_MAX, ckb_keypress(), CKB_MAX_WORD, ckb_read_params(), ckb_start(), ckb_time(), ckb_key::g, ckb_runctx::height, ckb_runctx::keycount, ckb_runctx::keys, ckb_key::name, ckb_key::r, ckb_runctx::width, x, ckb_key::x, y, and ckb_key::y.
void printurl | ( | const char * | src | ) |
Definition at line 178 of file ckb-anim.h.
void urldecode | ( | char * | dst, |
const char * | src | ||
) |
Definition at line 208 of file ckb-anim.h.
Referenced by ckb_getline().