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

#include <qwscommand_qws_p.h>

Inheritance diagram for QWSFontCommand:
QWSCommand QWSProtocolItem

Classes

struct  SimpleData
 

Public Types

enum  CommandType { StartedUsingFont, StoppedUsingFont }
 
- 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
}
 

Public Functions

 QWSFontCommand ()
 
void setData (const char *d, int len, bool allocateMem)
 
void setFontName (const QByteArray &name)
 
- 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

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

Additional Inherited Members

- Static Public Functions inherited from QWSCommand
static QWSCommandfactory (int type)
 

Detailed Description

Definition at line 802 of file qwscommand_qws_p.h.

Enumerations

◆ CommandType

Enumerator
StartedUsingFont 
StoppedUsingFont 

Definition at line 804 of file qwscommand_qws_p.h.

Constructors and Destructors

◆ QWSFontCommand()

QWSFontCommand::QWSFontCommand ( )
inline

Definition at line 809 of file qwscommand_qws_p.h.

809  :
811  sizeof(simpleData), reinterpret_cast<char *>(&simpleData)) {}
struct QWSFontCommand::SimpleData simpleData
QWSCommand(int t, int len, char *ptr)

Functions

◆ setData()

void QWSFontCommand::setData ( const char *  d,
int  len,
bool  allocateMem 
)
inlinevirtual

Reimplemented from QWSProtocolItem.

Definition at line 813 of file qwscommand_qws_p.h.

813  {
814  QWSCommand::setData(d, len, allocateMem);
815 
816  fontName = QByteArray(d, len);
817  }
double d
Definition: qnumeric_p.h:62
virtual void setData(const char *data, int len, bool allocateMem=true)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QByteArray fontName

◆ setFontName()

void QWSFontCommand::setFontName ( const QByteArray name)
inline

Definition at line 819 of file qwscommand_qws_p.h.

Referenced by QWSDisplay::sendFontCommand().

820  {
821  setData(name.constData(), name.size(), true);
822  }
void setData(const char *d, int len, bool allocateMem)
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
int size() const
Returns the number of bytes in this byte array.
Definition: qbytearray.h:402

Properties

◆ fontName

QByteArray QWSFontCommand::fontName

Definition at line 828 of file qwscommand_qws_p.h.

Referenced by QWSServerPrivate::invokeFont().

◆ simpleData

struct QWSFontCommand::SimpleData QWSFontCommand::simpleData

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