summaryrefslogtreecommitdiff
path: root/src/ui/listwidget.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 22:45:15 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-06 22:45:15 +0300
commita364d9456dfdfd8181904fca6308e9c36eefd10a (patch)
treef355ded227cf52053784b991f5d8441a5502e447 /src/ui/listwidget.h
parent52a1652536e4e27751ac121009f85113e72afe7d (diff)
LookupWidget: Keyboard focus and cursor
Diffstat (limited to 'src/ui/listwidget.h')
-rw-r--r--src/ui/listwidget.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/listwidget.h b/src/ui/listwidget.h
index c8a07f51..72b7dba4 100644
--- a/src/ui/listwidget.h
+++ b/src/ui/listwidget.h
@@ -49,6 +49,7 @@ iDeclareObjectConstruction(ListWidget)
49void setItemHeight_ListWidget(iListWidget *, int itemHeight); 49void setItemHeight_ListWidget(iListWidget *, int itemHeight);
50 50
51void invalidate_ListWidget (iListWidget *); 51void invalidate_ListWidget (iListWidget *);
52void invalidateItem_ListWidget(iListWidget *, size_t index);
52void clear_ListWidget (iListWidget *); 53void clear_ListWidget (iListWidget *);
53void addItem_ListWidget (iListWidget *, iAnyObject *item); 54void addItem_ListWidget (iListWidget *, iAnyObject *item);
54 55
@@ -62,9 +63,12 @@ void scrollOffset_ListWidget (iListWidget *, int offset);
62void updateVisible_ListWidget (iListWidget *); 63void updateVisible_ListWidget (iListWidget *);
63void updateMouseHover_ListWidget (iListWidget *); 64void updateMouseHover_ListWidget (iListWidget *);
64 65
66iAnyObject *item_ListWidget (iListWidget *, size_t index);
67iAnyObject *hoverItem_ListWidget (iListWidget *);
68
65size_t numItems_ListWidget (const iListWidget *); 69size_t numItems_ListWidget (const iListWidget *);
66size_t itemIndex_ListWidget(const iListWidget *, iInt2 pos); 70size_t itemIndex_ListWidget(const iListWidget *, iInt2 pos);
67const iAnyObject *constHoverItem_ListWidget(const iListWidget *); 71const iAnyObject *constItem_ListWidget (const iListWidget *, size_t index);
68iAnyObject *hoverItem_ListWidget(iListWidget *); 72const iAnyObject *constHoverItem_ListWidget (const iListWidget *);
69 73
70iBool isMouseDown_ListWidget (const iListWidget *); 74iBool isMouseDown_ListWidget (const iListWidget *);