Browse Source

more generator fixes

pull/1/head
Andreia Gaita 15 years ago
parent
commit
c993194021
  1. 31
      src/CPPInterop.sln
  2. 2
      src/Mono.VisualC.Code/Atoms/Namespace.cs
  3. 4
      src/Mono.VisualC.Code/Atoms/Union.cs
  4. 6
      src/Mono.VisualC.Code/CodeUnit.cs
  5. 170
      src/Mono.VisualC.Code/Mono.VisualC.Code.csproj
  6. 180
      src/Mono.VisualC.Interop/Mono.VisualC.Interop.csproj
  7. 177
      src/QtBindings/QtBindings.csproj
  8. 150
      src/QtTest/QtTest.csproj
  9. 174
      src/Tests/Tests.csproj
  10. 1464
      src/generator/Main.cs
  11. 169
      src/generator/generator.csproj
  12. 37
      tests/output/Enums.cs
  13. 173
      tests/output/QAbstractButton.cs
  14. 173
      tests/output/QAbstractButton1.cs
  15. 173
      tests/output/QAbstractButton2.cs
  16. 34
      tests/output/QBool.cs
  17. 238
      tests/output/QCalendarWidget.cs
  18. 238
      tests/output/QCalendarWidget1.cs
  19. 238
      tests/output/QCalendarWidget2.cs
  20. 59
      tests/output/QCheckBox.cs
  21. 59
      tests/output/QCheckBox1.cs
  22. 59
      tests/output/QCheckBox2.cs
  23. 115
      tests/output/QColorDialog.cs
  24. 115
      tests/output/QColorDialog1.cs
  25. 115
      tests/output/QColorDialog2.cs
  26. 34
      tests/output/QFlag.cs
  27. 51
      tests/output/QFlags.cs
  28. 106
      tests/output/QFrame.cs
  29. 106
      tests/output/QFrame1.cs
  30. 106
      tests/output/QFrame2.cs
  31. 55
      tests/output/QGraphicsBlurEffect.cs
  32. 55
      tests/output/QGraphicsBlurEffect1.cs
  33. 55
      tests/output/QGraphicsBlurEffect2.cs
  34. 34
      tests/output/QIncompatibleFlag.cs
  35. 53
      tests/output/QInternal.cs
  36. 55
      tests/output/QItemDelegate.cs
  37. 55
      tests/output/QItemDelegate1.cs
  38. 55
      tests/output/QItemDelegate2.cs
  39. 329
      tests/output/QPixmap.cs
  40. 329
      tests/output/QPixmap1.cs
  41. 329
      tests/output/QPixmap2.cs
  42. 368
      tests/output/QPrinter.cs
  43. 368
      tests/output/QPrinter1.cs
  44. 368
      tests/output/QPrinter2.cs
  45. 86
      tests/output/QProcessEnvironment.cs
  46. 86
      tests/output/QProcessEnvironment1.cs
  47. 86
      tests/output/QProcessEnvironment2.cs
  48. 33
      tests/output/QSysInfo.cs
  49. 43
      tests/output/QTextBlockFormat.cs
  50. 43
      tests/output/QTextBlockFormat1.cs
  51. 43
      tests/output/QTextBlockFormat2.cs
  52. 270
      tests/output/QTextStream.cs
  53. 270
      tests/output/QTextStream1.cs
  54. 270
      tests/output/QTextStream2.cs
  55. 35
      tests/output/QTypeInfo.cs
  56. 2
      tests/qttests/Main.cs
  57. BIN
      tests/qttests/bin/Debug/Mono.VisualC.Code.dll
  58. BIN
      tests/qttests/bin/Debug/Mono.VisualC.Interop.dll
  59. 105
      tests/qttests/qttests.csproj
  60. BIN
      tests/qttests/qttests.pidb

