Qt 4.8
Classes | Public Functions | Public Variables | List of all members
QWSRepaintRegionCommand Struct Reference

#include <qwscommand_qws_p.h>

Inheritance diagram for QWSRepaintRegionCommand:
QWSCommand QWSProtocolItem

Classes

struct  SimpleData
 

Public Functions

 QWSRepaintRegionCommand ()
 
void setData (const char *d, int len, bool allocateMem=true)
 
- Public Functions inherited from QWSCommand
 QWSCommand (int t, int len, char *ptr)
 
- Public Functions inherited from QWSProtocolItem
void copyFrom (const QWSProtocolItem *item)
 
 QWSProtocolItem (int t, int len, char *ptr)
 
bool read (QIODevice *s)
 
void write (QIODevice *s)
 
virtual ~QWSProtocolItem ()
 

Public Variables

QRectrectangles
 
struct QWSRepaintRegionCommand::SimpleData simpleData
 
- Public Variables inherited from QWSProtocolItem
int bytesRead
 
bool deleteRaw
 
char * rawDataPtr
 
int rawLen
 
char * simpleDataPtr
 
int simpleLen
 
int type
 

Additional Inherited Members

- Public Types inherited from QWSCommand
enum  Type {
  Unknown = 0, Create, Shutdown, Region,
  RegionMove, RegionDestroy, SetProperty, AddProperty,
  RemoveProperty, GetProperty, SetSelectionOwner, ConvertSelection,
  RequestFocus, ChangeAltitude, SetOpacity, DefineCursor,
  SelectCursor, PositionCursor, GrabMouse, PlaySound,
  QCopRegisterChannel, QCopSend, RegionName, Identify,
  GrabKeyboard, RepaintRegion, IMMouse, IMUpdate,
  IMResponse, Embed, Font, ScreenTransform
}
 
- Static Public Functions inherited from QWSCommand
static QWSCommandfactory (int type)
 

Detailed Description

Definition at line 416 of file qwscommand_qws_p.h.

Constructors and Destructors

◆ QWSRepaintRegionCommand()

QWSRepaintRegionCommand::QWSRepaintRegionCommand ( )
inline

Definition at line 418 of file qwscommand_qws_p.h.

418  :
420  reinterpret_cast<char*>(&simpleData)) {}
struct QWSRepaintRegionCommand::SimpleData simpleData
QWSCommand(int t, int len, char *ptr)

Functions

◆ setData()

void QWSRepaintRegionCommand::setData ( const char *  d,
int  len,
bool  allocateMem = true 
)
inlinevirtual

Reimplemented from QWSProtocolItem.

Definition at line 422 of file qwscommand_qws_p.h.

Referenced by QWSDisplay::repaintRegion().

422  {
423  QWSCommand::setData(d, len, allocateMem);
424 
425  if( simpleData.nrectangles * int(sizeof(QRect)) > len )
426  {
427  qWarning( "repaint region command - region rectangle count %d - buffer size %d - buffer overrun",
428  simpleData.nrectangles, len );
429 
430  simpleData.nrectangles = len / sizeof(QRect);
431  }
432  rectangles = reinterpret_cast<QRect *>(rawDataPtr);
433  }
struct QWSRepaintRegionCommand::SimpleData simpleData
double d
Definition: qnumeric_p.h:62
virtual void setData(const char *data, int len, bool allocateMem=true)
Q_CORE_EXPORT void qWarning(const char *,...)
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58

Properties

◆ rectangles

QRect* QWSRepaintRegionCommand::rectangles

Definition at line 442 of file qwscommand_qws_p.h.

Referenced by QWSServerPrivate::invokeRepaintRegion().

◆ simpleData

struct QWSRepaintRegionCommand::SimpleData QWSRepaintRegionCommand::simpleData

The documentation for this struct was generated from the following file: