Blender  V2.59
screen_intern.h
Go to the documentation of this file.
00001 /*
00002  * $Id: screen_intern.h 35242 2011-02-27 20:29:51Z jesterking $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version. 
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * The Original Code is Copyright (C) 2008 Blender Foundation.
00021  * All rights reserved.
00022  *
00023  * 
00024  * Contributor(s): Blender Foundation
00025  *
00026  * ***** END GPL LICENSE BLOCK *****
00027  */
00028 
00033 #ifndef ED_SCREEN_INTERN_H
00034 #define ED_SCREEN_INTERN_H
00035 
00036 /* internal exports only */
00037 struct wmWindow;
00038 struct Scene;
00039 
00040 #define AZONESPOT               12
00041 
00042 /* area.c */
00043 void            area_copy_data  (ScrArea *sa1, ScrArea *sa2, int swap_space);
00044 
00045 /* screen_edit.c */
00046 ScrEdge         *screen_findedge(bScreen *sc, ScrVert *v1, ScrVert *v2);
00047 ScrArea         *area_split(bScreen *sc, ScrArea *sa, char dir, float fac, int merge);
00048 int                     screen_area_join(bContext *C, bScreen* scr, ScrArea *sa1, ScrArea *sa2);
00049 int                     area_getorientation(ScrArea *sa, ScrArea *sb);
00050 void            select_connected_scredge(bScreen *sc, ScrEdge *edge);
00051 
00052 void            removenotused_scrverts(bScreen *sc);
00053 void            removedouble_scrverts(bScreen *sc);
00054 void            removedouble_scredges(bScreen *sc);
00055 void            removenotused_scredges(bScreen *sc);
00056 int                     scredge_is_horizontal(ScrEdge *se);
00057 ScrEdge         *screen_find_active_scredge(bScreen *sc, int mx, int my);
00058 
00059 struct AZone *is_in_area_actionzone(ScrArea *sa, int x, int y);
00060 
00061 /* screen_context.c */
00062 int ed_screen_context(const bContext *C, const char *member, bContextDataResult *result);
00063 
00064 extern const char *screen_context_dir[]; /* doc access */
00065 
00066 /* screendump.c */
00067 void SCREEN_OT_screenshot(struct wmOperatorType *ot);
00068 void SCREEN_OT_screencast(struct wmOperatorType *ot);
00069 
00070 #endif /* ED_SCREEN_INTERN_H */
00071 
00072 
00073 
00074