NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CFontWindow Class Reference

Search Toolkit Book for CFontWindow

#include "font_window.hpp"
(Private to src/gui/widgets/gl/demo_wx.)

+ Inheritance diagram for CFontWindow:
+ Collaboration diagram for CFontWindow:

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


Private Attributes

CRef< CGlBitmapFontm_Font

Additional Inherited Members

- Protected Attributes inherited from CGLCanvas
bool m_DoNotUpdate
float m_ClearColor [4]

Detailed Description

Definition at line 41 of file font_window.hpp.

Constructor & Destructor Documentation

◆ CFontWindow()

CFontWindow::CFontWindow ( wxWindow *  parent,
wxWindowID  id 

Definition at line 40 of file font_window.cpp.

References CGlBitmapFont::eHelvetica10.

Member Function Documentation



◆ SetGlFont()

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().

◆ x_Render()

void CFontWindow::x_Render ( void  )

Member Data Documentation

◆ m_Font

CRef<CGlBitmapFont> CFontWindow::m_Font

Definition at line 55 of file font_window.hpp.

Referenced by SetGlFont(), and x_Render().

The documentation for this class was generated from the following files:
Modified on Tue Apr 16 20:12:03 2024 by rev. 669887