1 /*$
2  Copyright (C) 2016-2020 Azel.
3 
4  This file is part of AzPainterB.
5 
6  AzPainterB is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  AzPainterB is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 $*/
19 
20 #ifndef MLIB_CONTAINERVIEW_H
21 #define MLIB_CONTAINERVIEW_H
22 
23 #include "mWidgetDef.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define M_CONTAINERVIEW(p)  ((mContainerView *)(p))
30 
31 typedef struct _mScrollBar mScrollBar;
32 
33 typedef struct
34 {
35 	mWidget *area;
36 	mScrollBar *scrv;
37 	uint32_t style;
38 }mContainerViewData;
39 
40 typedef struct _mContainerView
41 {
42 	mWidget wg;
43 	mContainerViewData cv;
44 }mContainerView;
45 
46 
47 enum MCONTAINERVIEW_STYLE
48 {
49 	MCONTAINERVIEW_S_FIX_SCROLL = 1<<0
50 };
51 
52 
53 mContainerView *mContainerViewNew(int size,mWidget *parent,uint32_t style);
54 void mContainerViewConstruct(mContainerView *p);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
61