|
Blender V5.0
|
#include <cstring>#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_path_utils.hh"#include "BLI_utildefines.h"#include "BKE_appdir.hh"#include "BKE_blender_version.h"#include "BKE_context.hh"#include "BKE_preferences.h"#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_interface_layout.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 ImBuf * | wm_block_splash_banner_image (int *r_width, int *r_height, int max_width, int max_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 wmOperatorStatus | 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 wmOperatorStatus | 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 433 of file wm_splash_screen.cc.
References uiLayout::alignment_set(), blender::ui::block_layout(), C, col, uiLayout::column(), blender::ui::Emboss, IFACE_, blender::ui::Left, blender::ui::Panel, uiFontStyle::points, uiLayout::row(), uiLayout::separator(), size(), uiWidgetColors::text_sel, bTheme::tui, U, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_flag_enable(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_LOOP, UI_BLOCK_NO_WIN_CLIP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_GetTheme(), UI_menutype_draw(), UI_SCALE_FAC, UI_style_get_dpi(), UI_svg_icon_bitmap(), uiDefButImage(), uiItemL_ex(), blender::ui::Vertical, ThemeUI::wcol_menu_back, uiStyle::widget, WM_menutype_find(), ImBuf::x, and ImBuf::y.
Referenced by wm_splash_about_invoke().
|
static |
Definition at line 63 of file wm_splash_screen.cc.
References blender::ui::Emboss, Label, blender::ui::None, UI_block_emboss_set(), UI_but_color_set(), UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, UI_UNIT_Y, uiDefBut(), x, and y.
Referenced by wm_block_splash_create().
|
static |
Definition at line 185 of file wm_splash_screen.cc.
References BLI_getenv(), Box, float, IB_byte_data, IMB_load_image_from_filepath(), IMB_premultiply_alpha(), IMB_scale(), ImBuf::planes, UNUSED_VARS, ImBuf::x, and ImBuf::y.
Referenced by wm_block_splash_create().
|
static |
Definition at line 57 of file wm_splash_screen.cc.
References C, 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 244 of file wm_splash_screen.cc.
References C, CTX_wm_window(), EVT_FILESELECT, LISTBASE_FOREACH, wmWindow::runtime, and wm_block_splash_close().
Referenced by wm_block_splash_create().
Definition at line 288 of file wm_splash_screen.cc.
References BKE_blender_version_string(), BLI_getenv(), blender::ui::block_layout(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CLAMP_MAX, CTX_IFACE_, CTX_wm_window(), blender::ui::Emboss, blender::bke::preferences::exists(), blender::wm::InvokeDefault, uiLayout::label(), LIKELY, Line, uiLayout::op(), blender::ui::Panel, uiFontStyle::points, RNA_string_set(), RPT_, uiLayout::separator(), split(), uiLayout::split(), U, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_flag_enable(), UI_block_func_set(), UI_BLOCK_KEEP_OPEN, 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_ITEM_NONE, UI_menutype_draw(), UI_SCALE_FAC, UI_style_get_dpi(), uiDefButImage(), blender::ui::Vertical, uiStyle::widget, wm_block_splash_add_label(), wm_block_splash_banner_image(), wm_block_splash_close(), wm_block_splash_close_on_fileselect(), wm_block_splash_image(), WM_menutype_find(), and WM_window_native_pixel_x().
Referenced by wm_splash_invoke().
|
static |
Definition at line 137 of file wm_splash_screen.cc.
References BKE_appdir_app_template_id_search(), BLI_getenv(), BLI_path_join, Box, datatoc_splash_png, datatoc_splash_png_size, FILE_MAX, IB_byte_data, IMB_load_image_from_filepath(), IMB_load_image_from_memory(), IMB_premultiply_alpha(), IMB_scale(), ImBuf::planes, U, UNUSED_VARS, wm_block_splash_image_roundcorners_add(), ImBuf::x, and ImBuf::y.
Referenced by wm_block_splash_create().
|
static |
Definition at line 84 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 417 of file wm_splash_screen.cc.
References ot, WM_operator_winactive(), and wm_splash_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_splash_about | ( | wmOperatorType * | ot | ) |
Definition at line 502 of file wm_splash_screen.cc.
References ot, WM_operator_winactive(), and wm_splash_about_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 493 of file wm_splash_screen.cc.
References C, OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_about_create().
Referenced by WM_OT_splash_about().
|
static |
Definition at line 408 of file wm_splash_screen.cc.
References C, OPERATOR_FINISHED, UI_popup_block_invoke(), and wm_block_splash_create().
Referenced by WM_OT_splash().