|
Blender
V3.3
|
#include "BLI_fileops.h"#include "BLI_path_util.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BKE_context.h"#include "BLO_readfile.h"#include "ED_fileselect.h"#include "ED_screen.h"#include "WM_types.h"#include "file_intern.h"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 max_size) |
| void file_path_to_ui_path | ( | const char * | path, |
| char * | r_pathi, | ||
| int | max_size | ||
| ) |
If path leads to a .blend, remove the trailing slash (if needed).
Definition at line 35 of file file_utils.c.
References BLI_path_slash_rstrip(), BLI_strncpy(), BLO_has_bfile_extension(), and PATH_MAX.
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 22 of file file_utils.c.
References BLI_rcti_init(), ED_fileselect_layout_tilepos(), file, 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().