X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fguicast%2Fbclistbox.h;h=6bdd2c041a35e0d202310a27b9c199d3bc7e864d;hb=HEAD;hp=ce867ef88ecc196efd0dfd3b6d9f2c79a881a11f;hpb=17b4e5a06157865391c2d07b552b81d84665bcae;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bclistbox.h b/cinelerra-5.1/guicast/bclistbox.h index ce867ef8..6bdd2c04 100644 --- a/cinelerra-5.1/guicast/bclistbox.h +++ b/cinelerra-5.1/guicast/bclistbox.h @@ -191,6 +191,12 @@ public: int activate(int x, int y, int w=-1, int h=-1); int deactivate(); 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); @@ -332,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(); @@ -440,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,