2
* $Id: BSE_drawipo.h 16270 2008-08-27 13:02:44Z aligorith $
4
* ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
20
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21
* All rights reserved.
23
* The Original Code is: all of this file.
25
* Contributor(s): none yet.
27
* ***** END GPL LICENSE BLOCK *****
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]))
36
#define SELECT_REPLACE 1
38
#define SELECT_SUBTRACT 4
39
#define SELECT_INVERT 16
47
void calc_ipogrid(void);
48
void draw_ipogrid(void);
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);
54
struct View2D *spacelink_get_view2d(struct SpaceLink *sl);
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);
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);
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);
73
struct EditIpo *select_proj_ipo(struct rctf *rectf, int event);
76
#endif /* BSE_DRAWIPO_H */