GCC Middle and Back End API Reference
|
#include <tree-widget.h>
Public Member Functions | |
tree_widget (std::unique_ptr< widget > node, const theme &theme, style::id_t style_id) | |
static std::unique_ptr< tree_widget > const char * | get_desc () const override |
canvas::size_t | calc_req_size () final override |
void | update_child_alloc_rects () final override |
void | paint_to_canvas (canvas &canvas) final override |
void | add_child (std::unique_ptr< widget > child) |
size_t | get_num_children () const |
canvas | to_canvas (const style_manager &style_mgr) |
canvas::size_t | get_req_size () |
const canvas::size_t | get_req_size () const |
void | set_alloc_rect (const canvas::rect_t &rect) |
int | get_req_w () const |
int | get_req_h () const |
const canvas::rect_t & | get_alloc_rect () const |
int | get_alloc_w () const |
int | get_alloc_h () const |
int | get_min_x () const |
int | get_max_x () const |
int | get_next_x () const |
int | get_min_y () const |
int | get_max_y () const |
int | get_next_y () const |
canvas::range_t | get_x_range () const |
canvas::range_t | get_y_range () const |
const canvas::coord_t & | get_top_left () const |
Static Public Member Functions | |
static std::unique_ptr< tree_widget > | make (styled_string str, const theme &theme, style::id_t style_id) |
static std::unique_ptr< tree_widget > | make (const dump_widget_info &dwi, pretty_printer *pp) |
static std::unique_ptr< tree_widget > | make (const dump_widget_info &dwi, const char *str) |
static std::unique_ptr< tree_widget > | from_fmt (const dump_widget_info &dwi, printer_fn format_decoder, const char *fmt,...) ATTRIBUTE_GCC_PPDIAG(3 |
Static Public Attributes | |
static const bool | DEBUG_GEOMETRY = false |
Private Attributes | |
std::unique_ptr< widget > | m_node |
std::vector< std::unique_ptr< widget > > | m_children |
const theme & | m_theme |
style::id_t | m_style_id |
canvas::size_t | m_req_size |
canvas::rect_t | m_alloc_rect |
|
inline |
References m_node, m_style_id, and m_theme.
|
inline |
References add_child(), m_children, and text_art::widget::widget().
Referenced by add_child().
|
finaloverridevirtual |
Implements text_art::widget.
References text_art::size< CoordinateSystem >::h, m_children, m_node, margin_width, and text_art::size< CoordinateSystem >::w.
|
static |
|
inlineinherited |
References m_alloc_rect.
|
inlineinherited |
References m_alloc_rect.
Referenced by text_art::wrapper_widget::update_child_alloc_rects().
|
inlineinherited |
References m_alloc_rect.
Referenced by text_art::tree_widget::update_child_alloc_rects(), and text_art::vbox_widget::update_child_alloc_rects().
|
overridevirtual |
Implements text_art::widget.
|
inlineinherited |
References m_alloc_rect.
|
inlineinherited |
References m_alloc_rect.
Referenced by text_art::tree_widget::paint_to_canvas().
|
inlineinherited |
|
inlineinherited |
References m_alloc_rect.
Referenced by text_art::tree_widget::update_child_alloc_rects(), and text_art::vbox_widget::update_child_alloc_rects().
|
inlineinherited |
References m_alloc_rect.
|
inlineinherited |
References m_alloc_rect.
|
inline |
References m_children.
|
inlineinherited |
References m_req_size.
|
inlineinherited |
References calc_req_size(), DEBUG_GEOMETRY, get_desc(), and m_req_size.
Referenced by to_canvas().
|
inlineinherited |
References m_req_size.
|
inlineinherited |
References m_req_size.
|
inlineinherited |
References m_alloc_rect.
Referenced by text_art::canvas_widget::paint_to_canvas(), and text_art::text_widget::paint_to_canvas().
|
inlineinherited |
References m_alloc_rect.
|
inlineinherited |
References m_alloc_rect.
|
static |
|
static |
|
static |
Referenced by from_fmt(), make(), and make().
|
finaloverridevirtual |
Implements text_art::widget.
References text_art::widget::get_max_y(), text_art::widget::get_min_x(), m_children, m_node, m_style_id, m_theme, text_art::canvas::paint(), text_art::theme::TREE_CHILD_FINAL, text_art::theme::TREE_CHILD_NON_FINAL, text_art::theme::TREE_X_CONNECTOR, text_art::theme::TREE_Y_CONNECTOR, and y.
|
inlineinherited |
References DEBUG_GEOMETRY, get_desc(), m_alloc_rect, text_art::rect< CoordinateSystem >::m_size, text_art::rect< CoordinateSystem >::m_top_left, and update_child_alloc_rects().
Referenced by to_canvas().
|
inherited |
class text_art::widget.
References get_req_size(), paint_to_canvas(), and set_alloc_rect().
|
finaloverridevirtual |
Implements text_art::widget.
References text_art::widget::get_alloc_w(), text_art::widget::get_min_x(), text_art::widget::get_min_y(), m_children, m_node, margin_width, and y.
Referenced by get_req_size(), and set_alloc_rect().
|
privateinherited |
Referenced by get_alloc_h(), get_alloc_rect(), get_alloc_w(), get_max_x(), get_max_y(), get_min_x(), get_min_y(), get_next_x(), get_next_y(), get_top_left(), get_x_range(), get_y_range(), set_alloc_rect(), and widget().
|
private |
Referenced by add_child(), calc_req_size(), get_num_children(), paint_to_canvas(), and update_child_alloc_rects().
|
private |
Referenced by calc_req_size(), paint_to_canvas(), tree_widget(), and update_child_alloc_rects().
|
privateinherited |
Referenced by get_req_h(), get_req_size(), get_req_size(), get_req_w(), and widget().
|
private |
Referenced by paint_to_canvas(), and tree_widget().
|
private |
Referenced by paint_to_canvas(), and tree_widget().