00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __SCROLLBAR_H
00018 #define __SCROLLBAR_H
00019
00020 #ifdef __cplusplus
00021 extern "C"
00022 {
00023 #include "common/ktypes.h"
00024 #include "common/stdlib.h"
00025 #include "gui/graphics.h"
00026 #include "common/string.h"
00027 }
00028 #else
00029 #include "common/ktypes.h"
00030 #include "common/stdlib.h"
00031 #include "gui/graphics.h"
00032 #include "common/string.h"
00033 #endif
00034
00035 #include "gui/components/component.h"
00036 #include "gui/components/window.h"
00037 #include "gui/components/frame.h"
00038
00039 #define MIN_SCROLLBAR_WIDTH 20
00040 #define MIN_SCROLLBAR_HEIGHT 10
00041
00042 #define VERTICAL 0
00043 #define HORIZONTAL 1
00044
00045 #define SCRL_THICKNESS 10
00046
00047 class scrollbar:public component
00048 {
00049 public :
00050 DB style;
00051 DB scroll_offset;
00052 DB scaling;
00053
00054 void scrollbar_init(DW _id,DW _parent_id,DW _cnt_type,void *_cnt_ptr,DW _alias_id,DW _x,DW _y,DW _width,DW _height,DW _style);
00055 void paint();
00056 };
00057
00058
00059
00060 #endif