p_areas->push_back(area);
97repeat_dist =
max(repeat_dist, title_len);
105 for(
int i= 0;
i< repeat_num; ++
i) {
110title.c_str(), x, yM,
false,
false);
135(*iter)->SetTop((*iter)->GetTop() + offset_v);
@ fNoTooltip
do not request and show tooltip
@ fNoHighlight
no highlighting on mouse over
@ fComment
render a label/comment on client side
@ fNoSelection
the object can't be selected
string m_ID
area identifier
int m_Flags
area flags, will need to replace m_Type
bool m_PositiveStrand
the default is true
TObjectList & SetChildren()
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
virtual void x_Draw() const
The default renderer for this layout object.
ILayoutPolicy::TObjectList TObjectList
bool m_RepeatTitle
flag indicating if need to repeat title
virtual void x_Draw() const
The default renderer for this layout object.
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
int m_RepeatDist
didstance between repeated titles
bool m_ShowTitle
Used for SViewer mode.
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
in pixel
CRef< CGlTextureFont > m_TitleFont
void TextOut(const CGlTextureFont *font, const char *text, TModelUnit x, TModelUnit y, bool center, bool adjust_flip=true) const
void DrawShadedQuad(const TModelRect &rcm, const CRgbaColor &c1, const CRgbaColor &c2, bool shade_vert=true) const
const TModelRange & GetVisibleRange() const
TModelUnit SeqToScreen(const TModelUnit &size) const
convert from sequence positions to screen pixels
TModelUnit ScreenToSeq(const TModelUnit &size) const
convert from screen pixels to sequence positions
void AdjustToOrientation(TModelUnit &x) const
class CRgbaColor provides a simple abstraction for managing colors.
CRenderingContext * m_Context
the rendering context
virtual void SetHeight(TModelUnit h)
virtual TModelUnit GetRight() const
virtual void SetWidth(TModelUnit w)
virtual void SetLeft(TModelUnit l)
virtual TModelUnit GetTop() const
virtual TModelUnit GetHeight() const
bool x_Visible_V() const
is this glyph visible in vertical direction?
void x_Local2World(TModelPoint &p) const
Transform the coordiantes from local coord. to world coord.
virtual TModelUnit GetWidth() const
virtual TModelUnit GetLeft() const
vector< CHTMLActiveArea > TAreaVector
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
IRender & GetGl()
convenience function for getting current render manager
virtual TModelUnit TextHeight(const CGlTextureFont *font) const =0
virtual TModelUnit TextWidth(const CGlTextureFont *font, const char *text) const =0
virtual void ColorC(const CRgbaColor &c)=0
Set current color (glColor{3,4}{f,d}{v,})
string Truncate(const char *text, TModelUnit w, ETruncate trunc=eTruncate_Ellipsis) const
Truncate text to the secified width.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
position_type GetLength(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetFrom(TFrom value)
Assign a value to From data member.
TFrom GetFrom(void) const
Get the From member data.
void SetTo(TTo value)
Assign a value to To data member.
unsigned int
A callback function used to compare two keys in a database.
static const int kPadding
static const int kIndentPix
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4