Last change
on this file was
4366,
checked in by Sam Hocevar, 12 years ago
|
Clean up source code, copyright information, author names, SVN keywords...
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * neercs console-based window manager |
---|
3 | * Copyright (c) 2009-2010 Jean-Yves Lamoureux <jylam@lnxscene.org> |
---|
4 | * All Rights Reserved |
---|
5 | * |
---|
6 | * This program is free software. It comes without any warranty, to |
---|
7 | * the extent permitted by applicable law. You can redistribute it |
---|
8 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
9 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
10 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
11 | */ |
---|
12 | |
---|
13 | #include "config.h" |
---|
14 | |
---|
15 | #include <stdio.h> |
---|
16 | #include <string.h> |
---|
17 | #include <stdlib.h> |
---|
18 | #include <sys/types.h> |
---|
19 | |
---|
20 | #include <caca.h> |
---|
21 | |
---|
22 | |
---|
23 | enum input_box_code |
---|
24 | { |
---|
25 | INPUT_BOX_ESC, |
---|
26 | INPUT_BOX_RET, |
---|
27 | INPUT_BOX_NOTHING, |
---|
28 | }; |
---|
29 | |
---|
30 | struct input_box |
---|
31 | { |
---|
32 | caca_canvas_t *cv; |
---|
33 | int x, y; |
---|
34 | int w, h; |
---|
35 | int size; |
---|
36 | char *command; |
---|
37 | char *output_err; |
---|
38 | char *output_res; |
---|
39 | }; |
---|
40 | |
---|
41 | struct input_box *widget_ibox_init(caca_canvas_t * cv, int w, int h); |
---|
42 | int widget_ibox_draw(struct input_box *box); |
---|
43 | int widget_ibox_handle_key(struct input_box *box, unsigned int c); |
---|
44 | char* widget_ibox_get_text(struct input_box *box); |
---|
45 | void widget_ibox_destroy(struct input_box *box); |
---|
46 | void widget_ibox_set_error(struct input_box *box, char *err); |
---|
47 | void widget_ibox_set_msg(struct input_box *box, char *msg); |
---|
Note: See
TracBrowser
for help on using the repository browser.