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

#include <qwscommand_qws_p.h>

Inheritance diagram for QWSDefineCursorCommand:
QWSCommand QWSProtocolItem

Classes

struct  SimpleData
 

Public Functions

 QWSDefineCursorCommand ()
 
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

unsigned char * data
 
struct QWSDefineCursorCommand::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 495 of file qwscommand_qws_p.h.

Constructors and Destructors

◆ QWSDefineCursorCommand()

QWSDefineCursorCommand::QWSDefineCursorCommand ( )
inline

Definition at line 497 of file qwscommand_qws_p.h.

497  :
499  sizeof(simpleData), reinterpret_cast<char *>(&simpleData)) {}
struct QWSDefineCursorCommand::SimpleData simpleData
QWSCommand(int t, int len, char *ptr)

Functions

◆ setData()

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

Reimplemented from QWSProtocolItem.

Definition at line 501 of file qwscommand_qws_p.h.

Referenced by QWSDisplay::defineCursor(), and QWSDisplay::destroyCursor().

501  {
502  QWSCommand::setData(d, len, allocateMem);
503  data = reinterpret_cast<unsigned char *>(rawDataPtr);
504  if (simpleData.height * ((simpleData.width+7) / 8) > len) {
505  qWarning("define cursor command - width %d height %d- buffer size %d - buffer overrun",
508  }
509  }
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 *,...)
struct QWSDefineCursorCommand::SimpleData simpleData

Properties

◆ data

unsigned char* QWSDefineCursorCommand::data

Definition at line 519 of file qwscommand_qws_p.h.

Referenced by QWSServerPrivate::invokeDefineCursor().

◆ simpleData

struct QWSDefineCursorCommand::SimpleData QWSDefineCursorCommand::simpleData

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