2005/5/9

     
 

class Window

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::wx::Window Class Reference

#include <Window.h>

Inheritance diagram for acdk::wx::Window:

acdk::wx::EvtHandler acdk::wx::WxObject acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::wx::Control acdk::wx::MDIClientWindow acdk::wx::MenuBar acdk::wx::Panel acdk::wx::ProgressDialog acdk::wx::SplitterWindow acdk::wx::StatusBar acdk::wx::TopLevelWindow acdk::wx::TreeCtrl List of all members.

Detailed Description

see wxWindow

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.19
Date:
Date
2005/02/05 10:45:35


Public Member Functions

 Window (wxWindow *wxobj, bool owns=false)
 Window (const wxWindow &wxobj, bool owns=false)
 Window (IN(RWindow) parent, int id, IN(RPoint) pos=Point::defaultPosition(), IN(RSize) size=Size::defaultSize())
void initDispatch ()
int getId ()
void setId (int id)
RString getName () const
void setName (IN(RString) name)
bool close (bool force=false)
bool destroy ()
bool destroyChildren ()
void dragAcceptFiles (bool accept)
bool isBeingDeleted () const
void setTitle (IN(RString) title)
RString getTitle ()
void raise ()
void lower ()
bool show (bool showit)
bool enable (bool doenable=true)
virtual void SetFocusFromKbd ()
virtual int getWindowStyleFlag () const
void setWindowStyle (int style)
int getWindowStyle () const
bool hasFlag (int flag)
bool isRetained () const
void setExtraStyle (int exStyle)
int getExtraStyle () const
void makeModal (bool modal=true)
void setThemeEnabled (bool enableTheme)
bool getThemeEnabled () const
void setFocus ()
void setFocusFromKbd ()
bool acceptsFocus () const
bool acceptsFocusFromKeyboard () const
RWindow getDefaultItem () const
RWindow setDefaultItem (IN(RWindow) child)
void setTmpDefaultItem (IN(RWindow) win)
RWindowArray getChildren ()
RWindow getParent () const
RWindow getGrandParent () const
bool isTopLevel () const
void setParent (IN(RWindow) parent)
bool reparent (IN(RWindow) newParent)
void addChild (IN(RWindow) child)
void removeChild (IN(RWindow) child)
RWindow findWindow (int id)
RWindow findWindow (IN(RString) name)
REvtHandler getEventHandler () const
void setEventHandler (IN(REvtHandler) handler)
void pushEventHandler (IN(REvtHandler) handler)
REvtHandler popEventHandler (bool deleteHandler=false)
bool removeEventHandler (IN(REvtHandler) handler)
void setValidator (IN(RValidator) validator)
RValidator getValidator ()
void getPosition (OUT(int) x, OUT(int) y) const
RPoint getPosition () const
RRect getRect () const
void getSize (OUT(int) width, OUT(int) height) const
RSize getSize () const
RSize getClientSize () const
void setSize (int x, int y, int width, int height, int sizeFlags=SizeAuto)
void setSize (IN(RRect) rect)
void setSize (int width, int height)
void setSize (IN(RSize) size)
void fit ()
void fitInside ()
RSize getBestSize () const
bool validate ()
bool transferDataToWindow ()
bool transferDataFromWindow ()
void initDialog ()
RPoint convertPixelsToDialog (IN(RPoint) pt)
RPoint convertDialogToPixels (IN(RPoint) pt)
RSize convertPixelsToDialog (IN(RSize) sz)
RSize convertDialogToPixels (IN(RSize) sz)
void warpPointer (int x, int y)
void captureMouse ()
void releaseMouse ()
bool hasCapture () const
void refresh (bool eraseBackground=true, IN(RRect) rect=Nil)
void refreshRect (IN(RRect) rect)
void update ()
void clear ()
void freeze ()
void thaw ()
void prepareDC (IN(RDC) dc)
RRegion getUpdateRegion () const
RRect getUpdateClientRect () const
bool isExposed (int x, int y)
bool isExposed (int x, int y, int w, int h)
bool isExposed (IN(RPoint) pt)
bool isExposed (IN(RRect) rect)
bool setBackgroundColour (IN(RColour) colour)
bool setForegroundColour (IN(RColour) colour)
bool setBackgroundColour (IN(RString) colour)
bool setForegroundColour (IN(RString) colour)
RColour getBackgroundColour () const
RColour getForegroundColour () const
virtual bool setCursor (IN(RCursor) cursor)
RCursor getCursor () const
bool setFont (IN(RFont) font)
RFont getFont ()
int getCharHeight () const
int getCharWidth () const
void clientToScreen (OUT(int) x, OUT(int) y)
void screenToClient (OUT(int) x, OUT(int) y)
RPoint clientToScreen (IN(RPoint) pt)
RPoint screenToClient (IN(RPoint) pt)
HitTest hitTest (int x, int y)
HitTest hitTest (IN(RPoint) pt)
Border getBorder () const
void updateWindowUI ()
bool hasScrollbar (int orient)
void setScrollbar (int orient, int pos, int thumbvisible, int range, bool refresh=true)
void setScrollPos (int orient, int pos, bool refresh=true)
int getScrollPos (int orient)
int getScrollThumb (int orient)
int getScrollRange (int orient)
void scrollWindow (int dx, int dy, IN(RRect) rect=Nil)
bool scrollLines (int lines)
bool scrollPages (int pages)
bool lineUp ()
bool lineDown ()
bool pageUp ()
bool pageDown ()
void setDropTarget (IN(RDropTarget) dropTarget)
RDropTarget getDropTarget () const
void setConstraints (IN(RLayoutConstraints) constraints)
RLayoutConstraints getConstraints () const
void unsetConstraints (IN(RLayoutConstraints) c)
void addConstraintReference (IN(RWindow) otherWin)
void removeConstraintReference (IN(RWindow) otherWin)
void deleteRelatedConstraints ()
void resetConstraints ()
void setConstraintSizes (bool recurse)
bool layoutPhase1 (OUT(int) noChanges)
bool layoutPhase2 (OUT(int) noChanges)
bool doPhase (int phase)
void setSizeConstraint (int x, int y, int w, int h)
void moveConstraint (int x, int y)
void getSizeConstraint (OUT(int) w, OUT(int) h)
void getClientSizeConstraint (OUT(int) w, OUT(int) h)
void getPositionConstraint (OUT(int) x, OUT(int) y)
void centre (int direction=OrientBoth)
void centreOnParent (int direction=OrientBoth)
void centreOnScreen (int direction=OrientBoth)
void setAutoLayout (bool autoLayout)
bool getAutoLayout () const
bool layout ()
void setSizer (IN(RSizer) sizer, bool deleteOld=true)
void setSizerAndFit (IN(RSizer) sizer, bool deleteOld=true)
RSizer getSizer () const
void setContainingSizer (IN(RSizer) sizer)
RSizer getContainingSizer () const

