Changed two connector methods to virtual
For reference, see fltk.general thread started Mar 26 2025, entitled:
"Make some Fl_Tree_Item methods virtual?"
This commit is contained in:
parent
1f715f8766
commit
9e1e043af3
@ -93,8 +93,8 @@ protected:
|
|||||||
void _Init(const Fl_Tree_Prefs &prefs, Fl_Tree *tree);
|
void _Init(const Fl_Tree_Prefs &prefs, Fl_Tree *tree);
|
||||||
void show_widgets();
|
void show_widgets();
|
||||||
void hide_widgets();
|
void hide_widgets();
|
||||||
void draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_Prefs &prefs);
|
virtual void draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_Prefs &prefs);
|
||||||
void draw_horizontal_connector(int x1, int x2, int y, const Fl_Tree_Prefs &prefs);
|
virtual void draw_horizontal_connector(int x1, int x2, int y, const Fl_Tree_Prefs &prefs);
|
||||||
void recalc_tree();
|
void recalc_tree();
|
||||||
int calc_item_height(const Fl_Tree_Prefs &prefs) const;
|
int calc_item_height(const Fl_Tree_Prefs &prefs) const;
|
||||||
Fl_Color drawfgcolor() const;
|
Fl_Color drawfgcolor() const;
|
||||||
|
|||||||
@ -705,7 +705,8 @@ int Fl_Tree_Item::swap_children(Fl_Tree_Item *a, Fl_Tree_Item *b) {
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Internal: Horizontal connector line based on preference settings.
|
/// Horizontal connector line based on preference settings.
|
||||||
|
/// This method can be overridden to implement custom connection line drawing.
|
||||||
/// \param[in] x1 The left hand X position of the horizontal connector
|
/// \param[in] x1 The left hand X position of the horizontal connector
|
||||||
/// \param[in] x2 The right hand X position of the horizontal connector
|
/// \param[in] x2 The right hand X position of the horizontal connector
|
||||||
/// \param[in] y The vertical position of the horizontal connector
|
/// \param[in] y The vertical position of the horizontal connector
|
||||||
@ -730,7 +731,8 @@ void Fl_Tree_Item::draw_horizontal_connector(int x1, int x2, int y, const Fl_Tre
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Internal: Vertical connector line based on preference settings.
|
/// Vertical connector line based on preference settings.
|
||||||
|
/// This method can be overridden to implement custom connection line drawing.
|
||||||
/// \param[in] x The x position of the vertical connector
|
/// \param[in] x The x position of the vertical connector
|
||||||
/// \param[in] y1 The top of the vertical connector
|
/// \param[in] y1 The top of the vertical connector
|
||||||
/// \param[in] y2 The bottom of the vertical connector
|
/// \param[in] y2 The bottom of the vertical connector
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user