LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Window Class Reference

#include <Window.h>

Inheritance diagram for Window:
[legend]
Collaboration diagram for Window:
[legend]

Public Member Functions

 Window (WindowType::Type type, const uint32_t bufWidth, const uint32_t bufHeight, bool hasAlpha=false)
 
 Window (WindowType::Type type, const QPixmap &pix)
 
virtual ~Window ()
 
virtual int type () const
 
virtual QRectF boundingRect () const
 
virtual bool mouseGrabbed () const
 
virtual void setMouseGrabbed (bool grabbed)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
virtual bool isIpcWindow () const
 
void setName (const std::string &name)
 
std::string name () const
 
virtual void setAppId (const std::string &id)
 
std::string appId () const
 
void setProcessId (const std::string &id)
 
std::string processId () const
 
void setLaunchingAppId (const std::string &id)
 
std::string launchingAppId () const
 
void setLaunchingProcessId (const std::string &id)
 
std::string launchingProcessId () const
 
ApplicationDescriptionappDescription () const
 
void setRemoved ()
 
bool removed () const
 
void setDisableKeepAlive ()
 
bool disableKeepAlive () const
 
virtual void setWindowProperties (const WindowProperties &attr)
 
virtual void setVisibleDimensions (uint32_t width, uint32_t height)
 
virtual QSize getVisibleDimensions () const
 
virtual void resize (int w, int h)
 
virtual const QPixmap * acquireScreenPixmap ()
 
int initialWidth () const
 
int initialHeight () const
 

Protected Member Functions

virtual void lock ()
 
virtual void unlock ()
 
 Window (const Window &)
 
Windowoperator= (const Window &)
 

Protected Attributes

WindowType::Type m_type
 
std::string m_name
 
std::string m_appId
 
std::string m_processId
 
std::string m_launchingAppId
 
std::string m_launchingProcId
 
ApplicationDescriptionm_appDesc
 
bool m_removed
 
bool m_disableKeepAlive
 
uint32_t m_bufWidth
 
uint32_t m_bufHeight
 
int m_initialWidth
 
int m_initialHeight
 
QRectF m_visibleBounds
 
QPixmap m_screenPixmap
 

Properties

bool grabMouse
 

Friends

class HostWindow
 

Constructor & Destructor Documentation

Window::Window ( WindowType::Type  type,
const uint32_t  bufWidth,
const uint32_t  bufHeight,
bool  hasAlpha = false 
)
Window::Window ( WindowType::Type  type,
const QPixmap &  pix 
)
Window::~Window ( )
virtual
Window::Window ( const Window )
protected

Member Function Documentation

virtual const QPixmap* Window::acquireScreenPixmap ( )
inlinevirtual

Reimplemented in HostWindow.

ApplicationDescription * Window::appDescription ( ) const
std::string Window::appId ( ) const
virtual QRectF Window::boundingRect ( ) const
inlinevirtual

Reimplemented in CardWindow.

bool Window::disableKeepAlive ( ) const
inline
QSize Window::getVisibleDimensions ( ) const
virtual
int Window::initialHeight ( ) const
inline
int Window::initialWidth ( ) const
inline
virtual bool Window::isIpcWindow ( ) const
inlinevirtual

Reimplemented in HostWindow.

std::string Window::launchingAppId ( ) const
std::string Window::launchingProcessId ( ) const
virtual void Window::lock ( )
inlineprotectedvirtual
bool Window::mouseGrabbed ( ) const
virtual
std::string Window::name ( ) const
Window& Window::operator= ( const Window )
protected
void Window::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
virtual
std::string Window::processId ( ) const
bool Window::removed ( ) const
inline
void Window::resize ( int  w,
int  h 
)
virtual

Reimplemented in Quicklauncher, and DimensionsUI.

void Window::setAppId ( const std::string &  id)
virtual
void Window::setDisableKeepAlive ( )
inline
void Window::setLaunchingAppId ( const std::string &  id)
void Window::setLaunchingProcessId ( const std::string &  id)
void Window::setMouseGrabbed ( bool  grabbed)
virtual
void Window::setName ( const std::string &  name)
void Window::setProcessId ( const std::string &  id)
void Window::setRemoved ( )
inline
void Window::setVisibleDimensions ( uint32_t  width,
uint32_t  height 
)
virtual
virtual void Window::setWindowProperties ( const WindowProperties &  attr)
inlinevirtual

Reimplemented in CardWindow, and DashboardWindow.

virtual int Window::type ( ) const
inlinevirtual
virtual void Window::unlock ( )
inlineprotectedvirtual

Friends And Related Function Documentation

friend class HostWindow
friend

Member Data Documentation

ApplicationDescription* Window::m_appDesc
mutableprotected
std::string Window::m_appId
protected
uint32_t Window::m_bufHeight
protected
uint32_t Window::m_bufWidth
protected
bool Window::m_disableKeepAlive
protected
int Window::m_initialHeight
protected
int Window::m_initialWidth
protected
std::string Window::m_launchingAppId
protected
std::string Window::m_launchingProcId
protected
std::string Window::m_name
protected
std::string Window::m_processId
protected
bool Window::m_removed
protected
QPixmap Window::m_screenPixmap
protected
WindowType::Type Window::m_type
protected
QRectF Window::m_visibleBounds
protected

Property Documentation

bool Window::grabMouse
readwrite

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