Blender V5.0
blender::ed::text::SpaceText_Runtime Struct Reference

#include <text_intern.hh>

Public Attributes

int lheight_px = 0
int cwidth_px = 0
rcti scroll_region_handle {0, 0, 0, 0}
rcti scroll_region_select {0, 0, 0, 0}
int line_number_display_digits = 0
int viewlines = 0
float scroll_px_per_line = 0.0f
int scroll_ofs_px [2] {0, 0}
void * drawcache = nullptr

Detailed Description

Definition at line 184 of file text_intern.hh.

Member Data Documentation

◆ cwidth_px

int blender::ed::text::SpaceText_Runtime::cwidth_px = 0

Runtime computed, character width.

Definition at line 190 of file text_intern.hh.

◆ drawcache

void* blender::ed::text::SpaceText_Runtime::drawcache = nullptr

Cache for faster drawing.

Definition at line 213 of file text_intern.hh.

◆ lheight_px

int blender::ed::text::SpaceText_Runtime::lheight_px = 0

Actual line height, scaled by DPI.

Definition at line 187 of file text_intern.hh.

◆ line_number_display_digits

int blender::ed::text::SpaceText_Runtime::line_number_display_digits = 0

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

Definition at line 198 of file text_intern.hh.

◆ scroll_ofs_px

int blender::ed::text::SpaceText_Runtime::scroll_ofs_px[2] {0, 0}

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 210 of file text_intern.hh.

◆ scroll_px_per_line

float blender::ed::text::SpaceText_Runtime::scroll_px_per_line = 0.0f

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

Definition at line 204 of file text_intern.hh.

◆ scroll_region_handle

rcti blender::ed::text::SpaceText_Runtime::scroll_region_handle {0, 0, 0, 0}

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

Definition at line 193 of file text_intern.hh.

◆ scroll_region_select

rcti blender::ed::text::SpaceText_Runtime::scroll_region_select {0, 0, 0, 0}

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

Definition at line 195 of file text_intern.hh.

◆ viewlines

int blender::ed::text::SpaceText_Runtime::viewlines = 0

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

Definition at line 201 of file text_intern.hh.


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