Open CASCADE Technology  7.2.0
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes
Draw_Window Class Reference

#include <Draw_Window.hxx>

Inheritance diagram for Draw_Window:
Inheritance graph
[legend]

Public Types

typedef void(* FCallbackBeforeTerminate) ()
 

Public Member Functions

 Draw_Window ()
 
 Draw_Window (const char *title, Standard_Integer X, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
 Draw_Window (Window mother)
 
 Draw_Window (Window mother, char *title, Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
 Draw_Window (const char *window)
 
void Init (Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
void Init (Window mother, Standard_Integer X=0, Standard_Integer Y=0, Standard_Integer DX=50, Standard_Integer DY=50)
 
void StopWinManager ()
 
void SetPosition (Standard_Integer NewXpos, Standard_Integer NewYpos)
 
void SetDimension (Standard_Integer NewDx, Standard_Integer NewDy)
 
void GetPosition (Standard_Integer &PosX, Standard_Integer &PosY)
 
Standard_Integer HeightWin () const
 
Standard_Integer WidthWin () const
 
void SetTitle (const TCollection_AsciiString &theTitle)
 
TCollection_AsciiString GetTitle () const
 
bool IsMapped () const
 Return true if window is displayed on the screen. More...
 
void DisplayWindow ()
 
void Hide ()
 
void Destroy ()
 
void Clear ()
 
void Wait (Standard_Boolean wait=Standard_True)
 
Drawable GetDrawable () const
 
void InitBuffer ()
 
void SetColor (int)
 
void SetMode (int)
 
void DrawString (int, int, char *)
 
void DrawSegments (Segment *, int)
 
void Redraw ()
 
Standard_Boolean Save (const char *theFileName) const
 
virtual ~Draw_Window ()
 
virtual void WExpose ()
 
virtual void WButtonPress (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer &button)
 
virtual void WButtonRelease (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer &button)
 
virtual void WMotionNotify (const Standard_Integer X, const Standard_Integer Y)
 
virtual void WConfigureNotify (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer dx, const Standard_Integer dy)
 
virtual void WUnmapNotify ()
 

Static Public Member Functions

static void AddCallbackBeforeTerminate (FCallbackBeforeTerminate theCB)
 
static void RemoveCallbackBeforeTerminate (FCallbackBeforeTerminate theCB)
 
static Standard_Boolean DefineColor (const Standard_Integer, const char *)
 
static void Flush ()
 

Data Fields

Base_Window & base
 
Window win
 
Window myMother
 
Pixmap myBuffer
 
Draw_Windownext
 
Draw_Windowprevious
 
Standard_Boolean myUseBuffer
 
Standard_Boolean withWindowManager
 

Static Public Attributes

static Draw_WindowfirstWindow
 

Member Typedef Documentation

◆ FCallbackBeforeTerminate

typedef void(* Draw_Window::FCallbackBeforeTerminate) ()

Type of the callback function that is to be passed to the method AddCallbackBeforeTerminate().

Constructor & Destructor Documentation

◆ Draw_Window() [1/5]

Draw_Window::Draw_Window ( )

◆ Draw_Window() [2/5]

Draw_Window::Draw_Window ( const char *  title,
Standard_Integer  X,
Standard_Integer  Y = 0,
Standard_Integer  DX = 50,
Standard_Integer  DY = 50 
)

◆ Draw_Window() [3/5]

Draw_Window::Draw_Window ( Window  mother)

◆ Draw_Window() [4/5]

Draw_Window::Draw_Window ( Window  mother,
char *  title,
Standard_Integer  X = 0,
Standard_Integer  Y = 0,
Standard_Integer  DX = 50,
Standard_Integer  DY = 50 
)

◆ Draw_Window() [5/5]

Draw_Window::Draw_Window ( const char *  window)

◆ ~Draw_Window()

virtual Draw_Window::~Draw_Window ( )
virtual

Member Function Documentation

◆ AddCallbackBeforeTerminate()

static void Draw_Window::AddCallbackBeforeTerminate ( FCallbackBeforeTerminate  theCB)
static

This method registers a callback function that will be called just before exit. This is usefull especially for Windows platform, on which Draw is normally self-terminated instead of exiting.

◆ Clear()

void Draw_Window::Clear ( )

◆ DefineColor()

static Standard_Boolean Draw_Window::DefineColor ( const Standard_Integer  ,
const char *   
)
static

◆ Destroy()

void Draw_Window::Destroy ( )

◆ DisplayWindow()

void Draw_Window::DisplayWindow ( )

◆ DrawSegments()

void Draw_Window::DrawSegments ( Segment ,
int   
)

◆ DrawString()

void Draw_Window::DrawString ( int  ,
int  ,
char *   
)

◆ Flush()

static void Draw_Window::Flush ( )
static

◆ GetDrawable()

Drawable Draw_Window::GetDrawable ( ) const

◆ GetPosition()

void Draw_Window::GetPosition ( Standard_Integer PosX,
Standard_Integer PosY 
)

◆ GetTitle()

TCollection_AsciiString Draw_Window::GetTitle ( ) const

◆ HeightWin()

Standard_Integer Draw_Window::HeightWin ( ) const

◆ Hide()

void Draw_Window::Hide ( )

◆ Init() [1/2]

void Draw_Window::Init ( Standard_Integer  X = 0,
Standard_Integer  Y = 0,
Standard_Integer  DX = 50,
Standard_Integer  DY = 50 
)

◆ Init() [2/2]

void Draw_Window::Init ( Window  mother,
Standard_Integer  X = 0,
Standard_Integer  Y = 0,
Standard_Integer  DX = 50,
Standard_Integer  DY = 50 
)

◆ InitBuffer()

void Draw_Window::InitBuffer ( )

◆ IsMapped()

bool Draw_Window::IsMapped ( ) const

Return true if window is displayed on the screen.

◆ Redraw()

void Draw_Window::Redraw ( )

◆ RemoveCallbackBeforeTerminate()

static void Draw_Window::RemoveCallbackBeforeTerminate ( FCallbackBeforeTerminate  theCB)
static

Just in case method for un-registering a callback previously registered by AddCallbackBeforeTerminate()

◆ Save()

Standard_Boolean Draw_Window::Save ( const char *  theFileName) const

◆ SetColor()

void Draw_Window::SetColor ( int  )

◆ SetDimension()

void Draw_Window::SetDimension ( Standard_Integer  NewDx,
Standard_Integer  NewDy 
)

◆ SetMode()

void Draw_Window::SetMode ( int  )

◆ SetPosition()

void Draw_Window::SetPosition ( Standard_Integer  NewXpos,
Standard_Integer  NewYpos 
)

◆ SetTitle()

void Draw_Window::SetTitle ( const TCollection_AsciiString theTitle)

◆ StopWinManager()

void Draw_Window::StopWinManager ( )

◆ Wait()

void Draw_Window::Wait ( Standard_Boolean  wait = Standard_True)

◆ WButtonPress()

virtual void Draw_Window::WButtonPress ( const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer button 
)
virtual

◆ WButtonRelease()

virtual void Draw_Window::WButtonRelease ( const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer button 
)
virtual

◆ WConfigureNotify()

virtual void Draw_Window::WConfigureNotify ( const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer  dx,
const Standard_Integer  dy 
)
virtual

◆ WExpose()

virtual void Draw_Window::WExpose ( )
virtual

Reimplemented in Draw_View.

◆ WidthWin()

Standard_Integer Draw_Window::WidthWin ( ) const

◆ WMotionNotify()

virtual void Draw_Window::WMotionNotify ( const Standard_Integer  X,
const Standard_Integer  Y 
)
virtual

◆ WUnmapNotify()

virtual void Draw_Window::WUnmapNotify ( )
virtual

Field Documentation

◆ base

Base_Window& Draw_Window::base

◆ firstWindow

Draw_Window* Draw_Window::firstWindow
static

◆ myBuffer

Pixmap Draw_Window::myBuffer

◆ myMother

Window Draw_Window::myMother

◆ myUseBuffer

Standard_Boolean Draw_Window::myUseBuffer

◆ next

Draw_Window* Draw_Window::next

◆ previous

Draw_Window* Draw_Window::previous

◆ win

Window Draw_Window::win

◆ withWindowManager

Standard_Boolean Draw_Window::withWindowManager

The documentation for this class was generated from the following file: