|
Blender V4.3
|
#include <algorithm>#include <cstring>#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 "BLF_api.hh"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_appdir.hh"#include "BKE_blender_version.h"#include "BKE_context.hh"#include "BLT_translation.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "ED_datafiles.h"#include "ED_screen.hh"#include "RNA_access.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_resources.hh"#include "WM_api.hh"#include "WM_types.hh"#include "wm.hh"Go to the source code of this file.
Functions | |
Splash Screen | |
| static void | wm_block_splash_close (bContext *C, void *arg_block, void *) |
| 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 void | wm_block_splash_close_on_fileselect (bContext *C, void *arg1, void *) |
| static uiBlock * | wm_block_splash_create (bContext *C, ARegion *region, void *) |
| static int | wm_splash_invoke (bContext *C, wmOperator *, const wmEvent *) |
| void | WM_OT_splash (wmOperatorType *ot) |
Splash Screen: About | |
| static uiBlock * | wm_block_about_create (bContext *C, ARegion *region, void *) |
| static int | wm_splash_about_invoke (bContext *C, wmOperator *, const wmEvent *) |
| 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.cc.
Definition at line 366 of file wm_splash_screen.cc.
References col, color, IFACE_, 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_SCALE_FAC, UI_style_get_dpi(), UI_svg_icon_bitmap(), uiDefButImage(), uiItemL_ex(), uiItemS_ex(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), ThemeUI::wcol_menu_back, uiStyle::widget, WM_menutype_find(), ImBuf::x, and ImBuf::y.
Referenced by wm_splash_about_invoke().
Definition at line 64 of file wm_splash_screen.cc.
References label, UI_block_emboss_set(), UI_BTYPE_LABEL, UI_but_color_set(), UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, UI_EMBOSS, UI_EMBOSS_NONE, UI_UNIT_Y, and uiDefBut().
Referenced by wm_block_splash_create().
|
static |
Definition at line 58 of file wm_splash_screen.cc.
References CTX_wm_window(), and UI_popup_block_close().
Referenced by wm_block_splash_close_on_fileselect(), and wm_block_splash_create().
|
static |
Close the splash when opening a file-selector.
Definition at line 182 of file wm_splash_screen.cc.
References CTX_wm_window(), wmWindow::event_queue, EVT_FILESELECT, LISTBASE_FOREACH, and wm_block_splash_close().
Referenced by wm_block_splash_create().
Definition at line 226 of file wm_splash_screen.cc.
References BKE_appdir_folder_id(), BKE_blender_version_string(), BLENDER_USER_CONFIG, BLENDER_USERPREF_FILE, BLI_exists(), BLI_getenv(), BLI_path_join, BLT_I18NCONTEXT_OPERATOR_DEFAULT, CLAMP_MAX, CTX_IFACE_, CTX_wm_window(), FILE_MAX, LIKELY, Line, uiFontStyle::points, RNA_string_set(), RPT_, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_flag_enable(), UI_block_func_set(), 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_ITEM_NONE, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_menutype_draw(), UI_SCALE_FAC, UI_style_get_dpi(), uiDefButImage(), uiItemFullO(), uiItemL(), uiItemS(), uiItemS_ex(), uiLayoutRow(), uiLayoutSplit(), uiStyle::widget, wm_block_splash_add_label(), wm_block_splash_close(), wm_block_splash_close_on_fileselect(), wm_block_splash_image(), WM_menutype_find(), and WM_OP_INVOKE_DEFAULT.
Referenced by wm_splash_invoke().
Definition at line 138 of file wm_splash_screen.cc.
References BKE_appdir_app_template_id_search(), BLI_path_join, Box, datatoc_splash_png, datatoc_splash_png_size, FILE_MAX, IB_rect, IMB_ibImageFromMemory(), IMB_loadiffname(), IMB_premultiply_alpha(), IMB_scale(), ImBuf::planes, UNUSED_VARS, wm_block_splash_image_roundcorners_add(), ImBuf::x, and ImBuf::y.
Referenced by wm_block_splash_create().
|
static |
Definition at line 85 of file wm_splash_screen.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, distance(), uiWidgetColors::roundness, size(), sqrt(), bTheme::tui, UI_GetTheme(), UI_SCALE_FAC, unit_float_to_uchar_clamp, v, ThemeUI::wcol_menu_back, ImBuf::x, x, ImBuf::y, and y.
Referenced by wm_block_splash_image().
| void WM_OT_splash | ( | wmOperatorType * | ot | ) |
Definition at line 350 of file wm_splash_screen.cc.
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 427 of file wm_splash_screen.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_splash_about_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 420 of file wm_splash_screen.cc.
References OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_about_create().
Referenced by WM_OT_splash_about().
|
static |
Definition at line 343 of file wm_splash_screen.cc.
References OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_splash_create().
Referenced by WM_OT_splash().