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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Sharp/Widgets/Generate/MyGUI.Sharp_Button.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
 
 
14
 
    public  class Button : TextBox
15
 
    {
16
 
 
17
 
        #region Button
18
 
 
19
 
        protected override string GetWidgetType() { return "Button"; }
20
 
 
21
 
        internal static BaseWidget RequestWrapButton(BaseWidget _parent, IntPtr _widget)
22
 
        {
23
 
                        Button widget = new Button();
24
 
                        widget.WrapWidget(_parent, _widget);
25
 
            return widget;
26
 
        }
27
 
 
28
 
        internal static BaseWidget RequestCreateButton(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
29
 
        {
30
 
                        Button widget = new Button();
31
 
                        widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
32
 
            return widget;
33
 
        }
34
 
        
35
 
                #endregion
36
 
        
37
 
                
38
 
                //InsertPoint
39
 
 
40
 
                #region Method SetImageName
41
 
 
42
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
43
 
                private static extern void ExportButton_SetImageName_name( IntPtr _native ,
44
 
                        [MarshalAs(UnmanagedType.LPStr)]  string _name );
45
 
 
46
 
                public void SetImageName(
47
 
                        string _name )
48
 
                {
49
 
                        ExportButton_SetImageName_name( mNative , 
50
 
                                 _name );
51
 
                }
52
 
 
53
 
                #endregion
54
 
 
55
 
 
56
 
 
57
 
                #region Method SetImageGroup
58
 
 
59
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
60
 
                private static extern void ExportButton_SetImageGroup_name( IntPtr _native ,
61
 
                        [MarshalAs(UnmanagedType.LPStr)]  string _name );
62
 
 
63
 
                public void SetImageGroup(
64
 
                        string _name )
65
 
                {
66
 
                        ExportButton_SetImageGroup_name( mNative , 
67
 
                                 _name );
68
 
                }
69
 
 
70
 
                #endregion
71
 
 
72
 
 
73
 
 
74
 
                #region Method SetImageResource
75
 
 
76
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
77
 
                private static extern void ExportButton_SetImageResource_name( IntPtr _native ,
78
 
                        [MarshalAs(UnmanagedType.LPStr)]  string _name );
79
 
 
80
 
                public void SetImageResource(
81
 
                        string _name )
82
 
                {
83
 
                        ExportButton_SetImageResource_name( mNative , 
84
 
                                 _name );
85
 
                }
86
 
 
87
 
                #endregion
88
 
 
89
 
 
90
 
 
91
 
                #region Property ModeImage
92
 
 
93
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
94
 
        [return: MarshalAs(UnmanagedType.U1)]
95
 
                private static extern bool ExportButton_GetModeImage( IntPtr _widget );
96
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
97
 
                private static extern void ExportButton_SetModeImage( IntPtr _widget, [MarshalAs(UnmanagedType.U1)]  bool _value );
98
 
 
99
 
                public bool ModeImage
100
 
                {
101
 
                        get { return  ExportButton_GetModeImage( mNative )  ; }
102
 
                        set { ExportButton_SetModeImage( mNative,  value ); }
103
 
                }
104
 
 
105
 
                #endregion
106
 
 
107
 
 
108
 
 
109
 
                #region Property StateSelected
110
 
 
111
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
112
 
        [return: MarshalAs(UnmanagedType.U1)]
113
 
                private static extern bool ExportButton_GetStateSelected( IntPtr _widget );
114
 
                [DllImport("MyGUI_Export", CallingConvention = CallingConvention.Cdecl)]
115
 
                private static extern void ExportButton_SetStateSelected( IntPtr _widget, [MarshalAs(UnmanagedType.U1)]  bool _value );
116
 
 
117
 
                public bool StateSelected
118
 
                {
119
 
                        get { return  ExportButton_GetStateSelected( mNative )  ; }
120
 
                        set { ExportButton_SetStateSelected( mNative,  value ); }
121
 
                }
122
 
 
123
 
                #endregion
124
 
 
125
 
 
126
 
 
127
 
   
128
 
 
129
 
 
130
 
   
131
 
 
132
 
 
133
 
   
134
 
 
135
 
                
136
 
    }
137
 
 
138
 
}