Blender V5.3
wm_window_private.hh File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define WM_WINDOW_CSD_RESIZE_MARGIN_SIZE   10
#define WM_WINDOW_CSD_CORNER_RADIUS   12

Functions

const GHOST_CSD_Layout * blender::WM_window_csd_layout_get ()
Direct GPU Context Management
void blender::WM_ghost_show_message_box (const char *title, const char *message, const char *help_label, const char *continue_label, const char *link, GHOST_DialogOptions dialog_options)
Ghost Init/Exit
GHOST_TDrawingContextType blender::wm_ghost_drawing_context_type (const GPUBackendType gpu_backend)
void blender::wm_test_gpu_backend_fallback (bContext *C)
Window Decoration Style
void blender::wm_window_titlebar_theme_context_set (const wmWindow *win, const bScreen *screen)
Window Title Bar Drawing

For systems with client-side-decorations (CSD).

void blender::WM_window_csd_draw_titlebar_ex (const int win_size[2], const char win_state, const GHOST_CSD_Layout *csd_layout, const bool is_active, const uint16_t dpi, const char *title, const int font_id, const int font_size, const uchar border_color[3], const uchar text_color[3], const float alpha)
void blender::WM_window_csd_draw_titlebar (const wmWindow *win)
Window Rounded Corner Drawing
void blender::WM_window_csd_draw_corner_mask (const wmWindow *win)
void blender::WM_window_csd_clear_alpha (const wmWindow *win)
Window Title Bar Layout

Generate a client-side-decorations (CSD).

int blender::WM_window_csd_fractional_scale_apply (int value, const int fractional_scale[2])
int blender::WM_window_csd_layout_callback (const int window_size[2], const int fractional_scale[2], const char window_state, const GHOST_CSD_Layout *csd_layout, GHOST_CSD_Elem *csd_elems)

Macro Definition Documentation

◆ WM_WINDOW_CSD_CORNER_RADIUS

#define WM_WINDOW_CSD_CORNER_RADIUS   12

Radius (in points) of the rounded window corners, matching GNOME's window decorations. Not applied when maximized or full-screen.

Shared with GHOST via GHOST_CSD_Params::corner_radius so the surfaces opaque region excludes the same corners that #WM_window_csd_draw_corner_mask cuts away.

Definition at line 115 of file wm_window_private.hh.

Referenced by blender::WM_window_csd_draw_corner_mask().

◆ WM_WINDOW_CSD_RESIZE_MARGIN_SIZE

#define WM_WINDOW_CSD_RESIZE_MARGIN_SIZE   10

Extra margin (in points) outside the visible window where the pointer still resizes the main window. Not applied when maximized or full-screen.

Definition at line 106 of file wm_window_private.hh.