ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Go to the source code of this file.
Macros | |
#define | ANIM_MAX (144 * 2) |
Functions | |
void | ckb_info () |
void | ckb_init (ckb_runctx *context) |
void | ckb_parameter (ckb_runctx *context, const char *name, const char *value) |
void | anim_add (float x, float y) |
void | anim_remove (float x, float y) |
void | ckb_keypress (ckb_runctx *context, ckb_key *key, int x, int y, int state) |
void | ckb_start (ckb_runctx *context, int state) |
void | ckb_time (ckb_runctx *context, double delta) |
int | ckb_frame (ckb_runctx *context) |
Variables | |
ckb_gradient | animcolor = { 0 } |
int | symmetric = 0 |
int | kprelease = 0 |
double | angle = 0. |
double | left = 0. |
double | top = 0. |
double | animlength = 0. |
double | width = 0. |
struct { | |
int | active |
float | x |
float | y |
float | curx |
} | anim [(144 *2)] = { } |
#define ANIM_MAX (144 * 2) |
Definition at line 98 of file main.c.
Referenced by anim_add(), anim_remove(), ckb_frame(), and ckb_time().
void anim_add | ( | float | x, |
float | y | ||
) |
int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 152 of file main.c.
References angle, anim, ANIM_MAX, animlength, ckb_alpha_blend(), ckb_grad_color(), CKB_KEYCLEAR, ckb_runctx::keycount, ckb_runctx::keys, symmetric, width, x, and y.
Referenced by main().
void ckb_info | ( | ) |
Definition at line 4 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_POSITION, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_AGRADIENT, CKB_PARAM_ANGLE, CKB_PARAM_BOOL, CKB_PARAM_DOUBLE, CKB_PREEMPT, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_TIME_DURATION, CKB_TIMEMODE, CKB_VERSION, and TRUE.
Referenced by main().
void ckb_init | ( | ckb_runctx * | context | ) |
void ckb_keypress | ( | ckb_runctx * | context, |
ckb_key * | key, | ||
int | x, | ||
int | y, | ||
int | state | ||
) |
Definition at line 124 of file main.c.
References anim_add(), and anim_remove().
Referenced by main().
void ckb_parameter | ( | ckb_runctx * | context, |
const char * | name, | ||
const char * | value | ||
) |
Definition at line 54 of file main.c.
References angle, animlength, CKB_PARSE_AGRADIENT, CKB_PARSE_ANGLE, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, CKB_REAL_ANGLE, ckb_runctx::height, kprelease, left, symmetric, top, width, ckb_runctx::width, x, and y.
Referenced by ckb_read_params().
void ckb_start | ( | ckb_runctx * | context, |
int | state | ||
) |
Definition at line 132 of file main.c.
References anim_add(), anim_remove(), kprelease, left, and top.
Referenced by main().
void ckb_time | ( | ckb_runctx * | context, |
double | delta | ||
) |
double angle = 0. |
Definition at line 50 of file main.c.
Referenced by angleFlip(), ckb_frame(), and ckb_parameter().
struct { ... } anim[ (144 * 2) ] |
ckb_gradient animcolor = { 0 } |
double left = 0. |
Definition at line 51 of file main.c.
Referenced by _cmd_macro(), ckb_parameter(), ckb_start(), cmd_dpi(), GradientDialogWidget::mouseMoveEvent(), readcmd(), and right().
double top = 0. |
Definition at line 51 of file main.c.
Referenced by ckb_parameter(), ckb_start(), and GradientDialogWidget::mouseMoveEvent().
double width = 0. |
Definition at line 52 of file main.c.
Referenced by anim_add(), ckb_frame(), ckb_parameter(), ckb_time(), KeyWidget::drawInfo(), GradientDialogWidget::fillRect(), KeyWidget::map(), and KeyWidget::paintEvent().