Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_intern.h
| Show All 30 Lines | |||||
| typedef enum eScreenAxis { | typedef enum eScreenAxis { | ||||
| /** Horizontal. */ | /** Horizontal. */ | ||||
| SCREEN_AXIS_H = 'h', | SCREEN_AXIS_H = 'h', | ||||
| /** Vertical. */ | /** Vertical. */ | ||||
| SCREEN_AXIS_V = 'v', | SCREEN_AXIS_V = 'v', | ||||
| } eScreenAxis; | } eScreenAxis; | ||||
| typedef enum eAreaDockTarget { | |||||
| DOCKING_NONE = 0, | |||||
| /* Split target then dock into portion of it. */ | |||||
| DOCKING_RIGHT, /* Right diagonal quadrant. */ | |||||
| DOCKING_LEFT, /* Left diagonal quadrant. */ | |||||
| DOCKING_TOP, /* Top diagonal quadrant. */ | |||||
| DOCKING_BOTTOM, /* Bottom diagonal quadrant. */ | |||||
| /* Replace entire target area. */ | |||||
| DOCKING_CENTER, | |||||
| } eAreaDockTarget; | |||||
| #define AZONESPOTW UI_HEADER_OFFSET /* width of corner #AZone - max */ | #define AZONESPOTW UI_HEADER_OFFSET /* width of corner #AZone - max */ | ||||
| #define AZONESPOTH (0.6f * U.widget_unit) /* height of corner #AZone */ | #define AZONESPOTH (0.6f * U.widget_unit) /* height of corner #AZone */ | ||||
| #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 */ | ||||
| /* Edges must be within these to allow joining. */ | /* Edges must be within these to allow joining. */ | ||||
| #define AREAJOINTOLERANCEX (AREAMINX * U.dpi_fac) | #define AREAJOINTOLERANCEX (AREAMINX * U.dpi_fac) | ||||
| #define AREAJOINTOLERANCEY (HEADERY * U.dpi_fac) | #define AREAJOINTOLERANCEY (HEADERY * U.dpi_fac) | ||||
| Show All 18 Lines | |||||
| /** | /** | ||||
| * Visual indication of the two areas involved in a proposed join. | * Visual indication of the two areas involved in a proposed join. | ||||
| * | * | ||||
| * \param sa1: Area from which the resultant originates. | * \param sa1: Area from which the resultant originates. | ||||
| * \param sa2: Target area that will be replaced. | * \param sa2: Target area that will be replaced. | ||||
| */ | */ | ||||
| void screen_draw_join_highlight(struct ScrArea *sa1, struct ScrArea *sa2); | void screen_draw_join_highlight(struct ScrArea *sa1, struct ScrArea *sa2); | ||||
| void screen_draw_split_preview(struct ScrArea *area, eScreenAxis dir_axis, float fac); | void screen_draw_split_preview(struct ScrArea *area, eScreenAxis dir_axis, float fac); | ||||
| void screen_draw_dock_preview(struct ScrArea *area, eAreaDockTarget dock_target); | |||||
| /* screen_edit.c */ | /* screen_edit.c */ | ||||
| /** | /** | ||||
| * Empty screen, with 1 dummy area without space-data. Uses window size. | * Empty screen, with 1 dummy area without space-data. Uses window size. | ||||
| */ | */ | ||||
| bScreen *screen_add(struct Main *bmain, const char *name, const rcti *rect); | bScreen *screen_add(struct Main *bmain, const char *name, const rcti *rect); | ||||
| void screen_data_copy(bScreen *to, bScreen *from); | void screen_data_copy(bScreen *to, bScreen *from); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||