User interface.
More...
#include "options.h"
#include "ui.h"
#include "util.h"
#include <assert.h>
Go to the source code of this file.
User interface.
- Date
- 1998 - 2017
- Author
- Richard Delorme
- Version
- 4.4
◆ gtp_preprocess()
| void gtp_preprocess |
( |
char * | line | ) |
|
◆ ui_event_exist()
| bool ui_event_exist |
( |
UI * | ui | ) |
|
ui_event_exist
Locked version of event_exist.
- Parameters
-
- Returns
- true if an event is waiting.
◆ ui_event_free()
| void ui_event_free |
( |
UI * | ui | ) |
|
Free events.
Allocate event resources & launch user-input event thread.
◆ ui_event_init()
| void ui_event_init |
( |
UI * | ui | ) |
|
Create a new Othello User Interface.
Allocate event resources & launch user-input event thread.
◆ ui_event_peek()
| bool ui_event_peek |
( |
UI * | ui, |
|
|
char ** | cmd, |
|
|
char ** | param ) |
Wait input.
- Parameters
-
| ui | User interface. |
| cmd | Command. |
| param | Command's parameters. |
◆ ui_event_wait()
| void ui_event_wait |
( |
UI * | ui, |
|
|
char ** | cmd, |
|
|
char ** | param ) |
Wait input.
- Parameters
-
| ui | User interface. |
| cmd | Command. |
| param | Command's parameters. |
◆ ui_read_input()
| static void ui_read_input |
( |
UI * | ui | ) |
|
|
static |
Get an event.
Wait for an event from the standard input.
- Parameters
-
◆ ui_read_input_loop()
| static void * ui_read_input_loop |
( |
void * | v | ) |
|
|
static |
Read event loop.
- Parameters
-
◆ ui_switch()
| bool ui_switch |
( |
UI * | ui, |
|
|
const char * | ui_type ) |
Switch between different User Interface.
- Parameters
-
| ui | User Interface. |
| ui_type | A string describing the chosen user interface. |
- Returns
- true if successful.