File: appDrawnPulldown.c

package info (click to toggle)
ted 2.16-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,944 kB
  • ctags: 20,273
  • sloc: ansic: 167,980; makefile: 12,518; sh: 263
file content (50 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#   include	"appFrameConfig.h"

#   include	<stdlib.h>
#   include	<stdio.h>

#   include	"appFrame.h"
#   include	"appSystem.h"
#   include	<appGeoString.h>

#   include	<appDebugon.h>

void appDrawnPulldownDrawArrow(		int *			pRestWide,
					int *			pRestHigh,
					APP_WIDGET		w,
					AppDrawingData *	add )
    {
    int		wide;
    int		high;

    int		x0;
    int		wi;
    int		m;
    int		d;

    APP_POINT	points[4];

    appDrawGetSizeOfWidget( &wide, &high, w );

    wi= ( 2* high )/ 3;
    x0= wide- wi;
    m= x0+ wi/ 2;
    d= wi/ 4;

    points[0].x= m- d;
    points[0].y= high/ 3;
    points[1].x= m+ d;
    points[1].y= high/ 3;
    points[2].x= m;
    points[2].y= ( 2* high )/ 3;

    points[3]= points[0];

    appDrawSetForegroundBlack( add );
    appDrawFillPolygon( add, points, 3 );

    *pRestWide= wide- wi;
    *pRestHigh= high;
    return;
    }