X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbclistbox.h;h=6bdd2c041a35e0d202310a27b9c199d3bc7e864d;hb=0d3917a4eda0344055badf0bd6e235c15c3b6cb8;hp=ba3819ae1b173bc9e0094bdb5bc9a205101bc0d0;hpb=ae44cc4a24c9e04ee5e3b38baf6ce529832cfb39;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bclistbox.h b/cinelerra-5.1/guicast/bclistbox.h index ba3819ae..6bdd2c04 100644 --- a/cinelerra-5.1/guicast/bclistbox.h +++ b/cinelerra-5.1/guicast/bclistbox.h @@ -193,6 +193,11 @@ public: int is_active(); int expander_active(); +// get item no at current cursor position + int get_cursor_item_no(); +// get top data item no, and item at current cursor position + int get_cursor_data_item_no(BC_ListBoxItem **item_return=0); + int translation_event(); int repeat_event(int64_t duration); BC_DragWindow* get_drag_popup(); @@ -333,7 +338,6 @@ public: // Draw the list items int draw_items(int flash, int bg_draw=0); int is_highlighted(); - int get_cursor_item(); private: void delete_columns(); @@ -441,7 +445,8 @@ private: // Points *item_return to the first item in the row or 0 if no item was found. // if it's nonzero. Returns -1 if no item was found. Clamps the y coordinate // only if the current operation is not SELECT, so scrolling is possible. -// expanded - 1 if items in this table should be tested for cursor coverage +// expanded = 1 if items in this table should be tested for cursor coverage +// expanded = -1 returns only the top level master column index/item int get_cursor_item(ArrayList *data, int cursor_x, int cursor_y,