Blender  V3.3
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]
 
voiddrawcache
 

Detailed Description

Definition at line 1345 of file DNA_space_types.h.

Member Data Documentation

◆ _pad1

char SpaceText_Runtime::_pad1[4]

Definition at line 1373 of file DNA_space_types.h.

◆ cwidth_px

int SpaceText_Runtime::cwidth_px

Runtime computed, character width.

Definition at line 1351 of file DNA_space_types.h.

◆ drawcache

void* SpaceText_Runtime::drawcache

Cache for faster drawing.

Definition at line 1376 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 1348 of file DNA_space_types.h.

◆ 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 1359 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 1371 of file DNA_space_types.h.

◆ scroll_px_per_line

float SpaceText_Runtime::scroll_px_per_line

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

Definition at line 1365 of file DNA_space_types.h.

◆ 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 1351 of file DNA_space_types.h.

◆ scroll_region_select

struct rcti SpaceText_Runtime::scroll_region_select

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

Definition at line 1351 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 1362 of file DNA_space_types.h.


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