/*
* Copyright (C) 2021 P. J. McDermott
*
* This file is part of Maze Fight
*
* Maze Fight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Maze Fight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Maze Fight. If not, see .
*/
#include
#include "../tk.h"
#include "widget.h"
struct mftk_blank {
struct mftk_widget parent;
};
static void
_mftk_blank_layout(struct mftk_widget *w __attribute__((__unused__)))
{
/* No size */
}
static int
_mftk_blank_mouse_event(struct mftk_widget *w __attribute__((__unused__)),
SDL_Event *e __attribute__((__unused__)),
int x __attribute__((__unused__)),
int y __attribute__((__unused__)))
{
/* No events */
return 0;
}
static int
_mftk_blank_render(struct mftk_widget *w __attribute__((__unused__)),
SDL_Renderer *renderer __attribute__((__unused__)),
int x __attribute__((__unused__)),
int y __attribute__((__unused__)))
{
/* Nothing to render */
return 0;
}
static void
_mftk_blank_destroy(struct mftk_widget *w __attribute__((__unused__)))
{
/* Nothing to destroy */
}
struct mftk_widget *
mftk_blank_new(void)
{
struct mftk_widget *w;
struct mftk_blank *b __attribute__((__unused__));
mftk_widget_init(w, b, blank);
w->w = 0;
w->h = 0;
return w;
}