| 11 | namespace MyGUI.Sharp |
| 12 | { |
| 13 | public class Button : |
| 14 | TextBox |
| 15 | { |
| 16 | #region Button |
| 17 | |
| 18 | protected override string GetWidgetType() { return "Button"; } |
| 19 | |
| 20 | internal static BaseWidget RequestWrapButton(BaseWidget _parent, IntPtr _widget) |
| 21 | { |
| 22 | Button widget = new Button(); |
| 23 | widget.WrapWidget(_parent, _widget); |
| 24 | return widget; |
| 25 | } |
| 26 | |
| 27 | internal static BaseWidget RequestCreateButton(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name) |
| 28 | { |
| 29 | Button widget = new Button(); |
| 30 | widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name); |
| 31 | return widget; |
| 32 | } |
| 33 | |
| 34 | #endregion |
| 35 | |
| 36 | |
| 37 | //InsertPoint |
| 38 | #region Method SetImageName |
| 39 | |
| 40 | [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] |
| 41 | private static extern void ExportButton_SetImageName__name(IntPtr _native, |
| 42 | [MarshalAs(UnmanagedType.LPStr)] string _name); |
| 43 | |
| 44 | public void SetImageName( |
| 45 | string _name) |
| 46 | { |
| 47 | ExportButton_SetImageName__name(Native, |
| 48 | _name); |
| 49 | } |
| 50 | |
| 51 | #endregion |
| 52 | #region Method SetImageGroup |
| 53 | |
| 54 | [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] |
| 55 | private static extern void ExportButton_SetImageGroup__name(IntPtr _native, |
| 56 | [MarshalAs(UnmanagedType.LPStr)] string _name); |
| 57 | |
| 58 | public void SetImageGroup( |
| 59 | string _name) |
| 60 | { |
| 61 | ExportButton_SetImageGroup__name(Native, |
| 62 | _name); |
| 63 | } |
| 64 | |
| 65 | #endregion |
| 66 | #region Method SetImageResource |
| 67 | |
| 68 | [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] |
| 69 | private static extern void ExportButton_SetImageResource__name(IntPtr _native, |
| 70 | [MarshalAs(UnmanagedType.LPStr)] string _name); |
no test coverage detected