ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include "../ckb/ckb-anim.h"
Go to the source code of this file.
Macros | |
#define | ANGLE(theta) fmod((theta) + M_PI * 2., M_PI * 2.) |
Functions | |
void | ckb_info () |
void | ckb_parameter (ckb_runctx *context, const char *name, const char *value) |
void | ckb_init (ckb_runctx *context) |
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 } |
double | animlength = 0. |
int | symmetric = 0 |
int | counter_clock = 0 |
double | x_offset = 0 |
double | y_offset = 0 |
double | frame = -1. |
float | x |
float | y |
Definition at line 68 of file main.c.
Referenced by ckb_frame().
int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 86 of file main.c.
References ANGLE, animlength, ckb_alpha_blend(), ckb_grad_color(), CKB_KEYCLEAR, counter_clock, frame, ckb_runctx::keycount, ckb_runctx::keys, M_PI, symmetric, x, and y.
void ckb_info | ( | ) |
Definition at line 3 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_NONE, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_AGRADIENT, CKB_PARAM_BOOL, CKB_PARAM_DOUBLE, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_REPEAT, CKB_TIME_DURATION, CKB_TIMEMODE, CKB_VERSION, FALSE, and TRUE.
void ckb_init | ( | ckb_runctx * | context | ) |
void ckb_keypress | ( | ckb_runctx * | context, |
ckb_key * | key, | ||
int | x, | ||
int | y, | ||
int | state | ||
) |
void ckb_parameter | ( | ckb_runctx * | context, |
const char * | name, | ||
const char * | value | ||
) |
Definition at line 45 of file main.c.
References animlength, CKB_PARSE_AGRADIENT, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, counter_clock, M_PI, symmetric, x_offset, and y_offset.
void ckb_start | ( | ckb_runctx * | context, |
int | state | ||
) |
Definition at line 70 of file main.c.
References frame, ckb_runctx::height, ckb_runctx::width, x, x_offset, y, and y_offset.
void ckb_time | ( | ckb_runctx * | context, |
double | delta | ||
) |
ckb_gradient animcolor = { 0 } |
double animlength = 0. |
Definition at line 40 of file main.c.
Referenced by anim_add(), ckb_frame(), ckb_parameter(), and ckb_time().
int counter_clock = 0 |
Definition at line 42 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
double frame = -1. |
Definition at line 65 of file main.c.
Referenced by ckb_frame(), ckb_start(), ckb_time(), and AnimSettingDialog::hLine().
int symmetric = 0 |
Definition at line 41 of file main.c.
Referenced by anim_add(), ckb_frame(), and ckb_parameter().
float x |
Definition at line 66 of file main.c.
Referenced by anim_add(), KeyMap::byPosition(), ckb_frame(), ckb_parameter(), ckb_start(), cmd_dpi(), drop_add(), GradientDialogWidget::fillRect(), main(), GradientDialog::makeIcon(), GradientDialogWidget::mousePressEvent(), ColorMap::operator==(), os_mousemove(), GradientDialogWidget::paintEvent(), KeyWidget::paintEvent(), Kb::readNotify(), unz64local_getLong(), unz64local_getLong64(), unz64local_getShort(), GradientButton::updateImage(), zip64local_getLong(), zip64local_getLong64(), and zip64local_getShort().
double x_offset = 0 |
Definition at line 43 of file main.c.
Referenced by ckb_parameter(), and ckb_start().
float y |
Definition at line 66 of file main.c.
Referenced by anim_add(), KeyMap::byPosition(), ckb_frame(), ckb_parameter(), ckb_start(), cmd_dpi(), drop_add(), GradientDialogWidget::fillRect(), main(), GradientDialog::makeIcon(), GradientDialogWidget::mousePressEvent(), os_mousemove(), GradientDialogWidget::paintEvent(), KeyWidget::paintEvent(), and Kb::readNotify().
double y_offset = 0 |
Definition at line 43 of file main.c.
Referenced by ckb_parameter(), and ckb_start().