ctk-conio_arch.c
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "ctk/ctk.h"
00043 #include "ctk/ctk-draw.h"
00044 #include "contiki-conf.h"
00045 #include "ctk/ctk_arch.h"
00046 #include <stddef.h>
00047
00048
00049
00050
00051
00052 const u8_t off_widget_x = offsetof(struct ctk_widget, x);
00053 const u8_t off_widget_y = offsetof(struct ctk_widget, y);
00054 const u8_t off_widget_w = offsetof(struct ctk_widget, w);
00055 const u8_t off_widget_h = offsetof(struct ctk_widget, h);
00056 const u8_t off_widget_type = offsetof(struct ctk_widget, type);
00057 const u8_t off_widget_window = offsetof(struct ctk_widget, window);
00058
00059 const u8_t off_widget_label_text = offsetof(struct ctk_widget, widget) +
00060 offsetof(struct ctk_widget_label, text);
00061 const u8_t off_widget_button_text = offsetof(struct ctk_widget, widget) +
00062 offsetof(struct ctk_widget_button, text);
00063 const u8_t off_widget_textentry_text = offsetof(struct ctk_widget, widget) +
00064 offsetof(struct ctk_widget_textentry, text);
00065 const u8_t off_widget_textentry_xpos = offsetof(struct ctk_widget, widget) +
00066 offsetof(struct ctk_widget_textentry, xpos);
00067 const u8_t off_widget_textentry_ypos = offsetof(struct ctk_widget, widget) +
00068 offsetof(struct ctk_widget_textentry, ypos);
00069 const u8_t off_widget_textentry_state = offsetof(struct ctk_widget, widget) +
00070 offsetof(struct ctk_widget_textentry, state);
00071 #if CTK_CONF_HYPERLINK
00072 const u8_t off_widget_hyperlink_text = offsetof(struct ctk_widget, widget) +
00073 offsetof(struct ctk_widget_hyperlink, text);
00074 #endif
00075
00076 #if CTK_CONF_ICONS
00077 const u8_t off_widget_icon_title = offsetof(struct ctk_widget, widget) +
00078 offsetof(struct ctk_widget_icon, title);
00079 const u8_t off_widget_icon_textmap = offsetof(struct ctk_widget, widget) +
00080 offsetof(struct ctk_widget_icon, textmap);
00081 #endif
00082
00083 const u8_t off_window_x = offsetof(struct ctk_window, x);
00084 const u8_t off_window_y = offsetof(struct ctk_window, y);
00085 const u8_t off_window_h = offsetof(struct ctk_window, h);
00086 const u8_t off_window_w = offsetof(struct ctk_window, w);
00087 const u8_t off_window_inactive = offsetof(struct ctk_window, inactive);
00088 const u8_t off_window_active = offsetof(struct ctk_window, active);
00089 const u8_t off_window_next = offsetof(struct ctk_window, next);
00090 const u8_t off_window_focused = offsetof(struct ctk_window, focused);
00091
00092 #if CTK_CONF_MENUS
00093 const u8_t off_menu_title = offsetof(struct ctk_menu, title);
00094 const u8_t off_menu_active = offsetof(struct ctk_menu, active);
00095 const u8_t off_menu_nitems = offsetof(struct ctk_menu, nitems);
00096 const u8_t off_menu_items = offsetof(struct ctk_menu, items);
00097 const u8_t off_menu_next = offsetof(struct ctk_menu, next);
00098 const u8_t off_menuitem_title = offsetof(struct ctk_menuitem, title);
00099 const u8_t size_menuitem = sizeof(struct ctk_menuitem);
00100 const u8_t off_menus_open = offsetof(struct ctk_menus, open);
00101 const u8_t off_menus_menus = offsetof(struct ctk_menus, menus);
00102 const u8_t off_menus_desktopmenu = offsetof(struct ctk_menus, desktopmenu);
00103 #endif
00104
00105