~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI_Sharp/Widgets/Generate/MyGUI_Sharp_ProgressBar.cs

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
        @file
 
3
        @author         Generate utility by Albert Semenov
 
4
        @date           01/2009
 
5
        @module
 
6
*/
 
7
 
 
8
using System;
 
9
using System.Runtime.InteropServices;
 
10
 
 
11
namespace MyGUI.Sharp
 
12
{
 
13
    public  class ProgressBar :
 
14
                Widget
 
15
    {
 
16
        #region ProgressBar
 
17
 
 
18
        protected override string GetWidgetType() { return "ProgressBar"; }
 
19
 
 
20
        internal static BaseWidget RequestWrapProgressBar(BaseWidget _parent, IntPtr _widget)
 
21
        {
 
22
                        ProgressBar widget = new ProgressBar();
 
23
                        widget.WrapWidget(_parent, _widget);
 
24
            return widget;
 
25
        }
 
26
 
 
27
        internal static BaseWidget RequestCreateProgressBar(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 
28
        {
 
29
                        ProgressBar widget = new ProgressBar();
 
30
                        widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
 
31
            return widget;
 
32
        }
 
33
        
 
34
                #endregion
 
35
        
 
36
                
 
37
                //InsertPoint
 
38
                #region Property FlowDirection
 
39
 
 
40
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
41
        
 
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);
 
45
 
 
46
                public FlowDirection FlowDirection
 
47
                {
 
48
                        get { return ExportProgressBar_GetFlowDirection(Native); }
 
49
                        set { ExportProgressBar_SetFlowDirection(Native, value); }
 
50
                }
 
51
 
 
52
                #endregion
 
53
                #region Property ProgressAutoTrack
 
54
 
 
55
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
56
        
 
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);
 
60
 
 
61
                public bool ProgressAutoTrack
 
62
                {
 
63
                        get { return ExportProgressBar_GetProgressAutoTrack(Native); }
 
64
                        set { ExportProgressBar_SetProgressAutoTrack(Native, value); }
 
65
                }
 
66
 
 
67
                #endregion
 
68
                #region Property ProgressPosition
 
69
 
 
70
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
71
        
 
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);
 
75
 
 
76
                public uint ProgressPosition
 
77
                {
 
78
                        get { return ExportProgressBar_GetProgressPosition(Native); }
 
79
                        set { ExportProgressBar_SetProgressPosition(Native, value); }
 
80
                }
 
81
 
 
82
                #endregion
 
83
                #region Property ProgressRange
 
84
 
 
85
                [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
 
86
        
 
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);
 
90
 
 
91
                public uint ProgressRange
 
92
                {
 
93
                        get { return ExportProgressBar_GetProgressRange(Native); }
 
94
                        set { ExportProgressBar_SetProgressRange(Native, value); }
 
95
                }
 
96
 
 
97
                #endregion
 
98
                
 
99
    }
 
100
}