Streamline dlls/ and programs/ in terms of indentation.
[wine/dcerpc.git] / dlls / uxtheme / draw.c
blob57cf3597edc8e219f26313cc4481827109937918
1 /*
2 * Win32 5.1 Theme drawing
4 * Copyright (C) 2003 Kevin Koltzau
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
23 #include <stdarg.h>
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winuser.h"
28 #include "wingdi.h"
29 #include "uxtheme.h"
31 #include "uxthemedll.h"
33 #include "wine/debug.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
37 /***********************************************************************
38 * EnableThemeDialogTexture (UXTHEME.@)
40 HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
42 FIXME("%p 0x%08lx: stub\n", hwnd, dwFlags);
43 return ERROR_CALL_NOT_IMPLEMENTED;
46 /***********************************************************************
47 * IsThemeDialogTextureEnabled (UXTHEME.@)
49 BOOL WINAPI IsThemeDialogTextureEnabled(void)
51 FIXME("stub\n");
52 return FALSE;
55 /***********************************************************************
56 * DrawThemeParentBackground (UXTHEME.@)
58 HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
60 FIXME("stub\n");
61 return ERROR_CALL_NOT_IMPLEMENTED;
64 /***********************************************************************
65 * DrawThemeBackground (UXTHEME.@)
67 HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
68 int iStateId, const RECT *pRect,
69 const RECT *pClipRect)
71 FIXME("%d %d: stub\n", iPartId, iStateId);
72 if(!hTheme)
73 return E_HANDLE;
74 return ERROR_CALL_NOT_IMPLEMENTED;
77 /***********************************************************************
78 * DrawThemeBackgroundEx (UXTHEME.@)
80 HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId,
81 int iStateId, const RECT *pRect,
82 const DTBGOPTS *pOptions)
84 FIXME("%d %d: stub\n", iPartId, iStateId);
85 if(!hTheme)
86 return E_HANDLE;
87 return ERROR_CALL_NOT_IMPLEMENTED;
90 /***********************************************************************
91 * DrawThemeEdge (UXTHEME.@)
93 HRESULT WINAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId,
94 int iStateId, const RECT *pDestRect, UINT uEdge,
95 UINT uFlags, RECT *pContentRect)
97 FIXME("%d %d 0x%08x 0x%08x: stub\n", iPartId, iStateId, uEdge, uFlags);
98 if(!hTheme)
99 return E_HANDLE;
100 return ERROR_CALL_NOT_IMPLEMENTED;
103 /***********************************************************************
104 * DrawThemeIcon (UXTHEME.@)
106 HRESULT WINAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
107 const RECT *pRect, HIMAGELIST himl, int iImageIndex)
109 FIXME("%d %d: stub\n", iPartId, iStateId);
110 if(!hTheme)
111 return E_HANDLE;
112 return ERROR_CALL_NOT_IMPLEMENTED;
115 /***********************************************************************
116 * DrawThemeText (UXTHEME.@)
118 HRESULT WINAPI DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
119 LPCWSTR pszText, int iCharCount, DWORD dwTextFlags,
120 DWORD dwTextFlags2, const RECT *pRect)
122 FIXME("%d %d: stub\n", iPartId, iStateId);
123 if(!hTheme)
124 return E_HANDLE;
125 return ERROR_CALL_NOT_IMPLEMENTED;
128 /***********************************************************************
129 * GetThemeBackgroundContentRect (UXTHEME.@)
131 HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId,
132 int iStateId,
133 const RECT *pBoundingRect,
134 RECT *pContentRect)
136 FIXME("%d %d: stub\n", iPartId, iStateId);
137 if(!hTheme)
138 return E_HANDLE;
139 return ERROR_CALL_NOT_IMPLEMENTED;
142 /***********************************************************************
143 * GetThemeBackgroundExtent (UXTHEME.@)
145 HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
146 int iStateId, const RECT *pContentRect,
147 RECT *pExtentRect)
149 FIXME("%d %d: stub\n", iPartId, iStateId);
150 if(!hTheme)
151 return E_HANDLE;
152 return ERROR_CALL_NOT_IMPLEMENTED;
155 /***********************************************************************
156 * GetThemeBackgroundRegion (UXTHEME.@)
158 HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId,
159 int iStateId, const RECT *pRect,
160 HRGN *pRegion)
162 FIXME("%d %d: stub\n", iPartId, iStateId);
163 if(!hTheme)
164 return E_HANDLE;
165 return ERROR_CALL_NOT_IMPLEMENTED;
168 /***********************************************************************
169 * GetThemePartSize (UXTHEME.@)
171 HRESULT WINAPI GetThemePartSize(HTHEME hTheme, HDC hdc, int iPartId,
172 int iStateId, RECT *prc, THEMESIZE eSize,
173 SIZE *psz)
175 FIXME("%d %d %d: stub\n", iPartId, iStateId, eSize);
176 if(!hTheme)
177 return E_HANDLE;
178 return ERROR_CALL_NOT_IMPLEMENTED;
182 /***********************************************************************
183 * GetThemeTextExtent (UXTHEME.@)
185 HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId,
186 int iStateId, LPCWSTR pszText, int iCharCount,
187 DWORD dwTextFlags, const RECT *pBoundingRect,
188 RECT *pExtentRect)
190 FIXME("%d %d: stub\n", iPartId, iStateId);
191 if(!hTheme)
192 return E_HANDLE;
193 return ERROR_CALL_NOT_IMPLEMENTED;
196 /***********************************************************************
197 * GetThemeTextMetrics (UXTHEME.@)
199 HRESULT WINAPI GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId,
200 int iStateId, TEXTMETRICW *ptm)
202 FIXME("%d %d: stub\n", iPartId, iStateId);
203 if(!hTheme)
204 return E_HANDLE;
205 return ERROR_CALL_NOT_IMPLEMENTED;
208 /***********************************************************************
209 * IsThemeBackgroundPartiallyTransparent (UXTHEME.@)
211 BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId,
212 int iStateId)
214 FIXME("%d %d: stub\n", iPartId, iStateId);
215 return FALSE;