rofi
1.5.4
|
#include <config.h>
#include <glib.h>
#include <widgets/widget.h>
#include <widgets/textbox.h>
#include <widgets/listview.h>
#include <widgets/scrollbar.h>
#include "settings.h"
#include "theme.h"
Go to the source code of this file.
Data Structures | |
struct | _listview |
Macros | |
#define | DEFAULT_SPACING 2 |
Enumerations | |
enum | ViewType { LISTVIEW = ROFI_ORIENTATION_VERTICAL, BARVIEW = ROFI_ORIENTATION_HORIZONTAL } |
enum | MoveDirection { LEFT_TO_RIGHT = 0, RIGHT_TO_LEFT = 1 } |
#define DEFAULT_SPACING 2 |
Default spacing between the elements in the listview.
Definition at line 40 of file listview.c.
enum MoveDirection |
The moving direction of the selection, this (in barview) affects the scrolling.
Enumerator | |
---|---|
LEFT_TO_RIGHT | |
RIGHT_TO_LEFT |
Definition at line 55 of file listview.c.
enum ViewType |
Orientation of the listview
Enumerator | |
---|---|
LISTVIEW | Vertical (classical) list |
BARVIEW | Horizontal list. (barview) |
Definition at line 44 of file listview.c.
|
static |
Definition at line 352 of file listview.c.
References barview_draw(), LISTVIEW, listview_draw(), and _listview::type.
Referenced by listview_create().
|
static |
Definition at line 207 of file listview.c.
References _listview::barview, _listview::boxes, _listview::cur_elements, _listview::cur_visible, _listview::direction, distance_get_pixel(), _listview::element_height, _listview::last_offset, LEFT_TO_RIGHT, _listview::rchanged, _listview::req_elements, ROFI_ORIENTATION_HORIZONTAL, scroll_per_page_barview(), _listview::spacing, textbox_get_desired_width(), textbox_moveresize(), update_element(), _widget::w, WIDGET, _listview::widget, widget_draw(), widget_padding_get_left(), widget_padding_get_padding_width(), widget_padding_get_right(), and widget_padding_get_top().
Referenced by _listview_draw().
|
static |
Definition at line 284 of file listview.c.
References _listview::boxes, _listview::cur_columns, _listview::cur_elements, distance_get_pixel(), _listview::element_height, _widget::h, _listview::last_offset, LISTVIEW_SCROLL_CONTINIOUS, _listview::max_rows, _listview::rchanged, _listview::req_elements, _listview::reverse, ROFI_ORIENTATION_HORIZONTAL, ROFI_ORIENTATION_VERTICAL, scroll_continious(), scroll_per_page(), _listview::scroll_type, _listview::scrollbar, scrollbar_set_handle(), scrollbar_set_handle_length(), scrollbar_set_max_value(), _listview::selected, _listview::spacing, textbox_moveresize(), update_element(), _widget::w, WIDGET, _listview::widget, widget_draw(), widget_enabled(), widget_get_width(), widget_padding_get_bottom(), widget_padding_get_left(), widget_padding_get_padding_width(), and widget_padding_get_top().
Referenced by _listview_draw().
|
static |
Definition at line 496 of file listview.c.
References ACCEPT_HOVERED_CUSTOM, ACCEPT_HOVERED_ENTRY, _listview::boxes, _listview::cur_elements, _listview::last_offset, listview_set_selected(), _listview::mouse_activated, _listview::mouse_activated_data, _listview::req_elements, SELECT_HOVERED_ENTRY, WIDGET, WIDGET_TRIGGER_ACTION_RESULT_HANDLED, and WIDGET_TRIGGER_ACTION_RESULT_IGNORED.
|
static |
|
static |
Definition at line 450 of file listview.c.
References _listview::boxes, _listview::cur_elements, _listview::last_offset, _listview::req_elements, _listview::scrollbar, WIDGET, widget_enabled(), widget_find_mouse_target(), widget_get_x_pos(), widget_get_y_pos(), and widget_intersect().
Referenced by listview_create().
|
static |
Definition at line 124 of file listview.c.
References _listview::boxes, _listview::cur_elements, _listview::listview_name, _listview::scrollbar, WIDGET, and widget_free().
Referenced by listview_create().
|
static |
Definition at line 738 of file listview.c.
References BARVIEW, distance_get_pixel(), _listview::dynamic, _listview::element_height, _widget::enabled, _listview::fixed_num_lines, _listview::max_displayed_lines, _listview::menu_lines, _listview::req_elements, ROFI_ORIENTATION_VERTICAL, _listview::spacing, _listview::type, WIDGET, _listview::widget, and widget_padding_get_padding_height().
Referenced by listview_create().
|
static |
Definition at line 585 of file listview.c.
References _listview::barview, _listview::cycle, _listview::direction, LEFT_TO_RIGHT, _listview::req_elements, _listview::selected, WIDGET, and widget_queue_redraw().
Referenced by listview_nav_down(), listview_nav_right(), and listview_nav_up().
|
static |
Definition at line 690 of file listview.c.
References BARVIEW, _listview::barview, _listview::cur_visible, _listview::direction, _listview::last_offset, LEFT_TO_RIGHT, _listview::max_elements, _listview::req_elements, _listview::selected, _listview::type, WIDGET, and widget_queue_redraw().
Referenced by listview_nav_page_next(), and listview_nav_page_prev().
|
static |
Definition at line 665 of file listview.c.
References BARVIEW, _listview::barview, _listview::direction, _listview::last_offset, _listview::max_elements, RIGHT_TO_LEFT, _listview::selected, _listview::type, WIDGET, and widget_queue_redraw().
Referenced by listview_nav_page_next(), and listview_nav_page_prev().
|
static |
Navigation commands.
Definition at line 570 of file listview.c.
References _listview::barview, _listview::cycle, _listview::direction, _listview::req_elements, RIGHT_TO_LEFT, _listview::selected, WIDGET, and widget_queue_redraw().
Referenced by listview_nav_down(), listview_nav_left(), and listview_nav_up().
|
static |
Definition at line 362 of file listview.c.
References _listview::boxes, config, _listview::cur_columns, _listview::cur_elements, flags, listview_element_trigger_action(), _listview::max_elements, _listview::max_rows, _listview::menu_columns, _listview::multi_select, NORMAL, _listview::rchanged, _listview::req_elements, Settings::show_icons, TB_ICON, TB_INDICATOR, textbox_create(), WIDGET, widget_free(), widget_set_trigger_action_handler(), and WIDGET_TYPE_LISTVIEW_ELEMENT.
Referenced by listview_resize(), listview_set_num_elements(), and listview_set_show_scrollbar().
|
static |
Definition at line 420 of file listview.c.
References BARVIEW, distance_get_pixel(), _listview::element_height, _widget::h, listview_recompute_elements(), _listview::max_elements, _listview::max_rows, _listview::menu_columns, _listview::menu_lines, ROFI_ORIENTATION_VERTICAL, _listview::scrollbar, _listview::spacing, _listview::type, _widget::w, WIDGET, _listview::widget, widget_get_width(), widget_move(), widget_padding_get_left(), widget_padding_get_padding_height(), widget_padding_get_right(), widget_padding_get_top(), widget_queue_redraw(), and widget_resize().
Referenced by listview_create().
|
static |
Definition at line 475 of file listview.c.
References listview_nav_down(), listview_nav_left(), listview_nav_right(), listview_nav_up(), SCROLL_DOWN, SCROLL_LEFT, SCROLL_RIGHT, SCROLL_UP, and WIDGET_TRIGGER_ACTION_RESULT_HANDLED.
Referenced by listview_create().
|
static |
Definition at line 175 of file listview.c.
References _listview::cur_page, _listview::max_rows, _listview::rchanged, _listview::req_elements, and _listview::selected.
Referenced by listview_draw().
|
static |
Definition at line 152 of file listview.c.
References _listview::cur_page, _listview::last_offset, _listview::max_elements, _listview::rchanged, and _listview::selected.
Referenced by listview_draw().
|
static |
Definition at line 136 of file listview.c.
References _listview::barview, _listview::cur_visible, _listview::last_offset, _listview::rchanged, and _listview::selected.
Referenced by barview_draw().
|
static |
Definition at line 196 of file listview.c.
References ALT, _listview::boxes, _listview::callback, HIGHLIGHT, NORMAL, _listview::selected, and _listview::udata.
Referenced by barview_draw(), and listview_draw().