tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

listnav.h (401B)


      1#pragma once
      2
      3struct listnav {
      4	/* current window */
      5	int wmin, wmax, wlen;
      6
      7	/* selected item moving inside of window */
      8	int sel;
      9
     10	/* bounds of actual list */
     11	int min, max;
     12};
     13
     14void listnav_init(struct listnav *nav);
     15void listnav_update_bounds(struct listnav *nav, int min, int max);
     16void listnav_update_wlen(struct listnav *nav, int wlen);
     17void listnav_update_sel(struct listnav *nav, int sel);
     18