ubit
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ubit::UHardwinImpl Class Referenceabstract
Inheritance diagram for ubit::UHardwinImpl:
ubit::UWinImpl

Public Member Functions

UDispgetDisp () const
 
UWingetWin () const
 
WinType getWinType () const
 
UGlcontext * getGlcontext () const
 
bool isPixmap () const
 
bool isSubwin () const
 
bool isHardwin () const
 
bool isTopLevel () const
 
virtual void realize (WinType, float w, float h)=0
 
virtual bool isRealized () const =0
 
virtual void show (bool=true)=0
 
virtual void toBack ()=0
 
virtual void toFront ()=0
 
virtual UPoint getScreenPos () const =0
 returns window position relatively to the screen. More...
 
virtual UPoint getPos () const =0
 returns window position relatively to its parent window (or the screen). More...
 
virtual void setPos (const UPoint &)=0
 changes window position relatively to its parent window (or the screen). More...
 
virtual UDimension getSize () const =0
 returns window size.
 
virtual void setSize (const UDimension &)=0
 changes window size.
 
virtual UStr getTitle () const =0
 returns window title.
 
virtual void setTitle (const UStr &)=0
 changes window title.
 
virtual UStr getIconTitle () const =0
 returns icon title.
 
virtual void setIconTitle (const UStr &)=0
 changes icon title.
 
virtual void setCursor (const UCursor *)=0
 changes window cursor (can be null).
 
virtual void setClassProperty (const UStr &instance_name, const UStr &class_name)=0
 changes the WM_CLASS property when X11 is used.
 
UChildrengetSoftwinList ()
 
UWinListgetSoftwins ()
 
UWinListobtainSoftwins ()
 
void addSoftwin (UWin *softwin, UWin *hardwin, UDisp *disp, bool add_to_the_end)
 
void removeSoftwin (UWin *softwin)
 
void doUpdate (const UUpdate &, UWin *, UView *winview)
 
void doUpdateImpl (const UUpdate &, UWin *, UView *winview, const UDimension *size)
 

Protected Member Functions

 UHardwinImpl (UDisp *, UWin *)
 

Protected Attributes

unsigned char wintype
 
unsigned char must_update
 
UDispdisp
 
UWinwin
 
UChildrensoftwin_list
 
UGlcontext * glcontext
 

Friends

class UDisp
 
class UWin
 
class UView
 
class UGraph
 
class UPaintEvent
 
class UInputEvent
 
class UAppliImpl
 
class UGlcanvas
 

Additional Inherited Members

- Public Types inherited from ubit::UWinImpl
enum  WinType {
  NONE, EXTWIN, PIXMAP, HARDWIN = 8,
  SUBWIN, TOPLEVEL = 16, FRAME, MAINFRAME,
  DIALOG, MENU
}
 window types.
 

Member Function Documentation

§ getPos()

virtual UPoint ubit::UHardwinImpl::getPos ( ) const
pure virtual

returns window position relatively to its parent window (or the screen).

the screen position is returned for first level windows (ie. windows that are not subwindows embedded in another window)

§ getScreenPos()

virtual UPoint ubit::UHardwinImpl::getScreenPos ( ) const
pure virtual

returns window position relatively to the screen.

contrary to getPos(), this function returns the screen position for all windows (even for subwindows embedded in another window)

§ setPos()

virtual void ubit::UHardwinImpl::setPos ( const UPoint )
pure virtual

changes window position relatively to its parent window (or the screen).

changes position relatively to the screen for first level windows (ie. windows that are not subwindows embedded in another window)


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