xref: /reactos/dll/win32/uxtheme/buffer.c (revision c2c66aff)
1 /*
2  * uxtheme Double-buffered Drawing API
3  *
4  * Copyright (C) 2008 Reece H. Dunn
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #include "uxthemep.h"
22 
23 /***********************************************************************
24  *      BufferedPaintInit                                  (UXTHEME.@)
25  */
BufferedPaintInit(VOID)26 HRESULT WINAPI BufferedPaintInit(VOID)
27 {
28     FIXME("Stub ()\n");
29     return S_OK;
30 }
31 
32 /***********************************************************************
33  *      BufferedPaintUnInit                                (UXTHEME.@)
34  */
BufferedPaintUnInit(VOID)35 HRESULT WINAPI BufferedPaintUnInit(VOID)
36 {
37     FIXME("Stub ()\n");
38     return S_OK;
39 }
40 
41 /***********************************************************************
42  *      BeginBufferedPaint                                 (UXTHEME.@)
43  */
BeginBufferedPaint(HDC hdcTarget,const RECT * prcTarget,BP_BUFFERFORMAT dwFormat,BP_PAINTPARAMS * pPaintParams,HDC * phdc)44 HPAINTBUFFER WINAPI BeginBufferedPaint(HDC hdcTarget,
45                                        const RECT * prcTarget,
46                                        BP_BUFFERFORMAT dwFormat,
47                                        BP_PAINTPARAMS *pPaintParams,
48                                        HDC *phdc)
49 {
50     static int i;
51 
52     TRACE("Stub (%p %p %d %p %p)\n", hdcTarget, prcTarget, dwFormat,
53           pPaintParams, phdc);
54 
55     if (!i++)
56         FIXME("Stub (%p %p %d %p %p)\n", hdcTarget, prcTarget, dwFormat,
57               pPaintParams, phdc);
58     return NULL;
59 }
60 
61 
62 /***********************************************************************
63  *      EndBufferedPaint                                   (UXTHEME.@)
64  */
EndBufferedPaint(HPAINTBUFFER hPaintBuffer,BOOL fUpdateTarget)65 HRESULT WINAPI EndBufferedPaint(HPAINTBUFFER hPaintBuffer, BOOL fUpdateTarget)
66 {
67     FIXME("Stub (%p %d)\n", hPaintBuffer, fUpdateTarget);
68     return S_OK;
69 }
70 
71 #ifndef __REACTOS__
72 
73 /***********************************************************************
74  *      BufferedPaintClear                                 (UXTHEME.@)
75  */
BufferedPaintClear(HPAINTBUFFER hBufferedPaint,const RECT * prc)76 HRESULT WINAPI BufferedPaintClear(HPAINTBUFFER hBufferedPaint, const RECT *prc)
77 {
78     FIXME("Stub (%p %p)\n", hBufferedPaint, prc);
79     return E_NOTIMPL;
80 }
81 
82 /***********************************************************************
83  *      BufferedPaintSetAlpha                              (UXTHEME.@)
84  */
BufferedPaintSetAlpha(HPAINTBUFFER hBufferedPaint,const RECT * prc,BYTE alpha)85 HRESULT WINAPI BufferedPaintSetAlpha(HPAINTBUFFER hBufferedPaint, const RECT *prc, BYTE alpha)
86 {
87     FIXME("Stub (%p %p %u)\n", hBufferedPaint, prc, alpha);
88     return E_NOTIMPL;
89 }
90 
91 /***********************************************************************
92  *      GetBufferedPaintBits                               (UXTHEME.@)
93  */
GetBufferedPaintBits(HPAINTBUFFER hBufferedPaint,RGBQUAD ** ppbBuffer,int * pcxRow)94 HRESULT WINAPI GetBufferedPaintBits(HPAINTBUFFER hBufferedPaint, RGBQUAD **ppbBuffer,
95                                     int *pcxRow)
96 {
97     FIXME("Stub (%p %p %p)\n", hBufferedPaint, ppbBuffer, pcxRow);
98     return E_NOTIMPL;
99 }
100 
101 /***********************************************************************
102  *      GetBufferedPaintDC                                 (UXTHEME.@)
103  */
GetBufferedPaintDC(HPAINTBUFFER hBufferedPaint)104 HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER hBufferedPaint)
105 {
106     FIXME("Stub (%p)\n", hBufferedPaint);
107     return NULL;
108 }
109 
110 /***********************************************************************
111  *      GetBufferedPaintTargetDC                           (UXTHEME.@)
112  */
GetBufferedPaintTargetDC(HPAINTBUFFER hBufferedPaint)113 HDC WINAPI GetBufferedPaintTargetDC(HPAINTBUFFER hBufferedPaint)
114 {
115     FIXME("Stub (%p)\n", hBufferedPaint);
116     return NULL;
117 }
118 
119 /***********************************************************************
120  *      GetBufferedPaintTargetRect                         (UXTHEME.@)
121  */
GetBufferedPaintTargetRect(HPAINTBUFFER hBufferedPaint,RECT * prc)122 HRESULT WINAPI GetBufferedPaintTargetRect(HPAINTBUFFER hBufferedPaint, RECT *prc)
123 {
124     FIXME("Stub (%p %p)\n", hBufferedPaint, prc);
125     return E_NOTIMPL;
126 }
127 
128 /***********************************************************************
129  *      BeginBufferedAnimation                             (UXTHEME.@)
130  */
BeginBufferedAnimation(HWND hwnd,HDC hdcTarget,const RECT * rcTarget,BP_BUFFERFORMAT dwFormat,BP_PAINTPARAMS * pPaintParams,BP_ANIMATIONPARAMS * pAnimationParams,HDC * phdcFrom,HDC * phdcTo)131 HANIMATIONBUFFER WINAPI BeginBufferedAnimation(HWND hwnd, HDC hdcTarget, const RECT *rcTarget,
132                                                BP_BUFFERFORMAT dwFormat, BP_PAINTPARAMS *pPaintParams,
133                                                BP_ANIMATIONPARAMS *pAnimationParams, HDC *phdcFrom,
134                                                HDC *phdcTo)
135 {
136     FIXME("Stub (%p %p %p %u %p %p %p %p)\n", hwnd, hdcTarget, rcTarget, dwFormat,
137           pPaintParams, pAnimationParams, phdcFrom, phdcTo);
138 
139     return NULL;
140 }
141 
142 /***********************************************************************
143  *      BufferedPaintRenderAnimation                       (UXTHEME.@)
144  */
BufferedPaintRenderAnimation(HWND hwnd,HDC hdcTarget)145 BOOL WINAPI BufferedPaintRenderAnimation(HWND hwnd, HDC hdcTarget)
146 {
147     FIXME("Stub (%p %p)\n", hwnd, hdcTarget);
148 
149     return FALSE;
150 }
151 
152 /***********************************************************************
153  *      BufferedPaintStopAllAnimations                     (UXTHEME.@)
154  */
BufferedPaintStopAllAnimations(HWND hwnd)155 HRESULT WINAPI BufferedPaintStopAllAnimations(HWND hwnd)
156 {
157     FIXME("Stub (%p)\n", hwnd);
158 
159     return E_NOTIMPL;
160 }
161 
162 /***********************************************************************
163  *      EndBufferedAnimation                               (UXTHEME.@)
164  */
EndBufferedAnimation(HANIMATIONBUFFER hbpAnimation,BOOL fUpdateTarget)165 HRESULT WINAPI EndBufferedAnimation(HANIMATIONBUFFER hbpAnimation, BOOL fUpdateTarget)
166 {
167     FIXME("Stub (%p %u)\n", hbpAnimation, fUpdateTarget);
168 
169     return E_NOTIMPL;
170 }
171 
172 #endif /* __REACTOS__ */
173