Subversion Repositories Kolibri OS

Rev

Rev 4438 | Rev 5061 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4438 Rev 4446
Line 16... Line 16...
16
uint32_t cursor_nesw;
16
uint32_t cursor_nesw;
17
 
17
 
Line 18... Line 18...
18
int win_font;
18
int win_font;
Line -... Line 19...
-
 
19
 
Line 19... Line 20...
19
 
20
static window_t Window;
Line 20... Line 21...
20
 
21
 
Line 33... Line 34...
33
 
34
 
Line 34... Line 35...
34
 
35
 
Line 35... Line -...
35
void adjust_frame(window_t *win);
-
 
36
 
36
void adjust_frame(window_t *win);
37
 
37
 
-
 
38
//#include "timer.h"
38
#include "control.inc"
39
ctrl_t *win_get_child(window_t *win, int x, int y)
39
//#include "io.inc"
40
{
40
#include "timer.inc"
41
    ctrl_t *child = NULL;
-
 
42
 
41
 
43
    if( win )
-
 
44
    {
-
 
45
        if(pt_in_rect(&win->client, x, y))
42
//#include "button.inc"
46
        {
-
 
47
            ctrl_t *tmp = (ctrl_t*)win->child.next;
-
 
48
 
-
 
49
            while( &tmp->link != &win->child )
-
 
50
            {
-
 
51
                if(pt_in_rect(&tmp->rc, x, y))
-
 
52
                {
-
 
53
                    child = get_child(tmp, x, y);
-
 
54
                    return child == NULL ? tmp : child;
-
 
55
                };
-
 
56
                tmp = (ctrl_t*)tmp->link.next;
-
 
57
            };
-
 
58
        }
43
//#include "scroller.inc"
59
        else child = (ctrl_t*)(&win->frame);
44
 
60
    };
Line 45... Line 61...
45
static window_t Window;
61
    return child;
Line 46... Line 62...
46
 
62
};