1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2011, 2012, Jonathan Schleifer <js@webkeks.org>
*
* https://webkeks.org/hg/objgui/
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice is present in all copies.
*
|
>
|
1
2
3
4
5
6
7
8
9
10
|
/*
* Copyright (c) 2011, 2012, Jonathan Schleifer <js@webkeks.org>
* Copyright (c) 2011, 2012, Dillon Aumiller <dillonaumiller@gmail.com>
*
* https://webkeks.org/hg/objgui/
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice is present in all copies.
*
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef OG_GTK
# include <gtk/gtk.h>
#endif
#import <ObjFW/ObjFW.h>
@interface OGWidget: OFObject
{
@public
#ifdef OG_GTK
GtkWidget *widget;
#endif
}
- (void)show;
- (void)hide;
@end
extern void og_destroy(GtkWidget*, OGWidget*);
|
|
>
>
>
>
>
>
>
>
>
>
>
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef OG_GTK
#i nclude <gtk/gtk.h>
#endif
#ifdef OG_W32
# include <windows.h>
#endif
#import <ObjFW/ObjFW.h>
@interface OGWidget: OFObject
{
@public
#ifdef OG_GTK
GtkWidget *widget;
#endif
#ifdef OG_W32
HWND widget;
#endif
}
- (void)show;
- (void)hide;
@end
#ifdef OG_GTK
extern void og_destroy(GtkWidget*, OGWidget*);
#endif
#ifdef OG_W32
extern void og_destroy(HWND widget, OGWidget *object);
#endif
|