~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/blender/include/BSE_drawipo.h

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * $Id: BSE_drawipo.h 16270 2008-08-27 13:02:44Z aligorith $
 
3
 *
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software Foundation,
 
18
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
 *
 
20
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 
21
 * All rights reserved.
 
22
 *
 
23
 * The Original Code is: all of this file.
 
24
 *
 
25
 * Contributor(s): none yet.
 
26
 *
 
27
 * ***** END GPL LICENSE BLOCK *****
 
28
 */
 
29
 
 
30
#ifndef BSE_DRAWIPO_H
 
31
#define BSE_DRAWIPO_H
 
32
 
 
33
#define IN_2D_VERT_SCROLL(A) (BLI_in_rcti(&G.v2d->vert, A[0], A[1]))
 
34
#define IN_2D_HORIZ_SCROLL(A) (BLI_in_rcti(&G.v2d->hor, A[0], A[1]))
 
35
 
 
36
#define SELECT_REPLACE   1
 
37
#define SELECT_ADD       2
 
38
#define SELECT_SUBTRACT  4
 
39
#define SELECT_INVERT   16
 
40
 
 
41
struct ScrArea;
 
42
struct EditIpo;
 
43
struct View2D;
 
44
struct rctf;
 
45
struct SpaceLink;
 
46
 
 
47
void calc_ipogrid(void);
 
48
void draw_ipogrid(void);
 
49
 
 
50
void areamouseco_to_ipoco       (struct View2D *v2d, short *mval, float *x, float *y);
 
51
void ipoco_to_areaco            (struct View2D *v2d, float *vec, short *mval);
 
52
void ipoco_to_areaco_noclip     (struct View2D *v2d, float *vec, short *mval);
 
53
 
 
54
struct View2D *spacelink_get_view2d(struct SpaceLink *sl);
 
55
 
 
56
void view2d_do_locks            (struct ScrArea *cursa, int flag);
 
57
void view2d_zoom                        (struct View2D *v2d, float factor, int winx, int winy);
 
58
void view2d_getscale            (struct View2D *v2d, float *x, float *y);
 
59
void test_view2d                        (struct View2D *v2d, int winx, int winy);
 
60
void calc_scrollrcts            (struct ScrArea *sa, struct View2D *v2d, int winx, int winy);
 
61
 
 
62
int in_ipo_buttons(void);
 
63
void draw_view2d_numbers_horiz(int drawframes);
 
64
void drawscroll(int disptype);
 
65
void drawipospace(struct ScrArea *sa, void *spacedata);
 
66
 
 
67
void center_currframe(void);
 
68
void scroll_ipobuts(void);
 
69
int view2dzoom(unsigned short event);
 
70
int view2dmove(unsigned short event); 
 
71
void view2dborder(void);
 
72
 
 
73
struct EditIpo *select_proj_ipo(struct rctf *rectf, int event);
 
74
 
 
75
 
 
76
#endif  /*  BSE_DRAWIPO_H */
 
77