rofi/include/view-internal.h

76 lines
1.6 KiB
C
Raw Normal View History

2016-02-06 13:27:36 +00:00
#ifndef ROFI_VIEW_INTERNAL_H
#define ROFI_VIEW_INTERNAL_H
#include "widget.h"
#include "textbox.h"
#include "scrollbar.h"
/**
2016-02-08 17:16:16 +00:00
* @ingroup ViewHandle
2016-02-06 13:27:36 +00:00
*
* @{
*/
// State of the menu.
2016-02-11 19:24:29 +00:00
struct RofiViewState
2016-02-06 13:27:36 +00:00
{
Mode *sw;
unsigned int menu_lines;
unsigned int max_elements;
unsigned int max_rows;
unsigned int columns;
// window width,height
unsigned int w, h;
int x, y;
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;
KeySym prev_key;
Time 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;
2016-02-06 13:27:36 +00:00
textbox **modi;
2016-02-10 18:40:19 +00:00
MenuFlags menu_flags;
2016-02-06 13:27:36 +00:00
// Handlers.
2016-02-16 09:40:21 +00:00
void ( *x11_event_loop )( struct RofiViewState *state, XEvent *ev );
void ( *finalize )( struct RofiViewState *state );
2016-02-11 19:24:29 +00:00
};
2016-02-06 13:27:36 +00:00
/** @} */
#endif