1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_POLICY__HPP
2 #define GUI_WIDGETS_SEQ_GRAPHIC___LAYOUT_POLICY__HPP
74 m_Sorter.swap(sorter);
84 void x_SeparateObjects(
CLayoutGroup& group, TLayout& layout,
85 SBoundingBox&
bound,
size_t group_size,
int vert_space)
const;
CLayoutGroup is a container of CSeqGlyphs (layout objects).
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
class ILayoutPolicy defines the abstract interface required for generating layout based on a set of g...
virtual void x_SetObjectPos(TLayout &layout, SBoundingBox &bound) const
Set the objects' position (Y), and update the bounding box of the group (of all objects).
vector< TLayoutRow > TLayout
virtual void BuildLayout(CLayoutGroup &group, SBoundingBox &bound) const =0
Build layout for a list of layout objects.
void SetSorter(TSorter &sorter)
list< CRef< CSeqGlyph > > TObjectList
vector< CRef< CSeqGlyph > > TLayoutRow
std::function< bool(const CRef< CSeqGlyph > &, const CRef< CSeqGlyph > &)> TSorter
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
Defines to provide correct exporting from DLLs in Windows.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
T bound(T x_, T xlo_, T xhi_)