Rev 1176 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1176 | andrew_pro | 1 | /* |
2 | libGUI dinamic library |
||
3 | (c) andrew_programmer 2009 |
||
4 | */ |
||
5 | |||
1224 | vkos | 6 | /* |
7 | * vkos (21.10.2009): |
||
8 | * Replaced "meneger" (& others so) with "manager" |
||
9 | */ |
||
10 | |||
1176 | andrew_pro | 11 | //service libGUI types of data,functions and constants |
12 | #include "types.h" |
||
13 | #include "libGUI.h" |
||
14 | #include "kolibri_system.h" |
||
15 | #include "draw_controls.h" |
||
1224 | vkos | 16 | #include "fonts_manager.h" |
1176 | andrew_pro | 17 | #include "keys.h" |
18 | |||
19 | //controls |
||
20 | #include "control_button.h" |
||
21 | #include "control_image.h" |
||
22 | #include "control_progress_bar.h" |
||
23 | #include "control_scroll_bar.h" |
||
24 | #include "control_scrolled_window.h" |
||
25 | #include "control_text.h" |
||
26 | |||
27 | //some libC functions |
||
28 | #include "stdarg.h" |
||
29 | #include "stdio.h" |
||
30 | #include "string.h" |
||
31 | #include "stdlib.h" |
||
32 | |||
1224 | vkos | 33 | //code parts |
1176 | andrew_pro | 34 | #include "stdio.inc" |
35 | #include "string.inc" |
||
36 | #include "malloc.inc" |
||
37 | #include "stdlib.inc" |
||
38 | #include "kolibri_system.inc" |
||
39 | #include "draw_controls.inc" |
||
1224 | vkos | 40 | #include "fonts_manager.inc" |
41 | #include "libGUI_management.inc" |
||
1176 | andrew_pro | 42 | #include "parent_window.inc" |
43 | #include "main_libGUI.inc" |
||
44 | #include "control_text.inc" |
||
45 | #include "control_image.inc" |
||
46 | #include "control_button.inc" |
||
47 | #include "control_progress_bar.inc" |
||
48 | #include "control_scroll_bar.inc" |
||
49 | #include "control_scrolled_window.inc" |
||
50 | |||
51 | |||
52 | typedef struct |
||
53 | { |
||
54 | char *name; |
||
55 | void *function; |
||
56 | }export_t; |
||
57 | |||
58 | //char szSTART[] = "START"; |
||
59 | char szLibGUIversion[] = "LibGUIversion"; |
||
60 | char szInitLibGUI[] = "InitLibGUI"; |
||
61 | char szLibGUImain[] = "LibGUImain"; |
||
62 | char szQuitLibGUI[] = "QuitLibGUI"; |
||
63 | |||
64 | char szCreateWindow[] = "CreateWindow"; |
||
65 | char szSetWindowSizeRequest[] = "SetWindowSizeRequest"; |
||
66 | |||
67 | char szPackControls[] = "PackControls"; |
||
68 | char szDestroyControl[] = "DestroyControl"; |
||
69 | char szSetControlSizeRequest[] = "SetControlSizeRequest"; |
||
70 | char szGetControlSizeX[] = "GetControlSizeX"; |
||
71 | char szGetControlSizeY[] = "GetControlSizeY"; |
||
72 | char szSetControlNewPosition[] = "SetControlNewPosition"; |
||
73 | char szGetControlPositionX[] = "GetControlPositionX"; |
||
74 | char szGetControlPositionY[] = "GetControlPositionY"; |
||
75 | char szSetFocuse[] = "SetFocuse"; |
||
76 | char szRedrawControl[] = "RedrawControl"; |
||
77 | char szSpecialRedrawControl[] = "SpecialRedrawControl"; |
||
78 | |||
79 | char szSetCallbackFunction[] = "SetCallbackFunction"; |
||
80 | char szBlockCallbackFunction[] = "BlockCallbackFunction"; |
||
81 | char szUnblockCallbackFunction[] = "UnblockCallbackFunction"; |
||
82 | |||
83 | char szSetIDL_Function[] = "SetIDL_Function"; |
||
84 | char szDestroyIDL_Function[] = "DestroyIDL_Function"; |
||
85 | |||
86 | char szSetTimerCallbackForFunction[] = "SetTimerCallbackForFunction"; |
||
87 | char szDestroyTimerCallbackForFunction[] = "DestroyTimerCallbackForFunction"; |
||
88 | |||
89 | char szSetCallbackFunctionForEvent[] = "SetCallbackFunctionForEvent"; |
||
90 | char szDestroyCallbackFunctionForEvent[] = "DestroyCallbackFunctionForEvent"; |
||
91 | |||
92 | char szCreateButton[] = "CreateButton"; |
||
93 | char szCreateButtonWithText[] = "CreateButtonWithText"; |
||
94 | |||
95 | char szCreateProgressBar[] = "CreateProgressBar"; |
||
96 | char szSetProgressBarPulse[] = "SetProgressBarPulse"; |
||
97 | char szProgressBarSetText[] = "ProgressBarSetText"; |
||
98 | char szProgressBarGetText[] = "ProgressBarGetText"; |
||
99 | |||
100 | char szCreateHorizontalScrollBar[] = "CreateHorizontalScrollBar"; |
||
101 | char szCreateVerticalScrollBar[] = "CreateVerticalScrollBar"; |
||
102 | |||
103 | char szCreateScrolledWindow[] = "CreateScrolledWindow"; |
||
104 | char szScrolledWindowPackControls[] = "ScrolledWindowPackControls"; |
||
105 | |||
106 | char szCreateImage[] = "CreateImage"; |
||
107 | |||
108 | char szCreateText[] = "CreateText"; |
||
109 | char szTextBackgroundOn[] = "TextBackgroundOn"; |
||
110 | char szTextBackgroundOff[] = "TextBackgroundOff"; |
||
111 | |||
112 | char szLoadFont[] = "LoadFont"; |
||
113 | char szFreeFont[] = "FreeFont"; |
||
114 | |||
115 | export_t EXPORTS[]__asm__("EXPORTS") = |
||
116 | { |
||
117 | {szLibGUIversion, LibGUIversion }, |
||
118 | {szInitLibGUI, InitLibGUI }, |
||
119 | {szLibGUImain, LibGUImain }, |
||
120 | {szQuitLibGUI, QuitLibGUI }, |
||
121 | |||
122 | {szCreateWindow, CreateWindow }, |
||
123 | {szSetWindowSizeRequest, SetWindowSizeRequest }, |
||
124 | |||
125 | {szPackControls, PackControls }, |
||
126 | {szDestroyControl, DestroyControl }, |
||
127 | {szSetControlSizeRequest, SetControlSizeRequest }, |
||
128 | {szGetControlSizeX, GetControlSizeX }, |
||
129 | {szGetControlSizeY, GetControlSizeY }, |
||
130 | {szSetControlNewPosition, SetControlNewPosition }, |
||
131 | {szGetControlPositionX, GetControlPositionX }, |
||
132 | {szGetControlPositionY, GetControlPositionY }, |
||
133 | {szSetFocuse, SetFocuse }, |
||
134 | {szRedrawControl, RedrawControl }, |
||
135 | {szSpecialRedrawControl, SpecialRedrawControl }, |
||
136 | |||
137 | {szSetCallbackFunction, SetCallbackFunction }, |
||
138 | {szBlockCallbackFunction, BlockCallbackFunction }, |
||
139 | {szUnblockCallbackFunction, UnblockCallbackFunction }, |
||
140 | |||
141 | {szSetIDL_Function, SetIDL_Function }, |
||
142 | {szDestroyIDL_Function, DestroyIDL_Function }, |
||
143 | |||
144 | {szSetTimerCallbackForFunction, SetTimerCallbackForFunction }, |
||
145 | {szDestroyTimerCallbackForFunction, DestroyTimerCallbackForFunction }, |
||
146 | |||
147 | {szSetCallbackFunctionForEvent, SetCallbackFunctionForEvent }, |
||
148 | {szDestroyCallbackFunctionForEvent, DestroyCallbackFunctionForEvent }, |
||
149 | |||
150 | {szCreateButton, CreateButton }, |
||
151 | {szCreateButtonWithText, CreateButtonWithText }, |
||
152 | |||
153 | {szCreateProgressBar, CreateProgressBar }, |
||
154 | {szSetProgressBarPulse, SetProgressBarPulse }, |
||
155 | {szProgressBarSetText, ProgressBarSetText }, |
||
156 | {szProgressBarGetText, ProgressBarGetText }, |
||
157 | |||
158 | {szCreateHorizontalScrollBar, CreateHorizontalScrollBar }, |
||
159 | {szCreateVerticalScrollBar, CreateVerticalScrollBar }, |
||
160 | |||
161 | {szCreateScrolledWindow, CreateScrolledWindow }, |
||
162 | {szScrolledWindowPackControls, ScrolledWindowPackControls }, |
||
163 | |||
164 | {szCreateImage, CreateImage }, |
||
165 | |||
166 | {szCreateText, CreateText }, |
||
167 | {szTextBackgroundOn, TextBackgroundOn }, |
||
168 | {szTextBackgroundOff, TextBackgroundOff }, |
||
169 | |||
170 | {szLoadFont, LoadFont }, |
||
171 | {szFreeFont, FreeFont }, |
||
172 | |||
173 | {NULL,NULL}, |
||
174 | }; |