Draw window.
More...
#include <Draw_Window.hxx>
◆ FCallbackBeforeTerminate
| typedef void(* Draw_Window::FCallbackBeforeTerminate) () |
◆ ~Draw_Window()
| virtual Draw_Window::~Draw_Window |
( |
| ) |
|
|
virtual |
◆ Draw_Window()
Main constructor.
- Parameters
-
| [in] | theTitle | window title |
| [in] | theXY | top-left position |
| [in] | theSize | window dimensions |
| [in] | theParent | optional native parent window |
| [in] | theWin | optional native window |
◆ AddCallbackBeforeTerminate()
This method registers a callback function that will be called just before exit. This is useful especially for Windows platform, on which Draw is normally self-terminated instead of exiting.
◆ Clear()
| void Draw_Window::Clear |
( |
| ) |
|
◆ DefineColor()
| static bool Draw_Window::DefineColor |
( |
const int | theIndex, |
|
|
const char * | theColorName ) |
|
static |
◆ Destroy()
| void Draw_Window::Destroy |
( |
| ) |
|
◆ DisplayWindow()
| void Draw_Window::DisplayWindow |
( |
| ) |
|
Display window on the screen.
◆ DrawSegments()
◆ DrawString()
| void Draw_Window::DrawString |
( |
int | theX, |
|
|
int | theY, |
|
|
const char * | theText ) |
◆ Flush()
XFlush() wrapper (X11), has no effect on other platforms.
◆ GetPosition()
| void Draw_Window::GetPosition |
( |
int & | thePosX, |
|
|
int & | thePosY ) |
◆ GetTitle()
◆ GetUseBuffer()
| bool Draw_Window::GetUseBuffer |
( |
| ) |
const |
|
inline |
Returns true if off-screen image buffer is being used.
◆ HeightWin()
| int Draw_Window::HeightWin |
( |
| ) |
const |
◆ Hide()
| void Draw_Window::Hide |
( |
| ) |
|
◆ init()
◆ InitBuffer()
| void Draw_Window::InitBuffer |
( |
| ) |
|
(Re)initializes off-screen image buffer according to current window size.
◆ IsMapped()
| bool Draw_Window::IsMapped |
( |
| ) |
const |
Return true if window is displayed on the screen.
◆ Redraw()
| void Draw_Window::Redraw |
( |
| ) |
|
◆ RemoveCallbackBeforeTerminate()
◆ Save()
| bool Draw_Window::Save |
( |
const char * | theFileName | ) |
const |
◆ SetColor()
| void Draw_Window::SetColor |
( |
int | theColor | ) |
|
Set active color index for further paintings.
- See also
- DefineColor()
◆ SetDimension()
| void Draw_Window::SetDimension |
( |
int | theNewDx, |
|
|
int | theNewDy ) |
◆ SetMode()
| void Draw_Window::SetMode |
( |
int | theMode | ) |
|
Set active paint mode (3 for COPY; 6 for XOR).
◆ SetPosition()
| void Draw_Window::SetPosition |
( |
int | theNewXpos, |
|
|
int | theNewYpos ) |
◆ SetTitle()
◆ SetUseBuffer()
| void Draw_Window::SetUseBuffer |
( |
bool | theToUse | ) |
|
◆ WExpose()
Perform window exposing.
Implemented in Draw_View.
◆ WidthWin()
| int Draw_Window::WidthWin |
( |
| ) |
const |
The documentation for this class was generated from the following file: