Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::XCBWindowPeer Class Reference

#include <XCBWindowPeer.h>

Inheritance diagram for VCF::XCBWindowPeer:

VCF::WindowPeer VCF::XCBAbstractControl VCF::Interface VCF::ControlPeer VCF::Interface List of all members.

Public Member Functions

 XCBWindowPeer (Control *component, Control *owner)
virtual Rect getClientBounds ()
virtual void setClientBounds (Rect *bounds)
virtual void close ()
virtual void setFrameStyle (const FrameStyleType &frameStyle)
virtual void setFrameTopmost (const bool &isTopmost)
virtual bool isMaximized ()
virtual void setMaximized (const bool maximised)
virtual bool isMinimized ()
virtual void setMinimized (const bool &minimized)
virtual void restore ()
virtual void setIconImage (Image *icon)
virtual bool isActiveWindow ()
virtual void setBorderPath (Path *path)
virtual void create (Control *owningControl)
 This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.
virtual void destroyControl ()
 Destroy the control peer's resoruces (if neccessary).
virtual OSHandleID getHandleID ()
 returns a ID that identifies this control.
virtual String getText ()
 returns a text associated with the component.
virtual void setText (const String &text)
 sets the text for the control
virtual void setBounds (Rect *rect)
 sets the bounds for the component.
virtual bool beginSetBounds (const uint32 &numberOfChildren)
 advanced function for changing the size of multiple child windows.
virtual void endSetBounds ()
virtual Rect getBounds ()
 returns the bounds of the component in the coordinate system of the parent.
virtual void setVisible (const bool &visible)
 shows or hides the component.
virtual bool getVisible ()
 returns wether or not the component is currently visible.
virtual void setCursor (Cursor *cursor)
virtual bool isFocused ()
virtual void setFocused ()
virtual bool isEnabled ()
virtual void setEnabled (const bool &enabled)
virtual void setFont (Font *font)
virtual void repaint (Rect *repaintRect, const bool &immediately)
virtual void keepMouseEvents ()
 this keeps the mouse events being sent to this control, even is the mouse leaves the physical bounds of the control
virtual void releaseMouseEvents ()
 releases mouse events - goes back to normal event handling
virtual void translateToScreenCoords (Point *pt)
 Takes the coordinates in pt, which are in the coordinate system of this control, and translates them into the coordinate system of the Screen.
virtual void translateFromScreenCoords (Point *pt)
 Takes the coordinates in pt, which are in the coordinate system of the Screen, and translates them into the coordinate system of this control.
virtual void setBorder (Border *border)
 Called by the control when it's border object changes.
virtual void preChildPaint (GraphicsContext *graphicsContext, Control *child, Rect *childClipRect)
 Called by the container instance of the child's parent control during it's paintChildren() function.
virtual void postChildPaint (GraphicsContext *graphicsContext, Control *child, Rect *oldClipRect)
 Called by the container instance of the child's parent control during it's paintChildren() function.

Static Public Member Functions

static void internal_handleClientMessageEvent (xcb_connection_t &connection, const xcb_client_message_event_t &event)
static void internal_handleMouseEvents (xcb_connection_t &connection, const xcb_generic_event_t &event)
static void internal_handleKeyboardEvents (xcb_connection_t &connection, const xcb_generic_event_t &event)
static void internal_handleConfigureNotifyEvent (xcb_connection_t &connection, const xcb_configure_notify_event_t &event)
static void internal_handleExposeEvent (xcb_connection_t &connection, const xcb_expose_event_t &event)
static void internal_handleDestroyNotify (xcb_connection_t &connection, const xcb_destroy_notify_event_t &event)

Protected Types

typedef std::map< uint32,
XCBWindowPeer * > 
XIDWindowPeerMap

Protected Member Functions

void destroyImage (xcb_connection_t &connection)
void createImage (xcb_connection_t &connection, int width, int height)

Protected Attributes

xcb_drawable_t drawable_
xcb_gcontext_t context_
xcb_image_t * image_
xcb_shm_segment_info_t shminfo_
xcb_atom_t deleteWindowAtom_
Rect clientBounds_

Static Protected Attributes

static XIDWindowPeerMap XIDWindowPeerMap_

Member Typedef Documentation

typedef std::map<uint32, XCBWindowPeer*> VCF::XCBWindowPeer::XIDWindowPeerMap [protected]
 


Constructor & Destructor Documentation

VCF::XCBWindowPeer::XCBWindowPeer Control component,
Control owner
 


Member Function Documentation

virtual bool VCF::XCBWindowPeer::beginSetBounds const uint32 numberOfChildren  )  [virtual]
 

advanced function for changing the size of multiple child windows.

This may have no implementation on some windowing systems

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::close  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::create Control owningControl  )  [virtual]
 

This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.

create() must be called by the containing VCF::Control subclass, typically in the classes constructor, after retreiving the new peer instance from the appropriate UIToolkit::createXXX() call.

Reimplemented from VCF::XCBAbstractControl.

void VCF::XCBWindowPeer::createImage xcb_connection_t &  connection,
int  width,
int  height
[protected]
 

virtual void VCF::XCBWindowPeer::destroyControl  )  [virtual]
 

Destroy the control peer's resoruces (if neccessary).

Reimplemented from VCF::XCBAbstractControl.

void VCF::XCBWindowPeer::destroyImage xcb_connection_t &  connection  )  [protected]
 

virtual void VCF::XCBWindowPeer::endSetBounds  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual Rect VCF::XCBWindowPeer::getBounds  )  [virtual]
 

returns the bounds of the component in the coordinate system of the parent.

Reimplemented from VCF::XCBAbstractControl.

virtual Rect VCF::XCBWindowPeer::getClientBounds  )  [virtual]
 

Implements VCF::WindowPeer.

virtual OSHandleID VCF::XCBWindowPeer::getHandleID  )  [virtual]
 

returns a ID that identifies this control.

On Win32 this corresponds to an HWND.

Reimplemented from VCF::XCBAbstractControl.

virtual String VCF::XCBWindowPeer::getText  )  [virtual]
 

returns a text associated with the component.

This usually gets used in the Control::getCaption() method.

Reimplemented from VCF::XCBAbstractControl.

virtual bool VCF::XCBWindowPeer::getVisible  )  [virtual]
 

returns wether or not the component is currently visible.

Reimplemented from VCF::XCBAbstractControl.

static void VCF::XCBWindowPeer::internal_handleClientMessageEvent xcb_connection_t &  connection,
const xcb_client_message_event_t &  event
[static]
 

static void VCF::XCBWindowPeer::internal_handleConfigureNotifyEvent xcb_connection_t &  connection,
const xcb_configure_notify_event_t &  event
[static]
 

static void VCF::XCBWindowPeer::internal_handleDestroyNotify xcb_connection_t &  connection,
const xcb_destroy_notify_event_t &  event
[static]
 

static void VCF::XCBWindowPeer::internal_handleExposeEvent xcb_connection_t &  connection,
const xcb_expose_event_t &  event
[static]
 

static void VCF::XCBWindowPeer::internal_handleKeyboardEvents xcb_connection_t &  connection,
const xcb_generic_event_t &  event
[static]
 

static void VCF::XCBWindowPeer::internal_handleMouseEvents xcb_connection_t &  connection,
const xcb_generic_event_t &  event
[static]
 

virtual bool VCF::XCBWindowPeer::isActiveWindow  )  [virtual]
 

Implements VCF::WindowPeer.

virtual bool VCF::XCBWindowPeer::isEnabled  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual bool VCF::XCBWindowPeer::isFocused  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual bool VCF::XCBWindowPeer::isMaximized  )  [virtual]
 

Implements VCF::WindowPeer.

virtual bool VCF::XCBWindowPeer::isMinimized  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::keepMouseEvents  )  [virtual]
 

this keeps the mouse events being sent to this control, even is the mouse leaves the physical bounds of the control

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::postChildPaint GraphicsContext graphicsContext,
Control child,
Rect oldClipRect
[virtual]
 

Called by the container instance of the child's parent control during it's paintChildren() function.

Called after the child control's paint() and paintBorder() functions.

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::preChildPaint GraphicsContext graphicsContext,
Control child,
Rect childClipRect
[virtual]
 

Called by the container instance of the child's parent control during it's paintChildren() function.

The implementation should do whatever is neccessary to seup up the child control's cliprect. A pre-calculated cliprect is passed in that was generated by the paintChildren() function.

This function is called prior the child control's paint() or paintBorder() functions.

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::releaseMouseEvents  )  [virtual]
 

releases mouse events - goes back to normal event handling

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::repaint Rect repaintRect,
const bool &  immediately
[virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::restore  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setBorder Border border  )  [virtual]
 

Called by the control when it's border object changes.

May or may not need to be implemented depending on the windowing system.

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setBorderPath Path path  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setBounds Rect rect  )  [virtual]
 

sets the bounds for the component.

Bounds are specified in the coordinate system of the componenents parent.

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setClientBounds Rect bounds  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setCursor Cursor cursor  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setEnabled const bool &  enabled  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setFocused  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setFont Font font  )  [virtual]
 

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setFrameStyle const FrameStyleType frameStyle  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setFrameTopmost const bool &  isTopmost  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setIconImage Image icon  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setMaximized const bool  maximised  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setMinimized const bool &  minimized  )  [virtual]
 

Implements VCF::WindowPeer.

virtual void VCF::XCBWindowPeer::setText const String text  )  [virtual]
 

sets the text for the control

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::setVisible const bool &  visible  )  [virtual]
 

shows or hides the component.

This does NOT close the component (if invoked on a frame based component ).

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::translateFromScreenCoords Point pt  )  [virtual]
 

Takes the coordinates in pt, which are in the coordinate system of the Screen, and translates them into the coordinate system of this control.

Parameters:
Point the initial point value, in the coordinate system of the Screen.

Reimplemented from VCF::XCBAbstractControl.

virtual void VCF::XCBWindowPeer::translateToScreenCoords Point pt  )  [virtual]
 

Takes the coordinates in pt, which are in the coordinate system of this control, and translates them into the coordinate system of the Screen.

Parameters:
Point the initial point value, in the coordinate system of the control this method is called on.

Reimplemented from VCF::XCBAbstractControl.


Member Data Documentation

Rect VCF::XCBWindowPeer::clientBounds_ [protected]
 

xcb_gcontext_t VCF::XCBWindowPeer::context_ [protected]
 

xcb_atom_t VCF::XCBWindowPeer::deleteWindowAtom_ [protected]
 

xcb_drawable_t VCF::XCBWindowPeer::drawable_ [protected]
 

xcb_image_t* VCF::XCBWindowPeer::image_ [protected]
 

xcb_shm_segment_info_t VCF::XCBWindowPeer::shminfo_ [protected]
 

XIDWindowPeerMap VCF::XCBWindowPeer::XIDWindowPeerMap_ [static, protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information