Static Public Member Functions

RWindow FindFocus ()
RWindow findWindowById (int id, IN(RWindow) parent=Nil)
RWindow findWindowByName (IN(RString) name, IN(RWindow) parent=Nil)
RWindow findWindowByLabel (IN(RString) label, IN(RWindow) parent=Nil)
RWindow getCapture ()
int messageBox (IN(RString) message, IN(RString) caption=Message, int style=MbOk, IN(RWindow) parent=Nil, int x=-1, int y=-1)
 Displays a Message Box.


Constructor & Destructor Documentation

acdk::wx::Window::Window wxWindow *  wxobj,
bool  owns = false
[inline]
 

acdk::wx::Window::Window const wxWindow &  wxobj,
bool  owns = false
[inline]
 

acdk::wx::Window::Window IN(RWindow parent,
int  id,
IN(RPoint pos = Point::defaultPosition(),
IN(RSize size = Size::defaultSize()
[inline]
 


Member Function Documentation

bool acdk::wx::Window::acceptsFocus  )  const [inline]
 

Reimplemented in acdk::wx::Gauge, and acdk::wx::StatusBar.

bool acdk::wx::Window::acceptsFocusFromKeyboard  )  const [inline]
 

void acdk::wx::Window::addChild IN(RWindow child  )  [inline]
 

void acdk::wx::Window::addConstraintReference IN(RWindow otherWin  )  [inline]
 

void acdk::wx::Window::captureMouse  )  [inline]
 

void acdk::wx::Window::centre int  direction = OrientBoth  )  [inline]
 

void acdk::wx::Window::centreOnParent int  direction = OrientBoth  )  [inline]
 

void acdk::wx::Window::centreOnScreen int  direction = OrientBoth  )  [inline]
 

void acdk::wx::Window::clear  )  [inline]
 

Reimplemented in acdk::wx::Choice, acdk::wx::ComboBox, acdk::wx::ide::StyledTextCtrl, acdk::wx::ListBox, and acdk::wx::TextCtrl.

