diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2013-09-11 11:23:23 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2013-09-11 11:23:23 +0400 |
commit | 801b8430a29a2c3a7fd2bd460414b8bb071ea617 (patch) | |
tree | b1988fe333d37bcb22d9945495a7ff8fdca2f4d7 /source/blender/makesrna/intern/rna_space.c | |
parent | 2f6c748bb9eabbd6c3e54d45091b0381d6bc3556 (diff) |
Add read-only access to index data for current line, top line and visible lines count.
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 54012122617..6d0af4ec058 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2595,6 +2595,16 @@ static void rna_def_space_text(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Margin Column", "Column number to show right margin at"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL); + prop = RNA_def_property(srna, "top", PROP_INT, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_int_sdna(prop, NULL, "top"); + RNA_def_property_ui_text(prop, "Top Line", "Top line visible."); + + prop = RNA_def_property(srna, "visible_lines", PROP_INT, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_int_sdna(prop, NULL, "viewlines"); + RNA_def_property_ui_text(prop, "Top Line", "Amount of lines that can be visible in current editor"); + /* functionality options */ prop = RNA_def_property(srna, "use_overwrite", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "overwrite", 1); |