#include <w32std.h>
| class RWsGraphicMsgBuf : private RBuf8, private RBuf8 |
| Public Member Functions | |
|---|---|
| RWsGraphicMsgBuf() | |
| IMPORT_C TInt | Append(TUid, const TDesC8 &) |
| IMPORT_C TInt | Append(TUid, const TDesC16 &) |
| IMPORT_C TInt | Append(TUid, TInt, TPtr8 &) |
| IMPORT_C TInt | Append(const TWsGraphicMsgFixedBase &) |
| IMPORT_C TInt | Count() |
| IMPORT_C TPtrC8 | Data(TInt) |
| IMPORT_C TPtr8 | Data(TInt) |
| IMPORT_C void | GetFixedMsg(TWsGraphicMsgFixedBase &, TInt) |
| IMPORT_C const TDesC8 & | Pckg() |
| IMPORT_C void | Remove(TInt) |
| IMPORT_C TUid | TypeId(TInt) |
| Inherited Attributes | |
|---|---|
| RBuf8::@29 | |
| RBuf8::__DECLARE_TEST | |
| RBuf8::iEBufCPtrType | |
| RBuf8::iEPtrType | |
| TDes8::iMaxLength | |
Utility class for building data buffers to be attached to CWindowGc::DrawWsGraphic commands Useful when there is more than one piece of data to be attached to the draw command
Append a message of the specified length and type, and return a pointer to allow client code to modify the message. aPtr is only set if the append succeeds. aPtr is only valid until the next message is appended to the buffer.
| Parameters | |
|---|---|
| aTypeId | the type of the message to append |
| aLen | the length of the message to be reserved |
| aPtr | a modifiable descriptor to be used by the client code to write into the message body |
| IMPORT_C TInt | Append | ( | const TWsGraphicMsgFixedBase & | aMsg | ) |
Append a fixed-size message
| Parameters | |
|---|---|
| aMsg | the fixed-size message to append |
| IMPORT_C TInt | Count | ( | ) | const |
Returns the number of messages in the buffer
| IMPORT_C void | GetFixedMsg | ( | TWsGraphicMsgFixedBase & | aMsg, |
| TInt | aIndex | |||
| ) | const | |||
| Parameters | |
|---|---|
| aIndex | the ordinal position of the message |
| Panic Codes | |
|---|---|
| if | the index is out of bounds |
| the | message specified is not of the correct type |
| IMPORT_C const TDesC8 & | Pckg | ( | ) | const |
RWsGraphicMsgBuf msgBuf; msgBuf.Append(...); ... TWsGraphicId id(...); SystemGc().DrawWsGraphic(id,Rect(),msgBuf.Pckg()); msgBuf.Close();
See also: CWindowGc::DrawWsGraphic CCoeControl::Draw
| IMPORT_C void | Remove | ( | TInt | aIndex | ) |
| Parameters | |
|---|---|
| aIndex | the ordinal position of message to be removed |
| Panic Codes | |
|---|---|
| if | the index is out of bounds |