Go to the SVN repository for this file.
73 if(label_w > max_w) {
75content = font->
Truncate(content.c_str(), label_w);
80vis_r.
GetFrom() + label_w, base - font_h * 0.5 - 2);
85gl.
Color3f(46.0f,69.0f,100.0f);
87rect.
Bottom() - 1.0,
false);
virtual void x_RenderContent() const
The content rendering must be implemented in the derived layout tracks.
virtual void x_RenderContent() const
The content rendering must be implemented in the derived layout tracks.
CLDBlockLine(CRenderingContext *r_cntx)
string GetTitle() const
get the track title.
CConstRef< CSeqGraphicConfig > x_GetGlobalConfig() const
Method for getting global configuration from rendering context.
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
void TextOut(const CGlTextureFont *font, const char *text, TModelUnit x, TModelUnit y, bool center, bool adjust_flip=true) const
TModelRange IntersectVisible(const CSeqGlyph *obj) const
TModelUnit GetMaxLabelWidth(const CGlBitmapFont &font) const
In screen pixel..
TModelUnit ScreenToSeq(const TModelUnit &size) const
convert from screen pixels to sequence positions
void DrawBackground(const TModelRect &rcm, TModelUnit border) const
CRenderingContext * m_Context
the rendering context
virtual TModelUnit GetHeight() const
void Color3f(GLfloat r, GLfloat g, GLfloat b)
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
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,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TFrom GetFrom(void) const
Get the From member data.
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