#include <assert.h>
#include "TableHeaderView.h"
Go to the source code of this file.
◆ _Class
◆ _TableHeaderView()
Class * _TableHeaderView |
( |
void |
| ) |
|
Definition at line 82 of file TableHeaderView.c.
82 {
83 static Class *clazz;
84 static Once once;
85
86 do_once(&once, {
87 clazz = _initialize(&(const ClassDef) {
88 .name = "TableHeaderView",
92 .interfaceSize = sizeof(TableHeaderViewInterface),
94 });
95 });
96
97 return clazz;
98}
Class * _TableRowView(void)
The TableRowView archetype.
◆ initialize()
static void initialize |
( |
Class * |
clazz | ) |
|
|
static |
- See also
- Class::initialize(Class *)
Definition at line 71 of file TableHeaderView.c.
71 {
72
73 ((ViewInterface *) clazz->interface)->render =
render;
74
75 ((TableHeaderViewInterface *) clazz->interface)->initWithTableView =
initWithTableView;
76}
void render(View *self, Renderer *renderer)
Renders this View using the given renderer.
◆ initWithTableView()
◆ render()
- See also
- View::render(View *, Renderer *)
Definition at line 35 of file TableHeaderView.c.
35 {
36
38
40
42
43 SDL_Point points[2];
44
45 points[0].x = frame.x;
46 points[0].y = frame.y + frame.h;
47
48 points[1].x = frame.x + frame.w;
49 points[1].y = frame.y + frame.h;
50
52
54}
void drawLine(const Renderer *self, const SDL_Point *points)
Draws a line segment between two points using GL_LINE_STRIP.
void setDrawColor(Renderer *self, const SDL_Color *color)
Sets the primary color for drawing operations.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
SDL_Color borderColor
The border color.
SDL_Rect renderFrame(const View *self)