Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2016-02-12 15:57:58 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-02-12 16:05:05 +0300
commita143aeaeae5fa52a8dff012b5e36d43f969c891e (patch)
tree8d8d36c49b5f32a3be88fd8927ceec4d1678e77d /source/blender/blenkernel/BKE_font.h
parent9c21015c26564504fda20f09b510f2d81a51bbfc (diff)
Integrate font objects copy/paste with system clipboard
When pasting text, the style (bold, material, ...) is maintained, if it was originally copied from Blender. This fixes the issue of missing copy/paste options for font objects (they were present back in Blender 2.49) Reviewers: Severin, campbellbarton, brecht
Diffstat (limited to 'source/blender/blenkernel/BKE_font.h')
-rw-r--r--source/blender/blenkernel/BKE_font.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_font.h b/source/blender/blenkernel/BKE_font.h
index 5dcc6f8d981..0711c423d1c 100644
--- a/source/blender/blenkernel/BKE_font.h
+++ b/source/blender/blenkernel/BKE_font.h
@@ -56,9 +56,6 @@ typedef struct EditFontSelBox {
} EditFontSelBox;
typedef struct EditFont {
- wchar_t *copybuf;
- struct CharInfo *copybufinfo;
-
wchar_t *textbuf;
struct CharInfo *textbufinfo;
@@ -96,6 +93,12 @@ bool BKE_vfont_to_curve(struct Main *bmain, struct Object *ob, int mode);
int BKE_vfont_select_get(struct Object *ob, int *r_start, int *r_end);
void BKE_vfont_select_clamp(struct Object *ob);
+void BKE_vfont_clipboard_free(void);
+void BKE_vfont_clipboard_set(const wchar_t *text_buf, const struct CharInfo *info_buf, const size_t len);
+void BKE_vfont_clipboard_get(
+ wchar_t **r_text_buf, struct CharInfo **r_info_buf,
+ size_t *r_len_utf8, size_t *r_len_wchar);
+
#ifdef __cplusplus
}
#endif