Blender
V2.93
intern
ghost
test
multitest
ScrollBar.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
20
typedef
struct
_ScrollBar
ScrollBar
;
21
22
/***/
23
24
ScrollBar
*
scrollbar_new
(
int
inset
,
int
minthumb
);
25
26
int
scrollbar_is_scrolling
(
ScrollBar
*sb);
27
int
scrollbar_contains_pt
(
ScrollBar
*sb,
int
pt[2]);
28
29
void
scrollbar_start_scrolling
(
ScrollBar
*sb,
int
yco);
30
void
scrollbar_keep_scrolling
(
ScrollBar
*sb,
int
yco);
31
void
scrollbar_stop_scrolling
(
ScrollBar
*sb);
32
33
void
scrollbar_set_thumbpct
(
ScrollBar
*sb,
float
pct);
34
void
scrollbar_set_thumbpos
(
ScrollBar
*sb,
float
pos
);
35
void
scrollbar_set_rect
(
ScrollBar
*sb,
int
rect
[2][2]);
36
37
float
scrollbar_get_thumbpct
(
ScrollBar
*sb);
38
float
scrollbar_get_thumbpos
(
ScrollBar
*sb);
39
void
scrollbar_get_rect
(
ScrollBar
*sb,
int
rect_r[2][2]);
40
41
void
scrollbar_get_thumb
(
ScrollBar
*sb,
int
thumb_r[2][2]);
42
43
void
scrollbar_free
(
ScrollBar
*sb);
scrollbar_keep_scrolling
void scrollbar_keep_scrolling(ScrollBar *sb, int yco)
Definition:
ScrollBar.c:110
scrollbar_start_scrolling
void scrollbar_start_scrolling(ScrollBar *sb, int yco)
Definition:
ScrollBar.c:96
scrollbar_is_scrolling
int scrollbar_is_scrolling(ScrollBar *sb)
Definition:
ScrollBar.c:87
scrollbar_new
ScrollBar * scrollbar_new(int inset, int minthumb)
Definition:
ScrollBar.c:66
scrollbar_get_thumbpos
float scrollbar_get_thumbpos(ScrollBar *sb)
Definition:
ScrollBar.c:139
scrollbar_get_rect
void scrollbar_get_rect(ScrollBar *sb, int rect_r[2][2])
Definition:
ScrollBar.c:143
scrollbar_get_thumb
void scrollbar_get_thumb(ScrollBar *sb, int thumb_r[2][2])
Definition:
ScrollBar.c:75
scrollbar_set_rect
void scrollbar_set_rect(ScrollBar *sb, int rect[2][2])
Definition:
ScrollBar.c:130
scrollbar_get_thumbpct
float scrollbar_get_thumbpct(ScrollBar *sb)
Definition:
ScrollBar.c:135
scrollbar_free
void scrollbar_free(ScrollBar *sb)
Definition:
ScrollBar.c:148
scrollbar_contains_pt
int scrollbar_contains_pt(ScrollBar *sb, int pt[2])
Definition:
ScrollBar.c:91
scrollbar_set_thumbpct
void scrollbar_set_thumbpct(ScrollBar *sb, float pct)
Definition:
ScrollBar.c:122
scrollbar_stop_scrolling
void scrollbar_stop_scrolling(ScrollBar *sb)
Definition:
ScrollBar.c:116
scrollbar_set_thumbpos
void scrollbar_set_thumbpos(ScrollBar *sb, float pos)
Definition:
ScrollBar.c:126
pos
uint pos
Definition:
gpu_batch_presets.c:56
_ScrollBar
Definition:
ScrollBar.c:29
_ScrollBar::inset
int inset
Definition:
ScrollBar.c:33
_ScrollBar::minthumb
int minthumb
Definition:
ScrollBar.c:34
_ScrollBar::rect
int rect[2][2]
Definition:
ScrollBar.c:30
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1