RPoint acdk::wx::Window::clientToScreen IN(RPoint pt  )  [inline]
 

void acdk::wx::Window::clientToScreen OUT(int)  x,
OUT(int)  y
[inline]
 

bool acdk::wx::Window::close bool  force = false  )  [inline]
 

RSize acdk::wx::Window::convertDialogToPixels IN(RSize sz  )  [inline]
 

RPoint acdk::wx::Window::convertDialogToPixels IN(RPoint pt  )  [inline]
 

RSize acdk::wx::Window::convertPixelsToDialog IN(RSize sz  )  [inline]
 

RPoint acdk::wx::Window::convertPixelsToDialog IN(RPoint pt  )  [inline]
 

void acdk::wx::Window::deleteRelatedConstraints  )  [inline]
 

bool acdk::wx::Window::destroy  )  [inline]
 

bool acdk::wx::Window::destroyChildren  )  [inline]
 

bool acdk::wx::Window::doPhase int  phase  )  [inline]
 

void acdk::wx::Window::dragAcceptFiles bool  accept  )  [inline]
 

bool acdk::wx::Window::enable bool  doenable = true  )  [inline]
 

RWindow acdk::wx::Window::FindFocus  )  [inline, static]
 

RWindow acdk::wx::Window::findWindow IN(RString name  )  [inline]
 

RWindow acdk::wx::Window::findWindow int  id  )  [inline]
 

RWindow acdk::wx::Window::findWindowById int  id,
IN(RWindow parent = Nil
[inline, static]
 

RWindow acdk::wx::Window::findWindowByLabel IN(RString label,
IN(RWindow parent = Nil
[inline, static]
 

RWindow acdk::wx::Window::findWindowByName IN(RString name,
IN(RWindow parent = Nil
[inline, static]
 

void acdk::wx::Window::fit  )  [inline]
 

void acdk::wx::Window::fitInside  )  [inline]
 

void acdk::wx::Window::freeze  )  [inline]
 

bool acdk::wx::Window::getAutoLayout  )  const [inline]
 

RColour acdk::wx::Window::getBackgroundColour  )  const [inline]
 

RSize acdk::wx::Window::getBestSize  )  const [inline]
 

Border acdk::wx::Window::getBorder  )  const [inline]
 

RWindow acdk::wx::Window::getCapture  )  [inline, static]
 

int acdk::wx::Window::getCharHeight  )  const [inline]
 

int acdk::wx::Window::getCharWidth  )  const [inline]
 

RWindowArray acdk::wx::Window::getChildren  )  [inline]
 

RSize acdk::wx::Window::getClientSize  )  const [inline]
 

void acdk::wx::Window::getClientSizeConstraint OUT(int)  w,
OUT(int)  h
[inline]
 

RLayoutConstraints acdk::wx::Window::getConstraints  )  const [inline]
 

RSizer acdk::wx::Window::getContainingSizer  )  const [inline]
 

RCursor acdk::wx::Window::getCursor  )  const [inline]
 

RWindow acdk::wx::Window::getDefaultItem  )  const [inline]
 

RDropTarget acdk::wx::Window::getDropTarget  )  const [inline]
 

REvtHandler acdk::wx::Window::getEventHandler  )  const [inline]
 

int acdk::wx::Window::getExtraStyle  )  const [inline]
 

RFont acdk::wx::Window::getFont  )  [inline]
 

RColour acdk::wx::Window::getForegroundColour  )  const [inline]
 

RWindow acdk::wx::Window::getGrandParent  )  const [inline]
 

int acdk::wx::Window::getId  )  [inline]
 

RString acdk::wx::Window::getName  )  const [inline]
 

RWindow acdk::wx::Window::getParent  )  const [inline]
 

RPoint acdk::wx::Window::getPosition  )  const [inline]
 

void acdk::wx::Window::getPosition OUT(int)  x,
OUT(int)  y
const [inline]
 

Reimplemented in acdk::wx::Slider.

void acdk::wx::Window::getPositionConstraint OUT(int)  x,
OUT(int)  y
[inline]
 

RRect acdk::wx::Window::getRect  )  const [inline]
 

int acdk::wx::Window::getScrollPos int  orient  )  [inline]
 

int acdk::wx::Window::getScrollRange int  orient  )  [inline]
 

int acdk::wx::Window::getScrollThumb int  orient  )  [inline]
 

RSize acdk::wx::Window::getSize  )  const [inline]
 

void acdk::wx::Window::getSize OUT(int)  width,
OUT(int)  height
const [inline]
 

