slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
ISlangWriter结构体 参考abstract

#include <slang.h>

类 ISlangWriter 继承关系图:
Inheritance graph
[图例]
ISlangWriter 的协作图:
Collaboration graph
[图例]

Public 成员函数

 SLANG_COM_INTERFACE (0xec457f0e, 0x9add, 0x4e6b, {0x85, 0x1c, 0xd7, 0xfa, 0x71, 0x6d, 0x15, 0xfd}) virtual SLANG_NO_THROW char *SLANG_MCALL beginAppendBuffer(size_t maxNumChars)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL endAppendBuffer (char *buffer, size_t numChars)=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL write (const char *chars, size_t numChars)=0
 
virtual SLANG_NO_THROW void SLANG_MCALL flush ()=0
 
virtual SLANG_NO_THROW SlangBool SLANG_MCALL isConsole ()=0
 
virtual SLANG_NO_THROW SlangResult SLANG_MCALL setMode (SlangWriterMode mode)=0
 
- Public 成员函数 继承自 ISlangUnknown
virtual SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface (SlangUUID const &uuid, void **outObject)=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef ()=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL release ()=0
 
 SLANG_COM_INTERFACE (0x00000000, 0x0000, 0x0000, {0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}) virtual SLANG_NO_THROW SlangResult SLANG_MCALL queryInterface(SlangUUID const &uuid
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL addRef ()=0
 
virtual SLANG_NO_THROW uint32_t SLANG_MCALL release ()=0
 
SlangResult QueryInterface (struct _GUID const &uuid, void **outObject)
 
uint32_t AddRef ()
 
uint32_t Release ()
 

额外继承的成员函数

- Public 属性 继承自 ISlangUnknown
void ** outObject = 0
 

详细描述

A stream typically of text, used for outputting diagnostic as well as other information.

成员函数说明

◆ endAppendBuffer()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangWriter::endAppendBuffer ( char * buffer,
size_t numChars )
pure virtual

Ends the append buffer, and is equivalent to a write of the append buffer. NOTE! That an endAppendBuffer is not necessary if there are no characters to write.

参数
bufferis the start of the data to append and must be identical to last value returned from beginAppendBuffer
numCharsmust be a value less than or equal to what was returned from last call to beginAppendBuffer
返回
Result, will be SLANG_OK on success

◆ flush()

virtual SLANG_NO_THROW void SLANG_MCALL ISlangWriter::flush ( )
pure virtual

Flushes any content to the output

◆ isConsole()

virtual SLANG_NO_THROW SlangBool SLANG_MCALL ISlangWriter::isConsole ( )
pure virtual

Determines if the writer stream is to the console, and can be used to alter the output

返回
Returns true if is a console writer

◆ setMode()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangWriter::setMode ( SlangWriterMode mode)
pure virtual

Set the mode for the writer to use

参数
modeThe mode to use
返回
SLANG_OK on success

◆ SLANG_COM_INTERFACE()

ISlangWriter::SLANG_COM_INTERFACE ( 0xec457f0e ,
0x9add ,
0x4e6b ,
{0x85, 0x1c, 0xd7, 0xfa, 0x71, 0x6d, 0x15, 0xfd}  )
pure virtual

Begin an append buffer. NOTE! Only one append buffer can be active at any time.

参数
maxNumCharsThe maximum of chars that will be appended
返回
The start of the buffer for appending to.

◆ write()

virtual SLANG_NO_THROW SlangResult SLANG_MCALL ISlangWriter::write ( const char * chars,
size_t numChars )
pure virtual

Write text to the writer

参数
charsThe characters to write out
numCharsThe amount of characters
返回
SLANG_OK on success

该结构体的文档由以下文件生成: