mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
added scrolled notifcation to scroller
added GetVisibleRect function to scrollview
This commit is contained in:
@@ -236,6 +236,17 @@ WMSetScrollViewPageScroll(WMScrollView *sPtr, int amount)
|
||||
}
|
||||
|
||||
|
||||
WMRect
|
||||
WMGetScrollViewVisibleRect(WMScrollView *sPtr)
|
||||
{
|
||||
WMRect rect;
|
||||
|
||||
rect.pos = sPtr->contentView->pos;
|
||||
rect.size = sPtr->viewport->size;
|
||||
|
||||
return rect;
|
||||
}
|
||||
|
||||
static void
|
||||
doScrolling(WMWidget *self, void *data)
|
||||
{
|
||||
@@ -522,7 +533,7 @@ handleEvents(XEvent *event, void *data)
|
||||
static void
|
||||
destroyScrollView(ScrollView *sPtr)
|
||||
{
|
||||
|
||||
puts("destroyScrollView not implemented");
|
||||
|
||||
wfree(sPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user