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