Added
wxPoint ClientToScreen(const wxPoint& pt) wxPoint ScreenToClient(const wxPoint& pt) back into class wxWindow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -88,6 +88,10 @@ public:
|
|||||||
|
|
||||||
virtual void ClientToScreen( int *x, int *y ) const;
|
virtual void ClientToScreen( int *x, int *y ) const;
|
||||||
virtual void ScreenToClient( int *x, int *y ) const;
|
virtual void ScreenToClient( int *x, int *y ) const;
|
||||||
|
wxPoint ClientToScreen(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ClientToScreen(& x, & y); return wxPoint(x, y); }
|
||||||
|
wxPoint ScreenToClient(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ScreenToClient(& x, & y); return wxPoint(x, y); }
|
||||||
|
|
||||||
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
||||||
|
|
||||||
@@ -148,10 +152,10 @@ public:
|
|||||||
// creates a new widget style if none is there
|
// creates a new widget style if none is there
|
||||||
// and sets m_widgetStyle to this value.
|
// and sets m_widgetStyle to this value.
|
||||||
GtkStyle *GetWidgetStyle();
|
GtkStyle *GetWidgetStyle();
|
||||||
|
|
||||||
// called by SetFont() and SetXXXColour etc
|
// called by SetFont() and SetXXXColour etc
|
||||||
void SetWidgetStyle();
|
void SetWidgetStyle();
|
||||||
|
|
||||||
// overridden in many GTK widgets
|
// overridden in many GTK widgets
|
||||||
virtual void ApplyWidgetStyle();
|
virtual void ApplyWidgetStyle();
|
||||||
|
|
||||||
@@ -193,7 +197,7 @@ public:
|
|||||||
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
||||||
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
||||||
|
|
||||||
// these are true if the style were set before the widget was realized
|
// these are true if the style were set before the widget was realized
|
||||||
// (typcally in the constructor) but the actual GTK style must not be set
|
// (typcally in the constructor) but the actual GTK style must not be set
|
||||||
// before the widget has been "realized"
|
// before the widget has been "realized"
|
||||||
|
@@ -88,6 +88,10 @@ public:
|
|||||||
|
|
||||||
virtual void ClientToScreen( int *x, int *y ) const;
|
virtual void ClientToScreen( int *x, int *y ) const;
|
||||||
virtual void ScreenToClient( int *x, int *y ) const;
|
virtual void ScreenToClient( int *x, int *y ) const;
|
||||||
|
wxPoint ClientToScreen(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ClientToScreen(& x, & y); return wxPoint(x, y); }
|
||||||
|
wxPoint ScreenToClient(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ScreenToClient(& x, & y); return wxPoint(x, y); }
|
||||||
|
|
||||||
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
||||||
|
|
||||||
@@ -148,10 +152,10 @@ public:
|
|||||||
// creates a new widget style if none is there
|
// creates a new widget style if none is there
|
||||||
// and sets m_widgetStyle to this value.
|
// and sets m_widgetStyle to this value.
|
||||||
GtkStyle *GetWidgetStyle();
|
GtkStyle *GetWidgetStyle();
|
||||||
|
|
||||||
// called by SetFont() and SetXXXColour etc
|
// called by SetFont() and SetXXXColour etc
|
||||||
void SetWidgetStyle();
|
void SetWidgetStyle();
|
||||||
|
|
||||||
// overridden in many GTK widgets
|
// overridden in many GTK widgets
|
||||||
virtual void ApplyWidgetStyle();
|
virtual void ApplyWidgetStyle();
|
||||||
|
|
||||||
@@ -193,7 +197,7 @@ public:
|
|||||||
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
bool m_isStaticBox:1; /* faster than IS_KIND_OF */
|
||||||
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
bool m_isFrame:1; /* faster than IS_KIND_OF */
|
||||||
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
bool m_acceptsFocus:1; /* ! wxStaticBox etc. */
|
||||||
|
|
||||||
// these are true if the style were set before the widget was realized
|
// these are true if the style were set before the widget was realized
|
||||||
// (typcally in the constructor) but the actual GTK style must not be set
|
// (typcally in the constructor) but the actual GTK style must not be set
|
||||||
// before the widget has been "realized"
|
// before the widget has been "realized"
|
||||||
|
@@ -116,6 +116,10 @@ public:
|
|||||||
|
|
||||||
virtual void ClientToScreen( int *x, int *y ) const;
|
virtual void ClientToScreen( int *x, int *y ) const;
|
||||||
virtual void ScreenToClient( int *x, int *y ) const;
|
virtual void ScreenToClient( int *x, int *y ) const;
|
||||||
|
wxPoint ClientToScreen(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ClientToScreen(& x, & y); return wxPoint(x, y); }
|
||||||
|
wxPoint ScreenToClient(const wxPoint& pt) const
|
||||||
|
{ int x = pt.x; int y = pt.y; ScreenToClient(& x, & y); return wxPoint(x, y); }
|
||||||
|
|
||||||
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
virtual bool PopupMenu( wxMenu *menu, int x, int y );
|
||||||
|
|
||||||
|
@@ -611,7 +611,7 @@ public:
|
|||||||
virtual WXWidget GetHandle() const = 0;
|
virtual WXWidget GetHandle() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// the window id - a number which uniquely identifies a window among
|
// the window id - a number which uniquely identifies a window among
|
||||||
// its siblings unless it is -1
|
// its siblings unless it is -1
|
||||||
wxWindowID m_windowId;
|
wxWindowID m_windowId;
|
||||||
|
|
||||||
@@ -763,8 +763,8 @@ inline wxWindow *wxWindowBase::GetGrandParent() const
|
|||||||
// global function
|
// global function
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern wxWindow* WXDLLEXPORT wxGetActiveWindow();
|
WXDLLEXPORT extern wxWindow* wxGetActiveWindow();
|
||||||
inline int WXDLLEXPORT NewControlId() { return wxWindowBase::NewControlId(); }
|
inline WXDLLEXPORT int NewControlId() { return wxWindowBase::NewControlId(); }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_WINDOW_H_BASE_
|
// _WX_WINDOW_H_BASE_
|
||||||
|
Reference in New Issue
Block a user