Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

KWindow Class Reference

The native widget for windows. More...

Class diagram for KWindow:

KWnd

List of all members.


Public Members

 KWindow ( BWindow * parent, char* title, int type, int x, int y, int width, int height, int clrBack)
void setBounds (int x, int y, int w, int h)
void setVisible ( jboolean b)
A POTENTIAL SOURCE OF DEAD-LOCKS. More...

void setInsets ( int xl, int yt, int xr,int yb, bool notify)
void setResizable (bool sw)
void setTitle (char * str)
!!! SET ZOOMABLE FLAG ? *.

bool OnPaint ( int x, int y, int width, int height)
bool OnActivate ( int flags, bool min, BWindow * handle )
bool OnCommand ( int cmd)
bool OnPosChanged ( int x, int y, int width, int height)
bool OnClose ()
bool OnSetCursor ()
bool updateInsets ()

Detailed Description

The native widget for windows.

Strange but true, this does not directly map to a BWindow but to a BView which is in fact the background of a newly created BWindow.

Why this hell? Because, doing this, our AWT implementation can run inside environments where we don't "own" windows (plugins come to mind).


Member Function Documentation

KWindow::KWindow (BWindow * parent, char * title, int type, int x, int y, int width, int height, int clrBack) [inline]

void KWindow::setBounds (int x, int y, int w, int h) [inline, virtual]

Reimplemented from KWnd.

void KWindow::setVisible (jboolean b) [inline, virtual]

A POTENTIAL SOURCE OF DEAD-LOCKS.

when we hide the window, its thread is suspended, so every other Java thread plotting on this window is blocked, and some other resource may never be released

Reimplemented from KWnd.

void KWindow::setInsets (int xl, int yt, int xr, int yb, bool notify) [inline]

void KWindow::setResizable (bool sw) [inline]

void KWindow::setTitle (char * str) [inline]

!!! SET ZOOMABLE FLAG ? *.

bool KWindow::OnPaint (int x, int y, int width, int height) [inline, virtual]

Reimplemented from KWnd.

bool KWindow::OnActivate (int flags, bool min, BWindow * handle) [inline, virtual]

Reimplemented from KWnd.

bool KWindow::OnCommand (int cmd) [inline, virtual]

Reimplemented from KWnd.

bool KWindow::OnPosChanged (int x, int y, int width, int height) [inline, virtual]

Reimplemented from KWnd.

bool KWindow::OnClose () [inline, virtual]

Reimplemented from KWnd.

bool KWindow::OnSetCursor () [inline, virtual]

Reimplemented from KWnd.

bool KWindow::updateInsets () [inline, virtual]

Reimplemented from KWnd.


The documentation for this class was generated from the following file:
Generated at Sat Jun 10 12:37:10 2000 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999