summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/listwidget.c3
-rw-r--r--src/ui/listwidget.h32
2 files changed, 17 insertions, 18 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index e0047179..b10bf8c3 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -413,10 +413,9 @@ static void draw_ListWidget_(const iListWidget *d) {
413 if (isTargetSet) { 413 if (isTargetSet) {
414 endTarget_Paint(&p); 414 endTarget_Paint(&p);
415 } 415 }
416 buf->validRange =
417 intersect_Rangei(vis, (iRangei){ buf->origin, buf->origin + d->visBuf->texSize.y });
418// fflush(stdout); 416// fflush(stdout);
419 } 417 }
418 validate_VisBuf(d->visBuf);
420 clear_IntSet(&iConstCast(iListWidget *, d)->invalidItems); 419 clear_IntSet(&iConstCast(iListWidget *, d)->invalidItems);
421 } 420 }
422 setClip_Paint(&p, bounds_Widget(w)); 421 setClip_Paint(&p, bounds_Widget(w));
diff --git a/src/ui/listwidget.h b/src/ui/listwidget.h
index 29140c59..a6030f9d 100644
--- a/src/ui/listwidget.h
+++ b/src/ui/listwidget.h
@@ -46,17 +46,17 @@ iDeclareObjectConstruction(ListItem)
46iDeclareWidgetClass(ListWidget) 46iDeclareWidgetClass(ListWidget)
47iDeclareObjectConstruction(ListWidget) 47iDeclareObjectConstruction(ListWidget)
48 48
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 invalidateItem_ListWidget (iListWidget *, size_t index);
53void clear_ListWidget (iListWidget *); 53void clear_ListWidget (iListWidget *);
54void addItem_ListWidget (iListWidget *, iAnyObject *item); 54void addItem_ListWidget (iListWidget *, iAnyObject *item);
55 55
56iScrollWidget * scroll_ListWidget (iListWidget *); 56iScrollWidget * scroll_ListWidget (iListWidget *);
57 57
58int itemHeight_ListWidget (const iListWidget *); 58int itemHeight_ListWidget (const iListWidget *);
59int scrollPos_ListWidget (const iListWidget *); 59int scrollPos_ListWidget (const iListWidget *);
60 60
61void setScrollPos_ListWidget (iListWidget *, int pos); 61void setScrollPos_ListWidget (iListWidget *, int pos);
62void scrollToItem_ListWidget (iListWidget *, size_t index); 62void scrollToItem_ListWidget (iListWidget *, size_t index);
@@ -64,13 +64,13 @@ void scrollOffset_ListWidget (iListWidget *, int offset);
64void updateVisible_ListWidget (iListWidget *); 64void updateVisible_ListWidget (iListWidget *);
65void updateMouseHover_ListWidget (iListWidget *); 65void updateMouseHover_ListWidget (iListWidget *);
66 66
67iAnyObject *item_ListWidget (iListWidget *, size_t index); 67iAnyObject * item_ListWidget (iListWidget *, size_t index);
68iAnyObject *hoverItem_ListWidget (iListWidget *); 68iAnyObject * hoverItem_ListWidget (iListWidget *);
69 69
70size_t numItems_ListWidget (const iListWidget *); 70size_t numItems_ListWidget (const iListWidget *);
71int visCount_ListWidget(const iListWidget *); 71int visCount_ListWidget (const iListWidget *);
72size_t itemIndex_ListWidget(const iListWidget *, iInt2 pos); 72size_t itemIndex_ListWidget (const iListWidget *, iInt2 pos);
73const iAnyObject *constItem_ListWidget (const iListWidget *, size_t index); 73const iAnyObject * constItem_ListWidget (const iListWidget *, size_t index);
74const iAnyObject *constHoverItem_ListWidget (const iListWidget *); 74const iAnyObject * constHoverItem_ListWidget (const iListWidget *);
75 75
76iBool isMouseDown_ListWidget (const iListWidget *); 76iBool isMouseDown_ListWidget (const iListWidget *);