diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/listwidget.c | 3 | ||||
-rw-r--r-- | src/ui/listwidget.h | 32 |
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) | |||
46 | iDeclareWidgetClass(ListWidget) | 46 | iDeclareWidgetClass(ListWidget) |
47 | iDeclareObjectConstruction(ListWidget) | 47 | iDeclareObjectConstruction(ListWidget) |
48 | 48 | ||
49 | void setItemHeight_ListWidget(iListWidget *, int itemHeight); | 49 | void setItemHeight_ListWidget (iListWidget *, int itemHeight); |
50 | 50 | ||
51 | void invalidate_ListWidget (iListWidget *); | 51 | void invalidate_ListWidget (iListWidget *); |
52 | void invalidateItem_ListWidget(iListWidget *, size_t index); | 52 | void invalidateItem_ListWidget (iListWidget *, size_t index); |
53 | void clear_ListWidget (iListWidget *); | 53 | void clear_ListWidget (iListWidget *); |
54 | void addItem_ListWidget (iListWidget *, iAnyObject *item); | 54 | void addItem_ListWidget (iListWidget *, iAnyObject *item); |
55 | 55 | ||
56 | iScrollWidget * scroll_ListWidget (iListWidget *); | 56 | iScrollWidget * scroll_ListWidget (iListWidget *); |
57 | 57 | ||
58 | int itemHeight_ListWidget (const iListWidget *); | 58 | int itemHeight_ListWidget (const iListWidget *); |
59 | int scrollPos_ListWidget (const iListWidget *); | 59 | int scrollPos_ListWidget (const iListWidget *); |
60 | 60 | ||
61 | void setScrollPos_ListWidget (iListWidget *, int pos); | 61 | void setScrollPos_ListWidget (iListWidget *, int pos); |
62 | void scrollToItem_ListWidget (iListWidget *, size_t index); | 62 | void scrollToItem_ListWidget (iListWidget *, size_t index); |
@@ -64,13 +64,13 @@ void scrollOffset_ListWidget (iListWidget *, int offset); | |||
64 | void updateVisible_ListWidget (iListWidget *); | 64 | void updateVisible_ListWidget (iListWidget *); |
65 | void updateMouseHover_ListWidget (iListWidget *); | 65 | void updateMouseHover_ListWidget (iListWidget *); |
66 | 66 | ||
67 | iAnyObject *item_ListWidget (iListWidget *, size_t index); | 67 | iAnyObject * item_ListWidget (iListWidget *, size_t index); |
68 | iAnyObject *hoverItem_ListWidget (iListWidget *); | 68 | iAnyObject * hoverItem_ListWidget (iListWidget *); |
69 | 69 | ||
70 | size_t numItems_ListWidget (const iListWidget *); | 70 | size_t numItems_ListWidget (const iListWidget *); |
71 | int visCount_ListWidget(const iListWidget *); | 71 | int visCount_ListWidget (const iListWidget *); |
72 | size_t itemIndex_ListWidget(const iListWidget *, iInt2 pos); | 72 | size_t itemIndex_ListWidget (const iListWidget *, iInt2 pos); |
73 | const iAnyObject *constItem_ListWidget (const iListWidget *, size_t index); | 73 | const iAnyObject * constItem_ListWidget (const iListWidget *, size_t index); |
74 | const iAnyObject *constHoverItem_ListWidget (const iListWidget *); | 74 | const iAnyObject * constHoverItem_ListWidget (const iListWidget *); |
75 | 75 | ||
76 | iBool isMouseDown_ListWidget (const iListWidget *); | 76 | iBool isMouseDown_ListWidget (const iListWidget *); |