1 #ifndef GUI_UTILS___SIMPLE_LAYOUT_POLICY__HPP
2 #define GUI_UTILS___SIMPLE_LAYOUT_POLICY__HPP
60 , m_SortingType(eSort_No) {}
64 int GetVertSpace()
const;
65 int GetTopMargin()
const;
66 TSortingMethod GetSortingType()
const;
68 void SetVertSpace(
int d);
69 void SetTopMargin(
int m);
70 void SetSortingType(TSortingMethod meth);
93 , m_AllowOverlap(
true) {}
97 , m_AllowOverlap(allow_overlap) {}
102 int GetTopMargin()
const;
103 void SetTopMargin(
int d);
105 void SetAllowOverlap(
bool flag);
109 SBoundingBox&
bound,
bool side_labeling)
const;
112 SBoundingBox&
bound,
bool side_labeling)
const;
CInlineLayout is the anther simple layout policy that put a list of glyphs in a single line horizonta...
CInlineLayout(bool allow_overlap)
void SetAllowOverlap(bool flag)
int GetTopMargin() const
CInlineLayout inline method implementation.
CLayoutGroup is a container of CSeqGlyphs (layout objects).
COverlayLayout is the layout policy that arranges glyphs over the top of each other.
CSimpleLayout is the simpliest layout policy that simply stack a set of glyphs one on top of the othe...
TSortingMethod m_SortingType
ESortingType TSortingMethod
@ eSort_BySeqPos
seq start position
int GetVertSpace() const
CSimpleLayout inline method implementation.
TSortingMethod GetSortingType() const
void SetSortingType(TSortingMethod meth)
class ILayoutPolicy defines the abstract interface required for generating layout based on a set of g...
virtual void BuildLayout(CLayoutGroup &group, SBoundingBox &bound) const =0
Build layout for a list of layout objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
T bound(T x_, T xlo_, T xhi_)