Blender  V2.93
Public Attributes | List of all members
SpaceText_Runtime Struct Reference

#include <DNA_space_types.h>

Public Attributes

int lheight_px
 
int cwidth_px
 
struct rcti scroll_region_handle
 
struct rcti scroll_region_select
 
int line_number_display_digits
 
int viewlines
 
float scroll_px_per_line
 
int scroll_ofs_px [2]
 
char _pad1 [4]
 
void * drawcache
 

Detailed Description

Definition at line 1356 of file DNA_space_types.h.

Member Data Documentation

◆ _pad1

char SpaceText_Runtime::_pad1[4]

Definition at line 1384 of file DNA_space_types.h.

◆ cwidth_px

int SpaceText_Runtime::cwidth_px

Runtime computed, character width.

Definition at line 1362 of file DNA_space_types.h.

Referenced by text_do_suggest_select(), text_line_number_invoke(), text_pixel_x_to_column(), text_scroll_invoke(), and text_scroll_state_init().

◆ drawcache

void* SpaceText_Runtime::drawcache

Cache for faster drawing.

Definition at line 1387 of file DNA_space_types.h.

Referenced by text_duplicate().

◆ lheight_px

int SpaceText_Runtime::lheight_px

Actual line height, scaled by dpi.

Definition at line 1359 of file DNA_space_types.h.

Referenced by text_draw_context_init(), and text_scroll_invoke().

◆ line_number_display_digits

int SpaceText_Runtime::line_number_display_digits

Number of digits to show in the line numbers column (when enabled).

Definition at line 1370 of file DNA_space_types.h.

◆ scroll_ofs_px

int SpaceText_Runtime::scroll_ofs_px[2]

Run-time for scroll increments smaller than a line (smooth scroll). Values must be between zero and the line, column width: (cwidth, TXT_LINE_HEIGHT(st)).

Definition at line 1382 of file DNA_space_types.h.

Referenced by scroll_exit(), text_new_exec(), text_open_exec(), and text_scroll_apply().

◆ scroll_px_per_line

float SpaceText_Runtime::scroll_px_per_line

Use for drawing scroll-bar & calculating scroll operator motion scaling.

Definition at line 1376 of file DNA_space_types.h.

Referenced by text_scroll_apply().

◆ scroll_region_handle

struct rcti SpaceText_Runtime::scroll_region_handle

The handle of the scroll-bar which can be clicked and dragged.

Definition at line 1362 of file DNA_space_types.h.

Referenced by text_cursor(), text_cursor_set_invoke(), text_scroll_bar_invoke(), and text_selection_set_invoke().

◆ scroll_region_select

struct rcti SpaceText_Runtime::scroll_region_select

The region for selected text to show in the scrolling area.

Definition at line 1362 of file DNA_space_types.h.

◆ viewlines

int SpaceText_Runtime::viewlines

Number of lines this window can display (even when they aren't used).

Definition at line 1373 of file DNA_space_types.h.

Referenced by text_move_cursor(), text_scroll_modal(), text_scroll_state_init(), and txt_screen_clamp().


The documentation for this struct was generated from the following file: