mGEff API Reference  v1.2.0
An animation framework for MiniGUI apps
mgeff-effector-source.h
Go to the documentation of this file.
1 
41 #ifndef _MGEFF_EFFECTORSOURCE_H_
42 #define _MGEFF_EFFECTORSOURCE_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_SOURCE);
53 
60 typedef void (*MGEFF_DELETEHDC_CB)(HDC hdc);
61 
75 MGEFF_EXPORT MGEFF_SOURCE mGEffCreateSource(HDC hdc);
76 
93 MGEFF_EXPORT MGEFF_SOURCE mGEffCreateSourceEx(HDC hdc, MGEFF_DELETEHDC_CB cb);
94 
107 MGEFF_EXPORT HDC mGEffGetSourceDC(MGEFF_SOURCE handle);
108 
109 #endif
110 
MGEFF_EXPORT HDC mGEffGetSourceDC(MGEFF_SOURCE handle)
Get HDC from the source handle.
MGEFF_EXPORT MGEFF_SOURCE mGEffCreateSourceEx(HDC hdc, MGEFF_DELETEHDC_CB cb)
Creates a source ready to be used by a effector and privies the source with a callback to delete DC w...
void(* MGEFF_DELETEHDC_CB)(HDC hdc)
delete source dc
Definition: mgeff-effector-source.h:60
#define MGEFF_EXPORT
Definition: mgeff-common.h:52
MGEFF_EXPORT MGEFF_SOURCE mGEffCreateSource(HDC hdc)
Creates a source ready to be used by a effector.
MGEFF_DECLARE_HANDLE(MGEFF_SOURCE)