Blender V4.3
TextViewContext Struct Reference

#include <textview.hh>

Public Attributes

int lheight
 
int sel_start
 
int sel_end
 
int row_vpadding
 
rcti draw_rect
 
rcti draw_rect_outer
 
int scroll_ymin
 
int scroll_ymax
 
int(* begin )(TextViewContext *tvc)
 
void(* end )(TextViewContext *tvc)
 
const void * arg1
 
const void * arg2
 
int(* step )(TextViewContext *tvc)
 
void(* line_get )(TextViewContext *tvc, const char **r_line, int *r_len)
 
enum eTextViewContext_LineFlag(* line_data )(TextViewContext *tvc, uchar fg[4], uchar bg[4], int *r_icon, uchar r_icon_fg[4], uchar r_icon_bg[4])
 
void(* draw_cursor )(TextViewContext *tvc, int cwidth, int columns)
 
void(* const_colors )(TextViewContext *tvc, unsigned char bg_sel[4])
 
const void * iter
 
int iter_index
 
int iter_char_begin
 
int iter_char_end
 
int iter_tmp
 

Detailed Description

Definition at line 22 of file textview.hh.

Member Data Documentation

◆ arg1

◆ arg2

const void* TextViewContext::arg2

◆ begin

int(* TextViewContext::begin) (TextViewContext *tvc)

◆ const_colors

void(* TextViewContext::const_colors) (TextViewContext *tvc, unsigned char bg_sel[4])

◆ draw_cursor

void(* TextViewContext::draw_cursor) (TextViewContext *tvc, int cwidth, int columns)

Definition at line 53 of file textview.hh.

Referenced by console_textview_main__internal(), and textview_draw().

◆ draw_rect

rcti TextViewContext::draw_rect

Area to draw text: (0, 0, winx, winy) with a margin applied and scroll-bar subtracted.

Definition at line 31 of file textview.hh.

Referenced by console_textview_draw_cursor(), console_textview_main__internal(), info_textview_main__internal(), and textview_draw().

◆ draw_rect_outer

rcti TextViewContext::draw_rect_outer

Area to draw text background colors (extending beyond text in some cases).

Definition at line 33 of file textview.hh.

Referenced by console_textview_main__internal(), info_textview_main__internal(), and textview_draw().

◆ end

void(* TextViewContext::end) (TextViewContext *tvc)

◆ iter

◆ iter_char_begin

int TextViewContext::iter_char_begin

Used for internal multi-line iteration.

Definition at line 59 of file textview.hh.

Referenced by report_line_data(), report_textview_init__internal(), report_textview_line_get(), and report_textview_step().

◆ iter_char_end

int TextViewContext::iter_char_end

The last character (not inclusive).

Definition at line 61 of file textview.hh.

Referenced by report_textview_begin(), report_textview_init__internal(), report_textview_line_get(), and report_textview_step().

◆ iter_index

int TextViewContext::iter_index

Definition at line 57 of file textview.hh.

◆ iter_tmp

int TextViewContext::iter_tmp

Internal iterator use.

Definition at line 63 of file textview.hh.

Referenced by report_line_data(), report_textview_begin(), and report_textview_step().

◆ lheight

int TextViewContext::lheight

Font size scaled by the interface size.

Definition at line 24 of file textview.hh.

Referenced by console_textview_draw_cursor(), console_textview_main__internal(), info_textview_main__internal(), and textview_draw().

◆ line_data

enum eTextViewContext_LineFlag(* TextViewContext::line_data) (TextViewContext *tvc, uchar fg[4], uchar bg[4], int *r_icon, uchar r_icon_fg[4], uchar r_icon_bg[4])

◆ line_get

void(* TextViewContext::line_get) (TextViewContext *tvc, const char **r_line, int *r_len)

◆ row_vpadding

int TextViewContext::row_vpadding

Definition at line 28 of file textview.hh.

Referenced by info_textview_main__internal(), and textview_draw().

◆ scroll_ymax

int TextViewContext::scroll_ymax

◆ scroll_ymin

int TextViewContext::scroll_ymin

Scroll offset in pixels.

Definition at line 36 of file textview.hh.

Referenced by console_textview_main__internal(), info_textview_main__internal(), and textview_draw().

◆ sel_end

◆ sel_start

int TextViewContext::sel_start

Text selection, when a selection range is in use.

Definition at line 26 of file textview.hh.

Referenced by console_textview_begin(), console_textview_main__internal(), info_textview_main__internal(), report_textview_begin(), and textview_draw().

◆ step

int(* TextViewContext::step) (TextViewContext *tvc)

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