spmenu/libs/arg.h

81 lines
2 KiB
C
Raw Normal View History

2023-05-14 00:21:16 +02:00
/* See LICENSE file for copyright and license details. */
typedef union {
2023-05-08 23:00:45 +02:00
int i; // integer
unsigned int ui; // unsigned int
float f; // float
const void *v; // void
const char *c; // char
} Arg;
2023-07-16 18:49:20 +02:00
/* declare keybind functions
*
* movement
*/
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);
2023-05-22 16:35:57 +02:00
static void moveitem(Arg *arg);
2023-07-16 18:49:20 +02:00
static void moveword(Arg *arg);
static void movecursor(Arg *arg);
/* input */
2023-04-25 09:56:11 +02:00
static void paste(Arg *arg);
static void restoresel(Arg *arg);
static void clear(Arg *arg);
static void clearins(Arg *arg);
static void deleteword(Arg *arg);
static void backspace(Arg *arg);
2023-07-16 18:49:20 +02:00
static void complete(Arg *arg);
/* history */
static void viewhist(Arg *arg);
static void navhistory(Arg *arg);
/* selection */
static void markitem(Arg *arg);
2023-04-25 09:56:11 +02:00
static void selectitem(Arg *arg);
2023-07-16 18:49:20 +02:00
/* image */
2023-04-25 09:56:11 +02:00
static void setimgsize(Arg *arg);
static void defaultimg(Arg *arg);
static void flipimg(Arg *arg);
static void setimgpos(Arg *arg);
static void setimggaps(Arg *arg);
2023-07-16 18:49:20 +02:00
/* lines/columns */
2023-04-25 09:56:11 +02:00
static void setlines(Arg *arg);
static void setcolumns(Arg *arg);
2023-07-16 18:49:20 +02:00
/* misc */
2023-04-25 09:56:11 +02:00
static void spawn(Arg *arg);
static void screenshot(Arg *arg);
2023-07-16 18:49:20 +02:00
static void switchmode(Arg *arg);
static void setprofile(Arg *arg);
2023-07-16 18:59:08 +02:00
static void setlineheight(Arg *arg);
2023-07-16 18:49:20 +02:00
static void quit(Arg *arg);
/* toggle */
static void toggleinput(Arg *arg);
static void togglelarrow(Arg *arg);
static void togglerarrow(Arg *arg);
static void toggleitem(Arg *arg);
static void toggleprompt(Arg *arg);
static void togglecaps(Arg *arg);
static void togglepowerline(Arg *arg);
static void togglecaret(Arg *arg);
static void togglematchcount(Arg *arg);
static void togglemode(Arg *arg);
static void togglehighlight(Arg *arg);
static void toggleregex(Arg *arg);
2023-07-22 19:13:02 +02:00
static void togglefuzzy(Arg *arg);
2023-07-16 18:49:20 +02:00
static void toggleimg(Arg *arg);
/* hover */
static void selecthover(Arg *arg);
static void markhover(Arg *arg);