181 {
182
184
186
188
190
192 $(renderer,
drawBevel, &frame, self->
borderRadius, 1, &this->bevelDarkColor, &this->bevelLightColor);
194 $(renderer,
drawBevel, &frame, self->
borderRadius, 1, &this->bevelLightColor, &this->bevelDarkColor);
195 }
196
199 }
200
201 } else {
202
204
205 SDL_Point points[3];
206
207 points[0].x = frame.x;
208 points[0].y = frame.y + frame.h;
209
210 points[1].x = frame.x + frame.w;
211 points[1].y = frame.y + frame.h;
212
213 points[2].x = frame.x + frame.w;
214 points[2].y = frame.y;
215
216 $(renderer,
drawLines, points, lengthof(points), &this->bevelLightColor);
217
218 points[0].x = frame.x;
219 points[0].y = frame.y + frame.h;
220
221 points[1].x = frame.x;
222 points[1].y = frame.y;
223
224 points[2].x = frame.x + frame.w;
225 points[2].y = frame.y;
226
227 $(renderer,
drawLines, points, lengthof(points), &this->bevelDarkColor);
228
230
231 SDL_Point points[3];
232
233 points[0].x = frame.x;
234 points[0].y = frame.y + frame.h;
235
236 points[1].x = frame.x + frame.w;
237 points[1].y = frame.y + frame.h;
238
239 points[2].x = frame.x + frame.w;
240 points[2].y = frame.y;
241
242 $(renderer,
drawLines, points, lengthof(points), &this->bevelDarkColor);
243
244 points[0].x = frame.x;
245 points[0].y = frame.y + frame.h;
246
247 points[1].x = frame.x;
248 points[1].y = frame.y;
249
250 points[2].x = frame.x + frame.w;
251 points[2].y = frame.y;
252
253 $(renderer,
drawLines, points, lengthof(points), &this->bevelLightColor);
254 }
255
258 }
259 }
260}
static void drawLines(const Renderer *self, const SDL_Point *points, size_t count, const SDL_Color *color)
static void drawRoundedRect(const Renderer *self, const SDL_Rect *rect, int radius, int width, const SDL_Color *color)
static void drawRect(const Renderer *self, const SDL_Rect *rect, const SDL_Color *color)
static void drawBevel(const Renderer *self, const SDL_Rect *rect, int radius, int width, const SDL_Color *topLeft, const SDL_Color *bottomRight)
static SDL_Rect renderFrame(const View *self)
int borderRadius
The corner radius applied to the background, border and bevel.