|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | TextViewContext |
Macros | |
| #define | TVC_TAB_COLUMNS 4 |
Enumerations | |
| enum | eTextViewContext_LineFlag { TVC_LINE_FG = (1 << 0) , TVC_LINE_BG = (1 << 1) , TVC_LINE_ICON = (1 << 2) , TVC_LINE_ICON_FG = (1 << 3) , TVC_LINE_ICON_BG = (1 << 4) } |
Functions | |
| int | textview_draw (TextViewContext *tvc, bool do_draw, const int mval_init[2], void **r_mval_pick_item, int *r_mval_pick_offset) |
| #define TVC_TAB_COLUMNS 4 |
Definition at line 11 of file textview.hh.
Referenced by textview_draw_sel(), textview_draw_string(), and textview_wrap_offsets().
| Enumerator | |
|---|---|
| TVC_LINE_FG | |
| TVC_LINE_BG | |
| TVC_LINE_ICON | |
| TVC_LINE_ICON_FG | |
| TVC_LINE_ICON_BG | |
Definition at line 13 of file textview.hh.
| int textview_draw | ( | TextViewContext * | tvc, |
| bool | do_draw, | ||
| const int | mval_init[2], | ||
| void ** | r_mval_pick_item, | ||
| int * | r_mval_pick_offset ) |
| r_mval_pick_item | The resulting item clicked on using mval_init. Set from the void pointer which holds the current iterator. Its type depends on the data being iterated over. |
| r_mval_pick_offset | The offset in bytes of the mval_init. Use for selection. |
Definition at line 304 of file textview.cc.
References TextViewContext::begin, BLF_descender(), BLF_fixed_width(), blf_mono_font, BLI_assert, TextViewDrawState::columns, TextViewContext::const_colors, TextViewDrawState::cwidth, TextViewDrawState::do_draw, TextViewContext::draw_cursor, TextViewContext::draw_rect, TextViewDrawState::draw_rect, TextViewContext::draw_rect_outer, TextViewDrawState::draw_rect_outer, TextViewContext::end, TextViewDrawState::font_id, int, TextViewContext::iter, TextViewContext::lheight, TextViewDrawState::lheight, TextViewContext::line_data, TextViewContext::line_get, TextViewDrawState::lofs, TextViewDrawState::mval, TextViewDrawState::mval_pick_offset, TextViewContext::row_vpadding, TextViewDrawState::row_vpadding, TextViewContext::scroll_ymax, TextViewDrawState::scroll_ymax, TextViewContext::scroll_ymin, TextViewDrawState::scroll_ymin, TextViewDrawState::sel, TextViewContext::sel_end, TextViewContext::sel_start, TextViewContext::step, textview_draw_string(), textview_font_begin(), TVC_LINE_BG, TVC_LINE_FG, TVC_LINE_ICON, TVC_LINE_ICON_BG, TVC_LINE_ICON_FG, rcti::xmax, rcti::xmin, TextViewDrawState::xy, xy, rcti::ymax, and rcti::ymin.
Referenced by console_textview_main__internal(), and info_textview_main__internal().