NCBI C++ ToolKit
|
Search Toolkit Book for CFontWindow
#include "font_window.hpp"
(Private to src/gui/widgets/gl/demo_wx
.)
Public Member Functions | |
CFontWindow (wxWindow *parent, wxWindowID id) | |
void | SetGlFont (CGlBitmapFont::EFont font) |
Public Member Functions inherited from CGLCanvas | |
CGLCanvas (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
virtual | ~CGLCanvas () |
void | OnPaint (wxPaintEvent &event) |
void | DoNotUpdate () |
void | SetClearColor (float r, float g, float b, float a) |
Protected Member Functions | |
virtual void | x_Render () |
Protected Member Functions inherited from CGLCanvas | |
void | x_SetupGLContext () |
void | x_CheckGlVersion () |
const wxGLAttributes & | x_GetAttribList () const |
Not having all programs share the same window attributes has caused crashing on Linux, so each window will use these attributes (this should be the superset of attributes needed by program windows). More... | |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
CRef< CGlBitmapFont > | m_Font |
Additional Inherited Members | |
Protected Attributes inherited from CGLCanvas | |
bool | m_DoNotUpdate |
float | m_ClearColor [4] |
Definition at line 41 of file font_window.hpp.
CFontWindow::CFontWindow | ( | wxWindow * | parent, |
wxWindowID | id | ||
) |
Definition at line 40 of file font_window.cpp.
References CGlBitmapFont::eHelvetica10.
|
private |
void CFontWindow::SetGlFont | ( | CGlBitmapFont::EFont | font | ) |
Definition at line 351 of file font_window.cpp.
References m_Font, and CRef< C, Locker >::Reset().
Referenced by CFontDemoPanel::OnFontSelected().
|
protectedvirtual |
Reimplemented from CGLCanvas.
Definition at line 46 of file font_window.cpp.
References CGlBitmapFont::ArrayTextOut(), IGlFont::eAlign_Bottom, IGlFont::eAlign_Center, IGlFont::eAlign_Left, IGlFont::eAlign_Right, IGlFont::eAlign_Top, CGlBitmapFont::eFontRotate_0, CGlBitmapFont::eFontRotate_180, CGlBitmapFont::eFontRotate_270, CGlBitmapFont::eFontRotate_90, m_Font, CGlBitmapFont::SetFontRotate(), ncbi::grid::netcache::search::fields::size, and CGlBitmapFont::TextOut().
|
private |
Definition at line 55 of file font_window.hpp.
Referenced by SetGlFont(), and x_Render().