예제 #1
0
RingChart::RingChart(QWidget *parent) :
    PlotterBase(parent)
{
    setAntiAliasing(true);

    m_margin = 3;
}
예제 #2
0
파일: main.cpp 프로젝트: jhasse/jngl
void showWindow(const std::string& title, const int width, const int height, bool fullscreen) {
    debug("jngl::showWindow(\"");
    debug(title);
    debug("\", ");
    debug(width);
    debug(", ");
    debug(height);
    debug(", ");
    debug(fullscreen);
    debug(");\n");
    if (pWindow &&
            width == pWindow->getWidth() &&
            height == pWindow->getHeight() &&
            fullscreen == pWindow->getFullscreen()) {
        return jngl::setTitle(title);
    }
    bool isMouseVisible = pWindow ? pWindow->getMouseVisible() : true;
    hideWindow();
    if (width == 0) {
        throw std::runtime_error("Width Is 0");
    }
    if (height == 0) {
        throw std::runtime_error("Height Is 0");
    }
    pWindow.Set(new Window(title, width, height, fullscreen));
    pWindow->SetMouseVisible(isMouseVisible);
    setAntiAliasing(antiAliasingEnabled);
}
예제 #3
0
PieChart::PieChart(QWidget *parent) :
    PlotterBase(parent)
{
    setAntiAliasing(true);

    m_index = 0;

    m_margin = 3;
}