|
Blender V5.0
|
#include "BLI_path_utils.hh"#include "BLI_rect.h"#include "BLI_string.h"#include "BKE_blendfile.hh"#include "DNA_screen_types.h"#include "ED_fileselect.hh"#include "file_intern.hh"Go to the source code of this file.
Functions | |
| void | file_tile_boundbox (const ARegion *region, FileLayout *layout, const int file, rcti *r_bounds) |
| void | file_path_to_ui_path (const char *path, char *r_path, int r_path_maxncpy) |
| void file_path_to_ui_path | ( | const char * | path, |
| char * | r_path, | ||
| int | r_path_maxncpy ) |
If path leads to a .blend, remove the trailing slash (if needed).
Definition at line 34 of file file_utils.cc.
References BKE_blendfile_extension_check(), BLI_path_slash_rstrip(), BLI_strncpy(), FILE_MAX_LIBEXTRA, and STRNCPY().
Referenced by file_draw_invalid_asset_library_hint().
| void file_tile_boundbox | ( | const ARegion * | region, |
| FileLayout * | layout, | ||
| const int | file, | ||
| rcti * | r_bounds ) |
Definition at line 21 of file file_utils.cc.
References BLI_rcti_init(), ED_fileselect_layout_tilepos(), FileLayout::tile_border_x, FileLayout::tile_border_y, FileLayout::tile_h, FileLayout::tile_w, View2D::tot, ARegion::v2d, and rctf::ymax.
Referenced by file_box_select_find_last_selected(), and file_ensure_inside_viewbounds().