summaryrefslogtreecommitdiff
path: root/core/fxge/win32/cpsoutput.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/win32/cpsoutput.h')
-rw-r--r--core/fxge/win32/cpsoutput.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/fxge/win32/cpsoutput.h b/core/fxge/win32/cpsoutput.h
index 1a4709b36b..42ad109a80 100644
--- a/core/fxge/win32/cpsoutput.h
+++ b/core/fxge/win32/cpsoutput.h
@@ -9,17 +9,19 @@
#include <windows.h>
+#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/fx_system.h"
-class CPSOutput {
+class CPSOutput : public IFX_WriteStream {
public:
explicit CPSOutput(HDC hDC);
- ~CPSOutput();
+ ~CPSOutput() override;
- // IFX_PSOutput
- void Release();
- void OutputPS(const char* str, int len);
+ // IFX_Writestream
+ bool WriteBlock(const void* str, size_t len) override;
+ bool WriteString(const CFX_ByteStringC& str) override;
+ private:
HDC m_hDC;
};