Blender  V3.3
Public Attributes | List of all members
TextViewContext Struct Reference

#include <textview.h>

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 )(struct TextViewContext *tvc)
 
void(* end )(struct TextViewContext *tvc)
 
const voidarg1
 
const voidarg2
 
int(* step )(struct TextViewContext *tvc)
 
void(* line_get )(struct TextViewContext *tvc, const char **r_line, int *r_len)
 
enum eTextViewContext_LineFlag(* line_data )(struct TextViewContext *tvc, uchar fg[4], uchar bg[4], int *r_icon, uchar r_icon_fg[4], uchar r_icon_bg[4])
 
void(* draw_cursor )(struct TextViewContext *tvc, int cwidth, int columns)
 
void(* const_colors )(struct TextViewContext *tvc, unsigned char bg_sel[4])
 
const voiditer
 
int iter_index
 
int iter_char_begin
 
int iter_char_end
 
int iter_tmp
 

Detailed Description

Definition at line 17 of file textview.h.

Member Data Documentation

◆ arg1

const void* TextViewContext::arg1

◆ arg2

const void* TextViewContext::arg2

◆ begin

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

◆ const_colors

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

◆ draw_cursor

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

Definition at line 48 of file textview.h.

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 26 of file textview.h.

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 28 of file textview.h.

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

◆ end

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

◆ iter

const void* TextViewContext::iter

◆ iter_char_begin

int TextViewContext::iter_char_begin

Used for internal multi-line iteration.

Definition at line 54 of file textview.h.

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 56 of file textview.h.

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 52 of file textview.h.

◆ iter_tmp

int TextViewContext::iter_tmp

Internal iterator use.

Definition at line 58 of file textview.h.

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 19 of file textview.h.

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) (struct 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) (struct TextViewContext *tvc, const char **r_line, int *r_len)

◆ row_vpadding

int TextViewContext::row_vpadding

Definition at line 23 of file textview.h.

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 31 of file textview.h.

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

◆ sel_end

int TextViewContext::sel_end

◆ sel_start

int TextViewContext::sel_start

Text selection, when a selection range is in use.

Definition at line 21 of file textview.h.

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

◆ step

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

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