mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
update scrollbar widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@834 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <rtgui/widgets/checkbox.h>
|
||||
#include <rtgui/widgets/radiobox.h>
|
||||
#include <rtgui/widgets/slider.h>
|
||||
#include <rtgui/widgets/scrollbar.h>
|
||||
#include <rtgui/widgets/progressbar.h>
|
||||
#include <rtgui/widgets/staticline.h>
|
||||
|
||||
@@ -48,6 +49,7 @@ void rtgui_theme_draw_checkbox(rtgui_checkbox_t* checkbox);
|
||||
void rtgui_theme_draw_radiobutton(struct rtgui_radiobox* radiobox, rt_uint16_t item);
|
||||
void rtgui_theme_draw_radiobox(struct rtgui_radiobox* radiobox);
|
||||
void rtgui_theme_draw_slider(struct rtgui_slider* slider);
|
||||
void rtgui_theme_draw_scrollbar(struct rtgui_scrollbar* bar);
|
||||
void rtgui_theme_draw_progressbar(struct rtgui_progressbar* bar);
|
||||
void rtgui_theme_draw_staticline(struct rtgui_staticline* staticline);
|
||||
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
/*
|
||||
* File : scrollbar.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2010-08-09 Bernard first version
|
||||
*/
|
||||
#ifndef __RTGUI_SCROLLBAR_H__
|
||||
#define __RTGUI_SCROLLBAR_H__
|
||||
|
||||
@@ -48,8 +61,6 @@ struct rtgui_scrollbar
|
||||
/* position 1:1 width of scrollbar */
|
||||
rt_int16_t min_position, max_position;
|
||||
|
||||
rt_int16_t bar_width;
|
||||
|
||||
rt_bool_t (*on_scroll) (struct rtgui_widget* widget, struct rtgui_event* event);
|
||||
};
|
||||
typedef struct rtgui_scrollbar rtgui_scrollbar_t;
|
||||
@@ -59,6 +70,8 @@ rtgui_type_t *rtgui_scrollbar_type_get(void);
|
||||
struct rtgui_scrollbar* rtgui_scrollbar_create(int orient, rtgui_rect_t* r);
|
||||
void rtgui_scrollbar_destroy(struct rtgui_scrollbar* bar);
|
||||
|
||||
void rtgui_scrollbar_get_thumb_rect(rtgui_scrollbar_t *bar, rtgui_rect_t *rect);
|
||||
|
||||
void rtgui_scrollbar_set_range(struct rtgui_scrollbar* bar, int min, int max);
|
||||
rt_int16_t rtgui_scrollbar_get_value(struct rtgui_scrollbar* bar);
|
||||
void rtgui_scrollbar_set_value(struct rtgui_scrollbar* bar, rt_int16_t position);
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
/*
|
||||
* File : slider.h
|
||||
* This file is part of RT-Thread RTOS
|
||||
* COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rt-thread.org/license/LICENSE
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2009-10-16 Bernard first version
|
||||
*/
|
||||
#ifndef __RTGUI_SLIDER_H__
|
||||
#define __RTGUI_SLIDER_H__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user