Reimplemented in acdk::wx::Slider.

void acdk::wx::Window::getSizeConstraint OUT(int)  w,
OUT(int)  h
[inline]
 

RSizer acdk::wx::Window::getSizer  )  const [inline]
 

bool acdk::wx::Window::getThemeEnabled  )  const [inline]
 

RString acdk::wx::Window::getTitle  )  [inline]
 

RRect acdk::wx::Window::getUpdateClientRect  )  const [inline]
 

RRegion acdk::wx::Window::getUpdateRegion  )  const [inline]
 

RValidator acdk::wx::Window::getValidator  )  [inline]
 

int acdk::wx::Window::getWindowStyle  )  const [inline]
 

virtual int acdk::wx::Window::getWindowStyleFlag  )  const [inline, virtual]
 

bool acdk::wx::Window::hasCapture  )  const [inline]
 

bool acdk::wx::Window::hasFlag int  flag  )  [inline]
 

bool acdk::wx::Window::hasScrollbar int  orient  )  [inline]
 

HitTest acdk::wx::Window::hitTest IN(RPoint pt  )  [inline]
 

Reimplemented in acdk::wx::TreeCtrl.

HitTest acdk::wx::Window::hitTest int  x,
int  y
[inline]
 

void acdk::wx::Window::initDialog  )  [inline]
 

void acdk::wx::Window::initDispatch  ) 
 

bool acdk::wx::Window::isBeingDeleted  )  const [inline]
 

bool acdk::wx::Window::isExposed IN(RRect rect  )  [inline]
 

bool acdk::wx::Window::isExposed IN(RPoint pt  )  [inline]
 

bool acdk::wx::Window::isExposed int  x,
int  y,
int  w,
int  h
[inline]
 

bool acdk::wx::Window::isExposed int  x,
int  y
[inline]
 

bool acdk::wx::Window::isRetained  )  const [inline]
 

bool acdk::wx::Window::isTopLevel  )  const [inline]
 

bool acdk::wx::Window::layout  )  [inline]
 

bool acdk::wx::Window::layoutPhase1 OUT(int)  noChanges  )  [inline]
 

bool acdk::wx::Window::layoutPhase2 OUT(int)  noChanges  )  [inline]
 

bool acdk::wx::Window::lineDown  )  [inline]
 

Reimplemented in acdk::wx::ide::StyledTextCtrl.

bool acdk::wx::Window::lineUp  )  [inline]
 

Reimplemented in acdk::wx::ide::StyledTextCtrl.

void acdk::wx::Window::lower  )  [inline]
 

void acdk::wx::Window::makeModal bool  modal = true  )  [inline]
 

int acdk::wx::Window::messageBox IN(RString message,
IN(RString caption = Message,
int  style = MbOk,
IN(RWindow parent = Nil,
int  x = -1,
int  y = -1
[static]
 

Displays a Message Box.

Parameters:
style combination of MessageBoxFlags flags

void acdk::wx::Window::moveConstraint int  x,
int  y
[inline]
 

bool acdk::wx::Window::pageDown  )  [inline]
 

Reimplemented in acdk::wx::ide::StyledTextCtrl.

bool acdk::wx::Window::pageUp  )  [inline]
 

Reimplemented in acdk::wx::ide::StyledTextCtrl.

REvtHandler acdk::wx::Window::popEventHandler bool  deleteHandler = false  )  [inline]
 

void acdk::wx::Window::prepareDC IN(RDC dc  )  [inline]
 

void acdk::wx::Window::pushEventHandler IN(REvtHandler handler  )  [inline]
 

void acdk::wx::Window::raise  )  [inline]
 

void acdk::wx::Window::refresh bool  eraseBackground = true,
IN(RRect rect = Nil
[inline]
 

void acdk::wx::Window::refreshRect IN(RRect rect  )  [inline]
 

void acdk::wx::Window::releaseMouse  )  [inline]
 

void acdk::wx::Window::removeChild IN(RWindow child  )  [inline]
 

void acdk::wx::Window::removeConstraintReference IN(RWindow otherWin  )  [inline]
 

bool acdk::wx::Window::removeEventHandler IN(REvtHandler handler  )  [inline]
 

bool acdk::wx::Window::reparent IN(RWindow newParent  )  [inline]
 

void acdk::wx::Window::resetConstraints  )  [inline]
 

RPoint acdk::wx::Window::screenToClient IN(RPoint pt  )  [inline]
 

