projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
separated modifier keys handling in order to distinct key/up down events
[wxWidgets.git]
/
include
/
wx
/
gdicmn.h
diff --git
a/include/wx/gdicmn.h
b/include/wx/gdicmn.h
index a5845367228e1f0e5a8b02eee4858d62142cf581..185d5e52e2293db9acd878c9982b9c0ba993ed80 100644
(file)
--- a/
include/wx/gdicmn.h
+++ b/
include/wx/gdicmn.h
@@
-307,7
+307,10
@@
public:
void SetHeight(int h) { height = h; }
wxPoint GetPosition() const { return wxPoint(x, y); }
void SetHeight(int h) { height = h; }
wxPoint GetPosition() const { return wxPoint(x, y); }
+ void SetPosition( const wxPoint &p ) { x = p.x; y = p.y; }
+
wxSize GetSize() const { return wxSize(width, height); }
wxSize GetSize() const { return wxSize(width, height); }
+ void SetSize( const wxSize &s ) { width = s.GetWidth(); height = s.GetHeight(); }
int GetLeft() const { return x; }
int GetTop() const { return y; }
int GetLeft() const { return x; }
int GetTop() const { return y; }