31
src/CPPInterop.sln

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.VisualC.Interop", "Mono.VisualC.Interop\Mono.VisualC.Interop.csproj", "{4A864586-93C5-4DC1-8A80-F094A88506D7}"
EndProject
Project("{2857B73E-F847-4B02-9238-064979017E93}") = "CPPTestLib", "CPPTestLib\CPPTestLib.cproj", "{B01E6282-144E-481A-8E1F-95F708DFBC2D}"
@ -15,26 +15,29 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.VisualC.Code", "Mono.V @@ -15,26 +15,29 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.VisualC.Code", "Mono.V
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "generator", "generator\generator.csproj", "{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "qttests", "..\tests\qttests\qttests.csproj", "{8DBA7E4A-7736-499A-85AC-0524535B880A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Release|Any CPU.Build.0 = Release|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Release|Any CPU.Build.0 = Release|Any CPU
{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}.Release|Any CPU.Build.0 = Release|Any CPU
{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}.Release|Any CPU.Build.0 = Release|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A864586-93C5-4DC1-8A80-F094A88506D7}.Release|Any CPU.Build.0 = Release|Any CPU
{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}.Release|Any CPU.Build.0 = Release|Any CPU
{A22BF9D9-BBCB-4462-BE08-0F4D5280B180}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@ -45,10 +48,12 @@ Global @@ -45,10 +48,12 @@ Global
{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}.Release|Any CPU.Build.0 = Release|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B01E6282-144E-481A-8E1F-95F708DFBC2D}.Release|Any CPU.Build.0 = Release|Any CPU
{8DBA7E4A-7736-499A-85AC-0524535B880A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8DBA7E4A-7736-499A-85AC-0524535B880A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8DBA7E4A-7736-499A-85AC-0524535B880A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = QtTest\QtTest.csproj

2
src/Mono.VisualC.Code/Atoms/Namespace.cs

@ -29,6 +29,8 @@ namespace Mono.VisualC.Code.Atoms { @@ -29,6 +29,8 @@ namespace Mono.VisualC.Code.Atoms {
private void CreateNamespace (CodeCompileUnit ccu, string name)
{
CodeNamespace ns = new CodeNamespace (name);
ns.Imports.Add (new CodeNamespaceImport ("System"));
ns.Imports.Add (new CodeNamespaceImport ("System.Runtime.InteropServices"));
ns.Imports.Add (new CodeNamespaceImport ("Mono.VisualC.Interop"));
ns.UserData ["CodeCompileUnit"] = ccu;

4
src/Mono.VisualC.Code/Atoms/Union.cs

@ -20,8 +20,8 @@ namespace Mono.VisualC.Code.Atoms { @@ -20,8 +20,8 @@ namespace Mono.VisualC.Code.Atoms {
TypeAttributes = TypeAttributes.Public,
IsStruct = true
};
var explicitLayout = new CodeAttributeArgument (new CodeFieldReferenceExpression (new CodeTypeReferenceExpression (typeof (LayoutKind)), "Explicit"));
union.CustomAttributes.Add (new CodeAttributeDeclaration (new CodeTypeReference (typeof (StructLayoutAttribute)), explicitLayout));
// var explicitLayout = new CodeAttributeArgument (new CodeFieldReferenceExpression (new CodeTypeReferenceExpression (typeof (short)), (short)LayoutKind.Explicit));
union.CustomAttributes.Add (new CodeAttributeDeclaration (new CodeTypeReference (typeof (StructLayoutAttribute)), new CodeAttributeArgument (new CodePrimitiveExpression ((short)LayoutKind.Explicit))));
foreach (var atom in Atoms) {
Field field = atom as Field;

6
src/Mono.VisualC.Code/CodeUnit.cs

@ -29,8 +29,10 @@ namespace Mono.VisualC.Code { @@ -29,8 +29,10 @@ namespace Mono.VisualC.Code {
internal protected override object InsideCodeCompileUnit (CodeCompileUnit ccu)
{
CodeNamespace ns = new CodeNamespace (ManagedNamespace);
ns.Imports.Add (new CodeNamespaceImport ("Mono.VisualC.Interop"));
CodeNamespace ns = new CodeNamespace (ManagedNamespace);
ns.Imports.Add (new CodeNamespaceImport ("System"));
ns.Imports.Add (new CodeNamespaceImport ("System.Runtime.InteropServices"));
ns.Imports.Add (new CodeNamespaceImport ("Mono.VisualC.Interop"));
ns.UserData ["CodeCompileUnit"] = ccu;

170
src/Mono.VisualC.Code/Mono.VisualC.Code.csproj

@ -1,67 +1,105 @@ @@ -1,67 +1,105 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A22BF9D9-BBCB-4462-BE08-0F4D5280B180}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>Mono.VisualC.Code</AssemblyName>
<RootNamespace>Mono.VisualC.Code</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="CodeAtom.cs" />
<Compile Include="Atoms\Preprocessor.cs" />
<Compile Include="CodeContainer.cs" />
<Compile Include="Atoms\Class.cs" />
<Compile Include="CodeUnit.cs" />
<Compile Include="Access.cs" />
<Compile Include="Atoms\Method.cs" />
<Compile Include="Atoms\Enumeration.cs" />
<Compile Include="CodeDomExtensions.cs" />
<Compile Include="Atoms\Property.cs" />
<Compile Include="Atoms\Field.cs" />
<Compile Include="Atoms\Union.cs" />
<Compile Include="NameTypePair.cs" />
<Compile Include="Atoms\Namespace.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Folder Include="Atoms\" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{A22BF9D9-BBCB-4462-BE08-0F4D5280B180}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>Mono.VisualC.Code</AssemblyName>
<RootNamespace>Mono.VisualC.Code</RootNamespace>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/Mono.VisualC.Code/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="CodeAtom.cs" />
<Compile Include="Atoms\Preprocessor.cs" />
<Compile Include="CodeContainer.cs" />
<Compile Include="Atoms\Class.cs" />
<Compile Include="CodeUnit.cs" />
<Compile Include="Access.cs" />
<Compile Include="Atoms\Method.cs" />
<Compile Include="Atoms\Enumeration.cs" />
<Compile Include="CodeDomExtensions.cs" />
<Compile Include="Atoms\Property.cs" />
<Compile Include="Atoms\Field.cs" />
<Compile Include="Atoms\Union.cs" />
<Compile Include="NameTypePair.cs" />
<Compile Include="Atoms\Namespace.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
</Project>

180
src/Mono.VisualC.Interop/Mono.VisualC.Interop.csproj

@ -1,73 +1,109 @@ @@ -1,73 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<ProjectGuid>{4A864586-93C5-4DC1-8A80-F094A88506D7}</ProjectGuid>
<OutputType>Library</OutputType>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace>Mono.VisualC.Interop</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AssemblyName>Mono.VisualC.Interop</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AssemblyName>CPPInterop</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="CppLibrary.cs" />
<Compile Include="AssemblyInfo.cs" />
<Compile Include="ABI\CppAbi.cs" />
<Compile Include="Interfaces.cs" />
<Compile Include="ABI\VTableManaged.cs" />
<Compile Include="Attributes.cs" />
<Compile Include="CppInstancePtr.cs" />
<Compile Include="CppField.cs" />
<Compile Include="ABI\VTable.cs" />
<Compile Include="ABI\MethodType.cs" />
<Compile Include="ABI\Impl\ItaniumAbi.cs" />
<Compile Include="ABI\Impl\VirtualOnlyAbi.cs" />
<Compile Include="ABI\Impl\MsvcAbi.cs" />
<Compile Include="CppObjectMarshaler.cs" />
<Compile Include="CppType.cs" />
<Compile Include="CppTypeInfo.cs" />
<Compile Include="ABI\Impl\ItaniumTypeInfo.cs" />
<Compile Include="Util\IEnumerableTransform.cs" />
<Compile Include="Util\LazyGeneratedList.cs" />
<Compile Include="Util\DelegateTypeCache.cs" />
<Compile Include="Util\ReflectionHelper.cs" />
<Compile Include="ABI\Impl\MsvcTypeInfo.cs" />
<Compile Include="Util\MethodSignature.cs" />
<Compile Include="CppModifiers.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Folder Include="ABI\" />
<Folder Include="ABI\Impl\" />
<Folder Include="Util\" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<ProjectGuid>{4A864586-93C5-4DC1-8A80-F094A88506D7}</ProjectGuid>
<OutputType>Library</OutputType>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace>Mono.VisualC.Interop</RootNamespace>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/Mono.VisualC.Interop/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AssemblyName>Mono.VisualC.Interop</AssemblyName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AssemblyName>CPPInterop</AssemblyName>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="CppLibrary.cs" />
<Compile Include="AssemblyInfo.cs" />
<Compile Include="ABI\CppAbi.cs" />
<Compile Include="Interfaces.cs" />
<Compile Include="ABI\VTableManaged.cs" />
<Compile Include="Attributes.cs" />
<Compile Include="CppInstancePtr.cs" />
<Compile Include="CppField.cs" />
<Compile Include="ABI\VTable.cs" />
<Compile Include="ABI\MethodType.cs" />
<Compile Include="ABI\Impl\ItaniumAbi.cs" />
<Compile Include="ABI\Impl\VirtualOnlyAbi.cs" />
<Compile Include="ABI\Impl\MsvcAbi.cs" />
<Compile Include="CppObjectMarshaler.cs" />
<Compile Include="CppType.cs" />
<Compile Include="CppTypeInfo.cs" />
<Compile Include="ABI\Impl\ItaniumTypeInfo.cs" />
<Compile Include="Util\IEnumerableTransform.cs" />
<Compile Include="Util\LazyGeneratedList.cs" />
<Compile Include="Util\DelegateTypeCache.cs" />
<Compile Include="Util\ReflectionHelper.cs" />
<Compile Include="ABI\Impl\MsvcTypeInfo.cs" />
<Compile Include="Util\MethodSignature.cs" />
<Compile Include="CppModifiers.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
</Project>

177
src/QtBindings/QtBindings.csproj

@ -1,71 +1,108 @@ @@ -1,71 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Qt</RootNamespace>
<AssemblyName>QtBindings</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Libs.cs" />
<Compile Include="Gui\QApplication.cs" />
<Compile Include="Core\QGlobal.cs" />
<Compile Include="Core\QCoreApplication.cs" />
<Compile Include="Core\QObject.cs" />
<Compile Include="Gui\QPushButton.cs" />
<Compile Include="Gui\QPaintDevice.cs" />
<Compile Include="Gui\QWidget.cs" />
<Compile Include="Gui\QAbstractButton.cs" />
<Compile Include="Core\QString.cs" />
<Compile Include="Core\QSize.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="QtBindings.dll.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Gui\" />
<Folder Include="Core\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Qt</RootNamespace>
<AssemblyName>QtBindings</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/QtBindings/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Libs.cs" />
<Compile Include="Gui\QApplication.cs" />
<Compile Include="Core\QGlobal.cs" />
<Compile Include="Core\QCoreApplication.cs" />
<Compile Include="Core\QObject.cs" />
<Compile Include="Gui\QPushButton.cs" />
<Compile Include="Gui\QPaintDevice.cs" />
<Compile Include="Gui\QWidget.cs" />
<Compile Include="Gui\QAbstractButton.cs" />
<Compile Include="Core\QString.cs" />
<Compile Include="Core\QSize.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="QtBindings.dll.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
</Project>

150
src/QtTest/QtTest.csproj

@ -1,54 +1,98 @@ @@ -1,54 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>QtTest</RootNamespace>
<AssemblyName>QtTest</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\QtBindings\QtBindings.csproj">
<Project>{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}</Project>
<Name>QtBindings</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3EE6B50E-58FB-4391-AF01-3FCB1A29B0D7}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>QtTest</RootNamespace>
<AssemblyName>QtTest</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/QtTest/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\QtBindings\QtBindings.csproj">
<Project>{66212CA6-B8C2-4307-ADDE-DAFEAAB339B9}</Project>
<Name>QtBindings</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
</Project>

174
src/Tests/Tests.csproj

@ -1,69 +1,107 @@ @@ -1,69 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Tests</RootNamespace>
<AssemblyName>Tests</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CustomCommands>
<CustomCommands>
<Command type="AfterBuild" command="bash -c &quot;if [ `uname` = Darwin ]; then cp CPPTestLib/bin/Debug/libCPPTestLib.dylib ${TargetDir}; fi&quot;" workingdir="${SolutionDir}" />
</CustomCommands>
</CustomCommands>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
<Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
</ItemGroup>
<ItemGroup>
<Compile Include="CppInstancePtrTests.cs" />
<Compile Include="Support\CSimpleClass.cs" />
<Compile Include="CppLibraryTests.cs" />
<Compile Include="ItaniumAbiTests.cs" />
<Compile Include="MsvcAbiTests.cs" />
<Compile Include="Support\CppMockObject.cs" />
<Compile Include="Support\CppNUnitAsserts.cs" />
<Compile Include="SharedAbiTests.cs" />
<Compile Include="Support\VirtualMethodTestClass.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\CPPTestLib\CPPTestLib.cproj">
<Project>{B01E6282-144E-481A-8E1F-95F708DFBC2D}</Project>
<Name>CPPTestLib</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Support\" />
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Tests</RootNamespace>
<AssemblyName>Tests</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/Tests/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CustomCommands>
<CustomCommands>
<Command type="AfterBuild" command="bash -c &quot;if [ `uname` = Darwin ]; then cp CPPTestLib/bin/Debug/libCPPTestLib.dylib ${TargetDir}; fi&quot;" workingdir="${SolutionDir}" />
</CustomCommands>
</CustomCommands>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="nunit.core, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
<Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" />
</ItemGroup>
<ItemGroup>
<Compile Include="CppInstancePtrTests.cs" />
<Compile Include="Support\CSimpleClass.cs" />
<Compile Include="CppLibraryTests.cs" />
<Compile Include="ItaniumAbiTests.cs" />
<Compile Include="MsvcAbiTests.cs" />
<Compile Include="Support\CppMockObject.cs" />
<Compile Include="Support\CppNUnitAsserts.cs" />
<Compile Include="SharedAbiTests.cs" />
<Compile Include="Support\VirtualMethodTestClass.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\CPPTestLib\CPPTestLib.cproj">
<Project>{B01E6282-144E-481A-8E1F-95F708DFBC2D}</Project>
<Name>CPPTestLib</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
</Project>

1464
src/generator/Main.cs

File diff suppressed because it is too large Load Diff

169
src/generator/generator.csproj

@ -1,61 +1,110 @@ @@ -1,61 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>generator</RootNamespace>
<AssemblyName>generator</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Commandlineparameters>--testabi -f=/Users/Alex/OpenSource/gccxml/gccxml-build/bin/qapplication.xml -o=. --ns=Foo --lib=LibFoo</Commandlineparameters>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="Options.cs" />
<Compile Include="MethodSignature.cs" />
<Compile Include="Postfixes.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System">
</Reference>
<Reference Include="System.Xml">
</Reference>
<Reference Include="System.Xml.Linq">
</Reference>
<Reference Include="System.Core" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Code\Mono.VisualC.Code.csproj">
<Project>{A22BF9D9-BBCB-4462-BE08-0F4D5280B180}</Project>
<Name>Mono.VisualC.Code</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>generator</RootNamespace>
<AssemblyName>generator</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>2.0</OldToolsVersion>
<PublishUrl>http://localhost/generator/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Commandlineparameters>--testabi -f=/Users/Alex/OpenSource/gccxml/gccxml-build/bin/qapplication.xml -o=. --ns=Foo --lib=LibFoo</Commandlineparameters>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="Options.cs" />
<Compile Include="MethodSignature.cs" />
<Compile Include="Postfixes.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System">
</Reference>
<Reference Include="System.Xml">
</Reference>
<Reference Include="System.Xml.Linq">
</Reference>
<Reference Include="System.Core" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
<Properties InternalTargetFrameworkVersion="3.5" />
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\Mono.VisualC.Code\Mono.VisualC.Code.csproj">
<Project>{A22BF9D9-BBCB-4462-BE08-0F4D5280B180}</Project>
<Name>Mono.VisualC.Code</Name>
</ProjectReference>
<ProjectReference Include="..\Mono.VisualC.Interop\Mono.VisualC.Interop.csproj">
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project>
<Name>Mono.VisualC.Interop</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<Content Include="QtGui.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

37
tests/output/Enums.cs

@ -1,37 +0,0 @@ @@ -1,37 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public enum Callback {
ConnectCallback = 0,
DisconnectCallback = 1,
AdoptCurrentThread = 2,
EventNotifyCallback = 3,
LastCallback = 4,
}
public enum InternalFunction {
CreateThreadForAdoption = 0,
RefAdoptedThread = 1,
DerefAdoptedThread = 2,
SetCurrentThreadToMainThread = 3,
SetQObjectSender = 4,
GetQObjectSender = 5,
ResetQObjectSender = 6,
LastInternalFunction = 7,
}
public enum GestureFlag {
DontStartGestureOnChildren = 1,
ReceivePartialGestures = 2,
}
}

173
tests/output/QAbstractButton.cs

@ -1,173 +0,0 @@ @@ -1,173 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QAbstractButton : QWidget {
private static IQAbstractButton impl = Wrappers.Libs.Lib.GetClass <IQAbstractButton, _QAbstractButton, QAbstractButton>("QAbstractButton");
public QAbstractButton(QWidget parent) {
impl.QAbstractButton(this.Native, parent);
}
public QString Text {
get {
return impl.text(this.Native);
}
set {
impl.setText(this.Native, value);
}
}
public QIcon Icon {
get {
return impl.icon(this.Native);
}
set {
impl.setIcon(this.Native, value);
}
}
public QSize IconSize {
get {
return impl.iconSize(this.Native);
}
set {
impl.setIconSize(this.Native, value);
}
}
public QKeySequence Shortcut {
get {
return impl.shortcut(this.Native);
}
set {
impl.setShortcut(this.Native, value);
}
}
public bool IsCheckable {
get {
return impl.isCheckable(this.Native);
}
}
public bool IsChecked {
get {
return impl.isChecked(this.Native);
}
}
public bool IsDown {
get {
return impl.isDown(this.Native);
}
}
public bool AutoRepeat {
get {
return impl.autoRepeat(this.Native);
}
set {
impl.setAutoRepeat(this.Native, value);
}
}
public int AutoRepeatDelay {
get {
return impl.autoRepeatDelay(this.Native);
}
set {
impl.setAutoRepeatDelay(this.Native, value);
}
}
public int AutoRepeatInterval {
get {
return impl.autoRepeatInterval(this.Native);
}
set {
impl.setAutoRepeatInterval(this.Native, value);
}
}
public bool AutoExclusive {
get {
return impl.autoExclusive(this.Native);
}
set {
impl.setAutoExclusive(this.Native, value);
}
}
public QButtonGroup Group {
get {
return impl.group(this.Native);
}
}
public override void Dispose() {
}
public void SetCheckable(bool arg0) {
impl.setCheckable(this.Native, arg0);
}
public void SetDown(bool arg0) {
impl.setDown(this.Native, arg0);
}
public void AnimateClick(int msec) {
impl.animateClick(this.Native, msec);
}
public void Click() {
impl.click(this.Native);
}
public void Toggle() {
impl.toggle(this.Native);
}
public void SetChecked(bool arg0) {
impl.setChecked(this.Native, arg0);
}
public interface IQAbstractButton : ICppClassOverridable<QAbstractButton> {
[Constructor()]
void QAbstractButton(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QString text(CppInstancePtr @this);
void setText(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QIcon icon(CppInstancePtr @this);
void setIcon(CppInstancePtr @this, [MangleAs("class QIcon const &")] QIcon value);
[Const()]
QSize iconSize(CppInstancePtr @this);
void setIconSize(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize value);
[Const()]
QKeySequence shortcut(CppInstancePtr @this);
void setShortcut(CppInstancePtr @this, [MangleAs("class QKeySequence const &")] QKeySequence value);
void setCheckable(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isCheckable(CppInstancePtr @this);
[Const()]
bool isChecked(CppInstancePtr @this);
void setDown(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isDown(CppInstancePtr @this);
[Const()]
bool autoRepeat(CppInstancePtr @this);
void setAutoRepeat(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int autoRepeatDelay(CppInstancePtr @this);
void setAutoRepeatDelay(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int autoRepeatInterval(CppInstancePtr @this);
void setAutoRepeatInterval(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
bool autoExclusive(CppInstancePtr @this);
void setAutoExclusive(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QButtonGroup group(CppInstancePtr @this);
void animateClick(CppInstancePtr @this, [MangleAs("int")] int msec);
void click(CppInstancePtr @this);
void toggle(CppInstancePtr @this);
void setChecked(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
}
private struct _QAbstractButton {
}
}
}

173
tests/output/QAbstractButton1.cs

@ -1,173 +0,0 @@ @@ -1,173 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QAbstractButton : QWidget {
private static IQAbstractButton impl = Wrappers.Libs.Lib.GetClass <IQAbstractButton, _QAbstractButton, QAbstractButton>("QAbstractButton");
public QAbstractButton(QWidget parent) {
impl.QAbstractButton(this.Native, parent);
}
public QString Text {
get {
return impl.text(this.Native);
}
set {
impl.setText(this.Native, value);
}
}
public QIcon Icon {
get {
return impl.icon(this.Native);
}
set {
impl.setIcon(this.Native, value);
}
}
public QSize IconSize {
get {
return impl.iconSize(this.Native);
}
set {
impl.setIconSize(this.Native, value);
}
}
public QKeySequence Shortcut {
get {
return impl.shortcut(this.Native);
}
set {
impl.setShortcut(this.Native, value);
}
}
public bool IsCheckable {
get {
return impl.isCheckable(this.Native);
}
}
public bool IsChecked {
get {
return impl.isChecked(this.Native);
}
}
public bool IsDown {
get {
return impl.isDown(this.Native);
}
}
public bool AutoRepeat {
get {
return impl.autoRepeat(this.Native);
}
set {
impl.setAutoRepeat(this.Native, value);
}
}
public int AutoRepeatDelay {
get {
return impl.autoRepeatDelay(this.Native);
}
set {
impl.setAutoRepeatDelay(this.Native, value);
}
}
public int AutoRepeatInterval {
get {
return impl.autoRepeatInterval(this.Native);
}
set {
impl.setAutoRepeatInterval(this.Native, value);
}
}
public bool AutoExclusive {
get {
return impl.autoExclusive(this.Native);
}
set {
impl.setAutoExclusive(this.Native, value);
}
}
public QButtonGroup Group {
get {
return impl.group(this.Native);
}
}
public override void Dispose() {
}
public void SetCheckable(bool arg0) {
impl.setCheckable(this.Native, arg0);
}
public void SetDown(bool arg0) {
impl.setDown(this.Native, arg0);
}
public void AnimateClick(int msec) {
impl.animateClick(this.Native, msec);
}
public void Click() {
impl.click(this.Native);
}
public void Toggle() {
impl.toggle(this.Native);
}
public void SetChecked(bool arg0) {
impl.setChecked(this.Native, arg0);
}
public interface IQAbstractButton : ICppClassOverridable<QAbstractButton> {
[Constructor()]
void QAbstractButton(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QString text(CppInstancePtr @this);
void setText(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QIcon icon(CppInstancePtr @this);
void setIcon(CppInstancePtr @this, [MangleAs("class QIcon const &")] QIcon value);
[Const()]
QSize iconSize(CppInstancePtr @this);
void setIconSize(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize value);
[Const()]
QKeySequence shortcut(CppInstancePtr @this);
void setShortcut(CppInstancePtr @this, [MangleAs("class QKeySequence const &")] QKeySequence value);
void setCheckable(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isCheckable(CppInstancePtr @this);
[Const()]
bool isChecked(CppInstancePtr @this);
void setDown(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isDown(CppInstancePtr @this);
[Const()]
bool autoRepeat(CppInstancePtr @this);
void setAutoRepeat(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int autoRepeatDelay(CppInstancePtr @this);
void setAutoRepeatDelay(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int autoRepeatInterval(CppInstancePtr @this);
void setAutoRepeatInterval(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
bool autoExclusive(CppInstancePtr @this);
void setAutoExclusive(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QButtonGroup group(CppInstancePtr @this);
void animateClick(CppInstancePtr @this, [MangleAs("int")] int msec);
void click(CppInstancePtr @this);
void toggle(CppInstancePtr @this);
void setChecked(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
}
private struct _QAbstractButton {
}
}
}

173
tests/output/QAbstractButton2.cs

@ -1,173 +0,0 @@ @@ -1,173 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QAbstractButton : QWidget {
private static IQAbstractButton impl = Wrappers.Libs.Lib.GetClass <IQAbstractButton, _QAbstractButton, QAbstractButton>("QAbstractButton");
public QAbstractButton(QWidget parent) {
impl.QAbstractButton(this.Native, parent);
}
public QString Text {
get {
return impl.text(this.Native);
}
set {
impl.setText(this.Native, value);
}
}
public QIcon Icon {
get {
return impl.icon(this.Native);
}
set {
impl.setIcon(this.Native, value);
}
}
public QSize IconSize {
get {
return impl.iconSize(this.Native);
}
set {
impl.setIconSize(this.Native, value);
}
}
public QKeySequence Shortcut {
get {
return impl.shortcut(this.Native);
}
set {
impl.setShortcut(this.Native, value);
}
}
public bool IsCheckable {
get {
return impl.isCheckable(this.Native);
}
}
public bool IsChecked {
get {
return impl.isChecked(this.Native);
}
}
public bool IsDown {
get {
return impl.isDown(this.Native);
}
}
public bool AutoRepeat {
get {
return impl.autoRepeat(this.Native);
}
set {
impl.setAutoRepeat(this.Native, value);
}
}
public int AutoRepeatDelay {
get {
return impl.autoRepeatDelay(this.Native);
}
set {
impl.setAutoRepeatDelay(this.Native, value);
}
}
public int AutoRepeatInterval {
get {
return impl.autoRepeatInterval(this.Native);
}
set {
impl.setAutoRepeatInterval(this.Native, value);
}
}
public bool AutoExclusive {
get {
return impl.autoExclusive(this.Native);
}
set {
impl.setAutoExclusive(this.Native, value);
}
}
public QButtonGroup Group {
get {
return impl.group(this.Native);
}
}
public override void Dispose() {
}
public void SetCheckable(bool arg0) {
impl.setCheckable(this.Native, arg0);
}
public void SetDown(bool arg0) {
impl.setDown(this.Native, arg0);
}
public void AnimateClick(int msec) {
impl.animateClick(this.Native, msec);
}
public void Click() {
impl.click(this.Native);
}
public void Toggle() {
impl.toggle(this.Native);
}
public void SetChecked(bool arg0) {
impl.setChecked(this.Native, arg0);
}
public interface IQAbstractButton : ICppClassOverridable<QAbstractButton> {
[Constructor()]
void QAbstractButton(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QString text(CppInstancePtr @this);
void setText(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QIcon icon(CppInstancePtr @this);
void setIcon(CppInstancePtr @this, [MangleAs("class QIcon const &")] QIcon value);
[Const()]
QSize iconSize(CppInstancePtr @this);
void setIconSize(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize value);
[Const()]
QKeySequence shortcut(CppInstancePtr @this);
void setShortcut(CppInstancePtr @this, [MangleAs("class QKeySequence const &")] QKeySequence value);
void setCheckable(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isCheckable(CppInstancePtr @this);
[Const()]
bool isChecked(CppInstancePtr @this);
void setDown(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
[Const()]
bool isDown(CppInstancePtr @this);
[Const()]
bool autoRepeat(CppInstancePtr @this);
void setAutoRepeat(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int autoRepeatDelay(CppInstancePtr @this);
void setAutoRepeatDelay(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int autoRepeatInterval(CppInstancePtr @this);
void setAutoRepeatInterval(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
bool autoExclusive(CppInstancePtr @this);
void setAutoExclusive(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QButtonGroup group(CppInstancePtr @this);
void animateClick(CppInstancePtr @this, [MangleAs("int")] int msec);
void click(CppInstancePtr @this);
void toggle(CppInstancePtr @this);
void setChecked(CppInstancePtr @this, [MangleAs("bool")] bool arg0);
}
private struct _QAbstractButton {
}
}
}

34
tests/output/QBool.cs

@ -1,34 +0,0 @@ @@ -1,34 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QBool : ICppObject {
protected CppInstancePtr native_ptr;
private static IQBool impl = Wrappers.Libs.Lib.GetClass <IQBool, _QBool, QBool>("QBool");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQBool : ICppClassOverridable<QBool> {
}
private struct _QBool {
private bool b;
}
}
}

238
tests/output/QCalendarWidget.cs

@ -1,238 +0,0 @@ @@ -1,238 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCalendarWidget : QWidget {
private static IQCalendarWidget impl = Wrappers.Libs.Lib.GetClass <IQCalendarWidget, _QCalendarWidget, QCalendarWidget>("QCalendarWidget");
public QCalendarWidget(QWidget parent) {
impl.QCalendarWidget(this.Native, parent);
}
public QDate SelectedDate {
get {
return impl.selectedDate(this.Native);
}
set {
impl.setSelectedDate(this.Native, value);
}
}
public int YearShown {
get {
return impl.yearShown(this.Native);
}
}
public int MonthShown {
get {
return impl.monthShown(this.Native);
}
}
public QDate MinimumDate {
get {
return impl.minimumDate(this.Native);
}
set {
impl.setMinimumDate(this.Native, value);
}
}
public QDate MaximumDate {
get {
return impl.maximumDate(this.Native);
}
set {
impl.setMaximumDate(this.Native, value);
}
}
public DayOfWeek FirstDayOfWeek {
get {
return impl.firstDayOfWeek(this.Native);
}
set {
impl.setFirstDayOfWeek(this.Native, value);
}
}
public bool IsHeaderVisible {
get {
return impl.isHeaderVisible(this.Native);
}
}
public bool IsGridVisible {
get {
return impl.isGridVisible(this.Native);
}
}
public SelectionMode SelectionMode {
get {
return impl.selectionMode(this.Native);
}
set {
impl.setSelectionMode(this.Native, value);
}
}
public HorizontalHeaderFormat HorizontalHeaderFormat {
get {
return impl.horizontalHeaderFormat(this.Native);
}
set {
impl.setHorizontalHeaderFormat(this.Native, value);
}
}
public VerticalHeaderFormat VerticalHeaderFormat {
get {
return impl.verticalHeaderFormat(this.Native);
}
set {
impl.setVerticalHeaderFormat(this.Native, value);
}
}
public QTextCharFormat HeaderTextFormat {
get {
return impl.headerTextFormat(this.Native);
}
set {
impl.setHeaderTextFormat(this.Native, value);
}
}
public bool IsDateEditEnabled {
get {
return impl.isDateEditEnabled(this.Native);
}
}
public int DateEditAcceptDelay {
get {
return impl.dateEditAcceptDelay(this.Native);
}
set {
impl.setDateEditAcceptDelay(this.Native, value);
}
}
public override void Dispose() {
}
public void SetHeaderVisible(bool show) {
impl.setHeaderVisible(this.Native, show);
}
public QTextCharFormat WeekdayTextFormat(DayOfWeek dayOfWeek) {
return impl.weekdayTextFormat(this.Native, dayOfWeek);
}
public void SetWeekdayTextFormat(DayOfWeek dayOfWeek, QTextCharFormat format) {
impl.setWeekdayTextFormat(this.Native, dayOfWeek, format);
}
public QMap<QDate, QTextCharFormat> DateTextFormat() {
return impl.dateTextFormat(this.Native);
}
public QTextCharFormat DateTextFormat(QDate date) {
return impl.dateTextFormat(this.Native, date);
}
public void SetDateTextFormat(QDate date, QTextCharFormat format) {
impl.setDateTextFormat(this.Native, date, format);
}
public void SetDateEditEnabled(bool enable) {
impl.setDateEditEnabled(this.Native, enable);
}
public void SetDateRange(QDate min, QDate max) {
impl.setDateRange(this.Native, min, max);
}
public void SetCurrentPage(int year, int month) {
impl.setCurrentPage(this.Native, year, month);
}
public void SetGridVisible(bool show) {
impl.setGridVisible(this.Native, show);
}
public void SetNavigationBarVisible(bool visible) {
impl.setNavigationBarVisible(this.Native, visible);
}
public void ShowNextMonth() {
impl.showNextMonth(this.Native);
}
public void ShowPreviousMonth() {
impl.showPreviousMonth(this.Native);
}
public void ShowNextYear() {
impl.showNextYear(this.Native);
}
public void ShowPreviousYear() {
impl.showPreviousYear(this.Native);
}
public void ShowSelectedDate() {
impl.showSelectedDate(this.Native);
}
public void ShowToday() {
impl.showToday(this.Native);
}
public interface IQCalendarWidget : ICppClassOverridable<QCalendarWidget> {
[Constructor()]
void QCalendarWidget(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QDate selectedDate(CppInstancePtr @this);
void setSelectedDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
int yearShown(CppInstancePtr @this);
[Const()]
int monthShown(CppInstancePtr @this);
[Const()]
QDate minimumDate(CppInstancePtr @this);
void setMinimumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
QDate maximumDate(CppInstancePtr @this);
void setMaximumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
DayOfWeek firstDayOfWeek(CppInstancePtr @this);
void setFirstDayOfWeek(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek value);
[Const()]
bool isHeaderVisible(CppInstancePtr @this);
void setHeaderVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
[Const()]
bool isGridVisible(CppInstancePtr @this);
[Const()]
SelectionMode selectionMode(CppInstancePtr @this);
void setSelectionMode(CppInstancePtr @this, [MangleAs("enum SelectionMode")] SelectionMode value);
[Const()]
HorizontalHeaderFormat horizontalHeaderFormat(CppInstancePtr @this);
void setHorizontalHeaderFormat(CppInstancePtr @this, [MangleAs("enum HorizontalHeaderFormat")] HorizontalHeaderFormat value);
[Const()]
VerticalHeaderFormat verticalHeaderFormat(CppInstancePtr @this);
void setVerticalHeaderFormat(CppInstancePtr @this, [MangleAs("enum VerticalHeaderFormat")] VerticalHeaderFormat value);
[Const()]
QTextCharFormat headerTextFormat(CppInstancePtr @this);
void setHeaderTextFormat(CppInstancePtr @this, [MangleAs("class QTextCharFormat const &")] QTextCharFormat value);
[Const()]
QTextCharFormat weekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek);
void setWeekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
QMap<QDate, QTextCharFormat> dateTextFormat(CppInstancePtr @this);
[Const()]
QTextCharFormat dateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date);
void setDateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
bool isDateEditEnabled(CppInstancePtr @this);
void setDateEditEnabled(CppInstancePtr @this, [MangleAs("bool")] bool enable);
[Const()]
int dateEditAcceptDelay(CppInstancePtr @this);
void setDateEditAcceptDelay(CppInstancePtr @this, [MangleAs("int")] int value);
void setDateRange(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate min, [MangleAs("class QDate const &")] QDate max);
void setCurrentPage(CppInstancePtr @this, [MangleAs("int")] int year, [MangleAs("int")] int month);
void setGridVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
void setNavigationBarVisible(CppInstancePtr @this, [MangleAs("bool")] bool visible);
void showNextMonth(CppInstancePtr @this);
void showPreviousMonth(CppInstancePtr @this);
void showNextYear(CppInstancePtr @this);
void showPreviousYear(CppInstancePtr @this);
void showSelectedDate(CppInstancePtr @this);
void showToday(CppInstancePtr @this);
}
private struct _QCalendarWidget {
}
}
}

238
tests/output/QCalendarWidget1.cs

@ -1,238 +0,0 @@ @@ -1,238 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCalendarWidget : QWidget {
private static IQCalendarWidget impl = Wrappers.Libs.Lib.GetClass <IQCalendarWidget, _QCalendarWidget, QCalendarWidget>("QCalendarWidget");
public QCalendarWidget(QWidget parent) {
impl.QCalendarWidget(this.Native, parent);
}
public QDate SelectedDate {
get {
return impl.selectedDate(this.Native);
}
set {
impl.setSelectedDate(this.Native, value);
}
}
public int YearShown {
get {
return impl.yearShown(this.Native);
}
}
public int MonthShown {
get {
return impl.monthShown(this.Native);
}
}
public QDate MinimumDate {
get {
return impl.minimumDate(this.Native);
}
set {
impl.setMinimumDate(this.Native, value);
}
}
public QDate MaximumDate {
get {
return impl.maximumDate(this.Native);
}
set {
impl.setMaximumDate(this.Native, value);
}
}
public DayOfWeek FirstDayOfWeek {
get {
return impl.firstDayOfWeek(this.Native);
}
set {
impl.setFirstDayOfWeek(this.Native, value);
}
}
public bool IsHeaderVisible {
get {
return impl.isHeaderVisible(this.Native);
}
}
public bool IsGridVisible {
get {
return impl.isGridVisible(this.Native);
}
}
public SelectionMode SelectionMode {
get {
return impl.selectionMode(this.Native);
}
set {
impl.setSelectionMode(this.Native, value);
}
}
public HorizontalHeaderFormat HorizontalHeaderFormat {
get {
return impl.horizontalHeaderFormat(this.Native);
}
set {
impl.setHorizontalHeaderFormat(this.Native, value);
}
}
public VerticalHeaderFormat VerticalHeaderFormat {
get {
return impl.verticalHeaderFormat(this.Native);
}
set {
impl.setVerticalHeaderFormat(this.Native, value);
}
}
public QTextCharFormat HeaderTextFormat {
get {
return impl.headerTextFormat(this.Native);
}
set {
impl.setHeaderTextFormat(this.Native, value);
}
}
public bool IsDateEditEnabled {
get {
return impl.isDateEditEnabled(this.Native);
}
}
public int DateEditAcceptDelay {
get {
return impl.dateEditAcceptDelay(this.Native);
}
set {
impl.setDateEditAcceptDelay(this.Native, value);
}
}
public override void Dispose() {
}
public void SetHeaderVisible(bool show) {
impl.setHeaderVisible(this.Native, show);
}
public QTextCharFormat WeekdayTextFormat(DayOfWeek dayOfWeek) {
return impl.weekdayTextFormat(this.Native, dayOfWeek);
}
public void SetWeekdayTextFormat(DayOfWeek dayOfWeek, QTextCharFormat format) {
impl.setWeekdayTextFormat(this.Native, dayOfWeek, format);
}
public QMap<QDate, QTextCharFormat> DateTextFormat() {
return impl.dateTextFormat(this.Native);
}
public QTextCharFormat DateTextFormat(QDate date) {
return impl.dateTextFormat(this.Native, date);
}
public void SetDateTextFormat(QDate date, QTextCharFormat format) {
impl.setDateTextFormat(this.Native, date, format);
}
public void SetDateEditEnabled(bool enable) {
impl.setDateEditEnabled(this.Native, enable);
}
public void SetDateRange(QDate min, QDate max) {
impl.setDateRange(this.Native, min, max);
}
public void SetCurrentPage(int year, int month) {
impl.setCurrentPage(this.Native, year, month);
}
public void SetGridVisible(bool show) {
impl.setGridVisible(this.Native, show);
}
public void SetNavigationBarVisible(bool visible) {
impl.setNavigationBarVisible(this.Native, visible);
}
public void ShowNextMonth() {
impl.showNextMonth(this.Native);
}
public void ShowPreviousMonth() {
impl.showPreviousMonth(this.Native);
}
public void ShowNextYear() {
impl.showNextYear(this.Native);
}
public void ShowPreviousYear() {
impl.showPreviousYear(this.Native);
}
public void ShowSelectedDate() {
impl.showSelectedDate(this.Native);
}
public void ShowToday() {
impl.showToday(this.Native);
}
public interface IQCalendarWidget : ICppClassOverridable<QCalendarWidget> {
[Constructor()]
void QCalendarWidget(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QDate selectedDate(CppInstancePtr @this);
void setSelectedDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
int yearShown(CppInstancePtr @this);
[Const()]
int monthShown(CppInstancePtr @this);
[Const()]
QDate minimumDate(CppInstancePtr @this);
void setMinimumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
QDate maximumDate(CppInstancePtr @this);
void setMaximumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
DayOfWeek firstDayOfWeek(CppInstancePtr @this);
void setFirstDayOfWeek(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek value);
[Const()]
bool isHeaderVisible(CppInstancePtr @this);
void setHeaderVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
[Const()]
bool isGridVisible(CppInstancePtr @this);
[Const()]
SelectionMode selectionMode(CppInstancePtr @this);
void setSelectionMode(CppInstancePtr @this, [MangleAs("enum SelectionMode")] SelectionMode value);
[Const()]
HorizontalHeaderFormat horizontalHeaderFormat(CppInstancePtr @this);
void setHorizontalHeaderFormat(CppInstancePtr @this, [MangleAs("enum HorizontalHeaderFormat")] HorizontalHeaderFormat value);
[Const()]
VerticalHeaderFormat verticalHeaderFormat(CppInstancePtr @this);
void setVerticalHeaderFormat(CppInstancePtr @this, [MangleAs("enum VerticalHeaderFormat")] VerticalHeaderFormat value);
[Const()]
QTextCharFormat headerTextFormat(CppInstancePtr @this);
void setHeaderTextFormat(CppInstancePtr @this, [MangleAs("class QTextCharFormat const &")] QTextCharFormat value);
[Const()]
QTextCharFormat weekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek);
void setWeekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
QMap<QDate, QTextCharFormat> dateTextFormat(CppInstancePtr @this);
[Const()]
QTextCharFormat dateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date);
void setDateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
bool isDateEditEnabled(CppInstancePtr @this);
void setDateEditEnabled(CppInstancePtr @this, [MangleAs("bool")] bool enable);
[Const()]
int dateEditAcceptDelay(CppInstancePtr @this);
void setDateEditAcceptDelay(CppInstancePtr @this, [MangleAs("int")] int value);
void setDateRange(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate min, [MangleAs("class QDate const &")] QDate max);
void setCurrentPage(CppInstancePtr @this, [MangleAs("int")] int year, [MangleAs("int")] int month);
void setGridVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
void setNavigationBarVisible(CppInstancePtr @this, [MangleAs("bool")] bool visible);
void showNextMonth(CppInstancePtr @this);
void showPreviousMonth(CppInstancePtr @this);
void showNextYear(CppInstancePtr @this);
void showPreviousYear(CppInstancePtr @this);
void showSelectedDate(CppInstancePtr @this);
void showToday(CppInstancePtr @this);
}
private struct _QCalendarWidget {
}
}
}

238
tests/output/QCalendarWidget2.cs

@ -1,238 +0,0 @@ @@ -1,238 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCalendarWidget : QWidget {
private static IQCalendarWidget impl = Wrappers.Libs.Lib.GetClass <IQCalendarWidget, _QCalendarWidget, QCalendarWidget>("QCalendarWidget");
public QCalendarWidget(QWidget parent) {
impl.QCalendarWidget(this.Native, parent);
}
public QDate SelectedDate {
get {
return impl.selectedDate(this.Native);
}
set {
impl.setSelectedDate(this.Native, value);
}
}
public int YearShown {
get {
return impl.yearShown(this.Native);
}
}
public int MonthShown {
get {
return impl.monthShown(this.Native);
}
}
public QDate MinimumDate {
get {
return impl.minimumDate(this.Native);
}
set {
impl.setMinimumDate(this.Native, value);
}
}
public QDate MaximumDate {
get {
return impl.maximumDate(this.Native);
}
set {
impl.setMaximumDate(this.Native, value);
}
}
public DayOfWeek FirstDayOfWeek {
get {
return impl.firstDayOfWeek(this.Native);
}
set {
impl.setFirstDayOfWeek(this.Native, value);
}
}
public bool IsHeaderVisible {
get {
return impl.isHeaderVisible(this.Native);
}
}
public bool IsGridVisible {
get {
return impl.isGridVisible(this.Native);
}
}
public SelectionMode SelectionMode {
get {
return impl.selectionMode(this.Native);
}
set {
impl.setSelectionMode(this.Native, value);
}
}
public HorizontalHeaderFormat HorizontalHeaderFormat {
get {
return impl.horizontalHeaderFormat(this.Native);
}
set {
impl.setHorizontalHeaderFormat(this.Native, value);
}
}
public VerticalHeaderFormat VerticalHeaderFormat {
get {
return impl.verticalHeaderFormat(this.Native);
}
set {
impl.setVerticalHeaderFormat(this.Native, value);
}
}
public QTextCharFormat HeaderTextFormat {
get {
return impl.headerTextFormat(this.Native);
}
set {
impl.setHeaderTextFormat(this.Native, value);
}
}
public bool IsDateEditEnabled {
get {
return impl.isDateEditEnabled(this.Native);
}
}
public int DateEditAcceptDelay {
get {
return impl.dateEditAcceptDelay(this.Native);
}
set {
impl.setDateEditAcceptDelay(this.Native, value);
}
}
public override void Dispose() {
}
public void SetHeaderVisible(bool show) {
impl.setHeaderVisible(this.Native, show);
}
public QTextCharFormat WeekdayTextFormat(DayOfWeek dayOfWeek) {
return impl.weekdayTextFormat(this.Native, dayOfWeek);
}
public void SetWeekdayTextFormat(DayOfWeek dayOfWeek, QTextCharFormat format) {
impl.setWeekdayTextFormat(this.Native, dayOfWeek, format);
}
public QMap<QDate, QTextCharFormat> DateTextFormat() {
return impl.dateTextFormat(this.Native);
}
public QTextCharFormat DateTextFormat(QDate date) {
return impl.dateTextFormat(this.Native, date);
}
public void SetDateTextFormat(QDate date, QTextCharFormat format) {
impl.setDateTextFormat(this.Native, date, format);
}
public void SetDateEditEnabled(bool enable) {
impl.setDateEditEnabled(this.Native, enable);
}
public void SetDateRange(QDate min, QDate max) {
impl.setDateRange(this.Native, min, max);
}
public void SetCurrentPage(int year, int month) {
impl.setCurrentPage(this.Native, year, month);
}
public void SetGridVisible(bool show) {
impl.setGridVisible(this.Native, show);
}
public void SetNavigationBarVisible(bool visible) {
impl.setNavigationBarVisible(this.Native, visible);
}
public void ShowNextMonth() {
impl.showNextMonth(this.Native);
}
public void ShowPreviousMonth() {
impl.showPreviousMonth(this.Native);
}
public void ShowNextYear() {
impl.showNextYear(this.Native);
}
public void ShowPreviousYear() {
impl.showPreviousYear(this.Native);
}
public void ShowSelectedDate() {
impl.showSelectedDate(this.Native);
}
public void ShowToday() {
impl.showToday(this.Native);
}
public interface IQCalendarWidget : ICppClassOverridable<QCalendarWidget> {
[Constructor()]
void QCalendarWidget(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QDate selectedDate(CppInstancePtr @this);
void setSelectedDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
int yearShown(CppInstancePtr @this);
[Const()]
int monthShown(CppInstancePtr @this);
[Const()]
QDate minimumDate(CppInstancePtr @this);
void setMinimumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
QDate maximumDate(CppInstancePtr @this);
void setMaximumDate(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate value);
[Const()]
DayOfWeek firstDayOfWeek(CppInstancePtr @this);
void setFirstDayOfWeek(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek value);
[Const()]
bool isHeaderVisible(CppInstancePtr @this);
void setHeaderVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
[Const()]
bool isGridVisible(CppInstancePtr @this);
[Const()]
SelectionMode selectionMode(CppInstancePtr @this);
void setSelectionMode(CppInstancePtr @this, [MangleAs("enum SelectionMode")] SelectionMode value);
[Const()]
HorizontalHeaderFormat horizontalHeaderFormat(CppInstancePtr @this);
void setHorizontalHeaderFormat(CppInstancePtr @this, [MangleAs("enum HorizontalHeaderFormat")] HorizontalHeaderFormat value);
[Const()]
VerticalHeaderFormat verticalHeaderFormat(CppInstancePtr @this);
void setVerticalHeaderFormat(CppInstancePtr @this, [MangleAs("enum VerticalHeaderFormat")] VerticalHeaderFormat value);
[Const()]
QTextCharFormat headerTextFormat(CppInstancePtr @this);
void setHeaderTextFormat(CppInstancePtr @this, [MangleAs("class QTextCharFormat const &")] QTextCharFormat value);
[Const()]
QTextCharFormat weekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek);
void setWeekdayTextFormat(CppInstancePtr @this, [MangleAs("enum DayOfWeek")] DayOfWeek dayOfWeek, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
QMap<QDate, QTextCharFormat> dateTextFormat(CppInstancePtr @this);
[Const()]
QTextCharFormat dateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date);
void setDateTextFormat(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate date, [MangleAs("class QTextCharFormat const &")] QTextCharFormat format);
[Const()]
bool isDateEditEnabled(CppInstancePtr @this);
void setDateEditEnabled(CppInstancePtr @this, [MangleAs("bool")] bool enable);
[Const()]
int dateEditAcceptDelay(CppInstancePtr @this);
void setDateEditAcceptDelay(CppInstancePtr @this, [MangleAs("int")] int value);
void setDateRange(CppInstancePtr @this, [MangleAs("class QDate const &")] QDate min, [MangleAs("class QDate const &")] QDate max);
void setCurrentPage(CppInstancePtr @this, [MangleAs("int")] int year, [MangleAs("int")] int month);
void setGridVisible(CppInstancePtr @this, [MangleAs("bool")] bool show);
void setNavigationBarVisible(CppInstancePtr @this, [MangleAs("bool")] bool visible);
void showNextMonth(CppInstancePtr @this);
void showPreviousMonth(CppInstancePtr @this);
void showNextYear(CppInstancePtr @this);
void showPreviousYear(CppInstancePtr @this);
void showSelectedDate(CppInstancePtr @this);
void showToday(CppInstancePtr @this);
}
private struct _QCalendarWidget {
}
}
}

59
tests/output/QCheckBox.cs

@ -1,59 +0,0 @@ @@ -1,59 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCheckBox : QAbstractButton {
private static IQCheckBox impl = Wrappers.Libs.Lib.GetClass <IQCheckBox, _QCheckBox, QCheckBox>("QCheckBox");
public QCheckBox(QWidget parent) {
impl.QCheckBox(this.Native, parent);
}
public QCheckBox(QString text, QWidget parent) {
impl.QCheckBox(this.Native, text, parent);
}
public bool IsTristate {
get {
return impl.isTristate(this.Native);
}
}
public CheckState CheckState {
get {
return impl.checkState(this.Native);
}
set {
impl.setCheckState(this.Native, value);
}
}
public void SetTristate(bool y) {
impl.setTristate(this.Native, y);
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQCheckBox : ICppClassOverridable<QCheckBox> {
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QString const &")] QString text, [MangleAs("class QWidget *")] QWidget parent);
void setTristate(CppInstancePtr @this, [MangleAs("bool")] bool y);
[Const()]
bool isTristate(CppInstancePtr @this);
[Const()]
CheckState checkState(CppInstancePtr @this);
void setCheckState(CppInstancePtr @this, [MangleAs("enum CheckState")] CheckState value);
}
private struct _QCheckBox {
}
}
}

59
tests/output/QCheckBox1.cs

@ -1,59 +0,0 @@ @@ -1,59 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCheckBox : QAbstractButton {
private static IQCheckBox impl = Wrappers.Libs.Lib.GetClass <IQCheckBox, _QCheckBox, QCheckBox>("QCheckBox");
public QCheckBox(QWidget parent) {
impl.QCheckBox(this.Native, parent);
}
public QCheckBox(QString text, QWidget parent) {
impl.QCheckBox(this.Native, text, parent);
}
public bool IsTristate {
get {
return impl.isTristate(this.Native);
}
}
public CheckState CheckState {
get {
return impl.checkState(this.Native);
}
set {
impl.setCheckState(this.Native, value);
}
}
public void SetTristate(bool y) {
impl.setTristate(this.Native, y);
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQCheckBox : ICppClassOverridable<QCheckBox> {
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QString const &")] QString text, [MangleAs("class QWidget *")] QWidget parent);
void setTristate(CppInstancePtr @this, [MangleAs("bool")] bool y);
[Const()]
bool isTristate(CppInstancePtr @this);
[Const()]
CheckState checkState(CppInstancePtr @this);
void setCheckState(CppInstancePtr @this, [MangleAs("enum CheckState")] CheckState value);
}
private struct _QCheckBox {
}
}
}

59
tests/output/QCheckBox2.cs

@ -1,59 +0,0 @@ @@ -1,59 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QCheckBox : QAbstractButton {
private static IQCheckBox impl = Wrappers.Libs.Lib.GetClass <IQCheckBox, _QCheckBox, QCheckBox>("QCheckBox");
public QCheckBox(QWidget parent) {
impl.QCheckBox(this.Native, parent);
}
public QCheckBox(QString text, QWidget parent) {
impl.QCheckBox(this.Native, text, parent);
}
public bool IsTristate {
get {
return impl.isTristate(this.Native);
}
}
public CheckState CheckState {
get {
return impl.checkState(this.Native);
}
set {
impl.setCheckState(this.Native, value);
}
}
public void SetTristate(bool y) {
impl.setTristate(this.Native, y);
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQCheckBox : ICppClassOverridable<QCheckBox> {
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QCheckBox(CppInstancePtr @this, [MangleAs("class QString const &")] QString text, [MangleAs("class QWidget *")] QWidget parent);
void setTristate(CppInstancePtr @this, [MangleAs("bool")] bool y);
[Const()]
bool isTristate(CppInstancePtr @this);
[Const()]
CheckState checkState(CppInstancePtr @this);
void setCheckState(CppInstancePtr @this, [MangleAs("enum CheckState")] CheckState value);
}
private struct _QCheckBox {
}
}
}

115
tests/output/QColorDialog.cs

@ -1,115 +0,0 @@ @@ -1,115 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QColorDialog : QDialog {
private static IQColorDialog impl = Wrappers.Libs.Lib.GetClass <IQColorDialog, _QColorDialog, QColorDialog>("QColorDialog");
public QColorDialog(QWidget parent) {
impl.QColorDialog(this.Native, parent);
}
public QColorDialog(QColor initial, QWidget parent) {
impl.QColorDialog(this.Native, initial, parent);
}
public QColor CurrentColor {
get {
return impl.currentColor(this.Native);
}
set {
impl.setCurrentColor(this.Native, value);
}
}
public QColor SelectedColor {
get {
return impl.selectedColor(this.Native);
}
}
public QFlags<QColorDialog::ColorDialogOption> Options {
get {
return impl.options(this.Native);
}
set {
impl.setOptions(this.Native, value);
}
}
public override void Dispose() {
}
public void SetOption(ColorDialogOption option, bool on) {
impl.setOption(this.Native, option, on);
}
public bool TestOption(ColorDialogOption option) {
return impl.testOption(this.Native, option);
}
public void Open(QObject receiver, string member) {
impl.open(this.Native, receiver, member);
}
public static QColor GetColor(QColor initial, QWidget parent, QString title, QFlags<QColorDialog::ColorDialogOption> options) {
return impl.getColor(initial, parent, title, options);
}
public static QColor GetColor(QColor initial, QWidget parent) {
return impl.getColor(initial, parent);
}
public static uint GetRgba(uint rgba, ref bool ok, QWidget parent) {
return impl.getRgba(rgba, ref ok, parent);
}
public static int CustomCount() {
return impl.customCount();
}
public static uint CustomColor(int index) {
return impl.customColor(index);
}
public static void SetCustomColor(int index, uint color) {
impl.setCustomColor(index, color);
}
public static void SetStandardColor(int index, uint color) {
impl.setStandardColor(index, color);
}
public interface IQColorDialog : ICppClassOverridable<QColorDialog> {
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QColor currentColor(CppInstancePtr @this);
void setCurrentColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor value);
[Const()]
QColor selectedColor(CppInstancePtr @this);
void setOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option, [MangleAs("bool")] bool on);
[Const()]
bool testOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option);
[Const()]
QFlags<QColorDialog::ColorDialogOption> options(CppInstancePtr @this);
void setOptions(CppInstancePtr @this, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> value);
void open(CppInstancePtr @this, [MangleAs("class QObject *")] QObject receiver, [MangleAs("char const *")] string member);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QString const &")] QString title, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> options);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
uint getRgba([MangleAs("int unsigned")] uint rgba, [MangleAs("bool *")] ref bool ok, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
int customCount();
[Static()]
uint customColor([MangleAs("int")] int index);
[Static()]
void setCustomColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
[Static()]
void setStandardColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
}
private struct _QColorDialog {
}
}
}

115
tests/output/QColorDialog1.cs

@ -1,115 +0,0 @@ @@ -1,115 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QColorDialog : QDialog {
private static IQColorDialog impl = Wrappers.Libs.Lib.GetClass <IQColorDialog, _QColorDialog, QColorDialog>("QColorDialog");
public QColorDialog(QWidget parent) {
impl.QColorDialog(this.Native, parent);
}
public QColorDialog(QColor initial, QWidget parent) {
impl.QColorDialog(this.Native, initial, parent);
}
public QColor CurrentColor {
get {
return impl.currentColor(this.Native);
}
set {
impl.setCurrentColor(this.Native, value);
}
}
public QColor SelectedColor {
get {
return impl.selectedColor(this.Native);
}
}
public QFlags<QColorDialog::ColorDialogOption> Options {
get {
return impl.options(this.Native);
}
set {
impl.setOptions(this.Native, value);
}
}
public override void Dispose() {
}
public void SetOption(ColorDialogOption option, bool on) {
impl.setOption(this.Native, option, on);
}
public bool TestOption(ColorDialogOption option) {
return impl.testOption(this.Native, option);
}
public void Open(QObject receiver, string member) {
impl.open(this.Native, receiver, member);
}
public static QColor GetColor(QColor initial, QWidget parent, QString title, QFlags<QColorDialog::ColorDialogOption> options) {
return impl.getColor(initial, parent, title, options);
}
public static QColor GetColor(QColor initial, QWidget parent) {
return impl.getColor(initial, parent);
}
public static uint GetRgba(uint rgba, ref bool ok, QWidget parent) {
return impl.getRgba(rgba, ref ok, parent);
}
public static int CustomCount() {
return impl.customCount();
}
public static uint CustomColor(int index) {
return impl.customColor(index);
}
public static void SetCustomColor(int index, uint color) {
impl.setCustomColor(index, color);
}
public static void SetStandardColor(int index, uint color) {
impl.setStandardColor(index, color);
}
public interface IQColorDialog : ICppClassOverridable<QColorDialog> {
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QColor currentColor(CppInstancePtr @this);
void setCurrentColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor value);
[Const()]
QColor selectedColor(CppInstancePtr @this);
void setOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option, [MangleAs("bool")] bool on);
[Const()]
bool testOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option);
[Const()]
QFlags<QColorDialog::ColorDialogOption> options(CppInstancePtr @this);
void setOptions(CppInstancePtr @this, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> value);
void open(CppInstancePtr @this, [MangleAs("class QObject *")] QObject receiver, [MangleAs("char const *")] string member);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QString const &")] QString title, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> options);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
uint getRgba([MangleAs("int unsigned")] uint rgba, [MangleAs("bool *")] ref bool ok, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
int customCount();
[Static()]
uint customColor([MangleAs("int")] int index);
[Static()]
void setCustomColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
[Static()]
void setStandardColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
}
private struct _QColorDialog {
}
}
}

115
tests/output/QColorDialog2.cs

@ -1,115 +0,0 @@ @@ -1,115 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QColorDialog : QDialog {
private static IQColorDialog impl = Wrappers.Libs.Lib.GetClass <IQColorDialog, _QColorDialog, QColorDialog>("QColorDialog");
public QColorDialog(QWidget parent) {
impl.QColorDialog(this.Native, parent);
}
public QColorDialog(QColor initial, QWidget parent) {
impl.QColorDialog(this.Native, initial, parent);
}
public QColor CurrentColor {
get {
return impl.currentColor(this.Native);
}
set {
impl.setCurrentColor(this.Native, value);
}
}
public QColor SelectedColor {
get {
return impl.selectedColor(this.Native);
}
}
public QFlags<QColorDialog::ColorDialogOption> Options {
get {
return impl.options(this.Native);
}
set {
impl.setOptions(this.Native, value);
}
}
public override void Dispose() {
}
public void SetOption(ColorDialogOption option, bool on) {
impl.setOption(this.Native, option, on);
}
public bool TestOption(ColorDialogOption option) {
return impl.testOption(this.Native, option);
}
public void Open(QObject receiver, string member) {
impl.open(this.Native, receiver, member);
}
public static QColor GetColor(QColor initial, QWidget parent, QString title, QFlags<QColorDialog::ColorDialogOption> options) {
return impl.getColor(initial, parent, title, options);
}
public static QColor GetColor(QColor initial, QWidget parent) {
return impl.getColor(initial, parent);
}
public static uint GetRgba(uint rgba, ref bool ok, QWidget parent) {
return impl.getRgba(rgba, ref ok, parent);
}
public static int CustomCount() {
return impl.customCount();
}
public static uint CustomColor(int index) {
return impl.customColor(index);
}
public static void SetCustomColor(int index, uint color) {
impl.setCustomColor(index, color);
}
public static void SetStandardColor(int index, uint color) {
impl.setStandardColor(index, color);
}
public interface IQColorDialog : ICppClassOverridable<QColorDialog> {
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent);
[Constructor()]
void QColorDialog(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
QColor currentColor(CppInstancePtr @this);
void setCurrentColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor value);
[Const()]
QColor selectedColor(CppInstancePtr @this);
void setOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option, [MangleAs("bool")] bool on);
[Const()]
bool testOption(CppInstancePtr @this, [MangleAs("enum ColorDialogOption")] ColorDialogOption option);
[Const()]
QFlags<QColorDialog::ColorDialogOption> options(CppInstancePtr @this);
void setOptions(CppInstancePtr @this, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> value);
void open(CppInstancePtr @this, [MangleAs("class QObject *")] QObject receiver, [MangleAs("char const *")] string member);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QString const &")] QString title, [MangleAs("class QFlags <QColorDialog::ColorDialogOption>")] QFlags<QColorDialog::ColorDialogOption> options);
[Static()]
QColor getColor([MangleAs("class QColor const &")] QColor initial, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
uint getRgba([MangleAs("int unsigned")] uint rgba, [MangleAs("bool *")] ref bool ok, [MangleAs("class QWidget *")] QWidget parent);
[Static()]
int customCount();
[Static()]
uint customColor([MangleAs("int")] int index);
[Static()]
void setCustomColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
[Static()]
void setStandardColor([MangleAs("int")] int index, [MangleAs("int unsigned")] uint color);
}
private struct _QColorDialog {
}
}
}

34
tests/output/QFlag.cs

@ -1,34 +0,0 @@ @@ -1,34 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QFlag : ICppObject {
protected CppInstancePtr native_ptr;
private static IQFlag impl = Wrappers.Libs.Lib.GetClass <IQFlag, _QFlag, QFlag>("QFlag");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQFlag : ICppClassOverridable<QFlag> {
}
private struct _QFlag {
private int i;
}
}
}

51
tests/output/QFlags.cs

@ -1,51 +0,0 @@ @@ -1,51 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QFlags<T> : ICppObject
{
protected CppInstancePtr native_ptr;
private static IQFlags<T> impl = Wrappers.Libs.Lib.GetClass <IQFlags<T>, _QFlags, QFlags<T>>("QFlags");
public QFlags(System.IntPtr arg0) {
impl.QFlags(this.Native, arg0);
}
public QFlags(QFlag f) {
impl.QFlags(this.Native, f);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public bool TestFlag(GestureFlag f) {
return impl.testFlag(this.Native, f);
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQFlags<T> : ICppClassOverridable<QFlags<T>>
{
[Constructor()]
void QFlags(CppInstancePtr @this, [MangleAs("void * *")] System.IntPtr arg0);
[Constructor()]
void QFlags(CppInstancePtr @this, [MangleAs("class QFlag")] QFlag f);
[Const()]
bool testFlag(CppInstancePtr @this, [MangleAs("enum GestureFlag")] GestureFlag f);
}
private struct _QFlags {
private int i;
}
}
}

106
tests/output/QFrame.cs

@ -1,106 +0,0 @@ @@ -1,106 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QFrame : QWidget {
private static IQFrame impl = Wrappers.Libs.Lib.GetClass <IQFrame, _QFrame, QFrame>("QFrame");
public QFrame(QWidget parent, QFlags<Qt::WindowType> f) {
impl.QFrame(this.Native, parent, f);
}
public int FrameStyle {
get {
return impl.frameStyle(this.Native);
}
set {
impl.setFrameStyle(this.Native, value);
}
}
public int FrameWidth {
get {
return impl.frameWidth(this.Native);
}
}
public Shape FrameShape {
get {
return impl.frameShape(this.Native);
}
set {
impl.setFrameShape(this.Native, value);
}
}
public Shadow FrameShadow {
get {
return impl.frameShadow(this.Native);
}
set {
impl.setFrameShadow(this.Native, value);
}
}
public int LineWidth {
get {
return impl.lineWidth(this.Native);
}
set {
impl.setLineWidth(this.Native, value);
}
}
public int MidLineWidth {
get {
return impl.midLineWidth(this.Native);
}
set {
impl.setMidLineWidth(this.Native, value);
}
}
public QRect FrameRect {
get {
return impl.frameRect(this.Native);
}
set {
impl.setFrameRect(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQFrame : ICppClassOverridable<QFrame> {
[Constructor()]
void QFrame(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QFlags <Qt::WindowType>")] QFlags<Qt::WindowType> f);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
int frameStyle(CppInstancePtr @this);
void setFrameStyle(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int frameWidth(CppInstancePtr @this);
[Const()]
Shape frameShape(CppInstancePtr @this);
void setFrameShape(CppInstancePtr @this, [MangleAs("enum Shape")] Shape value);
[Const()]
Shadow frameShadow(CppInstancePtr @this);
void setFrameShadow(CppInstancePtr @this, [MangleAs("enum Shadow")] Shadow value);
[Const()]
int lineWidth(CppInstancePtr @this);
void setLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int midLineWidth(CppInstancePtr @this);
void setMidLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QRect frameRect(CppInstancePtr @this);
void setFrameRect(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect value);
}
private struct _QFrame {
}
}
}

106
tests/output/QFrame1.cs

@ -1,106 +0,0 @@ @@ -1,106 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QFrame : QWidget {
private static IQFrame impl = Wrappers.Libs.Lib.GetClass <IQFrame, _QFrame, QFrame>("QFrame");
public QFrame(QWidget parent, QFlags<Qt::WindowType> f) {
impl.QFrame(this.Native, parent, f);
}
public int FrameStyle {
get {
return impl.frameStyle(this.Native);
}
set {
impl.setFrameStyle(this.Native, value);
}
}
public int FrameWidth {
get {
return impl.frameWidth(this.Native);
}
}
public Shape FrameShape {
get {
return impl.frameShape(this.Native);
}
set {
impl.setFrameShape(this.Native, value);
}
}
public Shadow FrameShadow {
get {
return impl.frameShadow(this.Native);
}
set {
impl.setFrameShadow(this.Native, value);
}
}
public int LineWidth {
get {
return impl.lineWidth(this.Native);
}
set {
impl.setLineWidth(this.Native, value);
}
}
public int MidLineWidth {
get {
return impl.midLineWidth(this.Native);
}
set {
impl.setMidLineWidth(this.Native, value);
}
}
public QRect FrameRect {
get {
return impl.frameRect(this.Native);
}
set {
impl.setFrameRect(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQFrame : ICppClassOverridable<QFrame> {
[Constructor()]
void QFrame(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QFlags <Qt::WindowType>")] QFlags<Qt::WindowType> f);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
int frameStyle(CppInstancePtr @this);
void setFrameStyle(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int frameWidth(CppInstancePtr @this);
[Const()]
Shape frameShape(CppInstancePtr @this);
void setFrameShape(CppInstancePtr @this, [MangleAs("enum Shape")] Shape value);
[Const()]
Shadow frameShadow(CppInstancePtr @this);
void setFrameShadow(CppInstancePtr @this, [MangleAs("enum Shadow")] Shadow value);
[Const()]
int lineWidth(CppInstancePtr @this);
void setLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int midLineWidth(CppInstancePtr @this);
void setMidLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QRect frameRect(CppInstancePtr @this);
void setFrameRect(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect value);
}
private struct _QFrame {
}
}
}

106
tests/output/QFrame2.cs

@ -1,106 +0,0 @@ @@ -1,106 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QFrame : QWidget {
private static IQFrame impl = Wrappers.Libs.Lib.GetClass <IQFrame, _QFrame, QFrame>("QFrame");
public QFrame(QWidget parent, QFlags<Qt::WindowType> f) {
impl.QFrame(this.Native, parent, f);
}
public int FrameStyle {
get {
return impl.frameStyle(this.Native);
}
set {
impl.setFrameStyle(this.Native, value);
}
}
public int FrameWidth {
get {
return impl.frameWidth(this.Native);
}
}
public Shape FrameShape {
get {
return impl.frameShape(this.Native);
}
set {
impl.setFrameShape(this.Native, value);
}
}
public Shadow FrameShadow {
get {
return impl.frameShadow(this.Native);
}
set {
impl.setFrameShadow(this.Native, value);
}
}
public int LineWidth {
get {
return impl.lineWidth(this.Native);
}
set {
impl.setLineWidth(this.Native, value);
}
}
public int MidLineWidth {
get {
return impl.midLineWidth(this.Native);
}
set {
impl.setMidLineWidth(this.Native, value);
}
}
public QRect FrameRect {
get {
return impl.frameRect(this.Native);
}
set {
impl.setFrameRect(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQFrame : ICppClassOverridable<QFrame> {
[Constructor()]
void QFrame(CppInstancePtr @this, [MangleAs("class QWidget *")] QWidget parent, [MangleAs("class QFlags <Qt::WindowType>")] QFlags<Qt::WindowType> f);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
int frameStyle(CppInstancePtr @this);
void setFrameStyle(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int frameWidth(CppInstancePtr @this);
[Const()]
Shape frameShape(CppInstancePtr @this);
void setFrameShape(CppInstancePtr @this, [MangleAs("enum Shape")] Shape value);
[Const()]
Shadow frameShadow(CppInstancePtr @this);
void setFrameShadow(CppInstancePtr @this, [MangleAs("enum Shadow")] Shadow value);
[Const()]
int lineWidth(CppInstancePtr @this);
void setLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int midLineWidth(CppInstancePtr @this);
void setMidLineWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QRect frameRect(CppInstancePtr @this);
void setFrameRect(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect value);
}
private struct _QFrame {
}
}
}

55
tests/output/QGraphicsBlurEffect.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QGraphicsBlurEffect : QGraphicsEffect {
private static IQGraphicsBlurEffect impl = Wrappers.Libs.Lib.GetClass <IQGraphicsBlurEffect, _QGraphicsBlurEffect, QGraphicsBlurEffect>("QGraphicsBlurEffect");
public QGraphicsBlurEffect(QObject parent) {
impl.QGraphicsBlurEffect(this.Native, parent);
}
public double BlurRadius {
get {
return impl.blurRadius(this.Native);
}
set {
impl.setBlurRadius(this.Native, value);
}
}
public QFlags<QGraphicsBlurEffect::BlurHint> BlurHints {
get {
return impl.blurHints(this.Native);
}
set {
impl.setBlurHints(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQGraphicsBlurEffect : ICppClassOverridable<QGraphicsBlurEffect> {
[Constructor()]
void QGraphicsBlurEffect(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
double blurRadius(CppInstancePtr @this);
void setBlurRadius(CppInstancePtr @this, [MangleAs("double")] double value);
[Const()]
QFlags<QGraphicsBlurEffect::BlurHint> blurHints(CppInstancePtr @this);
void setBlurHints(CppInstancePtr @this, [MangleAs("class QFlags <QGraphicsBlurEffect::BlurHint>")] QFlags<QGraphicsBlurEffect::BlurHint> value);
}
private struct _QGraphicsBlurEffect {
}
}
}

55
tests/output/QGraphicsBlurEffect1.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QGraphicsBlurEffect : QGraphicsEffect {
private static IQGraphicsBlurEffect impl = Wrappers.Libs.Lib.GetClass <IQGraphicsBlurEffect, _QGraphicsBlurEffect, QGraphicsBlurEffect>("QGraphicsBlurEffect");
public QGraphicsBlurEffect(QObject parent) {
impl.QGraphicsBlurEffect(this.Native, parent);
}
public double BlurRadius {
get {
return impl.blurRadius(this.Native);
}
set {
impl.setBlurRadius(this.Native, value);
}
}
public QFlags<QGraphicsBlurEffect::BlurHint> BlurHints {
get {
return impl.blurHints(this.Native);
}
set {
impl.setBlurHints(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQGraphicsBlurEffect : ICppClassOverridable<QGraphicsBlurEffect> {
[Constructor()]
void QGraphicsBlurEffect(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
double blurRadius(CppInstancePtr @this);
void setBlurRadius(CppInstancePtr @this, [MangleAs("double")] double value);
[Const()]
QFlags<QGraphicsBlurEffect::BlurHint> blurHints(CppInstancePtr @this);
void setBlurHints(CppInstancePtr @this, [MangleAs("class QFlags <QGraphicsBlurEffect::BlurHint>")] QFlags<QGraphicsBlurEffect::BlurHint> value);
}
private struct _QGraphicsBlurEffect {
}
}
}

55
tests/output/QGraphicsBlurEffect2.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QGraphicsBlurEffect : QGraphicsEffect {
private static IQGraphicsBlurEffect impl = Wrappers.Libs.Lib.GetClass <IQGraphicsBlurEffect, _QGraphicsBlurEffect, QGraphicsBlurEffect>("QGraphicsBlurEffect");
public QGraphicsBlurEffect(QObject parent) {
impl.QGraphicsBlurEffect(this.Native, parent);
}
public double BlurRadius {
get {
return impl.blurRadius(this.Native);
}
set {
impl.setBlurRadius(this.Native, value);
}
}
public QFlags<QGraphicsBlurEffect::BlurHint> BlurHints {
get {
return impl.blurHints(this.Native);
}
set {
impl.setBlurHints(this.Native, value);
}
}
public override void Dispose() {
}
public interface IQGraphicsBlurEffect : ICppClassOverridable<QGraphicsBlurEffect> {
[Constructor()]
void QGraphicsBlurEffect(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
double blurRadius(CppInstancePtr @this);
void setBlurRadius(CppInstancePtr @this, [MangleAs("double")] double value);
[Const()]
QFlags<QGraphicsBlurEffect::BlurHint> blurHints(CppInstancePtr @this);
void setBlurHints(CppInstancePtr @this, [MangleAs("class QFlags <QGraphicsBlurEffect::BlurHint>")] QFlags<QGraphicsBlurEffect::BlurHint> value);
}
private struct _QGraphicsBlurEffect {
}
}
}

34
tests/output/QIncompatibleFlag.cs

@ -1,34 +0,0 @@ @@ -1,34 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QIncompatibleFlag : ICppObject {
protected CppInstancePtr native_ptr;
private static IQIncompatibleFlag impl = Wrappers.Libs.Lib.GetClass <IQIncompatibleFlag, _QIncompatibleFlag, QIncompatibleFlag>("QIncompatibleFlag");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQIncompatibleFlag : ICppClassOverridable<QIncompatibleFlag> {
}
private struct _QIncompatibleFlag {
private int i;
}
}
}

53
tests/output/QInternal.cs

@ -1,53 +0,0 @@ @@ -1,53 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QInternal : ICppObject {
protected CppInstancePtr native_ptr;
private static IQInternal impl = Wrappers.Libs.Lib.GetClass <IQInternal, _QInternal, QInternal>("QInternal");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public static bool RegisterCallback(Callback arg0, System.IntPtr arg1) {
return impl.registerCallback(arg0, arg1);
}
public static bool UnregisterCallback(Callback arg0, System.IntPtr arg1) {
return impl.unregisterCallback(arg0, arg1);
}
public static bool ActivateCallbacks(Callback arg0, System.IntPtr arg1) {
return impl.activateCallbacks(arg0, arg1);
}
public static bool CallFunction(InternalFunction func, System.IntPtr arg1) {
return impl.callFunction(func, arg1);
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQInternal : ICppClassOverridable<QInternal> {
[Static()]
bool registerCallback([MangleAs("enum Callback")] Callback arg0, [MangleAs("void *")] System.IntPtr arg1);
[Static()]
bool unregisterCallback([MangleAs("enum Callback")] Callback arg0, [MangleAs("void *")] System.IntPtr arg1);
[Static()]
bool activateCallbacks([MangleAs("enum Callback")] Callback arg0, [MangleAs("void * *")] System.IntPtr arg1);
[Static()]
bool callFunction([MangleAs("enum InternalFunction")] InternalFunction func, [MangleAs("void * *")] System.IntPtr arg1);
}
private struct _QInternal {
}
}
}

55
tests/output/QItemDelegate.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QItemDelegate : QAbstractItemDelegate {
private static IQItemDelegate impl = Wrappers.Libs.Lib.GetClass <IQItemDelegate, _QItemDelegate, QItemDelegate>("QItemDelegate");
public QItemDelegate(QObject parent) {
impl.QItemDelegate(this.Native, parent);
}
public bool HasClipping {
get {
return impl.hasClipping(this.Native);
}
}
public QItemEditorFactory ItemEditorFactory {
get {
return impl.itemEditorFactory(this.Native);
}
set {
impl.setItemEditorFactory(this.Native, value);
}
}
public override void Dispose() {
}
public void SetClipping(bool clip) {
impl.setClipping(this.Native, clip);
}
public interface IQItemDelegate : ICppClassOverridable<QItemDelegate> {
[Constructor()]
void QItemDelegate(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool hasClipping(CppInstancePtr @this);
void setClipping(CppInstancePtr @this, [MangleAs("bool")] bool clip);
[Const()]
QItemEditorFactory itemEditorFactory(CppInstancePtr @this);
void setItemEditorFactory(CppInstancePtr @this, [MangleAs("class QItemEditorFactory *")] QItemEditorFactory value);
}
private struct _QItemDelegate {
}
}
}

55
tests/output/QItemDelegate1.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QItemDelegate : QAbstractItemDelegate {
private static IQItemDelegate impl = Wrappers.Libs.Lib.GetClass <IQItemDelegate, _QItemDelegate, QItemDelegate>("QItemDelegate");
public QItemDelegate(QObject parent) {
impl.QItemDelegate(this.Native, parent);
}
public bool HasClipping {
get {
return impl.hasClipping(this.Native);
}
}
public QItemEditorFactory ItemEditorFactory {
get {
return impl.itemEditorFactory(this.Native);
}
set {
impl.setItemEditorFactory(this.Native, value);
}
}
public override void Dispose() {
}
public void SetClipping(bool clip) {
impl.setClipping(this.Native, clip);
}
public interface IQItemDelegate : ICppClassOverridable<QItemDelegate> {
[Constructor()]
void QItemDelegate(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool hasClipping(CppInstancePtr @this);
void setClipping(CppInstancePtr @this, [MangleAs("bool")] bool clip);
[Const()]
QItemEditorFactory itemEditorFactory(CppInstancePtr @this);
void setItemEditorFactory(CppInstancePtr @this, [MangleAs("class QItemEditorFactory *")] QItemEditorFactory value);
}
private struct _QItemDelegate {
}
}
}

55
tests/output/QItemDelegate2.cs

@ -1,55 +0,0 @@ @@ -1,55 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QItemDelegate : QAbstractItemDelegate {
private static IQItemDelegate impl = Wrappers.Libs.Lib.GetClass <IQItemDelegate, _QItemDelegate, QItemDelegate>("QItemDelegate");
public QItemDelegate(QObject parent) {
impl.QItemDelegate(this.Native, parent);
}
public bool HasClipping {
get {
return impl.hasClipping(this.Native);
}
}
public QItemEditorFactory ItemEditorFactory {
get {
return impl.itemEditorFactory(this.Native);
}
set {
impl.setItemEditorFactory(this.Native, value);
}
}
public override void Dispose() {
}
public void SetClipping(bool clip) {
impl.setClipping(this.Native, clip);
}
public interface IQItemDelegate : ICppClassOverridable<QItemDelegate> {
[Constructor()]
void QItemDelegate(CppInstancePtr @this, [MangleAs("class QObject *")] QObject parent);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool hasClipping(CppInstancePtr @this);
void setClipping(CppInstancePtr @this, [MangleAs("bool")] bool clip);
[Const()]
QItemEditorFactory itemEditorFactory(CppInstancePtr @this);
void setItemEditorFactory(CppInstancePtr @this, [MangleAs("class QItemEditorFactory *")] QItemEditorFactory value);
}
private struct _QItemDelegate {
}
}
}

329
tests/output/QPixmap.cs

@ -1,329 +0,0 @@ @@ -1,329 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPixmap : QPaintDevice {
private static IQPixmap impl = Wrappers.Libs.Lib.GetClass <IQPixmap, _QPixmap, QPixmap>("QPixmap");
public QPixmap() {
impl.QPixmap(this.Native);
}
public QPixmap(QPixmapData data) {
impl.QPixmap(this.Native, data);
}
public QPixmap(int w, int h) {
impl.QPixmap(this.Native, w, h);
}
public QPixmap(QSize arg0) {
impl.QPixmap(this.Native, arg0);
}
public QPixmap(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
impl.QPixmap(this.Native, fileName, format, flags);
}
public QPixmap(string[] xpm) {
impl.QPixmap(this.Native, xpm);
}
public QPixmap(QPixmap arg0) {
impl.QPixmap(this.Native, arg0);
}
public bool IsNull {
get {
return impl.isNull(this.Native);
}
}
public int Width {
get {
return impl.width(this.Native);
}
}
public int Height {
get {
return impl.height(this.Native);
}
}
public QSize Size {
get {
return impl.size(this.Native);
}
}
public QRect Rect {
get {
return impl.rect(this.Native);
}
}
public int Depth {
get {
return impl.depth(this.Native);
}
}
public QBitmap Mask {
get {
return impl.mask(this.Native);
}
set {
impl.setMask(this.Native, value);
}
}
public QPixmap AlphaChannel {
get {
return impl.alphaChannel(this.Native);
}
set {
impl.setAlphaChannel(this.Native, value);
}
}
public bool HasAlpha {
get {
return impl.hasAlpha(this.Native);
}
}
public bool HasAlphaChannel {
get {
return impl.hasAlphaChannel(this.Native);
}
}
public QImage ToImage {
get {
return impl.toImage(this.Native);
}
}
public int SerialNumber {
get {
return impl.serialNumber(this.Native);
}
}
public long CacheKey {
get {
return impl.cacheKey(this.Native);
}
}
public bool IsDetached {
get {
return impl.isDetached(this.Native);
}
}
public bool IsQBitmap {
get {
return impl.isQBitmap(this.Native);
}
}
public QX11Info X11Info {
get {
return impl.x11Info(this.Native);
}
}
public ulong X11PictureHandle {
get {
return impl.x11PictureHandle(this.Native);
}
}
public ulong Handle {
get {
return impl.handle(this.Native);
}
}
public QPixmapData PixmapData {
get {
return impl.pixmapData(this.Native);
}
}
public override void Dispose() {
}
public static int DefaultDepth() {
return impl.defaultDepth();
}
public void Fill(QColor fillColor) {
impl.fill(this.Native, fillColor);
}
public void Fill(QWidget widget, QPoint ofs) {
impl.fill(this.Native, widget, ofs);
}
public QBitmap CreateHeuristicMask(bool clipTight) {
return impl.createHeuristicMask(this.Native, clipTight);
}
public QBitmap CreateMaskFromColor(QColor maskColor) {
return impl.createMaskFromColor(this.Native, maskColor);
}
public QBitmap CreateMaskFromColor(QColor maskColor, MaskMode mode) {
return impl.createMaskFromColor(this.Native, maskColor, mode);
}
public static QPixmap GrabWindow(ulong arg0, int x, int y, int w, int h) {
return impl.grabWindow(arg0, x, y, w, h);
}
public static QPixmap GrabWidget(QWidget widget, QRect rect) {
return impl.grabWidget(widget, rect);
}
public QPixmap Scaled(QSize s, AspectRatioMode aspectMode, TransformationMode mode) {
return impl.scaled(this.Native, s, aspectMode, mode);
}
public QPixmap ScaledToWidth(int w, TransformationMode mode) {
return impl.scaledToWidth(this.Native, w, mode);
}
public QPixmap ScaledToHeight(int h, TransformationMode mode) {
return impl.scaledToHeight(this.Native, h, mode);
}
public QPixmap Transformed(QMatrix arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QMatrix TrueMatrix(QMatrix m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public QPixmap Transformed(QTransform arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QTransform TrueMatrix(QTransform m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public static QPixmap FromImage(QImage image, QFlags<Qt::ImageConversionFlag> flags) {
return impl.fromImage(image, flags);
}
public bool Load(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.load(this.Native, fileName, format, flags);
}
public bool LoadFromData(string buf, uint len, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.loadFromData(this.Native, buf, len, format, flags);
}
public bool Save(QString fileName, string format, int quality) {
return impl.save(this.Native, fileName, format, quality);
}
public bool Save(QIODevice device, string format, int quality) {
return impl.save(this.Native, device, format, quality);
}
public QPixmap Copy(QRect rect) {
return impl.copy(this.Native, rect);
}
public void Scroll(int dx, int dy, QRect rect, QRegion exposed) {
impl.scroll(this.Native, dx, dy, rect, exposed);
}
public void Detach() {
impl.detach(this.Native);
}
public static QPixmap FromX11Pixmap(ulong pixmap, ShareMode mode) {
return impl.fromX11Pixmap(pixmap, mode);
}
public static int X11SetDefaultScreen(int screen) {
return impl.x11SetDefaultScreen(screen);
}
public void X11SetScreen(int screen) {
impl.x11SetScreen(this.Native, screen);
}
public interface IQPixmap : ICppClassOverridable<QPixmap> {
[Constructor()]
void QPixmap(CppInstancePtr @this);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("struct QPixmapData *")] QPixmapData data);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize arg0);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("char const * const *")] string[] xpm);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap arg0);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isNull(CppInstancePtr @this);
[Const()]
int width(CppInstancePtr @this);
[Const()]
int height(CppInstancePtr @this);
[Const()]
QSize size(CppInstancePtr @this);
[Const()]
QRect rect(CppInstancePtr @this);
[Const()]
int depth(CppInstancePtr @this);
[Static()]
int defaultDepth();
void fill(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor fillColor);
void fill(CppInstancePtr @this, [MangleAs("class QWidget const *")] QWidget widget, [MangleAs("class QPoint const &")] QPoint ofs);
[Const()]
QBitmap mask(CppInstancePtr @this);
void setMask(CppInstancePtr @this, [MangleAs("class QBitmap const &")] QBitmap value);
[Const()]
QPixmap alphaChannel(CppInstancePtr @this);
void setAlphaChannel(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap value);
[Const()]
bool hasAlpha(CppInstancePtr @this);
[Const()]
bool hasAlphaChannel(CppInstancePtr @this);
[Const()]
QBitmap createHeuristicMask(CppInstancePtr @this, [MangleAs("bool")] bool clipTight);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor, [MangleAs("enum MaskMode")] MaskMode mode);
[Static()]
QPixmap grabWindow([MangleAs("int long unsigned")] ulong arg0, [MangleAs("int")] int x, [MangleAs("int")] int y, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Static()]
QPixmap grabWidget([MangleAs("class QWidget *")] QWidget widget, [MangleAs("class QRect const &")] QRect rect);
[Const()]
QPixmap scaled(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize s, [MangleAs("enum AspectRatioMode")] AspectRatioMode aspectMode, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToWidth(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToHeight(CppInstancePtr @this, [MangleAs("int")] int h, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QMatrix const &")] QMatrix arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QMatrix trueMatrix([MangleAs("class QMatrix const &")] QMatrix m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QTransform const &")] QTransform arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QTransform trueMatrix([MangleAs("class QTransform const &")] QTransform m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QImage toImage(CppInstancePtr @this);
[Static()]
QPixmap fromImage([MangleAs("class QImage const &")] QImage image, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool load(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool loadFromData(CppInstancePtr @this, [MangleAs("char unsigned const *")] string buf, [MangleAs("int unsigned")] uint len, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
QPixmap copy(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect rect);
void scroll(CppInstancePtr @this, [MangleAs("int")] int dx, [MangleAs("int")] int dy, [MangleAs("class QRect const &")] QRect rect, [MangleAs("class QRegion *")] QRegion exposed);
[Const()]
int serialNumber(CppInstancePtr @this);
[Const()]
long cacheKey(CppInstancePtr @this);
[Const()]
bool isDetached(CppInstancePtr @this);
void detach(CppInstancePtr @this);
[Const()]
bool isQBitmap(CppInstancePtr @this);
[Static()]
QPixmap fromX11Pixmap([MangleAs("int long unsigned")] ulong pixmap, [MangleAs("enum ShareMode")] ShareMode mode);
[Static()]
int x11SetDefaultScreen([MangleAs("int")] int screen);
void x11SetScreen(CppInstancePtr @this, [MangleAs("int")] int screen);
[Const()]
QX11Info x11Info(CppInstancePtr @this);
[Const()]
ulong x11PictureHandle(CppInstancePtr @this);
[Const()]
ulong handle(CppInstancePtr @this);
[Const()]
QPixmapData pixmapData(CppInstancePtr @this);
}
private struct _QPixmap {
// FIXME: Unknown type "class QExplicitlySharedDataPointer <QPixmapData>" for field "data." Assuming IntPtr.
private System.IntPtr data;
}
}
}

329
tests/output/QPixmap1.cs

@ -1,329 +0,0 @@ @@ -1,329 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPixmap : QPaintDevice {
private static IQPixmap impl = Wrappers.Libs.Lib.GetClass <IQPixmap, _QPixmap, QPixmap>("QPixmap");
public QPixmap() {
impl.QPixmap(this.Native);
}
public QPixmap(QPixmapData data) {
impl.QPixmap(this.Native, data);
}
public QPixmap(int w, int h) {
impl.QPixmap(this.Native, w, h);
}
public QPixmap(QSize arg0) {
impl.QPixmap(this.Native, arg0);
}
public QPixmap(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
impl.QPixmap(this.Native, fileName, format, flags);
}
public QPixmap(string[] xpm) {
impl.QPixmap(this.Native, xpm);
}
public QPixmap(QPixmap arg0) {
impl.QPixmap(this.Native, arg0);
}
public bool IsNull {
get {
return impl.isNull(this.Native);
}
}
public int Width {
get {
return impl.width(this.Native);
}
}
public int Height {
get {
return impl.height(this.Native);
}
}
public QSize Size {
get {
return impl.size(this.Native);
}
}
public QRect Rect {
get {
return impl.rect(this.Native);
}
}
public int Depth {
get {
return impl.depth(this.Native);
}
}
public QBitmap Mask {
get {
return impl.mask(this.Native);
}
set {
impl.setMask(this.Native, value);
}
}
public QPixmap AlphaChannel {
get {
return impl.alphaChannel(this.Native);
}
set {
impl.setAlphaChannel(this.Native, value);
}
}
public bool HasAlpha {
get {
return impl.hasAlpha(this.Native);
}
}
public bool HasAlphaChannel {
get {
return impl.hasAlphaChannel(this.Native);
}
}
public QImage ToImage {
get {
return impl.toImage(this.Native);
}
}
public int SerialNumber {
get {
return impl.serialNumber(this.Native);
}
}
public long CacheKey {
get {
return impl.cacheKey(this.Native);
}
}
public bool IsDetached {
get {
return impl.isDetached(this.Native);
}
}
public bool IsQBitmap {
get {
return impl.isQBitmap(this.Native);
}
}
public QX11Info X11Info {
get {
return impl.x11Info(this.Native);
}
}
public ulong X11PictureHandle {
get {
return impl.x11PictureHandle(this.Native);
}
}
public ulong Handle {
get {
return impl.handle(this.Native);
}
}
public QPixmapData PixmapData {
get {
return impl.pixmapData(this.Native);
}
}
public override void Dispose() {
}
public static int DefaultDepth() {
return impl.defaultDepth();
}
public void Fill(QColor fillColor) {
impl.fill(this.Native, fillColor);
}
public void Fill(QWidget widget, QPoint ofs) {
impl.fill(this.Native, widget, ofs);
}
public QBitmap CreateHeuristicMask(bool clipTight) {
return impl.createHeuristicMask(this.Native, clipTight);
}
public QBitmap CreateMaskFromColor(QColor maskColor) {
return impl.createMaskFromColor(this.Native, maskColor);
}
public QBitmap CreateMaskFromColor(QColor maskColor, MaskMode mode) {
return impl.createMaskFromColor(this.Native, maskColor, mode);
}
public static QPixmap GrabWindow(ulong arg0, int x, int y, int w, int h) {
return impl.grabWindow(arg0, x, y, w, h);
}
public static QPixmap GrabWidget(QWidget widget, QRect rect) {
return impl.grabWidget(widget, rect);
}
public QPixmap Scaled(QSize s, AspectRatioMode aspectMode, TransformationMode mode) {
return impl.scaled(this.Native, s, aspectMode, mode);
}
public QPixmap ScaledToWidth(int w, TransformationMode mode) {
return impl.scaledToWidth(this.Native, w, mode);
}
public QPixmap ScaledToHeight(int h, TransformationMode mode) {
return impl.scaledToHeight(this.Native, h, mode);
}
public QPixmap Transformed(QMatrix arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QMatrix TrueMatrix(QMatrix m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public QPixmap Transformed(QTransform arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QTransform TrueMatrix(QTransform m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public static QPixmap FromImage(QImage image, QFlags<Qt::ImageConversionFlag> flags) {
return impl.fromImage(image, flags);
}
public bool Load(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.load(this.Native, fileName, format, flags);
}
public bool LoadFromData(string buf, uint len, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.loadFromData(this.Native, buf, len, format, flags);
}
public bool Save(QString fileName, string format, int quality) {
return impl.save(this.Native, fileName, format, quality);
}
public bool Save(QIODevice device, string format, int quality) {
return impl.save(this.Native, device, format, quality);
}
public QPixmap Copy(QRect rect) {
return impl.copy(this.Native, rect);
}
public void Scroll(int dx, int dy, QRect rect, QRegion exposed) {
impl.scroll(this.Native, dx, dy, rect, exposed);
}
public void Detach() {
impl.detach(this.Native);
}
public static QPixmap FromX11Pixmap(ulong pixmap, ShareMode mode) {
return impl.fromX11Pixmap(pixmap, mode);
}
public static int X11SetDefaultScreen(int screen) {
return impl.x11SetDefaultScreen(screen);
}
public void X11SetScreen(int screen) {
impl.x11SetScreen(this.Native, screen);
}
public interface IQPixmap : ICppClassOverridable<QPixmap> {
[Constructor()]
void QPixmap(CppInstancePtr @this);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("struct QPixmapData *")] QPixmapData data);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize arg0);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("char const * const *")] string[] xpm);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap arg0);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isNull(CppInstancePtr @this);
[Const()]
int width(CppInstancePtr @this);
[Const()]
int height(CppInstancePtr @this);
[Const()]
QSize size(CppInstancePtr @this);
[Const()]
QRect rect(CppInstancePtr @this);
[Const()]
int depth(CppInstancePtr @this);
[Static()]
int defaultDepth();
void fill(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor fillColor);
void fill(CppInstancePtr @this, [MangleAs("class QWidget const *")] QWidget widget, [MangleAs("class QPoint const &")] QPoint ofs);
[Const()]
QBitmap mask(CppInstancePtr @this);
void setMask(CppInstancePtr @this, [MangleAs("class QBitmap const &")] QBitmap value);
[Const()]
QPixmap alphaChannel(CppInstancePtr @this);
void setAlphaChannel(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap value);
[Const()]
bool hasAlpha(CppInstancePtr @this);
[Const()]
bool hasAlphaChannel(CppInstancePtr @this);
[Const()]
QBitmap createHeuristicMask(CppInstancePtr @this, [MangleAs("bool")] bool clipTight);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor, [MangleAs("enum MaskMode")] MaskMode mode);
[Static()]
QPixmap grabWindow([MangleAs("int long unsigned")] ulong arg0, [MangleAs("int")] int x, [MangleAs("int")] int y, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Static()]
QPixmap grabWidget([MangleAs("class QWidget *")] QWidget widget, [MangleAs("class QRect const &")] QRect rect);
[Const()]
QPixmap scaled(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize s, [MangleAs("enum AspectRatioMode")] AspectRatioMode aspectMode, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToWidth(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToHeight(CppInstancePtr @this, [MangleAs("int")] int h, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QMatrix const &")] QMatrix arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QMatrix trueMatrix([MangleAs("class QMatrix const &")] QMatrix m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QTransform const &")] QTransform arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QTransform trueMatrix([MangleAs("class QTransform const &")] QTransform m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QImage toImage(CppInstancePtr @this);
[Static()]
QPixmap fromImage([MangleAs("class QImage const &")] QImage image, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool load(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool loadFromData(CppInstancePtr @this, [MangleAs("char unsigned const *")] string buf, [MangleAs("int unsigned")] uint len, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
QPixmap copy(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect rect);
void scroll(CppInstancePtr @this, [MangleAs("int")] int dx, [MangleAs("int")] int dy, [MangleAs("class QRect const &")] QRect rect, [MangleAs("class QRegion *")] QRegion exposed);
[Const()]
int serialNumber(CppInstancePtr @this);
[Const()]
long cacheKey(CppInstancePtr @this);
[Const()]
bool isDetached(CppInstancePtr @this);
void detach(CppInstancePtr @this);
[Const()]
bool isQBitmap(CppInstancePtr @this);
[Static()]
QPixmap fromX11Pixmap([MangleAs("int long unsigned")] ulong pixmap, [MangleAs("enum ShareMode")] ShareMode mode);
[Static()]
int x11SetDefaultScreen([MangleAs("int")] int screen);
void x11SetScreen(CppInstancePtr @this, [MangleAs("int")] int screen);
[Const()]
QX11Info x11Info(CppInstancePtr @this);
[Const()]
ulong x11PictureHandle(CppInstancePtr @this);
[Const()]
ulong handle(CppInstancePtr @this);
[Const()]
QPixmapData pixmapData(CppInstancePtr @this);
}
private struct _QPixmap {
// FIXME: Unknown type "class QExplicitlySharedDataPointer <QPixmapData>" for field "data." Assuming IntPtr.
private System.IntPtr data;
}
}
}

329
tests/output/QPixmap2.cs

@ -1,329 +0,0 @@ @@ -1,329 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPixmap : QPaintDevice {
private static IQPixmap impl = Wrappers.Libs.Lib.GetClass <IQPixmap, _QPixmap, QPixmap>("QPixmap");
public QPixmap() {
impl.QPixmap(this.Native);
}
public QPixmap(QPixmapData data) {
impl.QPixmap(this.Native, data);
}
public QPixmap(int w, int h) {
impl.QPixmap(this.Native, w, h);
}
public QPixmap(QSize arg0) {
impl.QPixmap(this.Native, arg0);
}
public QPixmap(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
impl.QPixmap(this.Native, fileName, format, flags);
}
public QPixmap(string[] xpm) {
impl.QPixmap(this.Native, xpm);
}
public QPixmap(QPixmap arg0) {
impl.QPixmap(this.Native, arg0);
}
public bool IsNull {
get {
return impl.isNull(this.Native);
}
}
public int Width {
get {
return impl.width(this.Native);
}
}
public int Height {
get {
return impl.height(this.Native);
}
}
public QSize Size {
get {
return impl.size(this.Native);
}
}
public QRect Rect {
get {
return impl.rect(this.Native);
}
}
public int Depth {
get {
return impl.depth(this.Native);
}
}
public QBitmap Mask {
get {
return impl.mask(this.Native);
}
set {
impl.setMask(this.Native, value);
}
}
public QPixmap AlphaChannel {
get {
return impl.alphaChannel(this.Native);
}
set {
impl.setAlphaChannel(this.Native, value);
}
}
public bool HasAlpha {
get {
return impl.hasAlpha(this.Native);
}
}
public bool HasAlphaChannel {
get {
return impl.hasAlphaChannel(this.Native);
}
}
public QImage ToImage {
get {
return impl.toImage(this.Native);
}
}
public int SerialNumber {
get {
return impl.serialNumber(this.Native);
}
}
public long CacheKey {
get {
return impl.cacheKey(this.Native);
}
}
public bool IsDetached {
get {
return impl.isDetached(this.Native);
}
}
public bool IsQBitmap {
get {
return impl.isQBitmap(this.Native);
}
}
public QX11Info X11Info {
get {
return impl.x11Info(this.Native);
}
}
public ulong X11PictureHandle {
get {
return impl.x11PictureHandle(this.Native);
}
}
public ulong Handle {
get {
return impl.handle(this.Native);
}
}
public QPixmapData PixmapData {
get {
return impl.pixmapData(this.Native);
}
}
public override void Dispose() {
}
public static int DefaultDepth() {
return impl.defaultDepth();
}
public void Fill(QColor fillColor) {
impl.fill(this.Native, fillColor);
}
public void Fill(QWidget widget, QPoint ofs) {
impl.fill(this.Native, widget, ofs);
}
public QBitmap CreateHeuristicMask(bool clipTight) {
return impl.createHeuristicMask(this.Native, clipTight);
}
public QBitmap CreateMaskFromColor(QColor maskColor) {
return impl.createMaskFromColor(this.Native, maskColor);
}
public QBitmap CreateMaskFromColor(QColor maskColor, MaskMode mode) {
return impl.createMaskFromColor(this.Native, maskColor, mode);
}
public static QPixmap GrabWindow(ulong arg0, int x, int y, int w, int h) {
return impl.grabWindow(arg0, x, y, w, h);
}
public static QPixmap GrabWidget(QWidget widget, QRect rect) {
return impl.grabWidget(widget, rect);
}
public QPixmap Scaled(QSize s, AspectRatioMode aspectMode, TransformationMode mode) {
return impl.scaled(this.Native, s, aspectMode, mode);
}
public QPixmap ScaledToWidth(int w, TransformationMode mode) {
return impl.scaledToWidth(this.Native, w, mode);
}
public QPixmap ScaledToHeight(int h, TransformationMode mode) {
return impl.scaledToHeight(this.Native, h, mode);
}
public QPixmap Transformed(QMatrix arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QMatrix TrueMatrix(QMatrix m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public QPixmap Transformed(QTransform arg0, TransformationMode mode) {
return impl.transformed(this.Native, arg0, mode);
}
public static QTransform TrueMatrix(QTransform m, int w, int h) {
return impl.trueMatrix(m, w, h);
}
public static QPixmap FromImage(QImage image, QFlags<Qt::ImageConversionFlag> flags) {
return impl.fromImage(image, flags);
}
public bool Load(QString fileName, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.load(this.Native, fileName, format, flags);
}
public bool LoadFromData(string buf, uint len, string format, QFlags<Qt::ImageConversionFlag> flags) {
return impl.loadFromData(this.Native, buf, len, format, flags);
}
public bool Save(QString fileName, string format, int quality) {
return impl.save(this.Native, fileName, format, quality);
}
public bool Save(QIODevice device, string format, int quality) {
return impl.save(this.Native, device, format, quality);
}
public QPixmap Copy(QRect rect) {
return impl.copy(this.Native, rect);
}
public void Scroll(int dx, int dy, QRect rect, QRegion exposed) {
impl.scroll(this.Native, dx, dy, rect, exposed);
}
public void Detach() {
impl.detach(this.Native);
}
public static QPixmap FromX11Pixmap(ulong pixmap, ShareMode mode) {
return impl.fromX11Pixmap(pixmap, mode);
}
public static int X11SetDefaultScreen(int screen) {
return impl.x11SetDefaultScreen(screen);
}
public void X11SetScreen(int screen) {
impl.x11SetScreen(this.Native, screen);
}
public interface IQPixmap : ICppClassOverridable<QPixmap> {
[Constructor()]
void QPixmap(CppInstancePtr @this);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("struct QPixmapData *")] QPixmapData data);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize arg0);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("char const * const *")] string[] xpm);
[Constructor()]
void QPixmap(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap arg0);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isNull(CppInstancePtr @this);
[Const()]
int width(CppInstancePtr @this);
[Const()]
int height(CppInstancePtr @this);
[Const()]
QSize size(CppInstancePtr @this);
[Const()]
QRect rect(CppInstancePtr @this);
[Const()]
int depth(CppInstancePtr @this);
[Static()]
int defaultDepth();
void fill(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor fillColor);
void fill(CppInstancePtr @this, [MangleAs("class QWidget const *")] QWidget widget, [MangleAs("class QPoint const &")] QPoint ofs);
[Const()]
QBitmap mask(CppInstancePtr @this);
void setMask(CppInstancePtr @this, [MangleAs("class QBitmap const &")] QBitmap value);
[Const()]
QPixmap alphaChannel(CppInstancePtr @this);
void setAlphaChannel(CppInstancePtr @this, [MangleAs("class QPixmap const &")] QPixmap value);
[Const()]
bool hasAlpha(CppInstancePtr @this);
[Const()]
bool hasAlphaChannel(CppInstancePtr @this);
[Const()]
QBitmap createHeuristicMask(CppInstancePtr @this, [MangleAs("bool")] bool clipTight);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor);
[Const()]
QBitmap createMaskFromColor(CppInstancePtr @this, [MangleAs("class QColor const &")] QColor maskColor, [MangleAs("enum MaskMode")] MaskMode mode);
[Static()]
QPixmap grabWindow([MangleAs("int long unsigned")] ulong arg0, [MangleAs("int")] int x, [MangleAs("int")] int y, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Static()]
QPixmap grabWidget([MangleAs("class QWidget *")] QWidget widget, [MangleAs("class QRect const &")] QRect rect);
[Const()]
QPixmap scaled(CppInstancePtr @this, [MangleAs("class QSize const &")] QSize s, [MangleAs("enum AspectRatioMode")] AspectRatioMode aspectMode, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToWidth(CppInstancePtr @this, [MangleAs("int")] int w, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap scaledToHeight(CppInstancePtr @this, [MangleAs("int")] int h, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QMatrix const &")] QMatrix arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QMatrix trueMatrix([MangleAs("class QMatrix const &")] QMatrix m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QPixmap transformed(CppInstancePtr @this, [MangleAs("class QTransform const &")] QTransform arg0, [MangleAs("enum TransformationMode")] TransformationMode mode);
[Static()]
QTransform trueMatrix([MangleAs("class QTransform const &")] QTransform m, [MangleAs("int")] int w, [MangleAs("int")] int h);
[Const()]
QImage toImage(CppInstancePtr @this);
[Static()]
QPixmap fromImage([MangleAs("class QImage const &")] QImage image, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool load(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
bool loadFromData(CppInstancePtr @this, [MangleAs("char unsigned const *")] string buf, [MangleAs("int unsigned")] uint len, [MangleAs("char const *")] string format, [MangleAs("class QFlags <Qt::ImageConversionFlag>")] QFlags<Qt::ImageConversionFlag> flags);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QString const &")] QString fileName, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
bool save(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device, [MangleAs("char const *")] string format, [MangleAs("int")] int quality);
[Const()]
QPixmap copy(CppInstancePtr @this, [MangleAs("class QRect const &")] QRect rect);
void scroll(CppInstancePtr @this, [MangleAs("int")] int dx, [MangleAs("int")] int dy, [MangleAs("class QRect const &")] QRect rect, [MangleAs("class QRegion *")] QRegion exposed);
[Const()]
int serialNumber(CppInstancePtr @this);
[Const()]
long cacheKey(CppInstancePtr @this);
[Const()]
bool isDetached(CppInstancePtr @this);
void detach(CppInstancePtr @this);
[Const()]
bool isQBitmap(CppInstancePtr @this);
[Static()]
QPixmap fromX11Pixmap([MangleAs("int long unsigned")] ulong pixmap, [MangleAs("enum ShareMode")] ShareMode mode);
[Static()]
int x11SetDefaultScreen([MangleAs("int")] int screen);
void x11SetScreen(CppInstancePtr @this, [MangleAs("int")] int screen);
[Const()]
QX11Info x11Info(CppInstancePtr @this);
[Const()]
ulong x11PictureHandle(CppInstancePtr @this);
[Const()]
ulong handle(CppInstancePtr @this);
[Const()]
QPixmapData pixmapData(CppInstancePtr @this);
}
private struct _QPixmap {
// FIXME: Unknown type "class QExplicitlySharedDataPointer <QPixmapData>" for field "data." Assuming IntPtr.
private System.IntPtr data;
}
}
}

368
tests/output/QPrinter.cs

@ -1,368 +0,0 @@ @@ -1,368 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPrinter : QPaintDevice {
private static IQPrinter impl = Wrappers.Libs.Lib.GetClass <IQPrinter, _QPrinter, QPrinter>("QPrinter");
public QPrinter(PrinterMode mode) {
impl.QPrinter(this.Native, mode);
}
public QPrinter(QPrinterInfo printer, PrinterMode mode) {
impl.QPrinter(this.Native, printer, mode);
}
public OutputFormat OutputFormat {
get {
return impl.outputFormat(this.Native);
}
set {
impl.setOutputFormat(this.Native, value);
}
}
public QString PrinterName {
get {
return impl.printerName(this.Native);
}
set {
impl.setPrinterName(this.Native, value);
}
}
public bool IsValid {
get {
return impl.isValid(this.Native);
}
}
public QString OutputFileName {
get {
return impl.outputFileName(this.Native);
}
set {
impl.setOutputFileName(this.Native, value);
}
}
public QString PrintProgram {
get {
return impl.printProgram(this.Native);
}
set {
impl.setPrintProgram(this.Native, value);
}
}
public QString DocName {
get {
return impl.docName(this.Native);
}
set {
impl.setDocName(this.Native, value);
}
}
public QString Creator {
get {
return impl.creator(this.Native);
}
set {
impl.setCreator(this.Native, value);
}
}
public Orientation Orientation {
get {
return impl.orientation(this.Native);
}
set {
impl.setOrientation(this.Native, value);
}
}
public PageSize PageSize {
get {
return impl.pageSize(this.Native);
}
set {
impl.setPageSize(this.Native, value);
}
}
public PageOrder PageOrder {
get {
return impl.pageOrder(this.Native);
}
set {
impl.setPageOrder(this.Native, value);
}
}
public int Resolution {
get {
return impl.resolution(this.Native);
}
set {
impl.setResolution(this.Native, value);
}
}
public ColorMode ColorMode {
get {
return impl.colorMode(this.Native);
}
set {
impl.setColorMode(this.Native, value);
}
}
public bool CollateCopies {
get {
return impl.collateCopies(this.Native);
}
set {
impl.setCollateCopies(this.Native, value);
}
}
public bool FullPage {
get {
return impl.fullPage(this.Native);
}
set {
impl.setFullPage(this.Native, value);
}
}
public int NumCopies {
get {
return impl.numCopies(this.Native);
}
set {
impl.setNumCopies(this.Native, value);
}
}
public int ActualNumCopies {
get {
return impl.actualNumCopies(this.Native);
}
}
public PaperSource PaperSource {
get {
return impl.paperSource(this.Native);
}
set {
impl.setPaperSource(this.Native, value);
}
}
public DuplexMode Duplex {
get {
return impl.duplex(this.Native);
}
set {
impl.setDuplex(this.Native, value);
}
}
public QList<System.Int32> SupportedResolutions {
get {
return impl.supportedResolutions(this.Native);
}
}
public bool FontEmbeddingEnabled {
get {
return impl.fontEmbeddingEnabled(this.Native);
}
set {
impl.setFontEmbeddingEnabled(this.Native, value);
}
}
public bool DoubleSidedPrinting {
get {
return impl.doubleSidedPrinting(this.Native);
}
set {
impl.setDoubleSidedPrinting(this.Native, value);
}
}
public QString PrinterSelectionOption {
get {
return impl.printerSelectionOption(this.Native);
}
set {
impl.setPrinterSelectionOption(this.Native, value);
}
}
public PrinterState PrinterState {
get {
return impl.printerState(this.Native);
}
}
public QPrintEngine PrintEngine {
get {
return impl.printEngine(this.Native);
}
}
public int FromPage {
get {
return impl.fromPage(this.Native);
}
}
public int ToPage {
get {
return impl.toPage(this.Native);
}
}
public PrintRange PrintRange {
get {
return impl.printRange(this.Native);
}
set {
impl.setPrintRange(this.Native, value);
}
}
public override void Dispose() {
}
public void SetPaperSize(PageSize arg0) {
impl.setPaperSize(this.Native, arg0);
}
public PageSize PaperSize() {
return impl.paperSize(this.Native);
}
public void SetPaperSize(QSizeF paperSize, Unit unit) {
impl.setPaperSize(this.Native, paperSize, unit);
}
public QSizeF PaperSize(Unit unit) {
return impl.paperSize(this.Native, unit);
}
public QRect PaperRect() {
return impl.paperRect(this.Native);
}
public QRect PageRect() {
return impl.pageRect(this.Native);
}
public QRectF PaperRect(Unit arg0) {
return impl.paperRect(this.Native, arg0);
}
public QRectF PageRect(Unit arg0) {
return impl.pageRect(this.Native, arg0);
}
public bool NewPage() {
return impl.newPage(this.Native);
}
public bool Abort() {
return impl.abort(this.Native);
}
public void SetFromTo(int fromPage, int toPage) {
impl.setFromTo(this.Native, fromPage, toPage);
}
public void SetPageMargins(double left, double top, double right, double bottom, Unit unit) {
impl.setPageMargins(this.Native, left, top, right, bottom, unit);
}
public void GetPageMargins(ref double left, ref double top, ref double right, ref double bottom, Unit unit) {
impl.getPageMargins(this.Native, ref left, ref top, ref right, ref bottom, unit);
}
public interface IQPrinter : ICppClassOverridable<QPrinter> {
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("class QPrinterInfo const &")] QPrinterInfo printer, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
OutputFormat outputFormat(CppInstancePtr @this);
void setOutputFormat(CppInstancePtr @this, [MangleAs("enum OutputFormat")] OutputFormat value);
[Const()]
QString printerName(CppInstancePtr @this);
void setPrinterName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
bool isValid(CppInstancePtr @this);
[Const()]
QString outputFileName(CppInstancePtr @this);
void setOutputFileName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString printProgram(CppInstancePtr @this);
void setPrintProgram(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString docName(CppInstancePtr @this);
void setDocName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString creator(CppInstancePtr @this);
void setCreator(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
Orientation orientation(CppInstancePtr @this);
void setOrientation(CppInstancePtr @this, [MangleAs("enum Orientation")] Orientation value);
[Const()]
PageSize pageSize(CppInstancePtr @this);
void setPageSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize value);
void setPaperSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize arg0);
[Const()]
PageSize paperSize(CppInstancePtr @this);
void setPaperSize(CppInstancePtr @this, [MangleAs("class QSizeF const &")] QSizeF paperSize, [MangleAs("enum Unit")] Unit unit);
[Const()]
QSizeF paperSize(CppInstancePtr @this, [MangleAs("enum Unit")] Unit unit);
[Const()]
PageOrder pageOrder(CppInstancePtr @this);
void setPageOrder(CppInstancePtr @this, [MangleAs("enum PageOrder")] PageOrder value);
[Const()]
int resolution(CppInstancePtr @this);
void setResolution(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
ColorMode colorMode(CppInstancePtr @this);
void setColorMode(CppInstancePtr @this, [MangleAs("enum ColorMode")] ColorMode value);
[Const()]
bool collateCopies(CppInstancePtr @this);
void setCollateCopies(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool fullPage(CppInstancePtr @this);
void setFullPage(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int numCopies(CppInstancePtr @this);
void setNumCopies(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int actualNumCopies(CppInstancePtr @this);
[Const()]
PaperSource paperSource(CppInstancePtr @this);
void setPaperSource(CppInstancePtr @this, [MangleAs("enum PaperSource")] PaperSource value);
[Const()]
DuplexMode duplex(CppInstancePtr @this);
void setDuplex(CppInstancePtr @this, [MangleAs("enum DuplexMode")] DuplexMode value);
[Const()]
QList<System.Int32> supportedResolutions(CppInstancePtr @this);
[Const()]
bool fontEmbeddingEnabled(CppInstancePtr @this);
void setFontEmbeddingEnabled(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool doubleSidedPrinting(CppInstancePtr @this);
void setDoubleSidedPrinting(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QRect paperRect(CppInstancePtr @this);
[Const()]
QRect pageRect(CppInstancePtr @this);
[Const()]
QRectF paperRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QRectF pageRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QString printerSelectionOption(CppInstancePtr @this);
void setPrinterSelectionOption(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
bool newPage(CppInstancePtr @this);
bool abort(CppInstancePtr @this);
[Const()]
PrinterState printerState(CppInstancePtr @this);
[Const()]
QPrintEngine printEngine(CppInstancePtr @this);
void setFromTo(CppInstancePtr @this, [MangleAs("int")] int fromPage, [MangleAs("int")] int toPage);
[Const()]
int fromPage(CppInstancePtr @this);
[Const()]
int toPage(CppInstancePtr @this);
[Const()]
PrintRange printRange(CppInstancePtr @this);
void setPrintRange(CppInstancePtr @this, [MangleAs("enum PrintRange")] PrintRange value);
void setPageMargins(CppInstancePtr @this, [MangleAs("double")] double left, [MangleAs("double")] double top, [MangleAs("double")] double right, [MangleAs("double")] double bottom, [MangleAs("enum Unit")] Unit unit);
[Const()]
void getPageMargins(CppInstancePtr @this, [MangleAs("double *")] ref double left, [MangleAs("double *")] ref double top, [MangleAs("double *")] ref double right, [MangleAs("double *")] ref double bottom, [MangleAs("enum Unit")] Unit unit);
}
private struct _QPrinter {
// FIXME: Unknown type "class QScopedPointer <QPrinterPrivate, QScopedPointerDeleter <QPrinterPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

368
tests/output/QPrinter1.cs

@ -1,368 +0,0 @@ @@ -1,368 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPrinter : QPaintDevice {
private static IQPrinter impl = Wrappers.Libs.Lib.GetClass <IQPrinter, _QPrinter, QPrinter>("QPrinter");
public QPrinter(PrinterMode mode) {
impl.QPrinter(this.Native, mode);
}
public QPrinter(QPrinterInfo printer, PrinterMode mode) {
impl.QPrinter(this.Native, printer, mode);
}
public OutputFormat OutputFormat {
get {
return impl.outputFormat(this.Native);
}
set {
impl.setOutputFormat(this.Native, value);
}
}
public QString PrinterName {
get {
return impl.printerName(this.Native);
}
set {
impl.setPrinterName(this.Native, value);
}
}
public bool IsValid {
get {
return impl.isValid(this.Native);
}
}
public QString OutputFileName {
get {
return impl.outputFileName(this.Native);
}
set {
impl.setOutputFileName(this.Native, value);
}
}
public QString PrintProgram {
get {
return impl.printProgram(this.Native);
}
set {
impl.setPrintProgram(this.Native, value);
}
}
public QString DocName {
get {
return impl.docName(this.Native);
}
set {
impl.setDocName(this.Native, value);
}
}
public QString Creator {
get {
return impl.creator(this.Native);
}
set {
impl.setCreator(this.Native, value);
}
}
public Orientation Orientation {
get {
return impl.orientation(this.Native);
}
set {
impl.setOrientation(this.Native, value);
}
}
public PageSize PageSize {
get {
return impl.pageSize(this.Native);
}
set {
impl.setPageSize(this.Native, value);
}
}
public PageOrder PageOrder {
get {
return impl.pageOrder(this.Native);
}
set {
impl.setPageOrder(this.Native, value);
}
}
public int Resolution {
get {
return impl.resolution(this.Native);
}
set {
impl.setResolution(this.Native, value);
}
}
public ColorMode ColorMode {
get {
return impl.colorMode(this.Native);
}
set {
impl.setColorMode(this.Native, value);
}
}
public bool CollateCopies {
get {
return impl.collateCopies(this.Native);
}
set {
impl.setCollateCopies(this.Native, value);
}
}
public bool FullPage {
get {
return impl.fullPage(this.Native);
}
set {
impl.setFullPage(this.Native, value);
}
}
public int NumCopies {
get {
return impl.numCopies(this.Native);
}
set {
impl.setNumCopies(this.Native, value);
}
}
public int ActualNumCopies {
get {
return impl.actualNumCopies(this.Native);
}
}
public PaperSource PaperSource {
get {
return impl.paperSource(this.Native);
}
set {
impl.setPaperSource(this.Native, value);
}
}
public DuplexMode Duplex {
get {
return impl.duplex(this.Native);
}
set {
impl.setDuplex(this.Native, value);
}
}
public QList<System.Int32> SupportedResolutions {
get {
return impl.supportedResolutions(this.Native);
}
}
public bool FontEmbeddingEnabled {
get {
return impl.fontEmbeddingEnabled(this.Native);
}
set {
impl.setFontEmbeddingEnabled(this.Native, value);
}
}
public bool DoubleSidedPrinting {
get {
return impl.doubleSidedPrinting(this.Native);
}
set {
impl.setDoubleSidedPrinting(this.Native, value);
}
}
public QString PrinterSelectionOption {
get {
return impl.printerSelectionOption(this.Native);
}
set {
impl.setPrinterSelectionOption(this.Native, value);
}
}
public PrinterState PrinterState {
get {
return impl.printerState(this.Native);
}
}
public QPrintEngine PrintEngine {
get {
return impl.printEngine(this.Native);
}
}
public int FromPage {
get {
return impl.fromPage(this.Native);
}
}
public int ToPage {
get {
return impl.toPage(this.Native);
}
}
public PrintRange PrintRange {
get {
return impl.printRange(this.Native);
}
set {
impl.setPrintRange(this.Native, value);
}
}
public override void Dispose() {
}
public void SetPaperSize(PageSize arg0) {
impl.setPaperSize(this.Native, arg0);
}
public PageSize PaperSize() {
return impl.paperSize(this.Native);
}
public void SetPaperSize(QSizeF paperSize, Unit unit) {
impl.setPaperSize(this.Native, paperSize, unit);
}
public QSizeF PaperSize(Unit unit) {
return impl.paperSize(this.Native, unit);
}
public QRect PaperRect() {
return impl.paperRect(this.Native);
}
public QRect PageRect() {
return impl.pageRect(this.Native);
}
public QRectF PaperRect(Unit arg0) {
return impl.paperRect(this.Native, arg0);
}
public QRectF PageRect(Unit arg0) {
return impl.pageRect(this.Native, arg0);
}
public bool NewPage() {
return impl.newPage(this.Native);
}
public bool Abort() {
return impl.abort(this.Native);
}
public void SetFromTo(int fromPage, int toPage) {
impl.setFromTo(this.Native, fromPage, toPage);
}
public void SetPageMargins(double left, double top, double right, double bottom, Unit unit) {
impl.setPageMargins(this.Native, left, top, right, bottom, unit);
}
public void GetPageMargins(ref double left, ref double top, ref double right, ref double bottom, Unit unit) {
impl.getPageMargins(this.Native, ref left, ref top, ref right, ref bottom, unit);
}
public interface IQPrinter : ICppClassOverridable<QPrinter> {
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("class QPrinterInfo const &")] QPrinterInfo printer, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
OutputFormat outputFormat(CppInstancePtr @this);
void setOutputFormat(CppInstancePtr @this, [MangleAs("enum OutputFormat")] OutputFormat value);
[Const()]
QString printerName(CppInstancePtr @this);
void setPrinterName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
bool isValid(CppInstancePtr @this);
[Const()]
QString outputFileName(CppInstancePtr @this);
void setOutputFileName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString printProgram(CppInstancePtr @this);
void setPrintProgram(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString docName(CppInstancePtr @this);
void setDocName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString creator(CppInstancePtr @this);
void setCreator(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
Orientation orientation(CppInstancePtr @this);
void setOrientation(CppInstancePtr @this, [MangleAs("enum Orientation")] Orientation value);
[Const()]
PageSize pageSize(CppInstancePtr @this);
void setPageSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize value);
void setPaperSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize arg0);
[Const()]
PageSize paperSize(CppInstancePtr @this);
void setPaperSize(CppInstancePtr @this, [MangleAs("class QSizeF const &")] QSizeF paperSize, [MangleAs("enum Unit")] Unit unit);
[Const()]
QSizeF paperSize(CppInstancePtr @this, [MangleAs("enum Unit")] Unit unit);
[Const()]
PageOrder pageOrder(CppInstancePtr @this);
void setPageOrder(CppInstancePtr @this, [MangleAs("enum PageOrder")] PageOrder value);
[Const()]
int resolution(CppInstancePtr @this);
void setResolution(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
ColorMode colorMode(CppInstancePtr @this);
void setColorMode(CppInstancePtr @this, [MangleAs("enum ColorMode")] ColorMode value);
[Const()]
bool collateCopies(CppInstancePtr @this);
void setCollateCopies(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool fullPage(CppInstancePtr @this);
void setFullPage(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int numCopies(CppInstancePtr @this);
void setNumCopies(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int actualNumCopies(CppInstancePtr @this);
[Const()]
PaperSource paperSource(CppInstancePtr @this);
void setPaperSource(CppInstancePtr @this, [MangleAs("enum PaperSource")] PaperSource value);
[Const()]
DuplexMode duplex(CppInstancePtr @this);
void setDuplex(CppInstancePtr @this, [MangleAs("enum DuplexMode")] DuplexMode value);
[Const()]
QList<System.Int32> supportedResolutions(CppInstancePtr @this);
[Const()]
bool fontEmbeddingEnabled(CppInstancePtr @this);
void setFontEmbeddingEnabled(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool doubleSidedPrinting(CppInstancePtr @this);
void setDoubleSidedPrinting(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QRect paperRect(CppInstancePtr @this);
[Const()]
QRect pageRect(CppInstancePtr @this);
[Const()]
QRectF paperRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QRectF pageRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QString printerSelectionOption(CppInstancePtr @this);
void setPrinterSelectionOption(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
bool newPage(CppInstancePtr @this);
bool abort(CppInstancePtr @this);
[Const()]
PrinterState printerState(CppInstancePtr @this);
[Const()]
QPrintEngine printEngine(CppInstancePtr @this);
void setFromTo(CppInstancePtr @this, [MangleAs("int")] int fromPage, [MangleAs("int")] int toPage);
[Const()]
int fromPage(CppInstancePtr @this);
[Const()]
int toPage(CppInstancePtr @this);
[Const()]
PrintRange printRange(CppInstancePtr @this);
void setPrintRange(CppInstancePtr @this, [MangleAs("enum PrintRange")] PrintRange value);
void setPageMargins(CppInstancePtr @this, [MangleAs("double")] double left, [MangleAs("double")] double top, [MangleAs("double")] double right, [MangleAs("double")] double bottom, [MangleAs("enum Unit")] Unit unit);
[Const()]
void getPageMargins(CppInstancePtr @this, [MangleAs("double *")] ref double left, [MangleAs("double *")] ref double top, [MangleAs("double *")] ref double right, [MangleAs("double *")] ref double bottom, [MangleAs("enum Unit")] Unit unit);
}
private struct _QPrinter {
// FIXME: Unknown type "class QScopedPointer <QPrinterPrivate, QScopedPointerDeleter <QPrinterPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

368
tests/output/QPrinter2.cs

@ -1,368 +0,0 @@ @@ -1,368 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QPrinter : QPaintDevice {
private static IQPrinter impl = Wrappers.Libs.Lib.GetClass <IQPrinter, _QPrinter, QPrinter>("QPrinter");
public QPrinter(PrinterMode mode) {
impl.QPrinter(this.Native, mode);
}
public QPrinter(QPrinterInfo printer, PrinterMode mode) {
impl.QPrinter(this.Native, printer, mode);
}
public OutputFormat OutputFormat {
get {
return impl.outputFormat(this.Native);
}
set {
impl.setOutputFormat(this.Native, value);
}
}
public QString PrinterName {
get {
return impl.printerName(this.Native);
}
set {
impl.setPrinterName(this.Native, value);
}
}
public bool IsValid {
get {
return impl.isValid(this.Native);
}
}
public QString OutputFileName {
get {
return impl.outputFileName(this.Native);
}
set {
impl.setOutputFileName(this.Native, value);
}
}
public QString PrintProgram {
get {
return impl.printProgram(this.Native);
}
set {
impl.setPrintProgram(this.Native, value);
}
}
public QString DocName {
get {
return impl.docName(this.Native);
}
set {
impl.setDocName(this.Native, value);
}
}
public QString Creator {
get {
return impl.creator(this.Native);
}
set {
impl.setCreator(this.Native, value);
}
}
public Orientation Orientation {
get {
return impl.orientation(this.Native);
}
set {
impl.setOrientation(this.Native, value);
}
}
public PageSize PageSize {
get {
return impl.pageSize(this.Native);
}
set {
impl.setPageSize(this.Native, value);
}
}
public PageOrder PageOrder {
get {
return impl.pageOrder(this.Native);
}
set {
impl.setPageOrder(this.Native, value);
}
}
public int Resolution {
get {
return impl.resolution(this.Native);
}
set {
impl.setResolution(this.Native, value);
}
}
public ColorMode ColorMode {
get {
return impl.colorMode(this.Native);
}
set {
impl.setColorMode(this.Native, value);
}
}
public bool CollateCopies {
get {
return impl.collateCopies(this.Native);
}
set {
impl.setCollateCopies(this.Native, value);
}
}
public bool FullPage {
get {
return impl.fullPage(this.Native);
}
set {
impl.setFullPage(this.Native, value);
}
}
public int NumCopies {
get {
return impl.numCopies(this.Native);
}
set {
impl.setNumCopies(this.Native, value);
}
}
public int ActualNumCopies {
get {
return impl.actualNumCopies(this.Native);
}
}
public PaperSource PaperSource {
get {
return impl.paperSource(this.Native);
}
set {
impl.setPaperSource(this.Native, value);
}
}
public DuplexMode Duplex {
get {
return impl.duplex(this.Native);
}
set {
impl.setDuplex(this.Native, value);
}
}
public QList<System.Int32> SupportedResolutions {
get {
return impl.supportedResolutions(this.Native);
}
}
public bool FontEmbeddingEnabled {
get {
return impl.fontEmbeddingEnabled(this.Native);
}
set {
impl.setFontEmbeddingEnabled(this.Native, value);
}
}
public bool DoubleSidedPrinting {
get {
return impl.doubleSidedPrinting(this.Native);
}
set {
impl.setDoubleSidedPrinting(this.Native, value);
}
}
public QString PrinterSelectionOption {
get {
return impl.printerSelectionOption(this.Native);
}
set {
impl.setPrinterSelectionOption(this.Native, value);
}
}
public PrinterState PrinterState {
get {
return impl.printerState(this.Native);
}
}
public QPrintEngine PrintEngine {
get {
return impl.printEngine(this.Native);
}
}
public int FromPage {
get {
return impl.fromPage(this.Native);
}
}
public int ToPage {
get {
return impl.toPage(this.Native);
}
}
public PrintRange PrintRange {
get {
return impl.printRange(this.Native);
}
set {
impl.setPrintRange(this.Native, value);
}
}
public override void Dispose() {
}
public void SetPaperSize(PageSize arg0) {
impl.setPaperSize(this.Native, arg0);
}
public PageSize PaperSize() {
return impl.paperSize(this.Native);
}
public void SetPaperSize(QSizeF paperSize, Unit unit) {
impl.setPaperSize(this.Native, paperSize, unit);
}
public QSizeF PaperSize(Unit unit) {
return impl.paperSize(this.Native, unit);
}
public QRect PaperRect() {
return impl.paperRect(this.Native);
}
public QRect PageRect() {
return impl.pageRect(this.Native);
}
public QRectF PaperRect(Unit arg0) {
return impl.paperRect(this.Native, arg0);
}
public QRectF PageRect(Unit arg0) {
return impl.pageRect(this.Native, arg0);
}
public bool NewPage() {
return impl.newPage(this.Native);
}
public bool Abort() {
return impl.abort(this.Native);
}
public void SetFromTo(int fromPage, int toPage) {
impl.setFromTo(this.Native, fromPage, toPage);
}
public void SetPageMargins(double left, double top, double right, double bottom, Unit unit) {
impl.setPageMargins(this.Native, left, top, right, bottom, unit);
}
public void GetPageMargins(ref double left, ref double top, ref double right, ref double bottom, Unit unit) {
impl.getPageMargins(this.Native, ref left, ref top, ref right, ref bottom, unit);
}
public interface IQPrinter : ICppClassOverridable<QPrinter> {
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Constructor()]
void QPrinter(CppInstancePtr @this, [MangleAs("class QPrinterInfo const &")] QPrinterInfo printer, [MangleAs("enum PrinterMode")] PrinterMode mode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
OutputFormat outputFormat(CppInstancePtr @this);
void setOutputFormat(CppInstancePtr @this, [MangleAs("enum OutputFormat")] OutputFormat value);
[Const()]
QString printerName(CppInstancePtr @this);
void setPrinterName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
bool isValid(CppInstancePtr @this);
[Const()]
QString outputFileName(CppInstancePtr @this);
void setOutputFileName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString printProgram(CppInstancePtr @this);
void setPrintProgram(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString docName(CppInstancePtr @this);
void setDocName(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
QString creator(CppInstancePtr @this);
void setCreator(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
[Const()]
Orientation orientation(CppInstancePtr @this);
void setOrientation(CppInstancePtr @this, [MangleAs("enum Orientation")] Orientation value);
[Const()]
PageSize pageSize(CppInstancePtr @this);
void setPageSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize value);
void setPaperSize(CppInstancePtr @this, [MangleAs("enum PageSize")] PageSize arg0);
[Const()]
PageSize paperSize(CppInstancePtr @this);
void setPaperSize(CppInstancePtr @this, [MangleAs("class QSizeF const &")] QSizeF paperSize, [MangleAs("enum Unit")] Unit unit);
[Const()]
QSizeF paperSize(CppInstancePtr @this, [MangleAs("enum Unit")] Unit unit);
[Const()]
PageOrder pageOrder(CppInstancePtr @this);
void setPageOrder(CppInstancePtr @this, [MangleAs("enum PageOrder")] PageOrder value);
[Const()]
int resolution(CppInstancePtr @this);
void setResolution(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
ColorMode colorMode(CppInstancePtr @this);
void setColorMode(CppInstancePtr @this, [MangleAs("enum ColorMode")] ColorMode value);
[Const()]
bool collateCopies(CppInstancePtr @this);
void setCollateCopies(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool fullPage(CppInstancePtr @this);
void setFullPage(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
int numCopies(CppInstancePtr @this);
void setNumCopies(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
int actualNumCopies(CppInstancePtr @this);
[Const()]
PaperSource paperSource(CppInstancePtr @this);
void setPaperSource(CppInstancePtr @this, [MangleAs("enum PaperSource")] PaperSource value);
[Const()]
DuplexMode duplex(CppInstancePtr @this);
void setDuplex(CppInstancePtr @this, [MangleAs("enum DuplexMode")] DuplexMode value);
[Const()]
QList<System.Int32> supportedResolutions(CppInstancePtr @this);
[Const()]
bool fontEmbeddingEnabled(CppInstancePtr @this);
void setFontEmbeddingEnabled(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool doubleSidedPrinting(CppInstancePtr @this);
void setDoubleSidedPrinting(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QRect paperRect(CppInstancePtr @this);
[Const()]
QRect pageRect(CppInstancePtr @this);
[Const()]
QRectF paperRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QRectF pageRect(CppInstancePtr @this, [MangleAs("enum Unit")] Unit arg0);
[Const()]
QString printerSelectionOption(CppInstancePtr @this);
void setPrinterSelectionOption(CppInstancePtr @this, [MangleAs("class QString const &")] QString value);
bool newPage(CppInstancePtr @this);
bool abort(CppInstancePtr @this);
[Const()]
PrinterState printerState(CppInstancePtr @this);
[Const()]
QPrintEngine printEngine(CppInstancePtr @this);
void setFromTo(CppInstancePtr @this, [MangleAs("int")] int fromPage, [MangleAs("int")] int toPage);
[Const()]
int fromPage(CppInstancePtr @this);
[Const()]
int toPage(CppInstancePtr @this);
[Const()]
PrintRange printRange(CppInstancePtr @this);
void setPrintRange(CppInstancePtr @this, [MangleAs("enum PrintRange")] PrintRange value);
void setPageMargins(CppInstancePtr @this, [MangleAs("double")] double left, [MangleAs("double")] double top, [MangleAs("double")] double right, [MangleAs("double")] double bottom, [MangleAs("enum Unit")] Unit unit);
[Const()]
void getPageMargins(CppInstancePtr @this, [MangleAs("double *")] ref double left, [MangleAs("double *")] ref double top, [MangleAs("double *")] ref double right, [MangleAs("double *")] ref double bottom, [MangleAs("enum Unit")] Unit unit);
}
private struct _QPrinter {
// FIXME: Unknown type "class QScopedPointer <QPrinterPrivate, QScopedPointerDeleter <QPrinterPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

86
tests/output/QProcessEnvironment.cs

@ -1,86 +0,0 @@ @@ -1,86 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QProcessEnvironment : ICppObject {
protected CppInstancePtr native_ptr;
private static IQProcessEnvironment impl = Wrappers.Libs.Lib.GetClass <IQProcessEnvironment, _QProcessEnvironment, QProcessEnvironment>("QProcessEnvironment");
public QProcessEnvironment() {
impl.QProcessEnvironment(this.Native);
}
public QProcessEnvironment(QProcessEnvironment other) {
impl.QProcessEnvironment(this.Native, other);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public bool IsEmpty {
get {
return impl.isEmpty(this.Native);
}
}
public QStringList ToStringList {
get {
return impl.toStringList(this.Native);
}
}
public virtual void Dispose() {
}
public void Clear() {
impl.clear(this.Native);
}
public bool Contains(QString name) {
return impl.contains(this.Native, name);
}
public void Insert(QString name, QString value) {
impl.insert(this.Native, name, value);
}
public void Remove(QString name) {
impl.remove(this.Native, name);
}
public QString Value(QString name, QString defaultValue) {
return impl.value(this.Native, name, defaultValue);
}
public static QProcessEnvironment SystemEnvironment() {
return impl.systemEnvironment();
}
public interface IQProcessEnvironment : ICppClassOverridable<QProcessEnvironment> {
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this);
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this, [MangleAs("class QProcessEnvironment const &")] QProcessEnvironment other);
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isEmpty(CppInstancePtr @this);
void clear(CppInstancePtr @this);
[Const()]
bool contains(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
void insert(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString value);
void remove(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
[Const()]
QString value(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString defaultValue);
[Const()]
QStringList toStringList(CppInstancePtr @this);
[Static()]
QProcessEnvironment systemEnvironment();
}
private struct _QProcessEnvironment {
// FIXME: Unknown type "class QSharedDataPointer <QProcessEnvironmentPrivate>" for field "d." Assuming IntPtr.
private System.IntPtr d;
}
}
}

86
tests/output/QProcessEnvironment1.cs

@ -1,86 +0,0 @@ @@ -1,86 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QProcessEnvironment : ICppObject {
protected CppInstancePtr native_ptr;
private static IQProcessEnvironment impl = Wrappers.Libs.Lib.GetClass <IQProcessEnvironment, _QProcessEnvironment, QProcessEnvironment>("QProcessEnvironment");
public QProcessEnvironment() {
impl.QProcessEnvironment(this.Native);
}
public QProcessEnvironment(QProcessEnvironment other) {
impl.QProcessEnvironment(this.Native, other);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public bool IsEmpty {
get {
return impl.isEmpty(this.Native);
}
}
public QStringList ToStringList {
get {
return impl.toStringList(this.Native);
}
}
public virtual void Dispose() {
}
public void Clear() {
impl.clear(this.Native);
}
public bool Contains(QString name) {
return impl.contains(this.Native, name);
}
public void Insert(QString name, QString value) {
impl.insert(this.Native, name, value);
}
public void Remove(QString name) {
impl.remove(this.Native, name);
}
public QString Value(QString name, QString defaultValue) {
return impl.value(this.Native, name, defaultValue);
}
public static QProcessEnvironment SystemEnvironment() {
return impl.systemEnvironment();
}
public interface IQProcessEnvironment : ICppClassOverridable<QProcessEnvironment> {
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this);
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this, [MangleAs("class QProcessEnvironment const &")] QProcessEnvironment other);
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isEmpty(CppInstancePtr @this);
void clear(CppInstancePtr @this);
[Const()]
bool contains(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
void insert(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString value);
void remove(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
[Const()]
QString value(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString defaultValue);
[Const()]
QStringList toStringList(CppInstancePtr @this);
[Static()]
QProcessEnvironment systemEnvironment();
}
private struct _QProcessEnvironment {
// FIXME: Unknown type "class QSharedDataPointer <QProcessEnvironmentPrivate>" for field "d." Assuming IntPtr.
private System.IntPtr d;
}
}
}

86
tests/output/QProcessEnvironment2.cs

@ -1,86 +0,0 @@ @@ -1,86 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QProcessEnvironment : ICppObject {
protected CppInstancePtr native_ptr;
private static IQProcessEnvironment impl = Wrappers.Libs.Lib.GetClass <IQProcessEnvironment, _QProcessEnvironment, QProcessEnvironment>("QProcessEnvironment");
public QProcessEnvironment() {
impl.QProcessEnvironment(this.Native);
}
public QProcessEnvironment(QProcessEnvironment other) {
impl.QProcessEnvironment(this.Native, other);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public bool IsEmpty {
get {
return impl.isEmpty(this.Native);
}
}
public QStringList ToStringList {
get {
return impl.toStringList(this.Native);
}
}
public virtual void Dispose() {
}
public void Clear() {
impl.clear(this.Native);
}
public bool Contains(QString name) {
return impl.contains(this.Native, name);
}
public void Insert(QString name, QString value) {
impl.insert(this.Native, name, value);
}
public void Remove(QString name) {
impl.remove(this.Native, name);
}
public QString Value(QString name, QString defaultValue) {
return impl.value(this.Native, name, defaultValue);
}
public static QProcessEnvironment SystemEnvironment() {
return impl.systemEnvironment();
}
public interface IQProcessEnvironment : ICppClassOverridable<QProcessEnvironment> {
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this);
[Constructor()]
void QProcessEnvironment(CppInstancePtr @this, [MangleAs("class QProcessEnvironment const &")] QProcessEnvironment other);
[Destructor()]
void Destruct(CppInstancePtr @this);
[Const()]
bool isEmpty(CppInstancePtr @this);
void clear(CppInstancePtr @this);
[Const()]
bool contains(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
void insert(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString value);
void remove(CppInstancePtr @this, [MangleAs("class QString const &")] QString name);
[Const()]
QString value(CppInstancePtr @this, [MangleAs("class QString const &")] QString name, [MangleAs("class QString const &")] QString defaultValue);
[Const()]
QStringList toStringList(CppInstancePtr @this);
[Static()]
QProcessEnvironment systemEnvironment();
}
private struct _QProcessEnvironment {
// FIXME: Unknown type "class QSharedDataPointer <QProcessEnvironmentPrivate>" for field "d." Assuming IntPtr.
private System.IntPtr d;
}
}
}

33
tests/output/QSysInfo.cs

@ -1,33 +0,0 @@ @@ -1,33 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QSysInfo : ICppObject {
protected CppInstancePtr native_ptr;
private static IQSysInfo impl = Wrappers.Libs.Lib.GetClass <IQSysInfo, _QSysInfo, QSysInfo>("QSysInfo");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQSysInfo : ICppClassOverridable<QSysInfo> {
}
private struct _QSysInfo {
}
}
}

43
tests/output/QTextBlockFormat.cs

@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextBlockFormat : QTextFormat {
private static IQTextBlockFormat impl = Wrappers.Libs.Lib.GetClass <IQTextBlockFormat, _QTextBlockFormat, QTextBlockFormat>("QTextBlockFormat");
public QTextBlockFormat() {
impl.QTextBlockFormat(this.Native);
}
public QList<QTextOption::Tab> TabPositions {
get {
return impl.tabPositions(this.Native);
}
set {
impl.setTabPositions(this.Native, value);
}
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQTextBlockFormat : ICppClassOverridable<QTextBlockFormat> {
[Constructor()]
void QTextBlockFormat(CppInstancePtr @this);
[Const()]
QList<QTextOption::Tab> tabPositions(CppInstancePtr @this);
void setTabPositions(CppInstancePtr @this, [MangleAs("class QList <QTextOption::Tab> const &")] QList<QTextOption::Tab> value);
}
private struct _QTextBlockFormat {
}
}
}

43
tests/output/QTextBlockFormat1.cs

@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextBlockFormat : QTextFormat {
private static IQTextBlockFormat impl = Wrappers.Libs.Lib.GetClass <IQTextBlockFormat, _QTextBlockFormat, QTextBlockFormat>("QTextBlockFormat");
public QTextBlockFormat() {
impl.QTextBlockFormat(this.Native);
}
public QList<QTextOption::Tab> TabPositions {
get {
return impl.tabPositions(this.Native);
}
set {
impl.setTabPositions(this.Native, value);
}
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQTextBlockFormat : ICppClassOverridable<QTextBlockFormat> {
[Constructor()]
void QTextBlockFormat(CppInstancePtr @this);
[Const()]
QList<QTextOption::Tab> tabPositions(CppInstancePtr @this);
void setTabPositions(CppInstancePtr @this, [MangleAs("class QList <QTextOption::Tab> const &")] QList<QTextOption::Tab> value);
}
private struct _QTextBlockFormat {
}
}
}

43
tests/output/QTextBlockFormat2.cs

@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextBlockFormat : QTextFormat {
private static IQTextBlockFormat impl = Wrappers.Libs.Lib.GetClass <IQTextBlockFormat, _QTextBlockFormat, QTextBlockFormat>("QTextBlockFormat");
public QTextBlockFormat() {
impl.QTextBlockFormat(this.Native);
}
public QList<QTextOption::Tab> TabPositions {
get {
return impl.tabPositions(this.Native);
}
set {
impl.setTabPositions(this.Native, value);
}
}
public override void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQTextBlockFormat : ICppClassOverridable<QTextBlockFormat> {
[Constructor()]
void QTextBlockFormat(CppInstancePtr @this);
[Const()]
QList<QTextOption::Tab> tabPositions(CppInstancePtr @this);
void setTabPositions(CppInstancePtr @this, [MangleAs("class QList <QTextOption::Tab> const &")] QList<QTextOption::Tab> value);
}
private struct _QTextBlockFormat {
}
}
}

270
tests/output/QTextStream.cs

@ -1,270 +0,0 @@ @@ -1,270 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextStream : ICppObject {
protected CppInstancePtr native_ptr;
private static IQTextStream impl = Wrappers.Libs.Lib.GetClass <IQTextStream, _QTextStream, QTextStream>("QTextStream");
public QTextStream() {
impl.QTextStream(this.Native);
}
public QTextStream(QIODevice device) {
impl.QTextStream(this.Native, device);
}
public QTextStream(_IO_FILE fileHandle, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, fileHandle, openMode);
}
public QTextStream(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, @string, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public QTextCodec Codec {
get {
return impl.codec(this.Native);
}
}
public bool AutoDetectUnicode {
get {
return impl.autoDetectUnicode(this.Native);
}
set {
impl.setAutoDetectUnicode(this.Native, value);
}
}
public bool GenerateByteOrderMark {
get {
return impl.generateByteOrderMark(this.Native);
}
set {
impl.setGenerateByteOrderMark(this.Native, value);
}
}
public QLocale Locale {
get {
return impl.locale(this.Native);
}
set {
impl.setLocale(this.Native, value);
}
}
public QIODevice Device {
get {
return impl.device(this.Native);
}
set {
impl.setDevice(this.Native, value);
}
}
public QString String {
get {
return impl.@string(this.Native);
}
}
public Status Status {
get {
return impl.status(this.Native);
}
set {
impl.setStatus(this.Native, value);
}
}
public bool AtEnd {
get {
return impl.atEnd(this.Native);
}
}
public long Pos {
get {
return impl.pos(this.Native);
}
}
public FieldAlignment FieldAlignment {
get {
return impl.fieldAlignment(this.Native);
}
set {
impl.setFieldAlignment(this.Native, value);
}
}
public QChar PadChar {
get {
return impl.padChar(this.Native);
}
set {
impl.setPadChar(this.Native, value);
}
}
public int FieldWidth {
get {
return impl.fieldWidth(this.Native);
}
set {
impl.setFieldWidth(this.Native, value);
}
}
public QFlags<QTextStream::NumberFlag> NumberFlags {
get {
return impl.numberFlags(this.Native);
}
set {
impl.setNumberFlags(this.Native, value);
}
}
public int IntegerBase {
get {
return impl.integerBase(this.Native);
}
set {
impl.setIntegerBase(this.Native, value);
}
}
public RealNumberNotation RealNumberNotation {
get {
return impl.realNumberNotation(this.Native);
}
set {
impl.setRealNumberNotation(this.Native, value);
}
}
public int RealNumberPrecision {
get {
return impl.realNumberPrecision(this.Native);
}
set {
impl.setRealNumberPrecision(this.Native, value);
}
}
public virtual void Dispose() {
}
public void SetCodec(QTextCodec codec) {
impl.setCodec(this.Native, codec);
}
public void SetCodec(string codecName) {
impl.setCodec(this.Native, codecName);
}
public void SetString(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.setString(this.Native, @string, openMode);
}
public void ResetStatus() {
impl.resetStatus(this.Native);
}
public void Reset() {
impl.reset(this.Native);
}
public void Flush() {
impl.flush(this.Native);
}
public bool Seek(long pos) {
return impl.seek(this.Native, pos);
}
public void SkipWhiteSpace() {
impl.skipWhiteSpace(this.Native);
}
public QString ReadLine(long maxlen) {
return impl.readLine(this.Native, maxlen);
}
public QString ReadAll() {
return impl.readAll(this.Native);
}
public QString Read(long maxlen) {
return impl.read(this.Native, maxlen);
}
public interface IQTextStream : ICppClassOverridable<QTextStream> {
[Constructor()]
void QTextStream(CppInstancePtr @this);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("struct _IO_FILE *")] _IO_FILE fileHandle, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray *")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray const &")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
void setCodec(CppInstancePtr @this, [MangleAs("class QTextCodec *")] QTextCodec codec);
void setCodec(CppInstancePtr @this, [MangleAs("char const *")] string codecName);
[Const()]
QTextCodec codec(CppInstancePtr @this);
[Const()]
bool autoDetectUnicode(CppInstancePtr @this);
void setAutoDetectUnicode(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool generateByteOrderMark(CppInstancePtr @this);
void setGenerateByteOrderMark(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QLocale locale(CppInstancePtr @this);
void setLocale(CppInstancePtr @this, [MangleAs("class QLocale const &")] QLocale value);
[Const()]
QIODevice device(CppInstancePtr @this);
void setDevice(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice value);
void setString(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Const()]
QString @string(CppInstancePtr @this);
[Const()]
Status status(CppInstancePtr @this);
void setStatus(CppInstancePtr @this, [MangleAs("enum Status")] Status value);
void resetStatus(CppInstancePtr @this);
[Const()]
bool atEnd(CppInstancePtr @this);
void reset(CppInstancePtr @this);
void flush(CppInstancePtr @this);
bool seek(CppInstancePtr @this, [MangleAs("int long long")] long pos);
[Const()]
long pos(CppInstancePtr @this);
void skipWhiteSpace(CppInstancePtr @this);
QString readLine(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
QString readAll(CppInstancePtr @this);
QString read(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
[Const()]
FieldAlignment fieldAlignment(CppInstancePtr @this);
void setFieldAlignment(CppInstancePtr @this, [MangleAs("enum FieldAlignment")] FieldAlignment value);
[Const()]
QChar padChar(CppInstancePtr @this);
void setPadChar(CppInstancePtr @this, [MangleAs("class QChar")] QChar value);
[Const()]
int fieldWidth(CppInstancePtr @this);
void setFieldWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QFlags<QTextStream::NumberFlag> numberFlags(CppInstancePtr @this);
void setNumberFlags(CppInstancePtr @this, [MangleAs("class QFlags <QTextStream::NumberFlag>")] QFlags<QTextStream::NumberFlag> value);
[Const()]
int integerBase(CppInstancePtr @this);
void setIntegerBase(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
RealNumberNotation realNumberNotation(CppInstancePtr @this);
void setRealNumberNotation(CppInstancePtr @this, [MangleAs("enum RealNumberNotation")] RealNumberNotation value);
[Const()]
int realNumberPrecision(CppInstancePtr @this);
void setRealNumberPrecision(CppInstancePtr @this, [MangleAs("int")] int value);
}
private struct _QTextStream {
// FIXME: Unknown type "class QScopedPointer <QTextStreamPrivate, QScopedPointerDeleter <QTextStreamPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

270
tests/output/QTextStream1.cs

@ -1,270 +0,0 @@ @@ -1,270 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextStream : ICppObject {
protected CppInstancePtr native_ptr;
private static IQTextStream impl = Wrappers.Libs.Lib.GetClass <IQTextStream, _QTextStream, QTextStream>("QTextStream");
public QTextStream() {
impl.QTextStream(this.Native);
}
public QTextStream(QIODevice device) {
impl.QTextStream(this.Native, device);
}
public QTextStream(_IO_FILE fileHandle, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, fileHandle, openMode);
}
public QTextStream(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, @string, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public QTextCodec Codec {
get {
return impl.codec(this.Native);
}
}
public bool AutoDetectUnicode {
get {
return impl.autoDetectUnicode(this.Native);
}
set {
impl.setAutoDetectUnicode(this.Native, value);
}
}
public bool GenerateByteOrderMark {
get {
return impl.generateByteOrderMark(this.Native);
}
set {
impl.setGenerateByteOrderMark(this.Native, value);
}
}
public QLocale Locale {
get {
return impl.locale(this.Native);
}
set {
impl.setLocale(this.Native, value);
}
}
public QIODevice Device {
get {
return impl.device(this.Native);
}
set {
impl.setDevice(this.Native, value);
}
}
public QString String {
get {
return impl.@string(this.Native);
}
}
public Status Status {
get {
return impl.status(this.Native);
}
set {
impl.setStatus(this.Native, value);
}
}
public bool AtEnd {
get {
return impl.atEnd(this.Native);
}
}
public long Pos {
get {
return impl.pos(this.Native);
}
}
public FieldAlignment FieldAlignment {
get {
return impl.fieldAlignment(this.Native);
}
set {
impl.setFieldAlignment(this.Native, value);
}
}
public QChar PadChar {
get {
return impl.padChar(this.Native);
}
set {
impl.setPadChar(this.Native, value);
}
}
public int FieldWidth {
get {
return impl.fieldWidth(this.Native);
}
set {
impl.setFieldWidth(this.Native, value);
}
}
public QFlags<QTextStream::NumberFlag> NumberFlags {
get {
return impl.numberFlags(this.Native);
}
set {
impl.setNumberFlags(this.Native, value);
}
}
public int IntegerBase {
get {
return impl.integerBase(this.Native);
}
set {
impl.setIntegerBase(this.Native, value);
}
}
public RealNumberNotation RealNumberNotation {
get {
return impl.realNumberNotation(this.Native);
}
set {
impl.setRealNumberNotation(this.Native, value);
}
}
public int RealNumberPrecision {
get {
return impl.realNumberPrecision(this.Native);
}
set {
impl.setRealNumberPrecision(this.Native, value);
}
}
public virtual void Dispose() {
}
public void SetCodec(QTextCodec codec) {
impl.setCodec(this.Native, codec);
}
public void SetCodec(string codecName) {
impl.setCodec(this.Native, codecName);
}
public void SetString(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.setString(this.Native, @string, openMode);
}
public void ResetStatus() {
impl.resetStatus(this.Native);
}
public void Reset() {
impl.reset(this.Native);
}
public void Flush() {
impl.flush(this.Native);
}
public bool Seek(long pos) {
return impl.seek(this.Native, pos);
}
public void SkipWhiteSpace() {
impl.skipWhiteSpace(this.Native);
}
public QString ReadLine(long maxlen) {
return impl.readLine(this.Native, maxlen);
}
public QString ReadAll() {
return impl.readAll(this.Native);
}
public QString Read(long maxlen) {
return impl.read(this.Native, maxlen);
}
public interface IQTextStream : ICppClassOverridable<QTextStream> {
[Constructor()]
void QTextStream(CppInstancePtr @this);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("struct _IO_FILE *")] _IO_FILE fileHandle, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray *")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray const &")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
void setCodec(CppInstancePtr @this, [MangleAs("class QTextCodec *")] QTextCodec codec);
void setCodec(CppInstancePtr @this, [MangleAs("char const *")] string codecName);
[Const()]
QTextCodec codec(CppInstancePtr @this);
[Const()]
bool autoDetectUnicode(CppInstancePtr @this);
void setAutoDetectUnicode(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool generateByteOrderMark(CppInstancePtr @this);
void setGenerateByteOrderMark(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QLocale locale(CppInstancePtr @this);
void setLocale(CppInstancePtr @this, [MangleAs("class QLocale const &")] QLocale value);
[Const()]
QIODevice device(CppInstancePtr @this);
void setDevice(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice value);
void setString(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Const()]
QString @string(CppInstancePtr @this);
[Const()]
Status status(CppInstancePtr @this);
void setStatus(CppInstancePtr @this, [MangleAs("enum Status")] Status value);
void resetStatus(CppInstancePtr @this);
[Const()]
bool atEnd(CppInstancePtr @this);
void reset(CppInstancePtr @this);
void flush(CppInstancePtr @this);
bool seek(CppInstancePtr @this, [MangleAs("int long long")] long pos);
[Const()]
long pos(CppInstancePtr @this);
void skipWhiteSpace(CppInstancePtr @this);
QString readLine(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
QString readAll(CppInstancePtr @this);
QString read(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
[Const()]
FieldAlignment fieldAlignment(CppInstancePtr @this);
void setFieldAlignment(CppInstancePtr @this, [MangleAs("enum FieldAlignment")] FieldAlignment value);
[Const()]
QChar padChar(CppInstancePtr @this);
void setPadChar(CppInstancePtr @this, [MangleAs("class QChar")] QChar value);
[Const()]
int fieldWidth(CppInstancePtr @this);
void setFieldWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QFlags<QTextStream::NumberFlag> numberFlags(CppInstancePtr @this);
void setNumberFlags(CppInstancePtr @this, [MangleAs("class QFlags <QTextStream::NumberFlag>")] QFlags<QTextStream::NumberFlag> value);
[Const()]
int integerBase(CppInstancePtr @this);
void setIntegerBase(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
RealNumberNotation realNumberNotation(CppInstancePtr @this);
void setRealNumberNotation(CppInstancePtr @this, [MangleAs("enum RealNumberNotation")] RealNumberNotation value);
[Const()]
int realNumberPrecision(CppInstancePtr @this);
void setRealNumberPrecision(CppInstancePtr @this, [MangleAs("int")] int value);
}
private struct _QTextStream {
// FIXME: Unknown type "class QScopedPointer <QTextStreamPrivate, QScopedPointerDeleter <QTextStreamPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

270
tests/output/QTextStream2.cs

@ -1,270 +0,0 @@ @@ -1,270 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTextStream : ICppObject {
protected CppInstancePtr native_ptr;
private static IQTextStream impl = Wrappers.Libs.Lib.GetClass <IQTextStream, _QTextStream, QTextStream>("QTextStream");
public QTextStream() {
impl.QTextStream(this.Native);
}
public QTextStream(QIODevice device) {
impl.QTextStream(this.Native, device);
}
public QTextStream(_IO_FILE fileHandle, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, fileHandle, openMode);
}
public QTextStream(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, @string, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public QTextStream(QByteArray array, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.QTextStream(this.Native, array, openMode);
}
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public QTextCodec Codec {
get {
return impl.codec(this.Native);
}
}
public bool AutoDetectUnicode {
get {
return impl.autoDetectUnicode(this.Native);
}
set {
impl.setAutoDetectUnicode(this.Native, value);
}
}
public bool GenerateByteOrderMark {
get {
return impl.generateByteOrderMark(this.Native);
}
set {
impl.setGenerateByteOrderMark(this.Native, value);
}
}
public QLocale Locale {
get {
return impl.locale(this.Native);
}
set {
impl.setLocale(this.Native, value);
}
}
public QIODevice Device {
get {
return impl.device(this.Native);
}
set {
impl.setDevice(this.Native, value);
}
}
public QString String {
get {
return impl.@string(this.Native);
}
}
public Status Status {
get {
return impl.status(this.Native);
}
set {
impl.setStatus(this.Native, value);
}
}
public bool AtEnd {
get {
return impl.atEnd(this.Native);
}
}
public long Pos {
get {
return impl.pos(this.Native);
}
}
public FieldAlignment FieldAlignment {
get {
return impl.fieldAlignment(this.Native);
}
set {
impl.setFieldAlignment(this.Native, value);
}
}
public QChar PadChar {
get {
return impl.padChar(this.Native);
}
set {
impl.setPadChar(this.Native, value);
}
}
public int FieldWidth {
get {
return impl.fieldWidth(this.Native);
}
set {
impl.setFieldWidth(this.Native, value);
}
}
public QFlags<QTextStream::NumberFlag> NumberFlags {
get {
return impl.numberFlags(this.Native);
}
set {
impl.setNumberFlags(this.Native, value);
}
}
public int IntegerBase {
get {
return impl.integerBase(this.Native);
}
set {
impl.setIntegerBase(this.Native, value);
}
}
public RealNumberNotation RealNumberNotation {
get {
return impl.realNumberNotation(this.Native);
}
set {
impl.setRealNumberNotation(this.Native, value);
}
}
public int RealNumberPrecision {
get {
return impl.realNumberPrecision(this.Native);
}
set {
impl.setRealNumberPrecision(this.Native, value);
}
}
public virtual void Dispose() {
}
public void SetCodec(QTextCodec codec) {
impl.setCodec(this.Native, codec);
}
public void SetCodec(string codecName) {
impl.setCodec(this.Native, codecName);
}
public void SetString(QString @string, QFlags<QIODevice::OpenModeFlag> openMode) {
impl.setString(this.Native, @string, openMode);
}
public void ResetStatus() {
impl.resetStatus(this.Native);
}
public void Reset() {
impl.reset(this.Native);
}
public void Flush() {
impl.flush(this.Native);
}
public bool Seek(long pos) {
return impl.seek(this.Native, pos);
}
public void SkipWhiteSpace() {
impl.skipWhiteSpace(this.Native);
}
public QString ReadLine(long maxlen) {
return impl.readLine(this.Native, maxlen);
}
public QString ReadAll() {
return impl.readAll(this.Native);
}
public QString Read(long maxlen) {
return impl.read(this.Native, maxlen);
}
public interface IQTextStream : ICppClassOverridable<QTextStream> {
[Constructor()]
void QTextStream(CppInstancePtr @this);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice device);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("struct _IO_FILE *")] _IO_FILE fileHandle, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray *")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Constructor()]
void QTextStream(CppInstancePtr @this, [MangleAs("class QByteArray const &")] QByteArray array, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Virtual()]
[Destructor()]
void Destruct(CppInstancePtr @this);
void setCodec(CppInstancePtr @this, [MangleAs("class QTextCodec *")] QTextCodec codec);
void setCodec(CppInstancePtr @this, [MangleAs("char const *")] string codecName);
[Const()]
QTextCodec codec(CppInstancePtr @this);
[Const()]
bool autoDetectUnicode(CppInstancePtr @this);
void setAutoDetectUnicode(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
bool generateByteOrderMark(CppInstancePtr @this);
void setGenerateByteOrderMark(CppInstancePtr @this, [MangleAs("bool")] bool value);
[Const()]
QLocale locale(CppInstancePtr @this);
void setLocale(CppInstancePtr @this, [MangleAs("class QLocale const &")] QLocale value);
[Const()]
QIODevice device(CppInstancePtr @this);
void setDevice(CppInstancePtr @this, [MangleAs("class QIODevice *")] QIODevice value);
void setString(CppInstancePtr @this, [MangleAs("class QString *")] QString @string, [MangleAs("class QFlags <QIODevice::OpenModeFlag>")] QFlags<QIODevice::OpenModeFlag> openMode);
[Const()]
QString @string(CppInstancePtr @this);
[Const()]
Status status(CppInstancePtr @this);
void setStatus(CppInstancePtr @this, [MangleAs("enum Status")] Status value);
void resetStatus(CppInstancePtr @this);
[Const()]
bool atEnd(CppInstancePtr @this);
void reset(CppInstancePtr @this);
void flush(CppInstancePtr @this);
bool seek(CppInstancePtr @this, [MangleAs("int long long")] long pos);
[Const()]
long pos(CppInstancePtr @this);
void skipWhiteSpace(CppInstancePtr @this);
QString readLine(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
QString readAll(CppInstancePtr @this);
QString read(CppInstancePtr @this, [MangleAs("int long long")] long maxlen);
[Const()]
FieldAlignment fieldAlignment(CppInstancePtr @this);
void setFieldAlignment(CppInstancePtr @this, [MangleAs("enum FieldAlignment")] FieldAlignment value);
[Const()]
QChar padChar(CppInstancePtr @this);
void setPadChar(CppInstancePtr @this, [MangleAs("class QChar")] QChar value);
[Const()]
int fieldWidth(CppInstancePtr @this);
void setFieldWidth(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
QFlags<QTextStream::NumberFlag> numberFlags(CppInstancePtr @this);
void setNumberFlags(CppInstancePtr @this, [MangleAs("class QFlags <QTextStream::NumberFlag>")] QFlags<QTextStream::NumberFlag> value);
[Const()]
int integerBase(CppInstancePtr @this);
void setIntegerBase(CppInstancePtr @this, [MangleAs("int")] int value);
[Const()]
RealNumberNotation realNumberNotation(CppInstancePtr @this);
void setRealNumberNotation(CppInstancePtr @this, [MangleAs("enum RealNumberNotation")] RealNumberNotation value);
[Const()]
int realNumberPrecision(CppInstancePtr @this);
void setRealNumberPrecision(CppInstancePtr @this, [MangleAs("int")] int value);
}
private struct _QTextStream {
// FIXME: Unknown type "class QScopedPointer <QTextStreamPrivate, QScopedPointerDeleter <QTextStreamPrivate>>" for field "d_ptr." Assuming IntPtr.
private System.IntPtr d_ptr;
}
}
}

35
tests/output/QTypeInfo.cs

@ -1,35 +0,0 @@ @@ -1,35 +0,0 @@
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
namespace Wrappers {
using System;
using System.Runtime.InteropServices;
using Mono.VisualC.Interop;
public class QTypeInfo<T> : ICppObject
{
protected CppInstancePtr native_ptr;
private static IQTypeInfo<T> impl = Wrappers.Libs.Lib.GetClass <IQTypeInfo<T>, _QTypeInfo, QTypeInfo<T>>("QTypeInfo");
public CppInstancePtr Native {
get {
return this.native_ptr;
}
}
public virtual void Dispose() {
// FIXME: Check for inline destructor for this class.
this.Native.Dispose();
}
public interface IQTypeInfo<T> : ICppClassOverridable<QTypeInfo<T>>
{
}
private struct _QTypeInfo {
}
}
}

2
tests/qttests/Main.cs

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
using System;
using Qt.Gui;
using Mono.VisualC.Interop;
namespace qttests {

BIN
tests/qttests/bin/Debug/Mono.VisualC.Code.dll

Binary file not shown.

BIN
tests/qttests/bin/Debug/Mono.VisualC.Interop.dll

Binary file not shown.

105
tests/qttests/qttests.csproj

File diff suppressed because one or more lines are too long

BIN
tests/qttests/qttests.pidb

Binary file not shown.
Loading…
Cancel
Save