2023-02-26 05:13:40 +01:00
|
|
|
typedef union {
|
2023-03-31 12:42:15 +02:00
|
|
|
int i; // integer
|
|
|
|
unsigned int ui; // unsigned int
|
|
|
|
float f; // float
|
|
|
|
const void *v; // void
|
2023-04-23 20:08:34 +02:00
|
|
|
const char *c; // char
|
2023-02-26 05:13:40 +01:00
|
|
|
} Arg;
|
2023-03-06 21:03:06 +01:00
|
|
|
|
2023-03-16 16:54:36 +01:00
|
|
|
// declare keybind functions
|
2023-04-25 09:56:11 +02:00
|
|
|
static void moveup(Arg *arg);
|
|
|
|
static void movedown(Arg *arg);
|
|
|
|
static void moveleft(Arg *arg);
|
|
|
|
static void moveright(Arg *arg);
|
|
|
|
static void moveend(Arg *arg);
|
|
|
|
static void movestart(Arg *arg);
|
|
|
|
static void movenext(Arg *arg);
|
|
|
|
static void moveprev(Arg *arg);
|
|
|
|
static void paste(Arg *arg);
|
|
|
|
static void restoresel(Arg *arg);
|
|
|
|
static void clear(Arg *arg);
|
|
|
|
static void clearins(Arg *arg);
|
|
|
|
static void viewhist(Arg *arg);
|
|
|
|
static void moveword(Arg *arg);
|
|
|
|
static void deleteword(Arg *arg);
|
|
|
|
static void movecursor(Arg *arg);
|
|
|
|
static void navhistory(Arg *arg);
|
|
|
|
static void backspace(Arg *arg);
|
|
|
|
static void selectitem(Arg *arg);
|
|
|
|
static void quit(Arg *arg);
|
|
|
|
static void complete(Arg *arg);
|
|
|
|
static void setimgsize(Arg *arg);
|
|
|
|
static void toggleimg(Arg *arg);
|
|
|
|
static void defaultimg(Arg *arg);
|
|
|
|
static void rotateimg(Arg *arg);
|
|
|
|
static void flipimg(Arg *arg);
|
|
|
|
static void setimgpos(Arg *arg);
|
|
|
|
static void setimggaps(Arg *arg);
|
|
|
|
static void setlines(Arg *arg);
|
|
|
|
static void setcolumns(Arg *arg);
|
|
|
|
static void spawn(Arg *arg);
|
|
|
|
static void togglehighlight(Arg *arg);
|
2023-04-26 10:01:11 +02:00
|
|
|
static void setprofile(Arg *arg);
|