1
0
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:
kojima
2000-10-11 16:21:50 +00:00
parent bdaacb6daa
commit 275a2a3782
5 changed files with 35 additions and 2 deletions

View File

@@ -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);
}