mirror of
https://github.com/lbonn/rofi
synced 2024-11-16 00:48:02 +00:00
54f85fabaa
Now we check all bindings in one place, allowing for future naughty matching. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
74 lines
1.7 KiB
C
74 lines
1.7 KiB
C
#ifndef ROFI_VIEW_INTERNAL_H
|
|
#define ROFI_VIEW_INTERNAL_H
|
|
#include "widget.h"
|
|
#include "textbox.h"
|
|
#include "scrollbar.h"
|
|
#include "keyb.h"
|
|
#include "x11-helper.h"
|
|
|
|
/**
|
|
* @ingroup ViewHandle
|
|
*
|
|
* @{
|
|
*/
|
|
// State of the menu.
|
|
|
|
struct RofiViewState
|
|
{
|
|
Mode *sw;
|
|
unsigned int menu_lines;
|
|
unsigned int max_elements;
|
|
unsigned int max_rows;
|
|
unsigned int columns;
|
|
|
|
unsigned int element_width;
|
|
int top_offset;
|
|
|
|
// Update/Refilter list.
|
|
int update;
|
|
int refilter;
|
|
int rchanged;
|
|
int cur_page;
|
|
|
|
// Entries
|
|
textbox *text;
|
|
textbox *prompt_tb;
|
|
textbox *message_tb;
|
|
textbox *case_indicator;
|
|
textbox **boxes;
|
|
scrollbar *scrollbar;
|
|
int *distance;
|
|
unsigned int *line_map;
|
|
|
|
unsigned int num_lines;
|
|
|
|
// Selected element.
|
|
unsigned int selected;
|
|
unsigned int filtered_lines;
|
|
// Last offset in paginating.
|
|
unsigned int last_offset;
|
|
|
|
KeyBindingAction prev_action;
|
|
xcb_timestamp_t last_button_press;
|
|
|
|
int quit;
|
|
int skip_absorb;
|
|
// Return state
|
|
unsigned int selected_line;
|
|
MenuReturn retv;
|
|
int *lines_not_ascii;
|
|
int line_height;
|
|
unsigned int border;
|
|
workarea mon;
|
|
|
|
// Sidebar view
|
|
unsigned int num_modi;
|
|
textbox **modi;
|
|
|
|
MenuFlags menu_flags;
|
|
// Handlers.
|
|
void ( *x11_event_loop )( struct RofiViewState *state, xcb_generic_event_t *ev, xkb_stuff *xkb );
|
|
void ( *finalize )( struct RofiViewState *state );
|
|
};
|
|
/** @} */
|
|
#endif
|