Add wxGTKCairoDCImpl::SetSize() helper
Avoid repeating gdk_window_get_{width,height}() calls in several places.
This commit is contained in:
parent
a1cb2eb12a
commit
0be81cb34b
2 changed files with 12 additions and 8 deletions
|
|
@ -35,10 +35,10 @@ public:
|
|||
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
int m_width, m_height;
|
||||
// Set m_width and m_height from the given (valid) GdkWindow.
|
||||
void InitSize(GdkWindow* window);
|
||||
|
||||
private:
|
||||
bool TryGetWindowSize(wxSize& size, wxSize& sizeMM) const;
|
||||
int m_width, m_height;
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGTKCairoDCImpl);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue