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