コード例 #1
0
bool screenIsMonochrome(Widget* widget)
{
    GtkWidget* container = GTK_WIDGET(widget->root()->hostWindow()->platformWindow());
    if (!container)
        return false;

    return screenDepth(widget) < 2;
}
コード例 #2
0
bool screenIsMonochrome(Widget* widget)
{
    GtkWidget* container = GTK_WIDGET(widget->containingWindow());
    if (!container)
        return false;

    return screenDepth(widget) < 2;
}
コード例 #3
0
ファイル: Screen.cpp プロジェクト: thijsh/phantomjs
unsigned Screen::colorDepth() const
{
    if (!m_frame)
        return 0;
#ifdef LOG_MODS_FP
	logFPCalls(m_frame, "Screen::colorDepth");
#endif
    return static_cast<unsigned>(screenDepth(m_frame->view()));
}
コード例 #4
0
QImage::Format QEGLDeviceIntegration::screenFormat() const
{
    return screenDepth() == 16 ? QImage::Format_RGB16 : QImage::Format_RGB32;
}
コード例 #5
0
int screenDepthPerComponent(Widget* widget)
{
    return screenDepth(widget);
}
コード例 #6
0
bool screenIsMonochrome(Widget* widget)
{
    return screenDepth(widget) < 2;
}
コード例 #7
0
int screenDepthPerComponent(Widget* w)
{
    return screenDepth(w) / 3;
}
コード例 #8
0
int screenDepthPerComponent(Widget* widget)
{
    // FIXME: Assumes RGB -- not sure if this is right.
    return screenDepth(widget) / 3;
}
コード例 #9
0
ファイル: qeglfshooks_stub.cpp プロジェクト: FlavioFalcao/qt5
QImage::Format QEglFSHooks::screenFormat() const
{
    return screenDepth() == 16 ? QImage::Format_RGB16 : QImage::Format_RGB32;
}
コード例 #10
0
ファイル: Screen.cpp プロジェクト: CannedFish/webkitgtk
unsigned Screen::pixelDepth() const
{
    if (!m_frame)
        return 0;
    return static_cast<unsigned>(screenDepth(m_frame->view()));
}