void acdk::wx::Window::screenToClient OUT(int)  x,
OUT(int)  y
[inline]
 

bool acdk::wx::Window::scrollLines int  lines  )  [inline]
 

bool acdk::wx::Window::scrollPages int  pages  )  [inline]
 

void acdk::wx::Window::scrollWindow int  dx,
int  dy,
IN(RRect rect = Nil
[inline]
 

void acdk::wx::Window::setAutoLayout bool  autoLayout  )  [inline]
 

bool acdk::wx::Window::setBackgroundColour IN(RString colour  )  [inline]
 

bool acdk::wx::Window::setBackgroundColour IN(RColour colour  )  [inline]
 

Reimplemented in acdk::wx::Gauge.

void acdk::wx::Window::setConstraints IN(RLayoutConstraints constraints  )  [inline]
 

void acdk::wx::Window::setConstraintSizes bool  recurse  )  [inline]
 

void acdk::wx::Window::setContainingSizer IN(RSizer sizer  )  [inline]
 

virtual bool acdk::wx::Window::setCursor IN(RCursor cursor  )  [inline, virtual]
 

RWindow acdk::wx::Window::setDefaultItem IN(RWindow child  )  [inline]
 

void acdk::wx::Window::setDropTarget IN(RDropTarget dropTarget  )  [inline]
 

void acdk::wx::Window::setEventHandler IN(REvtHandler handler  )  [inline]
 

void acdk::wx::Window::setExtraStyle int  exStyle  )  [inline]
 

void acdk::wx::Window::setFocus  )  [inline]
 

void acdk::wx::Window::setFocusFromKbd  )  [inline]
 

virtual void acdk::wx::Window::SetFocusFromKbd  )  [inline, virtual]
 

bool acdk::wx::Window::setFont IN(RFont font  )  [inline]
 

Reimplemented in acdk::wx::TreeCtrl.

bool acdk::wx::Window::setForegroundColour IN(RString colour  )  [inline]
 

bool acdk::wx::Window::setForegroundColour IN(RColour colour  )  [inline]
 

Reimplemented in acdk::wx::Gauge.

void acdk::wx::Window::setId int  id  )  [inline]
 

void acdk::wx::Window::setName IN(RString name  )  [inline]
 

void acdk::wx::Window::setParent IN(RWindow parent  )  [inline]
 

void acdk::wx::Window::setScrollbar int  orient,
int  pos,
int  thumbvisible,
int  range,
bool  refresh = true
[inline]
 

void acdk::wx::Window::setScrollPos int  orient,
int  pos,
bool  refresh = true
[inline]
 

void acdk::wx::Window::setSize IN(RSize size  )  [inline]
 

void acdk::wx::Window::setSize int  width,
int  height
[inline]
 

void acdk::wx::Window::setSize IN(RRect rect  )  [inline]
 

void acdk::wx::Window::setSize int  x,
int  y,
int  width,
int  height,
int  sizeFlags = SizeAuto
[inline]
 

void acdk::wx::Window::setSizeConstraint int  x,
int  y,
int  w,
int  h
[inline]
 

void acdk::wx::Window::setSizer IN(RSizer sizer,
bool  deleteOld = true
[inline]
 

void acdk::wx::Window::setSizerAndFit IN(RSizer sizer,
bool  deleteOld = true
[inline]
 

void acdk::wx::Window::setThemeEnabled bool  enableTheme  )  [inline]
 

void acdk::wx::Window::setTitle IN(RString title  )  [inline]
 

void acdk::wx::Window::setTmpDefaultItem IN(RWindow win  )  [inline]
 

void acdk::wx::Window::setValidator IN(RValidator validator  )  [inline]
 

void acdk::wx::Window::setWindowStyle int  style  )  [inline]
 

Reimplemented in acdk::wx::TreeCtrl.

bool acdk::wx::Window::show bool  showit  )  [inline]
 

Reimplemented in acdk::wx::Slider.

void acdk::wx::Window::thaw  )  [inline]
 

bool acdk::wx::Window::transferDataFromWindow  )  [inline]
 

bool acdk::wx::Window::transferDataToWindow  )  [inline]
 

void acdk::wx::Window::unsetConstraints IN(RLayoutConstraints c  )  [inline]
 

void acdk::wx::Window::update  )  [inline]
 

void acdk::wx::Window::updateWindowUI  )  [inline]
 

bool acdk::wx::Window::validate  )  [inline]
 

void acdk::wx::Window::warpPointer int  x,
int  y
[inline]