constfloattext_base_offset_y=display_frame ?ImMax(0.0f,window->DC.CurrentLineTextBaseOffset-style.FramePadding.y):window->DC.CurrentLineTextBaseOffset;// Acquire before ItemAdd()
constfloatframe_height=ImMax(ImMin(window->DC.CurrentLineHeight,g.FontSize+g.Style.FramePadding.y*2),label_size.y+(display_frame ?style.FramePadding.y*2:0.0f));// We vertically grow up to current line height up the typical widget height.
constfloatframe_height=ImMax(ImMin(window->DC.CurrentLineHeight,g.FontSize+g.Style.FramePadding.y*2),label_size.y+ padding.y*2);// We vertically grow up to current line height up the typical widget height.
constImRectinteract_bb=display_frame?frame_bb:ImRect(frame_bb.Min.x,frame_bb.Min.y,frame_bb.Min.x+text_width+style.ItemSpacing.x*2,frame_bb.Max.y);// Arbitrary allowing to click past 2 worth of ItemSpacing
// For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing
// (Ideally we'd want to add a flag for the user to specify we want want the hit test to be done up to the right side of the content or not)
// NB: '##' is normally used to hide text (as a library-wide feature), so we need to specify the text range to make sure the ## aren't stripped out here.