Blender V4.5
FileSelectParams Struct Reference

#include <DNA_space_types.h>

Public Attributes

char title [96]
char dir [1090]
char file [256]
char renamefile [256]
short rename_flag
char _pad [4]
const IDrename_id
void * _pad3
char filter_glob [256]
char filter_search [64]
uint64_t filter_id
int active_file
int highlight_file
int sel_first
int sel_last
unsigned short thumbnail_size
unsigned short list_thumbnail_size
unsigned short list_column_size
short type
short flag
short sort
short display
char details_flags
char _pad1
int filter
short recursion_level
char _pad2 [2]

Detailed Description

Config and Input for File Selector.

Definition at line 393 of file DNA_space_types.h.

Member Data Documentation

◆ _pad

char FileSelectParams::_pad[4]

Definition at line 407 of file DNA_space_types.h.

◆ _pad1

char FileSelectParams::_pad1

Definition at line 444 of file DNA_space_types.h.

◆ _pad2

char FileSelectParams::_pad2[2]

Definition at line 452 of file DNA_space_types.h.

◆ _pad3

void* FileSelectParams::_pad3

Definition at line 412 of file DNA_space_types.h.

◆ active_file

◆ details_flags

◆ dir

◆ display

◆ file

◆ filter

int FileSelectParams::filter

Filter when (flags & FILE_FILTER) is true.

Definition at line 447 of file DNA_space_types.h.

Referenced by file_refresh(), fileselect_ensure_updated_asset_params(), and fileselect_ensure_updated_file_params().

◆ filter_glob

char FileSelectParams::filter_glob[256]

List of file-types to filter.

Definition at line 415 of file DNA_space_types.h.

Referenced by file_refresh(), fileselect_ensure_updated_asset_params(), and fileselect_ensure_updated_file_params().

◆ filter_id

◆ filter_search

char FileSelectParams::filter_search[64]

Text items name must match to be shown.

Definition at line 418 of file DNA_space_types.h.

Referenced by ED_file_change_dir_ex(), file_draw_list(), and file_refresh().

◆ flag

◆ highlight_file

◆ list_column_size

◆ list_thumbnail_size

◆ recursion_level

short FileSelectParams::recursion_level

Max number of levels in directory tree to show at once, 0 to disable recursion.

Definition at line 450 of file DNA_space_types.h.

Referenced by blo_do_versions_300(), file_draw_tooltip_custom_func(), file_parent_exec(), file_refresh(), file_select_do(), and fileselect_ensure_updated_asset_params().

◆ rename_flag

◆ rename_id

const ID* FileSelectParams::rename_id

An ID that was just renamed. Used to identify a renamed asset file over re-reads, similar to renamefile but for local IDs (takes precedence). Don't keep this stored across handlers! Would break on undo.

Definition at line 411 of file DNA_space_types.h.

Referenced by file_directory_new_exec(), file_listener(), file_params_find_renamed(), file_params_renamefile_activate(), file_params_renamefile_clear(), and file_space_blend_read_data().

◆ renamefile

◆ sel_first

int FileSelectParams::sel_first

Definition at line 427 of file DNA_space_types.h.

Referenced by file_box_select_modal().

◆ sel_last

int FileSelectParams::sel_last

Definition at line 428 of file DNA_space_types.h.

Referenced by file_box_select_modal().

◆ sort

◆ thumbnail_size

◆ title

char FileSelectParams::title[96]

Title, also used for the text of the execute button.

Definition at line 395 of file DNA_space_types.h.

Referenced by file_panel_execution_buttons_draw(), and fileselect_ensure_updated_file_params().

◆ type

short FileSelectParams::type

XXX: for now store type here, should be moved to the operator.

Definition at line 435 of file DNA_space_types.h.

Referenced by file_duplicate(), file_refresh(), fileselect_ensure_updated_file_params(), and fileselect_refresh_asset_params().


The documentation for this struct was generated from the following file: