Blender
V3.3
|
#include <string.h>
#include "CLG_log.h"
#include "DNA_ID.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_appdir.h"
#include "BKE_blender_version.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "BLT_translation.h"
#include "BLF_api.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
Go to the source code of this file.
Functions | |
static void | wm_block_close (bContext *C, void *arg_block, void *UNUSED(arg)) |
static void | wm_block_splash_add_label (uiBlock *block, const char *label, int x, int y) |
static void | wm_block_splash_image_roundcorners_add (ImBuf *ibuf) |
static ImBuf * | wm_block_splash_image (int width, int *r_height) |
static uiBlock * | wm_block_create_splash (bContext *C, ARegion *region, void *UNUSED(arg)) |
static int | wm_splash_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) |
void | WM_OT_splash (wmOperatorType *ot) |
static uiBlock * | wm_block_create_about (bContext *C, ARegion *region, void *UNUSED(arg)) |
static int | wm_about_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) |
void | WM_OT_splash_about (wmOperatorType *ot) |
This file contains the splash screen logic (the WM_OT_splash
operator).
Definition in file wm_splash_screen.c.
|
static |
Definition at line 324 of file wm_splash_screen.c.
References C, NULL, OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_create_about().
Referenced by WM_OT_splash_about().
Definition at line 53 of file wm_splash_screen.c.
References C, CTX_wm_window(), and UI_popup_block_close().
Referenced by wm_block_create_splash().
Definition at line 261 of file wm_splash_screen.c.
References C, col, color, datatoc_blender_logo_png, datatoc_blender_logo_png_size, height, IB_rect, IFACE_, IMB_ibImageFromMemory(), IMB_premultiply_alpha(), IMB_scaleImBuf(), MAX2, NULL, uiFontStyle::points, uiWidgetColors::text_sel, bTheme::tui, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_flag_enable(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_LOOP, UI_BLOCK_NO_WIN_CLIP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_EMBOSS, UI_GetTheme(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_menutype_draw(), UI_style_get_dpi(), uiDefButImage(), uiItemL_ex(), uiItemS_ex(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), ThemeUI::wcol_menu_back, uiStyle::widget, uiStyle::widgetlabel, width, WM_menutype_find(), ImBuf::x, and ImBuf::y.
Referenced by wm_about_invoke().
Definition at line 173 of file wm_splash_screen.c.
References BKE_appdir_folder_id(), BKE_blender_version_string(), BLENDER_USER_CONFIG, BLENDER_USERPREF_FILE, BLI_exists(), BLI_path_join(), C, CLAMP_MAX, CTX_wm_window(), FILE_MAX, MAX2, NULL, uiFontStyle::points, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_flag_enable(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_LOOP, UI_BLOCK_NO_WIN_CLIP, UI_BLOCK_QUICK_SETUP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_but_func_set(), UI_EMBOSS, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_menutype_draw(), UI_style_get_dpi(), uiDefButImage(), uiStyle::widget, uiStyle::widgetlabel, wm_block_close(), wm_block_splash_add_label(), wm_block_splash_image(), and WM_menutype_find().
Referenced by wm_splash_invoke().
Definition at line 59 of file wm_splash_screen.c.
References label, NULL, UI_block_emboss_set(), UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_but_flag_enable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, UI_EMBOSS, UI_EMBOSS_NONE, UI_UNIT_Y, uiDefBut(), x, and y.
Referenced by wm_block_create_splash().
|
static |
Definition at line 130 of file wm_splash_screen.c.
References BKE_appdir_app_template_id_search(), BLI_join_dirfile(), datatoc_splash_png, datatoc_splash_png_size, FILE_MAX, height, IB_rect, if(), IMB_ibImageFromMemory(), IMB_loadiffname(), IMB_premultiply_alpha(), IMB_scaleImBuf(), NULL, UNUSED_VARS, width, wm_block_splash_image_roundcorners_add(), ImBuf::x, and ImBuf::y.
Referenced by wm_block_create_splash().
Definition at line 78 of file wm_splash_screen.c.
References blender::math::distance(), if(), ImBuf::rect, uiWidgetColors::roundness, size(), sqrt(), bTheme::tui, UI_GetTheme(), unit_float_to_uchar_clamp(), v, ThemeUI::wcol_menu_back, x, ImBuf::x, y, and ImBuf::y.
Referenced by wm_block_splash_image().
void WM_OT_splash | ( | wmOperatorType * | ot | ) |
Definition at line 251 of file wm_splash_screen.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_splash_invoke().
Referenced by wm_operatortypes_register().
void WM_OT_splash_about | ( | wmOperatorType * | ot | ) |
Definition at line 331 of file wm_splash_screen.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wm_about_invoke(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 244 of file wm_splash_screen.c.
References C, NULL, OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_create_splash().
Referenced by WM_OT_splash().