3
@author Generate utility by Albert Semenov
9
using System.Runtime.InteropServices;
13
public class ProgressBar :
18
protected override string GetWidgetType() { return "ProgressBar"; }
20
internal static BaseWidget RequestWrapProgressBar(BaseWidget _parent, IntPtr _widget)
22
ProgressBar widget = new ProgressBar();
23
widget.WrapWidget(_parent, _widget);
27
internal static BaseWidget RequestCreateProgressBar(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
29
ProgressBar widget = new ProgressBar();
30
widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
38
#region Property FlowDirection
40
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
42
private static extern FlowDirection ExportProgressBar_GetFlowDirection(IntPtr _widget);
43
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
44
private static extern void ExportProgressBar_SetFlowDirection(IntPtr _widget, [MarshalAs(UnmanagedType.I4)] FlowDirection _value);
46
public FlowDirection FlowDirection
48
get { return ExportProgressBar_GetFlowDirection(Native); }
49
set { ExportProgressBar_SetFlowDirection(Native, value); }
53
#region Property ProgressAutoTrack
55
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
57
private static extern bool ExportProgressBar_GetProgressAutoTrack(IntPtr _widget);
58
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
59
private static extern void ExportProgressBar_SetProgressAutoTrack(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
61
public bool ProgressAutoTrack
63
get { return ExportProgressBar_GetProgressAutoTrack(Native); }
64
set { ExportProgressBar_SetProgressAutoTrack(Native, value); }
68
#region Property ProgressPosition
70
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
72
private static extern uint ExportProgressBar_GetProgressPosition(IntPtr _widget);
73
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
74
private static extern void ExportProgressBar_SetProgressPosition(IntPtr _widget, uint _value);
76
public uint ProgressPosition
78
get { return ExportProgressBar_GetProgressPosition(Native); }
79
set { ExportProgressBar_SetProgressPosition(Native, value); }
83
#region Property ProgressRange
85
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
87
private static extern uint ExportProgressBar_GetProgressRange(IntPtr _widget);
88
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
89
private static extern void ExportProgressBar_SetProgressRange(IntPtr _widget, uint _value);
91
public uint ProgressRange
93
get { return ExportProgressBar_GetProgressRange(Native); }
94
set { ExportProgressBar_SetProgressRange(Native, value); }