defuze.me  Client
Static Public Member Functions
QtWin Class Reference

This is a helper class for using the Desktop Window Manager functionality on Windows 7 and Windows Vista. More...

#include <qtwin.h>

List of all members.

Static Public Member Functions

static bool enableBlurBehindWindow (QWidget *widget, bool enable=true)
static bool extendFrameIntoClientArea (QWidget *widget, int left=-1, int top=-1, int right=-1, int bottom=-1)
static bool isCompositionEnabled ()
static QColor colorizatinColor ()

Detailed Description

This is a helper class for using the Desktop Window Manager functionality on Windows 7 and Windows Vista.

On other platforms these functions will simply not do anything.

Author:
Nokia Corporation

Definition at line 25 of file qtwin.h.


Member Function Documentation

QColor QtWin::colorizatinColor ( ) [static]

Returns the current colorizationColor for the window.

enable tells if the blur should be enabled or not

Definition at line 180 of file qtwin.cpp.

bool QtWin::enableBlurBehindWindow ( QWidget *  widget,
bool  enable = true 
) [static]

Enables Blur behind on a Widget.

enable tells if the blur should be enabled or not

Definition at line 114 of file qtwin.cpp.

bool QtWin::extendFrameIntoClientArea ( QWidget *  widget,
int  left = -1,
int  top = -1,
int  right = -1,
int  bottom = -1 
) [static]

ExtendFrameIntoClientArea.

This controls the rendering of the frame inside the window. Note that passing margins of -1 (the default value) will completely remove the frame from the window.

Note:
you should not call enableBlurBehindWindow before calling this functions

enable tells if the blur should be enabled or not

Definition at line 149 of file qtwin.cpp.

bool QtWin::isCompositionEnabled ( ) [static]

Chekcs and returns true if Windows DWM composition is currently enabled on the system.

To get live notification on the availability of this feature, you will currently have to reimplement winEvent() on your widget and listen for the WM_DWMCOMPOSITIONCHANGED event to occur.

Definition at line 95 of file qtwin.cpp.


The documentation for this class was generated from the following files: