2017-09-26 13:58:44 -07:00
|
|
|
// Copyright © 2017 Project Golan, all rights reserved.
|
2017-10-04 17:14:46 -07:00
|
|
|
// See COPYING for more information.
|
2017-09-26 13:58:44 -07:00
|
|
|
#ifndef i_gui_h
|
|
|
|
#define i_gui_h
|
|
|
|
|
|
|
|
#include "m_types.h"
|
|
|
|
#include "i_ui.h"
|
|
|
|
|
|
|
|
#include <Doominati.h>
|
|
|
|
|
|
|
|
#define I_GUI_button(g, ...) I_GUI_ButtonFId(g, I_lineHash, __VA_ARGS__)
|
|
|
|
|
|
|
|
// Extern Functions ----------------------------------------------------------|
|
|
|
|
|
2017-10-04 20:19:27 -07:00
|
|
|
void I_GUI_Begin(struct I_guictx *g);
|
|
|
|
void I_GUI_End (struct I_guictx *g);
|
2017-09-26 13:58:44 -07:00
|
|
|
|
|
|
|
// Types ---------------------------------------------------------------------|
|
|
|
|
|
2017-10-04 20:19:27 -07:00
|
|
|
typedef struct I_guictx
|
2017-09-26 13:58:44 -07:00
|
|
|
{
|
|
|
|
__prop begin {call: I_GUI_Begin(this)}
|
|
|
|
__prop end {call: I_GUI_End (this)}
|
|
|
|
|
|
|
|
I_objid hot, act;
|
|
|
|
|
|
|
|
DGE_Point2I cr;
|
|
|
|
|
|
|
|
// TODO: make these a bitfield when david adds Bget_W translation
|
|
|
|
bool lc, llc;
|
|
|
|
bool rc, lrc;
|
|
|
|
|
|
|
|
bool open;
|
2017-10-04 20:19:27 -07:00
|
|
|
} I_guictx;
|
2017-09-26 13:58:44 -07:00
|
|
|
|
|
|
|
// Types ---------------------------------------------------------------------|
|
|
|
|
|
2017-10-04 20:19:27 -07:00
|
|
|
bool I_GUI_ButtonFId(struct I_guictx *g, I_objid id, int x, int y, char const *text);
|
2017-09-26 13:58:44 -07:00
|
|
|
|
|
|
|
#endif
|