#include <assert.h>
#include "TableHeaderView.h"
Go to the source code of this file.
◆ _Class
◆ _TableHeaderView()
| Class * _TableHeaderView |
( |
void |
| ) |
|
Definition at line 78 of file TableHeaderView.c.
78 {
79 static Class *clazz;
80 static Once once;
81
82 do_once(&once, {
83 clazz = _initialize(&(const ClassDef) {
84 .name = "TableHeaderView",
88 .interfaceSize = sizeof(TableHeaderViewInterface),
90 });
91 });
92
93 return clazz;
94}
Class * _TableRowView(void)
◆ initialize()
| static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 67 of file TableHeaderView.c.
67 {
68
69 ((ViewInterface *) clazz->interface)->render =
render;
70
71 ((TableHeaderViewInterface *) clazz->interface)->initWithTableView =
initWithTableView;
72}
◆ initWithTableView()
◆ render()
- See also
- View::render(View *, Renderer *)
Definition at line 35 of file TableHeaderView.c.
35 {
36
38
40
41 SDL_Point points[2];
42
43 points[0].x = frame.x;
44 points[0].y = frame.y + frame.h;
45
46 points[1].x = frame.x + frame.w;
47 points[1].y = frame.y + frame.h;
48
50}
static void drawLine(const Renderer *self, const SDL_Point *points, const SDL_Color *color)
static SDL_Rect renderFrame(const View *self)
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
SDL_Color borderColor
The border color.