Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/workspace/screen_intern.h
- This file was moved from source/blender/editors/screen/screen_intern.h.
| Show All 18 Lines | |||||
| * All rights reserved. | * All rights reserved. | ||||
| * | * | ||||
| * | * | ||||
| * Contributor(s): Blender Foundation | * Contributor(s): Blender Foundation | ||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| /** \file blender/editors/screen/screen_intern.h | /** \file blender/editors/workspace/screen_intern.h | ||||
| * \ingroup edscr | * \ingroup edworkspace | ||||
| */ | */ | ||||
| #ifndef __SCREEN_INTERN_H__ | #ifndef __SCREEN_INTERN_H__ | ||||
| #define __SCREEN_INTERN_H__ | #define __SCREEN_INTERN_H__ | ||||
| struct bContextDataResult; | struct bContextDataResult; | ||||
| struct Main; | |||||
| /* internal exports only */ | /* internal exports only */ | ||||
| #define AZONESPOT (0.6f * U.widget_unit) | #define AZONESPOT (0.6f * U.widget_unit) | ||||
| #define AZONEFADEIN (5.0f * U.widget_unit) /* when azone is totally visible */ | #define AZONEFADEIN (5.0f * U.widget_unit) /* when azone is totally visible */ | ||||
| #define AZONEFADEOUT (6.5f * U.widget_unit) /* when we start seeing the azone */ | #define AZONEFADEOUT (6.5f * U.widget_unit) /* when we start seeing the azone */ | ||||
| /* area.c */ | /* area.c */ | ||||
| void ED_area_data_copy(ScrArea *sa_dst, ScrArea *sa_src, const bool do_free); | void ED_area_data_copy(ScrArea *sa_dst, ScrArea *sa_src, const bool do_free); | ||||
| void ED_area_data_swap(ScrArea *sa1, ScrArea *sa2); | void ED_area_data_swap(ScrArea *sa1, ScrArea *sa2); | ||||
| void region_toggle_hidden(struct bContext *C, ARegion *ar, const bool do_fade); | void region_toggle_hidden(struct bContext *C, ARegion *ar, const bool do_fade); | ||||
| /* screen_edit.c */ | /* screen_edit.c */ | ||||
| bScreen *screen_add(wmWindow *win, const char *name, const int winsize_x, const int winsize_y); | |||||
| void screen_data_copy(bScreen *to, bScreen *from); | |||||
| void screen_new_activate_prepare(const wmWindow *win, bScreen *screen_new); | |||||
| void screen_changed_update(struct bContext *C, wmWindow *win, bScreen *sc); | |||||
| bScreen *screen_change_prepare(bScreen *screen_old, bScreen *screen_new, struct Main *bmain, struct bContext *C, wmWindow *win); | |||||
| ScrEdge *screen_findedge(bScreen *sc, ScrVert *v1, ScrVert *v2); | ScrEdge *screen_findedge(bScreen *sc, ScrVert *v1, ScrVert *v2); | ||||
| ScrArea *area_split(bScreen *sc, ScrArea *sa, char dir, float fac, int merge); | ScrArea *area_split(bScreen *sc, ScrArea *sa, char dir, float fac, int merge); | ||||
| int screen_area_join(struct bContext *C, bScreen *scr, ScrArea *sa1, ScrArea *sa2); | int screen_area_join(struct bContext *C, bScreen *scr, ScrArea *sa1, ScrArea *sa2); | ||||
| int area_getorientation(ScrArea *sa, ScrArea *sb); | int area_getorientation(ScrArea *sa, ScrArea *sb); | ||||
| void select_connected_scredge(bScreen *sc, ScrEdge *edge); | void select_connected_scredge(bScreen *sc, ScrEdge *edge); | ||||
| void removenotused_scrverts(bScreen *sc); | void removenotused_scrverts(bScreen *sc); | ||||
| void removedouble_scrverts(bScreen *sc); | void removedouble_scrverts(bScreen *sc); | ||||
| void removedouble_scredges(bScreen *sc); | void removedouble_scredges(bScreen *sc); | ||||
| void removenotused_scredges(bScreen *sc); | void removenotused_scredges(bScreen *sc); | ||||
| bool scredge_is_horizontal(ScrEdge *se); | bool scredge_is_horizontal(ScrEdge *se); | ||||
| ScrEdge *screen_find_active_scredge(bScreen *sc, | ScrEdge *screen_find_active_scredge(const bScreen *sc, | ||||
| const int winsize_x, const int winsize_y, | const int winsize_x, const int winsize_y, | ||||
| const int mx, const int my); | const int mx, const int my); | ||||
| struct AZone *is_in_area_actionzone(ScrArea *sa, const int xy[2]); | struct AZone *is_in_area_actionzone(ScrArea *sa, const int xy[2]); | ||||
| /* screen_context.c */ | /* screen_context.c */ | ||||
| int ed_screen_context(const struct bContext *C, const char *member, struct bContextDataResult *result); | int ed_screen_context(const struct bContext *C, const char *member, struct bContextDataResult *result); | ||||
| Show All 11 Lines | |||||