mGEff API Reference  v1.2.0
An animation framework for MiniGUI apps
mgeff-effector-sink.h
Go to the documentation of this file.
1 
41 #ifndef _MGEFF_EFFECTORSINK_H_
42 #define _MGEFF_EFFECTORSINK_H_
43 
44 #include <minigui/common.h>
45 #include <minigui/minigui.h>
46 #include <minigui/gdi.h>
47 #include <minigui/window.h>
48 
52 MGEFF_DECLARE_HANDLE(MGEFF_SINK);
53 
59  MGEFF_SINK_HDC = 0,
60  MGEFF_SINK_HWND = 1,
61  MGEFF_SINK_MAX
62 };
63 
79 MGEFF_EXPORT MGEFF_SINK mGEffCreateHDCSink(HDC hdc);
80 
96 MGEFF_EXPORT MGEFF_SINK mGEffCreateHwndSink(HWND hwnd);
97 
108 MGEFF_EXPORT void mGEffDeleteSink(MGEFF_SINK sink);
109 
122 MGEFF_EXPORT void mGEffSetBufferSink(MGEFF_SINK handle, HDC hdc);
123 
124 #endif
125 
MGEFF_EXPORT MGEFF_SINK mGEffCreateHwndSink(HWND hwnd)
Create sink from a window handle.
#define MGEFF_EXPORT
Definition: mgeff-common.h:52
MGEFF_DECLARE_HANDLE(MGEFF_SINK)
The handle to the effector sink.
MGEFF_EXPORT void mGEffDeleteSink(MGEFF_SINK sink)
Deletes a sink.
MGEFF_EXPORT MGEFF_SINK mGEffCreateHDCSink(HDC hdc)
Create sink from a DC.
MGEFF_EXPORT void mGEffSetBufferSink(MGEFF_SINK handle, HDC hdc)
Sets the content of a sink according to a DC.
MGEFF_SINK_TYPE
sink type
Definition: mgeff-effector-sink.h:58