void Window::SetPosition(PRectangle rc) { wxRect r = wxRectFromPRectangle(rc); GETWIN(id)->SetSize(r); }
bool Window::HasFocus() { return wxWindow::FindFocus() == GETWIN(id); }
PRectangle Window::GetPosition() { if (! id) return PRectangle(); wxRect rc(GETWIN(id)->GetPosition(), GETWIN(id)->GetSize()); return PRectangleFromwxRect(rc); }
void Window::SetFont(Font &font) { GETWIN(id)->SetFont(*((wxFont*)font.GetID())); }
void Window::SetTitle(const char *s) { GETWIN(id)->SetLabel(stc2wx(s)); }
void Window::InvalidateRectangle(PRectangle rc) { wxRect r = wxRectFromPRectangle(rc); GETWIN(id)->Refresh(false, &r); }
void Window::InvalidateAll() { GETWIN(id)->Refresh(false); }
void Window::Show(bool show) { GETWIN(id)->Show(show); }
PRectangle Window::GetClientPosition() { if (! id) return PRectangle(); wxSize sz = GETWIN(id)->GetClientSize(); return PRectangle(0, 0, sz.x, sz.y); }
void Window::InvalidateAll() { GETWIN(id)->Refresh(false); wxWakeUpIdle(); }