Blender V4.3
screen_draw.cc File Reference
#include "ED_screen.hh"
#include "ED_screen_types.hh"
#include "GPU_batch_presets.hh"
#include "GPU_immediate.hh"
#include "GPU_platform.hh"
#include "GPU_state.hh"
#include "BKE_global.hh"
#include "BKE_screen.hh"
#include "BLF_api.hh"
#include "BLI_listbase.h"
#include "BLI_math_vector.hh"
#include "BLI_rect.h"
#include "BLT_translation.hh"
#include "WM_api.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "screen_intern.hh"

Go to the source code of this file.

Macros

#define CORNER_RESOLUTION   3
 

Functions

static void do_vert_pair (blender::gpu::VertBuf *vbo, uint pos, uint *vidx, int corner, int i)
 
static blender::gpu::Batch * batch_screen_edges_get (int *corner_len)
 
static void drawscredge_area_draw (int sizex, int sizey, short x1, short y1, short x2, short y2, float edge_thickness)
 
static void drawscredge_area (ScrArea *area, int sizex, int sizey, float edge_thickness)
 Screen edges drawing.
 
void ED_screen_draw_edges (wmWindow *win)
 
void screen_draw_move_highlight (bScreen *screen, eScreenAxis dir_axis)
 
static void screen_draw_area_drag_tip (int x, int y, const ScrArea *source, const std::string &hint)
 
static void screen_draw_area_closed (int xmin, int xmax, int ymin, int ymax)
 
void screen_draw_join_highlight (const wmWindow *win, ScrArea *sa1, ScrArea *sa2, eScreenDir dir)
 
static void rounded_corners (rctf rect, float color[4], int corners)
 
void screen_draw_dock_preview (ScrArea *source, ScrArea *target, AreaDockTarget dock_target, float factor, int x, int y)
 
void screen_draw_split_preview (ScrArea *area, const eScreenAxis dir_axis, const float factor)
 

Macro Definition Documentation

◆ CORNER_RESOLUTION

#define CORNER_RESOLUTION   3

Definition at line 35 of file screen_draw.cc.

Referenced by batch_screen_edges_get(), and do_vert_pair().

Function Documentation

◆ batch_screen_edges_get()

◆ do_vert_pair()

static void do_vert_pair ( blender::gpu::VertBuf * vbo,
uint pos,
uint * vidx,
int corner,
int i )
static

◆ drawscredge_area()

static void drawscredge_area ( ScrArea * area,
int sizex,
int sizey,
float edge_thickness )
static

Screen edges drawing.

Definition at line 149 of file screen_draw.cc.

References drawscredge_area_draw().

Referenced by ED_screen_draw_edges().

◆ drawscredge_area_draw()

static void drawscredge_area_draw ( int sizex,
int sizey,
short x1,
short y1,
short x2,
short y2,
float edge_thickness )
static

◆ ED_screen_draw_edges()

◆ rounded_corners()

◆ screen_draw_area_closed()

static void screen_draw_area_closed ( int xmin,
int xmax,
int ymin,
int ymax )
static

◆ screen_draw_area_drag_tip()

◆ screen_draw_dock_preview()

◆ screen_draw_join_highlight()

void screen_draw_join_highlight ( const wmWindow * win,
ScrArea * sa1,
ScrArea * sa2,
eScreenDir dir )

Visual indication of the two areas involved in a proposed join.

Parameters
sa1Area from which the resultant originates.
sa2Target area that will be replaced.

Definition at line 379 of file screen_draw.cc.

References area_getoffsets(), wmWindow::eventstate, IFACE_, SCREEN_DIR_IS_VERTICAL, SCREEN_DIR_NONE, screen_draw_area_closed(), screen_draw_area_drag_tip(), ScrArea::totrct, UI_CNR_ALL, UI_draw_roundbox_4fv_ex(), UI_draw_roundbox_corner_set(), rcti::xmax, rctf::xmin, rcti::xmin, wmEvent::xy, rcti::ymax, and rcti::ymin.

Referenced by area_join_draw_cb().

◆ screen_draw_move_highlight()

void screen_draw_move_highlight ( bScreen * screen,
eScreenAxis dir_axis )

◆ screen_draw_split_preview()