Blender V5.3
editfont.cc File Reference
#include <algorithm>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <cwchar>
#include <fcntl.h>
#include "MEM_guardedalloc.h"
#include "BLI_fileops.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_cursor_utf8.hh"
#include "BLI_utildefines.hh"
#include "DNA_curve_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_text_types.h"
#include "DNA_vfont_types.h"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_report.hh"
#include "BKE_vfont.hh"
#include "BLI_string_utf8.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_curve.hh"
#include "ED_object.hh"
#include "ED_outliner.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "UI_interface.hh"
#include "UI_interface_layout.hh"
#include "curve_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define MAXTEXT   32766

Functions

Internal Utilities
static int blender::kill_selection (Object *obedit, int ins)
static char32_t blender::findaccent (char32_t char1, const char code)
static int blender::insert_into_textbuf (Object *obedit, uintptr_t c)
static void blender::text_update_edited (bContext *C, Object *obedit, const eEditFontMode mode)
static void blender::font_select_update_primary_clipboard (Object *obedit)
Generic Copy Functions
static char * blender::font_select_to_buffer (Object *obedit)
Generic Paste Functions
static bool blender::font_paste_wchar (Object *obedit, const char32_t *str, const size_t str_len, const CharInfo *str_info)
static bool blender::font_paste_utf8 (bContext *C, const char *str, const size_t str_len)
Paste From File Operator
static wmOperatorStatus blender::paste_from_file (bContext *C, ReportList *reports, const char *filepath)
static wmOperatorStatus blender::paste_from_file_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::paste_from_file_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::FONT_OT_text_paste_from_file (wmOperatorType *ot)
Insert Unicode Character
static void blender::text_insert_unicode_cancel (bContext *C, void *arg_block, void *)
static void blender::text_insert_unicode_confirm (bContext *C, void *arg_block, void *arg_string)
static ui::Block * blender::wm_block_insert_unicode_create (bContext *C, ARegion *region, void *arg_string)
static wmOperatorStatus blender::text_insert_unicode_invoke (bContext *C, wmOperator *, const wmEvent *)
void blender::FONT_OT_text_insert_unicode (wmOperatorType *ot)
Text To Object
static void blender::txt_add_object (bContext *C, const TextLine *firstline, int totline, const float offset[3])
void blender::ED_text_to_object (bContext *C, const Text *text, const bool split_lines)
Toggle Style Operator
static wmOperatorStatus blender::toggle_style_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_style_toggle (wmOperatorType *ot)
Select All Operator
static wmOperatorStatus blender::font_select_all_exec (bContext *C, wmOperator *)
void blender::FONT_OT_select_all (wmOperatorType *ot)
Copy Text Operator
static void blender::copy_selection (Object *obedit)
static wmOperatorStatus blender::copy_text_exec (bContext *C, wmOperator *)
void blender::FONT_OT_text_copy (wmOperatorType *ot)
Cut Text Operator
static wmOperatorStatus blender::cut_text_exec (bContext *C, wmOperator *)
void blender::FONT_OT_text_cut (wmOperatorType *ot)
Paste Text Operator
static bool blender::paste_selection (Object *obedit, ReportList *reports)
static wmOperatorStatus blender::paste_text_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_text_paste (wmOperatorType *ot)
Move Select Operator
static wmOperatorStatus blender::move_select_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_move_select (wmOperatorType *ot)
Change Spacing
static wmOperatorStatus blender::change_spacing_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_change_spacing (wmOperatorType *ot)
Change Character
static wmOperatorStatus blender::change_character_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_change_character (wmOperatorType *ot)
Line Break Operator
static wmOperatorStatus blender::line_break_exec (bContext *C, wmOperator *)
void blender::FONT_OT_line_break (wmOperatorType *ot)
Insert Text Operator
static wmOperatorStatus blender::insert_text_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::insert_text_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::FONT_OT_text_insert (wmOperatorType *ot)
Font Selection Operator
static int blender::font_cursor_text_index_from_event (bContext *C, Object *obedit, const wmEvent *event)
static void blender::font_cursor_set_apply (bContext *C, const wmEvent *event)
static wmOperatorStatus blender::font_selection_set_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::font_selection_set_modal (bContext *C, wmOperator *, const wmEvent *event)
void blender::FONT_OT_selection_set (wmOperatorType *ot)
Select Word Operator
static wmOperatorStatus blender::font_select_word_exec (bContext *C, wmOperator *)
void blender::FONT_OT_select_word (wmOperatorType *ot)
Text-Box Add Operator
static wmOperatorStatus blender::textbox_add_exec (bContext *C, wmOperator *)
void blender::FONT_OT_textbox_add (wmOperatorType *ot)
Text-Box Remove Operator
static wmOperatorStatus blender::textbox_remove_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_textbox_remove (wmOperatorType *ot)
Editmode Enter/Exit
void blender::ED_curve_editfont_make (Object *obedit)
void blender::ED_curve_editfont_load (Object *obedit)
void blender::ED_curve_editfont_free (Object *obedit)
Toggle Case Operator
static wmOperatorStatus blender::toggle_case_exec (bContext *C, wmOperator *)
void blender::FONT_OT_case_toggle (wmOperatorType *ot)
Open Font
static void blender::font_ui_template_init (bContext *C, wmOperator *op)
static void blender::font_open_cancel (bContext *, wmOperator *op)
static wmOperatorStatus blender::font_open_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::open_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::FONT_OT_open (wmOperatorType *ot)
Unlink Font Operator
static wmOperatorStatus blender::font_unlink_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_unlink (wmOperatorType *ot)
Select Pick
bool blender::ED_curve_editfont_select_pick (bContext *C, const int mval[2], const SelectPick_Params &params)

Set Style Operator

static const EnumPropertyItem blender::style_items []
static wmOperatorStatus blender::set_style (bContext *C, const eCharInfoFlag style, const bool clear)
static wmOperatorStatus blender::set_style_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_style_set (wmOperatorType *ot)

Move Operator

static const EnumPropertyItem blender::move_type_items []
static bool blender::move_cursor_drop_select (Object *obedit, int dir)
static wmOperatorStatus blender::move_cursor (bContext *C, int type, const bool select)
static wmOperatorStatus blender::move_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_move (wmOperatorType *ot)

Delete Operator

static const EnumPropertyItem blender::delete_type_items []
static wmOperatorStatus blender::delete_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_delete (wmOperatorType *ot)

Set Case Operator

static const EnumPropertyItem blender::case_items []
static wmOperatorStatus blender::set_case (bContext *C, int ccase)
static wmOperatorStatus blender::set_case_exec (bContext *C, wmOperator *op)
void blender::FONT_OT_case_set (wmOperatorType *ot)

Macro Definition Documentation

◆ MAXTEXT