ui_node_abstractscrollbar.c
Go to the documentation of this file.00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "../ui_nodes.h"
00029 #include "ui_node_abstractscrollbar.h"
00030
00031 #define EXTRADATA_TYPE abstractScrollbarExtraData_t
00032
00033 static const value_t properties[] = {
00034
00035 {"current", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, pos), MEMBER_SIZEOF(EXTRADATA_TYPE, pos)},
00036
00037 {"viewsize", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, viewsize), MEMBER_SIZEOF(EXTRADATA_TYPE, viewsize)},
00038
00039 {"fullsize", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, fullsize), MEMBER_SIZEOF(EXTRADATA_TYPE, fullsize)},
00040
00041
00042 {"hidewhenunused", V_BOOL, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, hideWhenUnused), MEMBER_SIZEOF(EXTRADATA_TYPE, hideWhenUnused)},
00043
00044
00045
00046
00047 {"lastdiff", V_INT, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, lastdiff), MEMBER_SIZEOF(EXTRADATA_TYPE, lastdiff)},
00048
00049 {NULL, V_NULL, 0, 0}
00050 };
00051
00052 void UI_RegisterAbstractScrollbarNode (uiBehaviour_t *behaviour)
00053 {
00054 behaviour->name = "abstractscrollbar";
00055 behaviour->isAbstract = qtrue;
00056 behaviour->properties = properties;
00057 behaviour->extraDataSize = sizeof(EXTRADATA_TYPE);
00058 }