diff options
Diffstat (limited to 'include/view.h')
-rw-r--r-- | include/view.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/include/view.h b/include/view.h index ca3a5721..ecb31ea7 100644 --- a/include/view.h +++ b/include/view.h @@ -1,7 +1,8 @@ #ifndef ROFI_VIEW_H #define ROFI_VIEW_H #include "mode.h" -#include "xkb.h" +#include "keyb.h" +#include "display.h" /** * @defgroup View View @@ -21,7 +22,7 @@ typedef enum /** Create a menu for entering passwords */ MENU_PASSWORD = 1, /** Create amanaged window. */ - MENU_NORMAL_WINDOW = 2, + _DEPRECATED_MENU_NORMAL_WINDOW = 2, /** ERROR dialog */ MENU_ERROR_DIALOG = 4, /** INDICATOR */ @@ -72,7 +73,7 @@ unsigned int rofi_view_get_next_position ( const RofiViewState *state ); * * Process an Xevent. */ -void rofi_view_itterrate ( RofiViewState *state, xcb_generic_event_t *event, xkb_stuff *xkb ); +//FIXME: void rofi_view_itterrate ( RofiViewState *state, xcb_generic_event_t *event, xkb_stuff *xkb ); /** * @param state the Menu handle * @@ -109,6 +110,7 @@ unsigned int rofi_view_get_selected_line ( const RofiViewState *state ); * Resets RofiViewState::quit and RofiViewState::retv. */ void rofi_view_restart ( RofiViewState *state ); +void rofi_view_quit ( RofiViewState *state ); /** * @param state The handle to the view @@ -159,6 +161,23 @@ void rofi_view_set_active ( RofiViewState *state ); int rofi_view_error_dialog ( const char *msg, int markup ); /** + * Inform rofi that the last frame properly hit the screen + * and it can repaint a new one if needed + */ +void rofi_view_frame_callback( void ); +void rofi_view_handle_keypress ( widget_modifier_mask modmask, xkb_keysym_t key, char *text, int len ); +typedef enum { + ROFI_MOUSE_WHEEL_UP, + ROFI_MOUSE_WHEEL_DOWN, + ROFI_MOUSE_WHEEL_LEFT, + ROFI_MOUSE_WHEEL_RIGHT, +} rofi_mouse_wheel_direction; +void rofi_view_mouse_navigation ( rofi_mouse_wheel_direction direction ); +void rofi_view_handle_mouse_button ( widget_button_event *be ); +void rofi_view_handle_mouse_motion ( widget_motion_event *me ); +void rofi_view_set_size ( RofiViewState * state, gint width, gint height ); +void rofi_view_maybe_update ( void ); +/** * Queue a redraw. * This triggers a X11 Expose Event. */ @@ -221,12 +240,6 @@ void rofi_view_clear_input ( RofiViewState *state ); * TODO: Internal call to view exposed. */ void __create_window ( MenuFlags menu_flags ); -/** - * Get the handle of the main window. - * - * @returns the xcb_window_t for rofi's view or XCB_WINDOW_NONE. - */ -xcb_window_t rofi_view_get_window ( void ); /** @} */ /*** |