Blender V5.0
wm_splash_screen.cc File Reference
#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 ImBufwm_block_splash_image (int width, int *r_height)
static ImBufwm_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 uiBlockwm_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 uiBlockwm_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)

Detailed Description

This file contains the splash screen logic (the WM_OT_splash operator).

  • Loads the splash image.
  • Displaying version information.
  • Lists New Files (application templates).
  • Lists Recent files.
  • Links to web sites.

Definition in file wm_splash_screen.cc.

Function Documentation

◆ wm_block_about_create()

◆ wm_block_splash_add_label()

void wm_block_splash_add_label ( uiBlock * block,
const char * label,
int x,
int y )
static

◆ wm_block_splash_banner_image()

ImBuf * wm_block_splash_banner_image ( int * r_width,
int * r_height,
int max_width,
int max_height )
static

◆ wm_block_splash_close()

void wm_block_splash_close ( bContext * C,
void * arg_block,
void *  )
static

◆ wm_block_splash_close_on_fileselect()

void wm_block_splash_close_on_fileselect ( bContext * C,
void * arg1,
void *  )
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().

◆ wm_block_splash_create()

◆ wm_block_splash_image()

◆ wm_block_splash_image_roundcorners_add()

◆ WM_OT_splash()

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().

◆ WM_OT_splash_about()

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().

◆ wm_splash_about_invoke()

wmOperatorStatus wm_splash_about_invoke ( bContext * C,
wmOperator * ,
const wmEvent *  )
static

◆ wm_splash_invoke()

wmOperatorStatus wm_splash_invoke ( bContext * C,
wmOperator * ,
const wmEvent *  )
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().