The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Window Class Reference

#include <winman.h>

+ Inheritance diagram for Window:
+ Collaboration diagram for Window:

Public Member Functions

 Window (uint64_t handle, int sock, struct sockaddr *sa, size_t sa_len,::Container *pParent)
 
virtual ~Window ()
 
virtual Type getType () const
 
virtual void setTitle (const std::string &s)
 
virtual void render (cairo_t *cr)
 
virtual void resize (ssize_t horizDistance, ssize_t vertDistance, WObject *pChild=0)
 
virtual void focus ()
 
virtual void nofocus ()
 
virtual void norefresh ()
 Don't refresh the context on every reposition.
 
virtual void yesrefresh ()
 Refresh context on every reposition.
 
virtual void refreshContext ()
 Refresh our graphical context, called after reposition.
 
void * getFramebuffer () const
 
virtual void sendMessage (const char *msg, size_t len)
 
uint64_t getHandle () const
 
::ContainergetParent () const
 
void setParent (::Container *p)
 
void setDirty (PedigreeGraphics::Rect &dirty)
 
PedigreeGraphics::Rect getDirty () const
 
bool isDirty () const
 
- Public Member Functions inherited from WObject
void reposition (size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL)
 
void bump (ssize_t bumpX=0, ssize_t bumpY=0)
 
virtual void resized ()
 
PedigreeGraphics::Rect getCopyDimensions () const
 

Private Member Functions

bool isClientDirty () const
 

Private Attributes

uint64_t m_Handle
 
::Containerm_pParent
 
SharedBufferm_Framebuffer
 
std::string m_sWindowTitle
 
PedigreeGraphics::Rect m_Dirty
 
bool m_bPendingDecoration
 
bool m_bFocus
 
bool m_bRefresh
 
size_t m_nRegionWidth
 
size_t m_nRegionHeight
 
int m_Socket
 
struct sockaddr * m_Sa
 
size_t m_SaLen
 

Additional Inherited Members

- Public Types inherited from WObject
enum  Type { Container, Window, Root }
 
- Protected Member Functions inherited from WObject
void setDimensions (PedigreeGraphics::Rect &rt)
 
PedigreeGraphics::RectgetDimensions ()
 

Detailed Description

Window: an actual window in the system, with actual rendering logic and event handling.

Definition at line 195 of file winman.h.

Constructor & Destructor Documentation

Window::~Window ( )
virtual
Todo:
Need a way to destroy the old framebuffer without breaking the other side's reference to the same region... Refcount?

Definition at line 93 of file objects.cc.


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