diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-04 10:16:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-04 11:10:01 +0400 |
commit | b9114cb609698bdd40175b79c017b8ec8d10b518 (patch) | |
tree | 98dc331711dcd06fb69f905ebdaf7937a4d23379 /source/blender/blenkernel/BKE_text.h | |
parent | 091740f858c1b6d3016e38fc3186cce737d9ff2c (diff) |
UI: Use bool rather then int/short's where possible
Diffstat (limited to 'source/blender/blenkernel/BKE_text.h')
-rw-r--r-- | source/blender/blenkernel/BKE_text.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index bba209334d4..67c1b6834dd 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -66,18 +66,18 @@ int txt_utf8_offset_to_index(const char *str, int offset); int txt_utf8_index_to_offset(const char *str, int index); int txt_utf8_offset_to_column(const char *str, int offset); int txt_utf8_column_to_offset(const char *str, int column); -void txt_move_up (struct Text *text, short sel); -void txt_move_down (struct Text *text, short sel); -void txt_move_left (struct Text *text, short sel); -void txt_move_right (struct Text *text, short sel); -void txt_jump_left (struct Text *text, bool sel, bool use_init_step); -void txt_jump_right (struct Text *text, bool sel, bool use_init_step); -void txt_move_bof (struct Text *text, short sel); -void txt_move_eof (struct Text *text, short sel); -void txt_move_bol (struct Text *text, short sel); -void txt_move_eol (struct Text *text, short sel); -void txt_move_toline (struct Text *text, unsigned int line, short sel); -void txt_move_to (struct Text *text, unsigned int line, unsigned int ch, short sel); +void txt_move_up (struct Text *text, const bool sel); +void txt_move_down (struct Text *text, const bool sel); +void txt_move_left (struct Text *text, const bool sel); +void txt_move_right (struct Text *text, const bool sel); +void txt_jump_left (struct Text *text, const bool sel, const bool use_init_step); +void txt_jump_right (struct Text *text, const bool sel, const bool use_init_step); +void txt_move_bof (struct Text *text, const bool sel); +void txt_move_eof (struct Text *text, const bool sel); +void txt_move_bol (struct Text *text, const bool sel); +void txt_move_eol (struct Text *text, const bool sel); +void txt_move_toline (struct Text *text, unsigned int line, const bool sel); +void txt_move_to (struct Text *text, unsigned int line, unsigned int ch, const bool sel); void txt_pop_sel (struct Text *text); void txt_delete_char (struct Text *text); void txt_delete_word (struct Text *text); |