no more submodule

This commit is contained in:
2024-09-15 22:40:48 +02:00
parent df3b8a3135
commit 0234b33671
5804 changed files with 943618 additions and 1 deletions

13
GtkSharp/Source/.idea/.idea.GtkSharp/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/.idea.GtkSharp.iml
/projectSettingsUpdater.xml
/modules.xml
/contentModel.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1 @@
GtkSharp

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="ASK" />
<option name="description" value="" />
</component>
</project>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RiderProjectSettingsUpdater">
<option name="vcsConfiguration" value="2" />
</component>
</project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

View File

@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoGeneratedRunConfigurationManager">
<projectFile>Samples/Samples.csproj</projectFile>
</component>
<component name="ChangeListManager">
<list default="true" id="48b6c76f-144e-4708-bc06-8f4afb62a196" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
</component>
<component name="GitToolBoxStore">
<option name="projectConfigVersion" value="5" />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"associatedIndex": 2
}]]></component>
<component name="ProjectId" id="2m7YMYTPyn2nXV58txS7sGXZIvz" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "develop",
"nodejs_package_manager_path": "npm",
"vue.rearranger.settings.migration": "true"
},
"keyToStringList": {
"rider.external.source.directories": [
"C:\\Users\\Uther\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\DecompilerCache",
"C:\\Users\\Uther\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\SourcesCache",
"C:\\Users\\Uther\\AppData\\Local\\Symbols\\src"
]
}
}]]></component>
<component name="RunManager">
<configuration name="Samples" type="DotNetProject" factoryName=".NET Project">
<option name="EXE_PATH" value="" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="USE_EXTERNAL_CONSOLE" value="0" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="PROJECT_PATH" value="$PROJECT_DIR$/Samples/Samples.csproj" />
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
<option name="PROJECT_KIND" value="DotNetCore" />
<option name="PROJECT_TFM" value="" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="48b6c76f-144e-4708-bc06-8f4afb62a196" name="Changes" comment="" />
<created>1726429034926</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1726429034926</updated>
<workItem from="1726429037038" duration="36000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
</component>
</project>

View File

@@ -0,0 +1,12 @@
using Mono.Addins;
namespace MonoDevelop.GtkSharp.Addin
{
public class CheckMissing : ConditionType
{
public override bool Evaluate(NodeElement conditionNode)
{
return AddinManager.GetExtensionNode("/MonoDevelop/Ide/ProjectTemplateCategories/crossplat/app") == null;
}
}
}

View File

@@ -0,0 +1,20 @@
using System.Diagnostics;
using MonoDevelop.Ide.Desktop;
namespace MonoDevelop.GtkSharp.Addin
{
public class GladeDesktopApplication : DesktopApplication
{
private readonly string _filename;
public GladeDesktopApplication(string filename) : base("GladeApp", "Glade", true)
{
_filename = filename;
}
public override void Launch(params string[] files)
{
Process.Start("glade", _filename);
}
}
}

View File

@@ -0,0 +1,22 @@
using MonoDevelop.Core;
using MonoDevelop.Ide.Desktop;
using MonoDevelop.Ide.Gui;
using MonoDevelop.Projects;
namespace MonoDevelop.GtkSharp.Addin
{
public class GladeDisplayBinding : IExternalDisplayBinding
{
public bool CanUseAsDefault => true;
public bool CanHandle(FilePath fileName, string mimeType, Project ownerProject)
{
return fileName.Extension == ".glade";
}
public DesktopApplication GetApplication(FilePath fileName, string mimeType, Project ownerProject)
{
return new GladeDesktopApplication(fileName.FullPath);
}
}
}

View File

@@ -0,0 +1,85 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<OutputPath>..\..\..\BuildOutput\Addins\MonoDevelop\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoDevelop.Addins" Version="0.4.7" />
</ItemGroup>
<ItemGroup>
<None Remove="Templates\File\Dialog.CS.xft.xml" />
<None Remove="Templates\File\Widget.CS.xft.xml" />
<None Remove="Templates\File\Window.CS.xft.xml" />
<None Remove="Templates\File\Data\Dialog.glade" />
<None Remove="Templates\File\Data\Widget.glade" />
<None Remove="Templates\File\Data\Window.glade" />
<None Remove="Templates\GtkSharp.Template.CSharp.nupkg" />
<None Remove="Templates\GtkSharp.Template.VBNet.nupkg" />
<None Remove="Templates\GtkSharp.Template.FSharp.nupkg" />
<None Remove="Templates\File\Data\Dialog.fs" />
<None Remove="Templates\File\Data\Widget.fs" />
<None Remove="Templates\File\Data\Window.fs" />
<None Remove="Templates\File\Dialog.FS.xft.xml" />
<None Remove="Templates\File\Widget.FS.xft.xml" />
<None Remove="Templates\File\Window.FS.xft.xml" />
</ItemGroup>
<ItemGroup>
<Content Include="Templates\File\Dialog.CS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Widget.CS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Window.CS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Dialog.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Dialog.glade">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Widget.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Widget.glade">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Window.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Window.glade">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\GtkSharp.Template.CSharp.nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\GtkSharp.Template.FSharp.nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Dialog.fs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Widget.fs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Data\Window.fs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Dialog.FS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Widget.FS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Templates\File\Window.FS.xft.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Remove="Templates\File\Data\Dialog.cs" />
<Compile Remove="Templates\File\Data\Widget.cs" />
<Compile Remove="Templates\File\Data\Window.cs" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,17 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.GtkSharp.Addin", "MonoDevelop.GtkSharp.Addin.csproj", "{F58399F1-E539-4625-873D-90045BDB519E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F58399F1-E539-4625-873D-90045BDB519E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F58399F1-E539-4625-873D-90045BDB519E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F58399F1-E539-4625-873D-90045BDB519E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F58399F1-E539-4625-873D-90045BDB519E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,12 @@
using Mono.Addins;
using Mono.Addins.Description;
[assembly: AddinName("GtkSharp Addin")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("Provides modern Gtk project and file templates, as well as glade file integration.")]
[assembly: AddinAuthor("GtkSharp Contributors")]
[assembly: AddinUrl("https://github.com/GtkSharp/GtkSharp")]
[assembly: AddinDependency("MonoDevelop.Core", MonoDevelop.BuildInfo.Version)]
[assembly: AddinDependency("MonoDevelop.Ide", MonoDevelop.BuildInfo.Version)]
[assembly: AddinDependency("MonoDevelop.DotNetCore", MonoDevelop.BuildInfo.Version)]

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<ExtensionModel>
<Runtime>
<!-- Project Templates -->
<Import file="Templates/GtkSharp.Template.CSharp.nupkg" />
<Import file="Templates/GtkSharp.Template.FSharp.nupkg" />
<!-- File Templates -->
<Import file="Templates/File/Data/Dialog.glade" />
<Import file="Templates/File/Data/Widget.glade" />
<Import file="Templates/File/Data/Window.glade" />
<Import file="Templates/File/Data/Dialog.cs" />
<Import file="Templates/File/Data/Widget.cs" />
<Import file="Templates/File/Data/Window.cs" />
<Import file="Templates/File/Dialog.CS.xft.xml" />
<Import file="Templates/File/Widget.CS.xft.xml" />
<Import file="Templates/File/Window.CS.xft.xml" />
<Import file="Templates/File/Data/Dialog.fs" />
<Import file="Templates/File/Data/Widget.fs" />
<Import file="Templates/File/Data/Window.fs" />
<Import file="Templates/File/Dialog.FS.xft.xml" />
<Import file="Templates/File/Widget.FS.xft.xml" />
<Import file="Templates/File/Window.FS.xft.xml" />
</Runtime>
<ConditionType id="CheckMissing" type="MonoDevelop.GtkSharp.Addin.CheckMissing" />
<Extension path="/MonoDevelop/Ide/ProjectTemplateCategories/multiplat">
<Condition id="CheckMissing">
<Category id="app" name="App" insertbefore="library" />
</Condition>
</Extension>
<Extension path="/MonoDevelop/Ide/ProjectTemplateCategories/multiplat/app">
<Category id="gtk" name="Gtk" />
</Extension>
<Extension path="/MonoDevelop/Ide/Templates">
<Template
id="GtkSharp.Application.CSharp"
_overrideDescription="Creates a new Gtk multiplatform application."
path="Templates/GtkSharp.Template.CSharp.nupkg"
category="multiplat/app/gtk"
icon="md-gui-project"
imageId="md-gui-project" />
<Template
id="GtkSharp.Application.FSharp"
_overrideDescription="Creates a new Gtk multiplatform application."
path="Templates/GtkSharp.Template.FSharp.nupkg"
category="multiplat/app/gtk"
icon="md-gui-project"
imageId="md-gui-project" />
</Extension>
<Extension path="/MonoDevelop/Ide/FileTemplates">
<FileTemplate id="gtk.cs.dialog" file="Templates/File/Dialog.CS.xft.xml" />
<FileTemplate id="gtk.cs.widget" file="Templates/File/Widget.CS.xft.xml" />
<FileTemplate id="gtk.cs.window" file="Templates/File/Window.CS.xft.xml" />
<FileTemplate id="gtk.fs.dialog" file="Templates/File/Dialog.FS.xft.xml" />
<FileTemplate id="gtk.fs.widget" file="Templates/File/Widget.FS.xft.xml" />
<FileTemplate id="gtk.fs.window" file="Templates/File/Window.FS.xft.xml" />
</Extension>
<Extension path="/MonoDevelop/Ide/DisplayBindings">
<DisplayBinding id="GladeApp" insertbefore="DefaultDisplayBinding" class="MonoDevelop.GtkSharp.Addin.GladeDisplayBinding" />
</Extension>
</ExtensionModel>

View File

@@ -0,0 +1,24 @@
using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
namespace ${Namespace}
{
class ${EscapedIdentifier} : Dialog
{
public MyDialog() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
private MyDialog(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
{
builder.Autoconnect(this);
DefaultResponse = ResponseType.Cancel;
Response += OnResponse;
}
private void OnResponse(object o, ResponseArgs args)
{
Hide();
}
}
}

View File

@@ -0,0 +1,13 @@
namespace ${Namespace}
open Gtk
type ${EscapedIdentifier} (builder : Builder) as this =
inherit Dialog(builder.GetObject("${EscapedIdentifier}").Handle)
do
this.DefaultResponse <- ResponseType.Cancel;
this.Response.Add(fun _ ->
this.Hide();
)
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
<object class="GtkDialog" id="${EscapedIdentifier}">
<property name="can_focus">False</property>
<property name="default_width">320</property>
<property name="default_height">260</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<placeholder/>
</child>
<child>
<object class="GtkButton" id="button1">
<property name="label">gtk-close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<action-widgets>
<action-widget response="-7">button1</action-widget>
</action-widgets>
</object>
</interface>

View File

@@ -0,0 +1,16 @@
using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
namespace ${Namespace}
{
public class ${EscapedIdentifier} : Box
{
public ${EscapedIdentifier}() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
private ${EscapedIdentifier}(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
{
builder.Autoconnect(this);
}
}
}

View File

@@ -0,0 +1,8 @@
namespace ${Namespace}
open Gtk
type ${EscapedIdentifier} (builder : Builder) =
inherit Box(builder.GetObject("${EscapedIdentifier}").Handle)
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
<object class="GtkBox" id="${EscapedIdentifier}">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<placeholder/>
</child>
</object>
</interface>

View File

@@ -0,0 +1,16 @@
using System;
using Gtk;
using UI = Gtk.Builder.ObjectAttribute;
namespace ${Namespace}
{
class ${EscapedIdentifier} : Window
{
public ${EscapedIdentifier}() : this(new Builder("${Namespace}.${EscapedIdentifier}.glade")) { }
private ${EscapedIdentifier}(Builder builder) : base(builder.GetObject("${EscapedIdentifier}").Handle)
{
builder.Autoconnect(this);
}
}
}

View File

@@ -0,0 +1,8 @@
namespace ${Namespace}
open Gtk
type ${EscapedIdentifier} (builder : Builder) =
inherit Window(builder.GetObject("${EscapedIdentifier}").Handle)
new() = new ${EscapedIdentifier}(new Builder("${Namespace}.${EscapedIdentifier}.glade"))

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
<object class="GtkWindow" id="${EscapedIdentifier}">
<property name="can_focus">False</property>
<property name="title" translatable="yes">${Name}</property>
<child>
<placeholder/>
</child>
</object>
</interface>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Dialog</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>C#</LanguageName>
<DefaultFilename>MyDialog</DefaultFilename>
<_Description>Creates a new Gtk dialog.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Dialog.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.cs" src="Data/Dialog.cs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Dialog</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>F#</LanguageName>
<DefaultFilename>MyDialog</DefaultFilename>
<_Description>Creates a new Gtk dialog.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Dialog.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.fs" src="Data/Dialog.fs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Widget</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>C#</LanguageName>
<DefaultFilename>MyWidget</DefaultFilename>
<_Description>Creates a new Gtk custom widget.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Widget.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.cs" src="Data/Widget.cs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Widget</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>F#</LanguageName>
<DefaultFilename>MyWidget</DefaultFilename>
<_Description>Creates a new Gtk custom widget.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Widget.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.fs" src="Data/Widget.fs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Window</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>C#</LanguageName>
<DefaultFilename>MyWindow</DefaultFilename>
<_Description>Creates a new Gtk window.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Window.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.cs" src="Data/Window.cs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Window</_Name>
<Icon>md-gui-file</Icon>
<_Category>Gtk</_Category>
<LanguageName>F#</LanguageName>
<DefaultFilename>MyWindow</DefaultFilename>
<_Description>Creates a new Gtk window.</_Description>
</TemplateConfiguration>
<TemplateFiles>
<File name="${Name}.glade" src="Data/Window.glade" BuildAction="EmbeddedResource" SuppressAutoOpen="True" />
<File name="${Name}.fs" src="Data/Window.fs" />
</TemplateFiles>
</Template>

View File

@@ -0,0 +1,70 @@
{
"format": 1,
"restore": {
"E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj": {}
},
"projects": {
"E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj",
"projectName": "MonoDevelop.GtkSharp.Addin",
"projectPath": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj",
"packagesPath": "C:\\Users\\Uther\\.nuget\\packages\\",
"outputPath": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Uther\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net471"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {},
"https://nuget.BepInEx.dev/v3/index.json": {},
"https://www.myget.org/f/umod/api/v3/index.json": {}
},
"frameworks": {
"net471": {
"targetAlias": "net471",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net471": {
"targetAlias": "net471",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"suppressParent": "All",
"target": "Package",
"version": "[1.0.3, )",
"autoReferenced": true
},
"MonoDevelop.Addins": {
"target": "Package",
"version": "[0.4.7, )"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.206\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Uther\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Uther\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)monodevelop.addins\0.4.7\build\MonoDevelop.Addins.props" Condition="Exists('$(NuGetPackageRoot)monodevelop.addins\0.4.7\build\MonoDevelop.Addins.props')" />
</ImportGroup>
</Project>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)monodevelop.addins\0.4.7\build\MonoDevelop.Addins.targets" Condition="Exists('$(NuGetPackageRoot)monodevelop.addins\0.4.7\build\MonoDevelop.Addins.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.netframework.referenceassemblies.net471\1.0.3\build\Microsoft.NETFramework.ReferenceAssemblies.net471.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.netframework.referenceassemblies.net471\1.0.3\build\Microsoft.NETFramework.ReferenceAssemblies.net471.targets')" />
</ImportGroup>
</Project>

View File

@@ -0,0 +1,514 @@
{
"version": 3,
"targets": {
".NETFramework,Version=v4.7.1": {
"Microsoft.NETFramework.ReferenceAssemblies/1.0.3": {
"type": "package",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net471": "1.0.3"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net471/1.0.3": {
"type": "package",
"build": {
"build/Microsoft.NETFramework.ReferenceAssemblies.net471.targets": {}
}
},
"MonoDevelop.Addins/0.4.7": {
"type": "package",
"build": {
"build/MonoDevelop.Addins.props": {},
"build/MonoDevelop.Addins.targets": {}
}
}
}
},
"libraries": {
"Microsoft.NETFramework.ReferenceAssemblies/1.0.3": {
"sha512": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"type": "package",
"path": "microsoft.netframework.referenceassemblies/1.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"microsoft.netframework.referenceassemblies.1.0.3.nupkg.sha512",
"microsoft.netframework.referenceassemblies.nuspec"
]
},
"Microsoft.NETFramework.ReferenceAssemblies.net471/1.0.3": {
"sha512": "Kf3vusy+mwHzn+0osmJAMrZNG00/UkwywjwfFKLUWSYEXiIMD6SEMGP9bG3sH1B54IiydxAneLubS5/Ajjn/Tw==",
"type": "package",
"path": "microsoft.netframework.referenceassemblies.net471/1.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/.NETFramework/v4.7.1/Accessibility.dll",
"build/.NETFramework/v4.7.1/Accessibility.xml",
"build/.NETFramework/v4.7.1/CustomMarshalers.dll",
"build/.NETFramework/v4.7.1/CustomMarshalers.xml",
"build/.NETFramework/v4.7.1/Facades/Microsoft.Win32.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.AppContext.dll",
"build/.NETFramework/v4.7.1/Facades/System.Collections.Concurrent.dll",
"build/.NETFramework/v4.7.1/Facades/System.Collections.NonGeneric.dll",
"build/.NETFramework/v4.7.1/Facades/System.Collections.Specialized.dll",
"build/.NETFramework/v4.7.1/Facades/System.Collections.dll",
"build/.NETFramework/v4.7.1/Facades/System.ComponentModel.Annotations.dll",
"build/.NETFramework/v4.7.1/Facades/System.ComponentModel.EventBasedAsync.dll",
"build/.NETFramework/v4.7.1/Facades/System.ComponentModel.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.ComponentModel.TypeConverter.dll",
"build/.NETFramework/v4.7.1/Facades/System.ComponentModel.dll",
"build/.NETFramework/v4.7.1/Facades/System.Console.dll",
"build/.NETFramework/v4.7.1/Facades/System.Data.Common.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.Contracts.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.Debug.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.FileVersionInfo.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.Process.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.StackTrace.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.TextWriterTraceListener.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.Tools.dll",
"build/.NETFramework/v4.7.1/Facades/System.Diagnostics.TraceSource.dll",
"build/.NETFramework/v4.7.1/Facades/System.Drawing.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.Dynamic.Runtime.dll",
"build/.NETFramework/v4.7.1/Facades/System.Globalization.Calendars.dll",
"build/.NETFramework/v4.7.1/Facades/System.Globalization.Extensions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Globalization.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.Compression.ZipFile.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.FileSystem.DriveInfo.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.FileSystem.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.FileSystem.Watcher.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.FileSystem.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.IsolatedStorage.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.MemoryMappedFiles.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.Pipes.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.UnmanagedMemoryStream.dll",
"build/.NETFramework/v4.7.1/Facades/System.IO.dll",
"build/.NETFramework/v4.7.1/Facades/System.Linq.Expressions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Linq.Parallel.dll",
"build/.NETFramework/v4.7.1/Facades/System.Linq.Queryable.dll",
"build/.NETFramework/v4.7.1/Facades/System.Linq.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Http.Rtc.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.NameResolution.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.NetworkInformation.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Ping.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Requests.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Security.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.Sockets.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.WebHeaderCollection.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.WebSockets.Client.dll",
"build/.NETFramework/v4.7.1/Facades/System.Net.WebSockets.dll",
"build/.NETFramework/v4.7.1/Facades/System.ObjectModel.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.Emit.ILGeneration.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.Emit.Lightweight.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.Emit.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.Extensions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.Reflection.dll",
"build/.NETFramework/v4.7.1/Facades/System.Resources.Reader.dll",
"build/.NETFramework/v4.7.1/Facades/System.Resources.ResourceManager.dll",
"build/.NETFramework/v4.7.1/Facades/System.Resources.Writer.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.CompilerServices.VisualC.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Extensions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Handles.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.InteropServices.RuntimeInformation.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.InteropServices.WindowsRuntime.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.InteropServices.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Numerics.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Serialization.Formatters.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Serialization.Json.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Serialization.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.Serialization.Xml.dll",
"build/.NETFramework/v4.7.1/Facades/System.Runtime.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Claims.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Cryptography.Algorithms.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Cryptography.Csp.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Cryptography.Encoding.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Cryptography.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Cryptography.X509Certificates.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.Principal.dll",
"build/.NETFramework/v4.7.1/Facades/System.Security.SecureString.dll",
"build/.NETFramework/v4.7.1/Facades/System.ServiceModel.Duplex.dll",
"build/.NETFramework/v4.7.1/Facades/System.ServiceModel.Http.dll",
"build/.NETFramework/v4.7.1/Facades/System.ServiceModel.NetTcp.dll",
"build/.NETFramework/v4.7.1/Facades/System.ServiceModel.Primitives.dll",
"build/.NETFramework/v4.7.1/Facades/System.ServiceModel.Security.dll",
"build/.NETFramework/v4.7.1/Facades/System.Text.Encoding.Extensions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Text.Encoding.dll",
"build/.NETFramework/v4.7.1/Facades/System.Text.RegularExpressions.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.Overlapped.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.Tasks.Parallel.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.Tasks.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.Thread.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.ThreadPool.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.Timer.dll",
"build/.NETFramework/v4.7.1/Facades/System.Threading.dll",
"build/.NETFramework/v4.7.1/Facades/System.ValueTuple.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.ReaderWriter.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.XDocument.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.XPath.XDocument.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.XPath.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.XmlDocument.dll",
"build/.NETFramework/v4.7.1/Facades/System.Xml.XmlSerializer.dll",
"build/.NETFramework/v4.7.1/Facades/netstandard.dll",
"build/.NETFramework/v4.7.1/ISymWrapper.dll",
"build/.NETFramework/v4.7.1/ISymWrapper.xml",
"build/.NETFramework/v4.7.1/Microsoft.Activities.Build.dll",
"build/.NETFramework/v4.7.1/Microsoft.Activities.Build.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.Conversion.v4.0.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.Conversion.v4.0.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.Engine.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.Engine.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.Framework.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.Framework.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.Tasks.v4.0.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.Tasks.v4.0.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.Utilities.v4.0.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.Utilities.v4.0.xml",
"build/.NETFramework/v4.7.1/Microsoft.Build.dll",
"build/.NETFramework/v4.7.1/Microsoft.Build.xml",
"build/.NETFramework/v4.7.1/Microsoft.CSharp.dll",
"build/.NETFramework/v4.7.1/Microsoft.CSharp.xml",
"build/.NETFramework/v4.7.1/Microsoft.JScript.dll",
"build/.NETFramework/v4.7.1/Microsoft.JScript.xml",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.Compatibility.Data.dll",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.Compatibility.Data.xml",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.Compatibility.dll",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.Compatibility.xml",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.dll",
"build/.NETFramework/v4.7.1/Microsoft.VisualBasic.xml",
"build/.NETFramework/v4.7.1/Microsoft.VisualC.STLCLR.dll",
"build/.NETFramework/v4.7.1/Microsoft.VisualC.STLCLR.xml",
"build/.NETFramework/v4.7.1/Microsoft.VisualC.dll",
"build/.NETFramework/v4.7.1/Microsoft.VisualC.xml",
"build/.NETFramework/v4.7.1/PermissionSets/FullTrust.xml",
"build/.NETFramework/v4.7.1/PermissionSets/Internet.xml",
"build/.NETFramework/v4.7.1/PermissionSets/LocalIntranet.xml",
"build/.NETFramework/v4.7.1/PresentationBuildTasks.dll",
"build/.NETFramework/v4.7.1/PresentationBuildTasks.xml",
"build/.NETFramework/v4.7.1/PresentationCore.dll",
"build/.NETFramework/v4.7.1/PresentationCore.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.Aero.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.Aero.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.Aero2.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.Aero2.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.AeroLite.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.AeroLite.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.Classic.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.Classic.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.Luna.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.Luna.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.Royale.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.Royale.xml",
"build/.NETFramework/v4.7.1/PresentationFramework.dll",
"build/.NETFramework/v4.7.1/PresentationFramework.xml",
"build/.NETFramework/v4.7.1/ReachFramework.dll",
"build/.NETFramework/v4.7.1/ReachFramework.xml",
"build/.NETFramework/v4.7.1/RedistList/FrameworkList.xml",
"build/.NETFramework/v4.7.1/System.Activities.Core.Presentation.dll",
"build/.NETFramework/v4.7.1/System.Activities.Core.Presentation.xml",
"build/.NETFramework/v4.7.1/System.Activities.DurableInstancing.dll",
"build/.NETFramework/v4.7.1/System.Activities.DurableInstancing.xml",
"build/.NETFramework/v4.7.1/System.Activities.Presentation.dll",
"build/.NETFramework/v4.7.1/System.Activities.Presentation.xml",
"build/.NETFramework/v4.7.1/System.Activities.dll",
"build/.NETFramework/v4.7.1/System.Activities.xml",
"build/.NETFramework/v4.7.1/System.AddIn.Contract.dll",
"build/.NETFramework/v4.7.1/System.AddIn.Contract.xml",
"build/.NETFramework/v4.7.1/System.AddIn.dll",
"build/.NETFramework/v4.7.1/System.AddIn.xml",
"build/.NETFramework/v4.7.1/System.ComponentModel.Composition.Registration.dll",
"build/.NETFramework/v4.7.1/System.ComponentModel.Composition.Registration.xml",
"build/.NETFramework/v4.7.1/System.ComponentModel.Composition.dll",
"build/.NETFramework/v4.7.1/System.ComponentModel.Composition.xml",
"build/.NETFramework/v4.7.1/System.ComponentModel.DataAnnotations.dll",
"build/.NETFramework/v4.7.1/System.ComponentModel.DataAnnotations.xml",
"build/.NETFramework/v4.7.1/System.Configuration.Install.dll",
"build/.NETFramework/v4.7.1/System.Configuration.Install.xml",
"build/.NETFramework/v4.7.1/System.Configuration.dll",
"build/.NETFramework/v4.7.1/System.Configuration.xml",
"build/.NETFramework/v4.7.1/System.Core.dll",
"build/.NETFramework/v4.7.1/System.Core.xml",
"build/.NETFramework/v4.7.1/System.Data.DataSetExtensions.dll",
"build/.NETFramework/v4.7.1/System.Data.DataSetExtensions.xml",
"build/.NETFramework/v4.7.1/System.Data.Entity.Design.dll",
"build/.NETFramework/v4.7.1/System.Data.Entity.Design.xml",
"build/.NETFramework/v4.7.1/System.Data.Entity.dll",
"build/.NETFramework/v4.7.1/System.Data.Entity.xml",
"build/.NETFramework/v4.7.1/System.Data.Linq.dll",
"build/.NETFramework/v4.7.1/System.Data.Linq.xml",
"build/.NETFramework/v4.7.1/System.Data.OracleClient.dll",
"build/.NETFramework/v4.7.1/System.Data.OracleClient.xml",
"build/.NETFramework/v4.7.1/System.Data.Services.Client.dll",
"build/.NETFramework/v4.7.1/System.Data.Services.Client.xml",
"build/.NETFramework/v4.7.1/System.Data.Services.Design.dll",
"build/.NETFramework/v4.7.1/System.Data.Services.Design.xml",
"build/.NETFramework/v4.7.1/System.Data.Services.dll",
"build/.NETFramework/v4.7.1/System.Data.Services.xml",
"build/.NETFramework/v4.7.1/System.Data.SqlXml.dll",
"build/.NETFramework/v4.7.1/System.Data.SqlXml.xml",
"build/.NETFramework/v4.7.1/System.Data.dll",
"build/.NETFramework/v4.7.1/System.Data.xml",
"build/.NETFramework/v4.7.1/System.Deployment.dll",
"build/.NETFramework/v4.7.1/System.Deployment.xml",
"build/.NETFramework/v4.7.1/System.Design.dll",
"build/.NETFramework/v4.7.1/System.Design.xml",
"build/.NETFramework/v4.7.1/System.Device.dll",
"build/.NETFramework/v4.7.1/System.Device.xml",
"build/.NETFramework/v4.7.1/System.Diagnostics.Tracing.dll",
"build/.NETFramework/v4.7.1/System.Diagnostics.Tracing.xml",
"build/.NETFramework/v4.7.1/System.DirectoryServices.AccountManagement.dll",
"build/.NETFramework/v4.7.1/System.DirectoryServices.AccountManagement.xml",
"build/.NETFramework/v4.7.1/System.DirectoryServices.Protocols.dll",
"build/.NETFramework/v4.7.1/System.DirectoryServices.Protocols.xml",
"build/.NETFramework/v4.7.1/System.DirectoryServices.dll",
"build/.NETFramework/v4.7.1/System.DirectoryServices.xml",
"build/.NETFramework/v4.7.1/System.Drawing.Design.dll",
"build/.NETFramework/v4.7.1/System.Drawing.Design.xml",
"build/.NETFramework/v4.7.1/System.Drawing.dll",
"build/.NETFramework/v4.7.1/System.Drawing.xml",
"build/.NETFramework/v4.7.1/System.Dynamic.dll",
"build/.NETFramework/v4.7.1/System.EnterpriseServices.Thunk.dll",
"build/.NETFramework/v4.7.1/System.EnterpriseServices.Wrapper.dll",
"build/.NETFramework/v4.7.1/System.EnterpriseServices.dll",
"build/.NETFramework/v4.7.1/System.EnterpriseServices.xml",
"build/.NETFramework/v4.7.1/System.IO.Compression.FileSystem.dll",
"build/.NETFramework/v4.7.1/System.IO.Compression.FileSystem.xml",
"build/.NETFramework/v4.7.1/System.IO.Compression.dll",
"build/.NETFramework/v4.7.1/System.IO.Compression.xml",
"build/.NETFramework/v4.7.1/System.IO.Log.dll",
"build/.NETFramework/v4.7.1/System.IO.Log.xml",
"build/.NETFramework/v4.7.1/System.IdentityModel.Selectors.dll",
"build/.NETFramework/v4.7.1/System.IdentityModel.Selectors.xml",
"build/.NETFramework/v4.7.1/System.IdentityModel.Services.dll",
"build/.NETFramework/v4.7.1/System.IdentityModel.Services.xml",
"build/.NETFramework/v4.7.1/System.IdentityModel.dll",
"build/.NETFramework/v4.7.1/System.IdentityModel.xml",
"build/.NETFramework/v4.7.1/System.Linq.xml",
"build/.NETFramework/v4.7.1/System.Management.Instrumentation.dll",
"build/.NETFramework/v4.7.1/System.Management.Instrumentation.xml",
"build/.NETFramework/v4.7.1/System.Management.dll",
"build/.NETFramework/v4.7.1/System.Management.xml",
"build/.NETFramework/v4.7.1/System.Messaging.dll",
"build/.NETFramework/v4.7.1/System.Messaging.xml",
"build/.NETFramework/v4.7.1/System.Net.Http.WebRequest.dll",
"build/.NETFramework/v4.7.1/System.Net.Http.WebRequest.xml",
"build/.NETFramework/v4.7.1/System.Net.Http.dll",
"build/.NETFramework/v4.7.1/System.Net.Http.xml",
"build/.NETFramework/v4.7.1/System.Net.dll",
"build/.NETFramework/v4.7.1/System.Net.xml",
"build/.NETFramework/v4.7.1/System.Numerics.dll",
"build/.NETFramework/v4.7.1/System.Numerics.xml",
"build/.NETFramework/v4.7.1/System.Printing.dll",
"build/.NETFramework/v4.7.1/System.Printing.xml",
"build/.NETFramework/v4.7.1/System.Reflection.Context.dll",
"build/.NETFramework/v4.7.1/System.Reflection.Context.xml",
"build/.NETFramework/v4.7.1/System.Runtime.Caching.dll",
"build/.NETFramework/v4.7.1/System.Runtime.Caching.xml",
"build/.NETFramework/v4.7.1/System.Runtime.DurableInstancing.dll",
"build/.NETFramework/v4.7.1/System.Runtime.DurableInstancing.xml",
"build/.NETFramework/v4.7.1/System.Runtime.Remoting.dll",
"build/.NETFramework/v4.7.1/System.Runtime.Remoting.xml",
"build/.NETFramework/v4.7.1/System.Runtime.Serialization.Formatters.Soap.dll",
"build/.NETFramework/v4.7.1/System.Runtime.Serialization.Formatters.Soap.xml",
"build/.NETFramework/v4.7.1/System.Runtime.Serialization.dll",
"build/.NETFramework/v4.7.1/System.Runtime.Serialization.xml",
"build/.NETFramework/v4.7.1/System.Security.dll",
"build/.NETFramework/v4.7.1/System.Security.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Activation.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Activation.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Activities.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Activities.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Channels.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Channels.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Discovery.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Discovery.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Routing.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Routing.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.Web.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.Web.xml",
"build/.NETFramework/v4.7.1/System.ServiceModel.dll",
"build/.NETFramework/v4.7.1/System.ServiceModel.xml",
"build/.NETFramework/v4.7.1/System.ServiceProcess.dll",
"build/.NETFramework/v4.7.1/System.ServiceProcess.xml",
"build/.NETFramework/v4.7.1/System.Speech.dll",
"build/.NETFramework/v4.7.1/System.Speech.xml",
"build/.NETFramework/v4.7.1/System.Threading.Tasks.Dataflow.xml",
"build/.NETFramework/v4.7.1/System.Transactions.dll",
"build/.NETFramework/v4.7.1/System.Transactions.xml",
"build/.NETFramework/v4.7.1/System.Web.Abstractions.dll",
"build/.NETFramework/v4.7.1/System.Web.ApplicationServices.dll",
"build/.NETFramework/v4.7.1/System.Web.ApplicationServices.xml",
"build/.NETFramework/v4.7.1/System.Web.DataVisualization.Design.dll",
"build/.NETFramework/v4.7.1/System.Web.DataVisualization.dll",
"build/.NETFramework/v4.7.1/System.Web.DataVisualization.xml",
"build/.NETFramework/v4.7.1/System.Web.DynamicData.Design.dll",
"build/.NETFramework/v4.7.1/System.Web.DynamicData.Design.xml",
"build/.NETFramework/v4.7.1/System.Web.DynamicData.dll",
"build/.NETFramework/v4.7.1/System.Web.DynamicData.xml",
"build/.NETFramework/v4.7.1/System.Web.Entity.Design.dll",
"build/.NETFramework/v4.7.1/System.Web.Entity.Design.xml",
"build/.NETFramework/v4.7.1/System.Web.Entity.dll",
"build/.NETFramework/v4.7.1/System.Web.Entity.xml",
"build/.NETFramework/v4.7.1/System.Web.Extensions.Design.dll",
"build/.NETFramework/v4.7.1/System.Web.Extensions.Design.xml",
"build/.NETFramework/v4.7.1/System.Web.Extensions.dll",
"build/.NETFramework/v4.7.1/System.Web.Extensions.xml",
"build/.NETFramework/v4.7.1/System.Web.Mobile.dll",
"build/.NETFramework/v4.7.1/System.Web.Mobile.xml",
"build/.NETFramework/v4.7.1/System.Web.RegularExpressions.dll",
"build/.NETFramework/v4.7.1/System.Web.RegularExpressions.xml",
"build/.NETFramework/v4.7.1/System.Web.Routing.dll",
"build/.NETFramework/v4.7.1/System.Web.Services.dll",
"build/.NETFramework/v4.7.1/System.Web.Services.xml",
"build/.NETFramework/v4.7.1/System.Web.dll",
"build/.NETFramework/v4.7.1/System.Web.xml",
"build/.NETFramework/v4.7.1/System.Windows.Controls.Ribbon.dll",
"build/.NETFramework/v4.7.1/System.Windows.Controls.Ribbon.xml",
"build/.NETFramework/v4.7.1/System.Windows.Forms.DataVisualization.Design.dll",
"build/.NETFramework/v4.7.1/System.Windows.Forms.DataVisualization.dll",
"build/.NETFramework/v4.7.1/System.Windows.Forms.DataVisualization.xml",
"build/.NETFramework/v4.7.1/System.Windows.Forms.dll",
"build/.NETFramework/v4.7.1/System.Windows.Forms.xml",
"build/.NETFramework/v4.7.1/System.Windows.Input.Manipulations.dll",
"build/.NETFramework/v4.7.1/System.Windows.Input.Manipulations.xml",
"build/.NETFramework/v4.7.1/System.Windows.Presentation.dll",
"build/.NETFramework/v4.7.1/System.Windows.Presentation.xml",
"build/.NETFramework/v4.7.1/System.Windows.dll",
"build/.NETFramework/v4.7.1/System.Workflow.Activities.dll",
"build/.NETFramework/v4.7.1/System.Workflow.Activities.xml",
"build/.NETFramework/v4.7.1/System.Workflow.ComponentModel.dll",
"build/.NETFramework/v4.7.1/System.Workflow.ComponentModel.xml",
"build/.NETFramework/v4.7.1/System.Workflow.Runtime.dll",
"build/.NETFramework/v4.7.1/System.Workflow.Runtime.xml",
"build/.NETFramework/v4.7.1/System.WorkflowServices.dll",
"build/.NETFramework/v4.7.1/System.WorkflowServices.xml",
"build/.NETFramework/v4.7.1/System.Xaml.dll",
"build/.NETFramework/v4.7.1/System.Xaml.xml",
"build/.NETFramework/v4.7.1/System.Xml.Linq.dll",
"build/.NETFramework/v4.7.1/System.Xml.Linq.xml",
"build/.NETFramework/v4.7.1/System.Xml.Serialization.dll",
"build/.NETFramework/v4.7.1/System.Xml.dll",
"build/.NETFramework/v4.7.1/System.Xml.xml",
"build/.NETFramework/v4.7.1/System.dll",
"build/.NETFramework/v4.7.1/System.xml",
"build/.NETFramework/v4.7.1/UIAutomationClient.dll",
"build/.NETFramework/v4.7.1/UIAutomationClient.xml",
"build/.NETFramework/v4.7.1/UIAutomationClientsideProviders.dll",
"build/.NETFramework/v4.7.1/UIAutomationClientsideProviders.xml",
"build/.NETFramework/v4.7.1/UIAutomationProvider.dll",
"build/.NETFramework/v4.7.1/UIAutomationProvider.xml",
"build/.NETFramework/v4.7.1/UIAutomationTypes.dll",
"build/.NETFramework/v4.7.1/UIAutomationTypes.xml",
"build/.NETFramework/v4.7.1/WindowsBase.dll",
"build/.NETFramework/v4.7.1/WindowsBase.xml",
"build/.NETFramework/v4.7.1/WindowsFormsIntegration.dll",
"build/.NETFramework/v4.7.1/WindowsFormsIntegration.xml",
"build/.NETFramework/v4.7.1/XamlBuildTask.dll",
"build/.NETFramework/v4.7.1/XamlBuildTask.xml",
"build/.NETFramework/v4.7.1/mscorlib.dll",
"build/.NETFramework/v4.7.1/mscorlib.xml",
"build/.NETFramework/v4.7.1/namespaces.xml",
"build/.NETFramework/v4.7.1/sysglobl.dll",
"build/.NETFramework/v4.7.1/sysglobl.xml",
"build/Microsoft.NETFramework.ReferenceAssemblies.net471.targets",
"microsoft.netframework.referenceassemblies.net471.1.0.3.nupkg.sha512",
"microsoft.netframework.referenceassemblies.net471.nuspec"
]
},
"MonoDevelop.Addins/0.4.7": {
"sha512": "BsHge9bKGrNvZJLNEjCjj4w4b9b0r1QI+PZ6Oa6wXEPmePJszwUlXau8hCU4QGH1WRtF1kt77wOLSqSydS62wQ==",
"type": "package",
"path": "monodevelop.addins/0.4.7",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/ICSharpCode.SharpZipLib.dll",
"build/Mono.Addins.CecilReflector.dll",
"build/Mono.Addins.Setup.dll",
"build/Mono.Addins.dll",
"build/Mono.Cecil.Mdb.dll",
"build/Mono.Cecil.Pdb.dll",
"build/Mono.Cecil.Rocks.dll",
"build/Mono.Cecil.dll",
"build/MonoDevelop.Addins.Tasks.dll",
"build/MonoDevelop.Addins.Tasks.pdb",
"build/MonoDevelop.Addins.props",
"build/MonoDevelop.Addins.targets",
"monodevelop.addins.0.4.7.nupkg.sha512",
"monodevelop.addins.nuspec"
]
}
},
"projectFileDependencyGroups": {
".NETFramework,Version=v4.7.1": [
"Microsoft.NETFramework.ReferenceAssemblies >= 1.0.3",
"MonoDevelop.Addins >= 0.4.7"
]
},
"packageFolders": {
"C:\\Users\\Uther\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj",
"projectName": "MonoDevelop.GtkSharp.Addin",
"projectPath": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj",
"packagesPath": "C:\\Users\\Uther\\.nuget\\packages\\",
"outputPath": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Uther\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net471"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {},
"https://nuget.BepInEx.dev/v3/index.json": {},
"https://www.myget.org/f/umod/api/v3/index.json": {}
},
"frameworks": {
"net471": {
"targetAlias": "net471",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net471": {
"targetAlias": "net471",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"suppressParent": "All",
"target": "Package",
"version": "[1.0.3, )",
"autoReferenced": true
},
"MonoDevelop.Addins": {
"target": "Package",
"version": "[0.4.7, )"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.206\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,12 @@
{
"version": 2,
"dgSpecHash": "/znAqfHsQ/En0Q6oJ2mIc2MJszH9RMo1PHG7KDLE9xps5CjoJr3vh9PDdEk+cM+/Vu0PHhF9kAA7iSb3thSiZg==",
"success": true,
"projectFilePath": "E:\\projects\\KioskApp\\GtkSharp\\Source\\Addins\\MonoDevelop.GtkSharp.Addin\\MonoDevelop.GtkSharp.Addin.csproj",
"expectedPackageFiles": [
"C:\\Users\\Uther\\.nuget\\packages\\microsoft.netframework.referenceassemblies\\1.0.3\\microsoft.netframework.referenceassemblies.1.0.3.nupkg.sha512",
"C:\\Users\\Uther\\.nuget\\packages\\microsoft.netframework.referenceassemblies.net471\\1.0.3\\microsoft.netframework.referenceassemblies.net471.1.0.3.nupkg.sha512",
"C:\\Users\\Uther\\.nuget\\packages\\monodevelop.addins\\0.4.7\\monodevelop.addins.0.4.7.nupkg.sha512"
],
"logs": []
}

View File

@@ -0,0 +1,12 @@
<Project>
<PropertyGroup>
<_GtkSharpNetVersion>8.0</_GtkSharpNetVersion>
<_GtkSharpSourceDirectory>$(MSBuildThisFileDirectory)</_GtkSharpSourceDirectory>
<_GtkSharpBuildOutputDirectory>$(MSBuildThisFileDirectory)..\BuildOutput\</_GtkSharpBuildOutputDirectory>
</PropertyGroup>
<PropertyGroup>
<PackageProjectUrl>https://github.com/GtkSharp/GtkSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/GtkSharp/GtkSharp</RepositoryUrl>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,176 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29424.173
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{CCEA1235-D75F-4919-83F6-16793B11BEF5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GLibSharp", "Libs\GLibSharp\GLibSharp.csproj", "{B29673A7-EBEA-41F4-9F22-D72B333042A2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PangoSharp", "Libs\PangoSharp\PangoSharp.csproj", "{D3E99527-1FEC-4DC7-8083-85E7C338E287}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CairoSharp", "Libs\CairoSharp\CairoSharp.csproj", "{92C67E4C-8FDE-463B-BEB9-CB09970887DD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AtkSharp", "Libs\AtkSharp\AtkSharp.csproj", "{12A721AA-8E7F-459A-A62D-F7372350E5F1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GdkSharp", "Libs\GdkSharp\GdkSharp.csproj", "{E6D83259-6389-4768-B0A0-A649892DFE62}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GioSharp", "Libs\GioSharp\GioSharp.csproj", "{B4B26375-BED5-4000-A38F-899FF1672B47}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GtkSharp", "Libs\GtkSharp\GtkSharp.csproj", "{04597E0B-375D-4E08-A16C-EE5FF3937B73}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples", "Samples\Samples.csproj", "{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GtkSourceSharp", "Libs\GtkSourceSharp\GtkSourceSharp.csproj", "{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebkitGtkSharp", "Libs\WebkitGtkSharp\WebkitGtkSharp.csproj", "{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|x64.ActiveCfg = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|x64.Build.0 = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|x86.ActiveCfg = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Debug|x86.Build.0 = Debug|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|Any CPU.Build.0 = Release|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|x64.ActiveCfg = Release|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|x64.Build.0 = Release|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|x86.ActiveCfg = Release|Any CPU
{B29673A7-EBEA-41F4-9F22-D72B333042A2}.Release|x86.Build.0 = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|x64.ActiveCfg = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|x64.Build.0 = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|x86.ActiveCfg = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Debug|x86.Build.0 = Debug|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|Any CPU.Build.0 = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|x64.ActiveCfg = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|x64.Build.0 = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|x86.ActiveCfg = Release|Any CPU
{D3E99527-1FEC-4DC7-8083-85E7C338E287}.Release|x86.Build.0 = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|x64.ActiveCfg = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|x64.Build.0 = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|x86.ActiveCfg = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Debug|x86.Build.0 = Debug|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|Any CPU.Build.0 = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|x64.ActiveCfg = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|x64.Build.0 = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|x86.ActiveCfg = Release|Any CPU
{92C67E4C-8FDE-463B-BEB9-CB09970887DD}.Release|x86.Build.0 = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|x64.ActiveCfg = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|x64.Build.0 = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|x86.ActiveCfg = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Debug|x86.Build.0 = Debug|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|Any CPU.Build.0 = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|x64.ActiveCfg = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|x64.Build.0 = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|x86.ActiveCfg = Release|Any CPU
{12A721AA-8E7F-459A-A62D-F7372350E5F1}.Release|x86.Build.0 = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|x64.ActiveCfg = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|x64.Build.0 = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|x86.ActiveCfg = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Debug|x86.Build.0 = Debug|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|Any CPU.Build.0 = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|x64.ActiveCfg = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|x64.Build.0 = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|x86.ActiveCfg = Release|Any CPU
{E6D83259-6389-4768-B0A0-A649892DFE62}.Release|x86.Build.0 = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|x64.ActiveCfg = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|x64.Build.0 = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|x86.ActiveCfg = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Debug|x86.Build.0 = Debug|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|Any CPU.Build.0 = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|x64.ActiveCfg = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|x64.Build.0 = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|x86.ActiveCfg = Release|Any CPU
{B4B26375-BED5-4000-A38F-899FF1672B47}.Release|x86.Build.0 = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|Any CPU.Build.0 = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|x64.ActiveCfg = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|x64.Build.0 = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|x86.ActiveCfg = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Debug|x86.Build.0 = Debug|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|Any CPU.ActiveCfg = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|Any CPU.Build.0 = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|x64.ActiveCfg = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|x64.Build.0 = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|x86.ActiveCfg = Release|Any CPU
{04597E0B-375D-4E08-A16C-EE5FF3937B73}.Release|x86.Build.0 = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|x64.ActiveCfg = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|x64.Build.0 = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|x86.ActiveCfg = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Debug|x86.Build.0 = Debug|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|Any CPU.Build.0 = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|x64.ActiveCfg = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|x64.Build.0 = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|x86.ActiveCfg = Release|Any CPU
{A5667C9B-5D29-4FB6-B548-D1317A2CEF90}.Release|x86.Build.0 = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|x64.ActiveCfg = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|x64.Build.0 = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|x86.ActiveCfg = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Debug|x86.Build.0 = Debug|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|Any CPU.Build.0 = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|x64.ActiveCfg = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|x64.Build.0 = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|x86.ActiveCfg = Release|Any CPU
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8}.Release|x86.Build.0 = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|x64.ActiveCfg = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|x64.Build.0 = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|x86.ActiveCfg = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Debug|x86.Build.0 = Debug|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|Any CPU.Build.0 = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|x64.ActiveCfg = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|x64.Build.0 = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|x86.ActiveCfg = Release|Any CPU
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{B29673A7-EBEA-41F4-9F22-D72B333042A2} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{D3E99527-1FEC-4DC7-8083-85E7C338E287} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{92C67E4C-8FDE-463B-BEB9-CB09970887DD} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{12A721AA-8E7F-459A-A62D-F7372350E5F1} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{E6D83259-6389-4768-B0A0-A649892DFE62} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{B4B26375-BED5-4000-A38F-899FF1672B47} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{04597E0B-375D-4E08-A16C-EE5FF3937B73} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{2BD3D08E-0FDD-4DC3-A063-58B10B525DA8} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
{60E31DAD-B6E8-4074-B2ED-53FCDFCB0F4D} = {CCEA1235-D75F-4919-83F6-16793B11BEF5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DA4DD75D-B6C8-4836-AF84-B5FF538D9D86}
EndGlobalSection
EndGlobal

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>AtkSharp is a C# wrapper for the Atk library.</Description>
<PackageTags>atk;atksharp;atk-sharp;wrapper</PackageTags>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GLibSharp\GLibSharp.csproj">
<Name>GLibSharp</Name>
</ProjectReference>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<metadata>
<attr path="/api/namespace/class[@cname='AtkGlobal']/method[@name='AddGlobalEventListener']" name="hidden">1</attr>
<attr path="/api/namespace/class[@cname='AtkState_']" name="name">StateManager</attr>
<attr path="/api/namespace/interface[@cname='AtkComponent']/*[@name='RefAccessibleAtPoint']/return-type" name="owned">true</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/method[@name='GetAttributes']/return-type" name="element_type">AtkAttribute*</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/method[@name='GetDocument']" name="name">GetTheDocument</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@name='GetDocument']" name="name">GetTheDocument</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@cname='get_document_attributes']/return-type" name="element_type">AtkAttribute*</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@name='GetDocumentAttributes']" name="name">GetAttributes</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@name='GetDocumentAttributeValue']" name="name">GetAttributeValue</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@name='GetDocumentLocale']" name="name">GetLocale</attr>
<attr path="/api/namespace/interface[@cname='AtkDocument']/virtual_method[@name='SetDocumentAttribute']" name="name">SetAttributeValue</attr>
<attr path="/api/namespace/interface[@cname='AtkEditableText']/method[@name='InsertText']/*/*[@name='position']" name="pass_as">ref</attr>
<attr path="/api/namespace/interface[@cname='AtkEditableText']/virtual_method[@name='InsertText']/*/*[@name='position']" name="pass_as">ref</attr>
<attr path="/api/namespace/interface[@cname='AtkImplementor']/*[@name='RefAccessible']/return-type" name="owned">true</attr>
<attr path="/api/namespace/interface[@cname='AtkSelection']/*[@name='RefSelection']/return-type" name="owned">true</attr>
<attr path="/api/namespace/interface[@cname='AtkTable']/*[@name='RefAt']/return-type" name="owned">true</attr>
<attr path="/api/namespace/interface[@cname='AtkText']/*[@name='GetRangeExtents']/*/*[@name='rect']" name="pass_as">out</attr>
<attr path="/api/namespace/interface[@cname='AtkValue']/*[@name='GetCurrentValue']/*/*[@name='value']" name="pass_as">ref</attr>
<attr path="/api/namespace/interface[@cname='AtkValue']/*[@name='GetMaximumValue']/*/*[@name='value']" name="pass_as">ref</attr>
<attr path="/api/namespace/interface[@cname='AtkValue']/*[@name='GetMinimumValue']/*/*[@name='value']" name="pass_as">ref</attr>
<attr path="/api/namespace/interface[@cname='AtkValue']/*[@name='GetMinimumIncrement']/*/*[@name='value']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/method[@name='GetAttributes']/return-type" name="element_type">AtkAttribute*</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/method[@name='RefAccessibleChild']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/method[@name='RefRelationSet']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/method[@name='RefStateSet']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/virtual_method[@cname='ref_child']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='AtkObject']/virtual_method[@cname='ref_state_set']/return-type" name="owned">true</attr>
<attr path="/api/namespace/object[@cname='AtkObjectFactory']/virtual_method" name="override_in">declaring_class</attr>
<attr path="/api/namespace/object[@cname='AtkRelation']/constructor[@cname='atk_relation_new']/*/*[@name='targets']" name="array">1</attr>
<attr path="/api/namespace/object[@cname='AtkRelation']/method[@name='GetTarget']/return-type" name="element_type">AtkObject*</attr>
<attr path="/api/namespace/object[@cname='AtkUtil']/virtual_method" name="override_in">declaring_class</attr>
<attr path="/api/namespace/object[@cname='AtkUtil']/virtual_method[@name='AddGlobalEventListener']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='AtkUtil']/virtual_method[@name='RemoveGlobalEventListener']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='AtkUtil']/virtual_method[@name='RemoveKeyEventListener']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='AtkAttribute']/method[@name='SetFree']" name="hidden">1</attr>
<attr path="/api/namespace/interface[@cname='AtkText']/*[@name='GetRunAttributes']/return-type" name="element_type">AtkAttribute*</attr>
<attr path="/api/namespace/interface[@cname='AtkText']/*[@name='GetDefaultAttributes']/return-type" name="element_type">AtkAttribute*</attr>
<!-- below is a workaround for an ABI break in recent ATK: https://git.gnome.org/browse/atk/commit/?id=b1f70e81ef1d7287dcb2cafa9a115ff5752ece55 -->
<remove-node path="/api/namespace/interface//field[@cname='pad1' or @cname='pad2' or @cname='pad3' or @cname='pad4']" />
</metadata>

View File

@@ -0,0 +1,325 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ActionAdapter : GLib.GInterfaceAdapter, Atk.IAction {
[StructLayout (LayoutKind.Sequential)]
struct AtkActionIface {
public DoActionNativeDelegate DoAction;
public GetNActionsNativeDelegate GetNActions;
public GetDescriptionNativeDelegate GetDescription;
public GetNameNativeDelegate GetName;
public GetKeybindingNativeDelegate GetKeybinding;
public SetDescriptionNativeDelegate SetDescription;
public GetLocalizedNameNativeDelegate GetLocalizedName;
}
static AtkActionIface iface;
static ActionAdapter ()
{
GLib.GType.Register (_gtype, typeof (ActionAdapter));
iface.DoAction = new DoActionNativeDelegate (DoAction_cb);
iface.GetNActions = new GetNActionsNativeDelegate (GetNActions_cb);
iface.GetDescription = new GetDescriptionNativeDelegate (GetDescription_cb);
iface.GetName = new GetNameNativeDelegate (GetName_cb);
iface.GetKeybinding = new GetKeybindingNativeDelegate (GetKeybinding_cb);
iface.SetDescription = new SetDescriptionNativeDelegate (SetDescription_cb);
iface.GetLocalizedName = new GetLocalizedNameNativeDelegate (GetLocalizedName_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool DoActionNativeDelegate (IntPtr inst, int i);
static bool DoAction_cb (IntPtr inst, int i)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
bool __result;
__result = __obj.DoAction (i);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetNActionsNativeDelegate (IntPtr inst);
static int GetNActions_cb (IntPtr inst)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
int __result;
__result = __obj.NActions;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetDescriptionNativeDelegate (IntPtr inst, int i);
static IntPtr GetDescription_cb (IntPtr inst, int i)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
string __result;
__result = __obj.GetDescription (i);
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetNameNativeDelegate (IntPtr inst, int i);
static IntPtr GetName_cb (IntPtr inst, int i)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
string __result;
__result = __obj.GetName (i);
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetKeybindingNativeDelegate (IntPtr inst, int i);
static IntPtr GetKeybinding_cb (IntPtr inst, int i)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
string __result;
__result = __obj.GetKeybinding (i);
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetDescriptionNativeDelegate (IntPtr inst, int i, IntPtr desc);
static bool SetDescription_cb (IntPtr inst, int i, IntPtr desc)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
bool __result;
__result = __obj.SetDescription (i, GLib.Marshaller.Utf8PtrToString (desc));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetLocalizedNameNativeDelegate (IntPtr inst, int i);
static IntPtr GetLocalizedName_cb (IntPtr inst, int i)
{
try {
IActionImplementor __obj = GLib.Object.GetObject (inst, false) as IActionImplementor;
string __result;
__result = __obj.GetLocalizedName (i);
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkActionIface native_iface = (AtkActionIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkActionIface));
native_iface.DoAction = iface.DoAction;
native_iface.GetNActions = iface.GetNActions;
native_iface.GetDescription = iface.GetDescription;
native_iface.GetName = iface.GetName;
native_iface.GetKeybinding = iface.GetKeybinding;
native_iface.SetDescription = iface.SetDescription;
native_iface.GetLocalizedName = iface.GetLocalizedName;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public ActionAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public ActionAdapter (IActionImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public ActionAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_type();
static d_atk_action_get_type atk_action_get_type = FuncLoader.LoadFunction<d_atk_action_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_action_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IAction GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IAction GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IActionImplementor)
return new ActionAdapter (obj as IActionImplementor);
else if (obj as IAction == null)
return new ActionAdapter (obj.Handle);
else
return obj as IAction;
}
public IActionImplementor Implementor {
get {
return implementor as IActionImplementor;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_action_do_action(IntPtr raw, int i);
static d_atk_action_do_action atk_action_do_action = FuncLoader.LoadFunction<d_atk_action_do_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_do_action"));
public bool DoAction(int i) {
bool raw_ret = atk_action_do_action(Handle, i);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_description(IntPtr raw, int i);
static d_atk_action_get_description atk_action_get_description = FuncLoader.LoadFunction<d_atk_action_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_description"));
public string GetDescription(int i) {
IntPtr raw_ret = atk_action_get_description(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_keybinding(IntPtr raw, int i);
static d_atk_action_get_keybinding atk_action_get_keybinding = FuncLoader.LoadFunction<d_atk_action_get_keybinding>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_keybinding"));
public string GetKeybinding(int i) {
IntPtr raw_ret = atk_action_get_keybinding(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_localized_name(IntPtr raw, int i);
static d_atk_action_get_localized_name atk_action_get_localized_name = FuncLoader.LoadFunction<d_atk_action_get_localized_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_localized_name"));
public string GetLocalizedName(int i) {
IntPtr raw_ret = atk_action_get_localized_name(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_action_get_n_actions(IntPtr raw);
static d_atk_action_get_n_actions atk_action_get_n_actions = FuncLoader.LoadFunction<d_atk_action_get_n_actions>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_n_actions"));
public int NActions {
get {
int raw_ret = atk_action_get_n_actions(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_name(IntPtr raw, int i);
static d_atk_action_get_name atk_action_get_name = FuncLoader.LoadFunction<d_atk_action_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_name"));
public string GetName(int i) {
IntPtr raw_ret = atk_action_get_name(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_action_set_description(IntPtr raw, int i, IntPtr desc);
static d_atk_action_set_description atk_action_set_description = FuncLoader.LoadFunction<d_atk_action_set_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_set_description"));
public bool SetDescription(int i, string desc) {
IntPtr native_desc = GLib.Marshaller.StringToPtrGStrdup (desc);
bool raw_ret = atk_action_set_description(Handle, i, native_desc);
bool ret = raw_ret;
GLib.Marshaller.Free (native_desc);
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void ActiveDescendantChangedHandler(object o, ActiveDescendantChangedArgs args);
public class ActiveDescendantChangedArgs : GLib.SignalArgs {
public IntPtr Child{
get {
return (IntPtr) Args [0];
}
}
}
}

View File

@@ -0,0 +1,91 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate void EventListenerInitNative();
internal class EventListenerInitInvoker {
EventListenerInitNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~EventListenerInitInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal EventListenerInitInvoker (EventListenerInitNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal EventListenerInitInvoker (EventListenerInitNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal EventListenerInitInvoker (EventListenerInitNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.EventListenerInit Handler {
get {
return new Atk.EventListenerInit(InvokeNative);
}
}
void InvokeNative ()
{
native_cb ();
}
}
internal class EventListenerInitWrapper {
public void NativeCallback ()
{
try {
managed ();
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal EventListenerInitNative NativeDelegate;
Atk.EventListenerInit managed;
public EventListenerInitWrapper (Atk.EventListenerInit managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new EventListenerInitNative (NativeCallback);
}
public static Atk.EventListenerInit GetManagedDelegate (EventListenerInitNative native)
{
if (native == null)
return null;
EventListenerInitWrapper wrapper = (EventListenerInitWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,91 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate void EventListenerNative(IntPtr obj);
internal class EventListenerInvoker {
EventListenerNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~EventListenerInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal EventListenerInvoker (EventListenerNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal EventListenerInvoker (EventListenerNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal EventListenerInvoker (EventListenerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.EventListener Handler {
get {
return new Atk.EventListener(InvokeNative);
}
}
void InvokeNative (Atk.Object obj)
{
native_cb (obj == null ? IntPtr.Zero : obj.Handle);
}
}
internal class EventListenerWrapper {
public void NativeCallback (IntPtr obj)
{
try {
managed (GLib.Object.GetObject(obj) as Atk.Object);
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal EventListenerNative NativeDelegate;
Atk.EventListener managed;
public EventListenerWrapper (Atk.EventListener managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new EventListenerNative (NativeCallback);
}
public static Atk.EventListener GetManagedDelegate (EventListenerNative native)
{
if (native == null)
return null;
EventListenerWrapper wrapper = (EventListenerWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,91 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate void FocusHandlerNative(IntPtr objekt, bool focus_in);
internal class FocusHandlerInvoker {
FocusHandlerNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~FocusHandlerInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal FocusHandlerInvoker (FocusHandlerNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal FocusHandlerInvoker (FocusHandlerNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal FocusHandlerInvoker (FocusHandlerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.FocusHandler Handler {
get {
return new Atk.FocusHandler(InvokeNative);
}
}
void InvokeNative (Atk.Object objekt, bool focus_in)
{
native_cb (objekt == null ? IntPtr.Zero : objekt.Handle, focus_in);
}
}
internal class FocusHandlerWrapper {
public void NativeCallback (IntPtr objekt, bool focus_in)
{
try {
managed (GLib.Object.GetObject(objekt) as Atk.Object, focus_in);
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal FocusHandlerNative NativeDelegate;
Atk.FocusHandler managed;
public FocusHandlerWrapper (Atk.FocusHandler managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new FocusHandlerNative (NativeCallback);
}
public static Atk.FocusHandler GetManagedDelegate (FocusHandlerNative native)
{
if (native == null)
return null;
FocusHandlerWrapper wrapper = (FocusHandlerWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,94 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate bool FunctionNative(IntPtr user_data);
internal class FunctionInvoker {
FunctionNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~FunctionInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal FunctionInvoker (FunctionNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal FunctionInvoker (FunctionNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal FunctionInvoker (FunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.Function Handler {
get {
return new Atk.Function(InvokeNative);
}
}
bool InvokeNative ()
{
bool __result = native_cb (__data);
return __result;
}
}
internal class FunctionWrapper {
public bool NativeCallback (IntPtr user_data)
{
try {
bool __ret = managed ();
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal FunctionNative NativeDelegate;
Atk.Function managed;
public FunctionWrapper (Atk.Function managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new FunctionNative (NativeCallback);
}
public static Atk.Function GetManagedDelegate (FunctionNative native)
{
if (native == null)
return null;
FunctionWrapper wrapper = (FunctionWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,97 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate int KeySnoopFuncNative(IntPtr evnt, IntPtr user_data);
internal class KeySnoopFuncInvoker {
KeySnoopFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~KeySnoopFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal KeySnoopFuncInvoker (KeySnoopFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal KeySnoopFuncInvoker (KeySnoopFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal KeySnoopFuncInvoker (KeySnoopFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.KeySnoopFunc Handler {
get {
return new Atk.KeySnoopFunc(InvokeNative);
}
}
int InvokeNative (Atk.KeyEventStruct evnt)
{
IntPtr native_evnt = GLib.Marshaller.StructureToPtrAlloc (evnt);
int __result = native_cb (native_evnt, __data);
Marshal.FreeHGlobal (native_evnt);
return __result;
}
}
internal class KeySnoopFuncWrapper {
public int NativeCallback (IntPtr evnt, IntPtr user_data)
{
try {
int __ret = managed (Atk.KeyEventStruct.New (evnt));
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal KeySnoopFuncNative NativeDelegate;
Atk.KeySnoopFunc managed;
public KeySnoopFuncWrapper (Atk.KeySnoopFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new KeySnoopFuncNative (NativeCallback);
}
public static Atk.KeySnoopFunc GetManagedDelegate (KeySnoopFuncNative native)
{
if (native == null)
return null;
KeySnoopFuncWrapper wrapper = (KeySnoopFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,93 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace AtkSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
internal delegate void PropertyChangeHandlerNative(IntPtr obj, IntPtr vals);
internal class PropertyChangeHandlerInvoker {
PropertyChangeHandlerNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~PropertyChangeHandlerInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal PropertyChangeHandlerInvoker (PropertyChangeHandlerNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal PropertyChangeHandlerInvoker (PropertyChangeHandlerNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal PropertyChangeHandlerInvoker (PropertyChangeHandlerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Atk.PropertyChangeHandler Handler {
get {
return new Atk.PropertyChangeHandler(InvokeNative);
}
}
void InvokeNative (Atk.Object obj, Atk.PropertyValues vals)
{
IntPtr native_vals = GLib.Marshaller.StructureToPtrAlloc (vals);
native_cb (obj == null ? IntPtr.Zero : obj.Handle, native_vals);
Marshal.FreeHGlobal (native_vals);
}
}
internal class PropertyChangeHandlerWrapper {
public void NativeCallback (IntPtr obj, IntPtr vals)
{
try {
managed (GLib.Object.GetObject(obj) as Atk.Object, Atk.PropertyValues.New (vals));
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal PropertyChangeHandlerNative NativeDelegate;
Atk.PropertyChangeHandler managed;
public PropertyChangeHandlerWrapper (Atk.PropertyChangeHandler managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new PropertyChangeHandlerNative (NativeCallback);
}
public static Atk.PropertyChangeHandler GetManagedDelegate (PropertyChangeHandlerNative native)
{
if (native == null)
return null;
PropertyChangeHandlerWrapper wrapper = (PropertyChangeHandlerWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View File

@@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct Attribute : IEquatable<Attribute> {
public string Name;
public string Value;
public static Atk.Attribute Zero = new Atk.Attribute ();
public static Atk.Attribute New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Atk.Attribute.Zero;
return (Atk.Attribute) Marshal.PtrToStructure (raw, typeof (Atk.Attribute));
}
public bool Equals (Attribute other)
{
return true && Name.Equals (other.Name) && Value.Equals (other.Value);
}
public override bool Equals (object other)
{
return other is Attribute && Equals ((Attribute) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Name.GetHashCode () ^ Value.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void BoundsChangedHandler(object o, BoundsChangedArgs args);
public class BoundsChangedArgs : GLib.SignalArgs {
public Atk.Rectangle Bounds{
get {
return (Atk.Rectangle) Args [0];
}
}
}
}

View File

@@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void ChildrenChangedHandler(object o, ChildrenChangedArgs args);
public class ChildrenChangedArgs : GLib.SignalArgs {
public uint ChangeIndex{
get {
return (uint) Args [0];
}
}
public IntPtr ChangedChild{
get {
return (IntPtr) Args [1];
}
}
}
}

View File

@@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void ColumnDeletedHandler(object o, ColumnDeletedArgs args);
public class ColumnDeletedArgs : GLib.SignalArgs {
public int Column{
get {
return (int) Args [0];
}
}
public int NumDeleted{
get {
return (int) Args [1];
}
}
}
}

View File

@@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void ColumnInsertedHandler(object o, ColumnInsertedArgs args);
public class ColumnInsertedArgs : GLib.SignalArgs {
public int Column{
get {
return (int) Args [0];
}
}
public int NumInserted{
get {
return (int) Args [1];
}
}
}
}

View File

@@ -0,0 +1,536 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ComponentAdapter : GLib.GInterfaceAdapter, Atk.IComponent {
[StructLayout (LayoutKind.Sequential)]
struct AtkComponentIface {
public AddFocusHandlerNativeDelegate AddFocusHandler;
public ContainsNativeDelegate Contains;
public RefAccessibleAtPointNativeDelegate RefAccessibleAtPoint;
public GetExtentsNativeDelegate GetExtents;
public GetPositionNativeDelegate GetPosition;
public GetSizeNativeDelegate GetSize;
public GrabFocusNativeDelegate GrabFocus;
public RemoveFocusHandlerNativeDelegate RemoveFocusHandler;
public SetExtentsNativeDelegate SetExtents;
public SetPositionNativeDelegate SetPosition;
public SetSizeNativeDelegate SetSize;
public GetLayerNativeDelegate GetLayer;
public GetMdiZorderNativeDelegate GetMdiZorder;
IntPtr BoundsChanged;
public GetAlphaNativeDelegate GetAlpha;
}
static AtkComponentIface iface;
static ComponentAdapter ()
{
GLib.GType.Register (_gtype, typeof (ComponentAdapter));
iface.AddFocusHandler = new AddFocusHandlerNativeDelegate (AddFocusHandler_cb);
iface.Contains = new ContainsNativeDelegate (Contains_cb);
iface.RefAccessibleAtPoint = new RefAccessibleAtPointNativeDelegate (RefAccessibleAtPoint_cb);
iface.GetExtents = new GetExtentsNativeDelegate (GetExtents_cb);
iface.GetPosition = new GetPositionNativeDelegate (GetPosition_cb);
iface.GetSize = new GetSizeNativeDelegate (GetSize_cb);
iface.GrabFocus = new GrabFocusNativeDelegate (GrabFocus_cb);
iface.RemoveFocusHandler = new RemoveFocusHandlerNativeDelegate (RemoveFocusHandler_cb);
iface.SetExtents = new SetExtentsNativeDelegate (SetExtents_cb);
iface.SetPosition = new SetPositionNativeDelegate (SetPosition_cb);
iface.SetSize = new SetSizeNativeDelegate (SetSize_cb);
iface.GetLayer = new GetLayerNativeDelegate (GetLayer_cb);
iface.GetMdiZorder = new GetMdiZorderNativeDelegate (GetMdiZorder_cb);
iface.GetAlpha = new GetAlphaNativeDelegate (GetAlpha_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint AddFocusHandlerNativeDelegate (IntPtr inst, AtkSharp.FocusHandlerNative handler);
static uint AddFocusHandler_cb (IntPtr inst, AtkSharp.FocusHandlerNative handler)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
uint __result;
AtkSharp.FocusHandlerInvoker handler_invoker = new AtkSharp.FocusHandlerInvoker (handler);
__result = __obj.AddFocusHandler (handler_invoker.Handler);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool ContainsNativeDelegate (IntPtr inst, int x, int y, int coord_type);
static bool Contains_cb (IntPtr inst, int x, int y, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
bool __result;
__result = __obj.Contains (x, y, (Atk.CoordType) coord_type);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr RefAccessibleAtPointNativeDelegate (IntPtr inst, int x, int y, int coord_type);
static IntPtr RefAccessibleAtPoint_cb (IntPtr inst, int x, int y, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
Atk.Object __result;
__result = __obj.RefAccessibleAtPoint (x, y, (Atk.CoordType) coord_type);
return __result == null ? IntPtr.Zero : __result.OwnedHandle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetExtentsNativeDelegate (IntPtr inst, out int x, out int y, out int width, out int height, int coord_type);
static void GetExtents_cb (IntPtr inst, out int x, out int y, out int width, out int height, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
__obj.GetExtents (out x, out y, out width, out height, (Atk.CoordType) coord_type);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetPositionNativeDelegate (IntPtr inst, out int x, out int y, int coord_type);
static void GetPosition_cb (IntPtr inst, out int x, out int y, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
__obj.GetPosition (out x, out y, (Atk.CoordType) coord_type);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetSizeNativeDelegate (IntPtr inst, out int width, out int height);
static void GetSize_cb (IntPtr inst, out int width, out int height)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
__obj.GetSize (out width, out height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GrabFocusNativeDelegate (IntPtr inst);
static bool GrabFocus_cb (IntPtr inst)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
bool __result;
__result = __obj.GrabFocus ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void RemoveFocusHandlerNativeDelegate (IntPtr inst, uint handler_id);
static void RemoveFocusHandler_cb (IntPtr inst, uint handler_id)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
__obj.RemoveFocusHandler (handler_id);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetExtentsNativeDelegate (IntPtr inst, int x, int y, int width, int height, int coord_type);
static bool SetExtents_cb (IntPtr inst, int x, int y, int width, int height, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
bool __result;
__result = __obj.SetExtents (x, y, width, height, (Atk.CoordType) coord_type);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetPositionNativeDelegate (IntPtr inst, int x, int y, int coord_type);
static bool SetPosition_cb (IntPtr inst, int x, int y, int coord_type)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
bool __result;
__result = __obj.SetPosition (x, y, (Atk.CoordType) coord_type);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetSizeNativeDelegate (IntPtr inst, int width, int height);
static bool SetSize_cb (IntPtr inst, int width, int height)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
bool __result;
__result = __obj.SetSize (width, height);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetLayerNativeDelegate (IntPtr inst);
static int GetLayer_cb (IntPtr inst)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
Atk.Layer __result;
__result = __obj.Layer;
return (int) __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetMdiZorderNativeDelegate (IntPtr inst);
static int GetMdiZorder_cb (IntPtr inst)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
int __result;
__result = __obj.MdiZorder;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double GetAlphaNativeDelegate (IntPtr inst);
static double GetAlpha_cb (IntPtr inst)
{
try {
IComponentImplementor __obj = GLib.Object.GetObject (inst, false) as IComponentImplementor;
double __result;
__result = __obj.Alpha;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkComponentIface native_iface = (AtkComponentIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkComponentIface));
native_iface.AddFocusHandler = iface.AddFocusHandler;
native_iface.Contains = iface.Contains;
native_iface.RefAccessibleAtPoint = iface.RefAccessibleAtPoint;
native_iface.GetExtents = iface.GetExtents;
native_iface.GetPosition = iface.GetPosition;
native_iface.GetSize = iface.GetSize;
native_iface.GrabFocus = iface.GrabFocus;
native_iface.RemoveFocusHandler = iface.RemoveFocusHandler;
native_iface.SetExtents = iface.SetExtents;
native_iface.SetPosition = iface.SetPosition;
native_iface.SetSize = iface.SetSize;
native_iface.GetLayer = iface.GetLayer;
native_iface.GetMdiZorder = iface.GetMdiZorder;
native_iface.GetAlpha = iface.GetAlpha;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public ComponentAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public ComponentAdapter (IComponentImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public ComponentAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_component_get_type();
static d_atk_component_get_type atk_component_get_type = FuncLoader.LoadFunction<d_atk_component_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_component_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IComponent GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IComponent GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IComponentImplementor)
return new ComponentAdapter (obj as IComponentImplementor);
else if (obj as IComponent == null)
return new ComponentAdapter (obj.Handle);
else
return obj as IComponent;
}
public IComponentImplementor Implementor {
get {
return implementor as IComponentImplementor;
}
}
[GLib.Signal("bounds_changed")]
public event Atk.BoundsChangedHandler BoundsChanged {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("bounds_changed", value, typeof (Atk.BoundsChangedArgs));
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("bounds_changed", value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_component_add_focus_handler(IntPtr raw, AtkSharp.FocusHandlerNative handler);
static d_atk_component_add_focus_handler atk_component_add_focus_handler = FuncLoader.LoadFunction<d_atk_component_add_focus_handler>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_add_focus_handler"));
[Obsolete]
public uint AddFocusHandler(Atk.FocusHandler handler) {
AtkSharp.FocusHandlerWrapper handler_wrapper = new AtkSharp.FocusHandlerWrapper (handler);
uint raw_ret = atk_component_add_focus_handler(Handle, handler_wrapper.NativeDelegate);
uint ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_contains(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_contains atk_component_contains = FuncLoader.LoadFunction<d_atk_component_contains>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_contains"));
public bool Contains(int x, int y, Atk.CoordType coord_type) {
bool raw_ret = atk_component_contains(Handle, x, y, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double d_atk_component_get_alpha(IntPtr raw);
static d_atk_component_get_alpha atk_component_get_alpha = FuncLoader.LoadFunction<d_atk_component_get_alpha>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_alpha"));
public double Alpha {
get {
double raw_ret = atk_component_get_alpha(Handle);
double ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_extents(IntPtr raw, out int x, out int y, out int width, out int height, int coord_type);
static d_atk_component_get_extents atk_component_get_extents = FuncLoader.LoadFunction<d_atk_component_get_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_extents"));
public void GetExtents(out int x, out int y, out int width, out int height, Atk.CoordType coord_type) {
atk_component_get_extents(Handle, out x, out y, out width, out height, (int) coord_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_component_get_layer(IntPtr raw);
static d_atk_component_get_layer atk_component_get_layer = FuncLoader.LoadFunction<d_atk_component_get_layer>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_layer"));
public Atk.Layer Layer {
get {
int raw_ret = atk_component_get_layer(Handle);
Atk.Layer ret = (Atk.Layer) raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_component_get_mdi_zorder(IntPtr raw);
static d_atk_component_get_mdi_zorder atk_component_get_mdi_zorder = FuncLoader.LoadFunction<d_atk_component_get_mdi_zorder>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_mdi_zorder"));
public int MdiZorder {
get {
int raw_ret = atk_component_get_mdi_zorder(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_position(IntPtr raw, out int x, out int y, int coord_type);
static d_atk_component_get_position atk_component_get_position = FuncLoader.LoadFunction<d_atk_component_get_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_position"));
[Obsolete]
public void GetPosition(out int x, out int y, Atk.CoordType coord_type) {
atk_component_get_position(Handle, out x, out y, (int) coord_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_size(IntPtr raw, out int width, out int height);
static d_atk_component_get_size atk_component_get_size = FuncLoader.LoadFunction<d_atk_component_get_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_size"));
[Obsolete]
public void GetSize(out int width, out int height) {
atk_component_get_size(Handle, out width, out height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_grab_focus(IntPtr raw);
static d_atk_component_grab_focus atk_component_grab_focus = FuncLoader.LoadFunction<d_atk_component_grab_focus>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_grab_focus"));
public bool GrabFocus() {
bool raw_ret = atk_component_grab_focus(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_component_ref_accessible_at_point(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_ref_accessible_at_point atk_component_ref_accessible_at_point = FuncLoader.LoadFunction<d_atk_component_ref_accessible_at_point>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_ref_accessible_at_point"));
public Atk.Object RefAccessibleAtPoint(int x, int y, Atk.CoordType coord_type) {
IntPtr raw_ret = atk_component_ref_accessible_at_point(Handle, x, y, (int) coord_type);
Atk.Object ret = GLib.Object.GetObject(raw_ret, true) as Atk.Object;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_remove_focus_handler(IntPtr raw, uint handler_id);
static d_atk_component_remove_focus_handler atk_component_remove_focus_handler = FuncLoader.LoadFunction<d_atk_component_remove_focus_handler>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_remove_focus_handler"));
[Obsolete]
public void RemoveFocusHandler(uint handler_id) {
atk_component_remove_focus_handler(Handle, handler_id);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_extents(IntPtr raw, int x, int y, int width, int height, int coord_type);
static d_atk_component_set_extents atk_component_set_extents = FuncLoader.LoadFunction<d_atk_component_set_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_extents"));
public bool SetExtents(int x, int y, int width, int height, Atk.CoordType coord_type) {
bool raw_ret = atk_component_set_extents(Handle, x, y, width, height, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_position(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_set_position atk_component_set_position = FuncLoader.LoadFunction<d_atk_component_set_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_position"));
public bool SetPosition(int x, int y, Atk.CoordType coord_type) {
bool raw_ret = atk_component_set_position(Handle, x, y, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_size(IntPtr raw, int width, int height);
static d_atk_component_set_size atk_component_set_size = FuncLoader.LoadFunction<d_atk_component_set_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_size"));
public bool SetSize(int width, int height) {
bool raw_ret = atk_component_set_size(Handle, width, height);
bool ret = raw_ret;
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Atk.CoordTypeGType))]
public enum CoordType {
Screen,
Window,
}
internal class CoordTypeGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_coord_type_get_type();
static d_atk_coord_type_get_type atk_coord_type_get_type = FuncLoader.LoadFunction<d_atk_coord_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_coord_type_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (atk_coord_type_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,412 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class DocumentAdapter : GLib.GInterfaceAdapter, Atk.IDocument {
[StructLayout (LayoutKind.Sequential)]
struct AtkDocumentIface {
public GetDocumentTypeNativeDelegate GetDocumentType;
public GetTheDocumentNativeDelegate GetTheDocument;
public GetLocaleNativeDelegate GetLocale;
public GetAttributesNativeDelegate GetAttributes;
public GetAttributeValueNativeDelegate GetAttributeValue;
public SetAttributeValueNativeDelegate SetAttributeValue;
public GetCurrentPageNumberNativeDelegate GetCurrentPageNumber;
public GetPageCountNativeDelegate GetPageCount;
}
static AtkDocumentIface iface;
static DocumentAdapter ()
{
GLib.GType.Register (_gtype, typeof (DocumentAdapter));
iface.GetDocumentType = new GetDocumentTypeNativeDelegate (GetDocumentType_cb);
iface.GetTheDocument = new GetTheDocumentNativeDelegate (GetTheDocument_cb);
iface.GetLocale = new GetLocaleNativeDelegate (GetLocale_cb);
iface.GetAttributes = new GetAttributesNativeDelegate (GetAttributes_cb);
iface.GetAttributeValue = new GetAttributeValueNativeDelegate (GetAttributeValue_cb);
iface.SetAttributeValue = new SetAttributeValueNativeDelegate (SetAttributeValue_cb);
iface.GetCurrentPageNumber = new GetCurrentPageNumberNativeDelegate (GetCurrentPageNumber_cb);
iface.GetPageCount = new GetPageCountNativeDelegate (GetPageCount_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetDocumentTypeNativeDelegate (IntPtr inst);
static IntPtr GetDocumentType_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
string __result;
__result = __obj.DocumentType;
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetTheDocumentNativeDelegate (IntPtr inst);
static IntPtr GetTheDocument_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
IntPtr __result;
__result = __obj.TheDocument;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetLocaleNativeDelegate (IntPtr inst);
static IntPtr GetLocale_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
string __result;
__result = __obj.Locale;
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetAttributesNativeDelegate (IntPtr inst);
static IntPtr GetAttributes_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
Atk.Attribute[] __result;
__result = __obj.Attributes;
return new GLib.SList(__result, typeof (Atk.Attribute), false, false) == null ? IntPtr.Zero : new GLib.SList(__result, typeof (Atk.Attribute), false, false).Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetAttributeValueNativeDelegate (IntPtr inst, IntPtr attribute_name);
static IntPtr GetAttributeValue_cb (IntPtr inst, IntPtr attribute_name)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
string __result;
__result = __obj.GetAttributeValue (GLib.Marshaller.Utf8PtrToString (attribute_name));
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetAttributeValueNativeDelegate (IntPtr inst, IntPtr attribute_name, IntPtr attribute_value);
static bool SetAttributeValue_cb (IntPtr inst, IntPtr attribute_name, IntPtr attribute_value)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
bool __result;
__result = __obj.SetAttributeValue (GLib.Marshaller.Utf8PtrToString (attribute_name), GLib.Marshaller.Utf8PtrToString (attribute_value));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetCurrentPageNumberNativeDelegate (IntPtr inst);
static int GetCurrentPageNumber_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
int __result;
__result = __obj.CurrentPageNumber;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetPageCountNativeDelegate (IntPtr inst);
static int GetPageCount_cb (IntPtr inst)
{
try {
IDocumentImplementor __obj = GLib.Object.GetObject (inst, false) as IDocumentImplementor;
int __result;
__result = __obj.PageCount;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkDocumentIface native_iface = (AtkDocumentIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkDocumentIface));
native_iface.GetDocumentType = iface.GetDocumentType;
native_iface.GetTheDocument = iface.GetTheDocument;
native_iface.GetLocale = iface.GetLocale;
native_iface.GetAttributes = iface.GetAttributes;
native_iface.GetAttributeValue = iface.GetAttributeValue;
native_iface.SetAttributeValue = iface.SetAttributeValue;
native_iface.GetCurrentPageNumber = iface.GetCurrentPageNumber;
native_iface.GetPageCount = iface.GetPageCount;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public DocumentAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public DocumentAdapter (IDocumentImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public DocumentAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_type();
static d_atk_document_get_type atk_document_get_type = FuncLoader.LoadFunction<d_atk_document_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_document_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IDocument GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IDocument GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IDocumentImplementor)
return new DocumentAdapter (obj as IDocumentImplementor);
else if (obj as IDocument == null)
return new DocumentAdapter (obj.Handle);
else
return obj as IDocument;
}
public IDocumentImplementor Implementor {
get {
return implementor as IDocumentImplementor;
}
}
[GLib.Signal("reload")]
public event System.EventHandler Reload {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("reload", value);
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("reload", value);
}
}
[GLib.Signal("load_complete")]
public event System.EventHandler LoadComplete {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("load_complete", value);
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("load_complete", value);
}
}
[GLib.Signal("load_stopped")]
public event System.EventHandler LoadStopped {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("load_stopped", value);
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("load_stopped", value);
}
}
[GLib.Signal("page_changed")]
public event Atk.PageChangedHandler PageChanged {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("page_changed", value, typeof (Atk.PageChangedArgs));
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("page_changed", value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_attribute_value(IntPtr raw, IntPtr attribute_name);
static d_atk_document_get_attribute_value atk_document_get_attribute_value = FuncLoader.LoadFunction<d_atk_document_get_attribute_value>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_attribute_value"));
public string GetAttributeValue(string attribute_name) {
IntPtr native_attribute_name = GLib.Marshaller.StringToPtrGStrdup (attribute_name);
IntPtr raw_ret = atk_document_get_attribute_value(Handle, native_attribute_name);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
GLib.Marshaller.Free (native_attribute_name);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_attributes(IntPtr raw);
static d_atk_document_get_attributes atk_document_get_attributes = FuncLoader.LoadFunction<d_atk_document_get_attributes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_attributes"));
public Atk.Attribute[] Attributes {
get {
IntPtr raw_ret = atk_document_get_attributes(Handle);
Atk.Attribute[] ret = GLib.Marshaller.SListPtrToArray<Atk.Attribute, Atk.Attribute> (raw_ret, false, false);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_document_get_current_page_number(IntPtr raw);
static d_atk_document_get_current_page_number atk_document_get_current_page_number = FuncLoader.LoadFunction<d_atk_document_get_current_page_number>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_current_page_number"));
public int CurrentPageNumber {
get {
int raw_ret = atk_document_get_current_page_number(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_document(IntPtr raw);
static d_atk_document_get_document atk_document_get_document = FuncLoader.LoadFunction<d_atk_document_get_document>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_document"));
[Obsolete]
public IntPtr TheDocument {
get {
IntPtr raw_ret = atk_document_get_document(Handle);
IntPtr ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_document_type(IntPtr raw);
static d_atk_document_get_document_type atk_document_get_document_type = FuncLoader.LoadFunction<d_atk_document_get_document_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_document_type"));
[Obsolete]
public string DocumentType {
get {
IntPtr raw_ret = atk_document_get_document_type(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_document_get_locale(IntPtr raw);
static d_atk_document_get_locale atk_document_get_locale = FuncLoader.LoadFunction<d_atk_document_get_locale>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_locale"));
[Obsolete]
public string Locale {
get {
IntPtr raw_ret = atk_document_get_locale(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_document_get_page_count(IntPtr raw);
static d_atk_document_get_page_count atk_document_get_page_count = FuncLoader.LoadFunction<d_atk_document_get_page_count>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_get_page_count"));
public int PageCount {
get {
int raw_ret = atk_document_get_page_count(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_document_set_attribute_value(IntPtr raw, IntPtr attribute_name, IntPtr attribute_value);
static d_atk_document_set_attribute_value atk_document_set_attribute_value = FuncLoader.LoadFunction<d_atk_document_set_attribute_value>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_document_set_attribute_value"));
public bool SetAttributeValue(string attribute_name, string attribute_value) {
IntPtr native_attribute_name = GLib.Marshaller.StringToPtrGStrdup (attribute_name);
IntPtr native_attribute_value = GLib.Marshaller.StringToPtrGStrdup (attribute_value);
bool raw_ret = atk_document_set_attribute_value(Handle, native_attribute_name, native_attribute_value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_attribute_name);
GLib.Marshaller.Free (native_attribute_value);
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,291 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class EditableTextAdapter : GLib.GInterfaceAdapter, Atk.IEditableText {
[StructLayout (LayoutKind.Sequential)]
struct AtkEditableTextIface {
public SetRunAttributesNativeDelegate SetRunAttributes;
public SetTextContentsNativeDelegate SetTextContents;
public InsertTextNativeDelegate InsertText;
public CopyTextNativeDelegate CopyText;
public CutTextNativeDelegate CutText;
public DeleteTextNativeDelegate DeleteText;
public PasteTextNativeDelegate PasteText;
}
static AtkEditableTextIface iface;
static EditableTextAdapter ()
{
GLib.GType.Register (_gtype, typeof (EditableTextAdapter));
iface.SetRunAttributes = new SetRunAttributesNativeDelegate (SetRunAttributes_cb);
iface.SetTextContents = new SetTextContentsNativeDelegate (SetTextContents_cb);
iface.InsertText = new InsertTextNativeDelegate (InsertText_cb);
iface.CopyText = new CopyTextNativeDelegate (CopyText_cb);
iface.CutText = new CutTextNativeDelegate (CutText_cb);
iface.DeleteText = new DeleteTextNativeDelegate (DeleteText_cb);
iface.PasteText = new PasteTextNativeDelegate (PasteText_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetRunAttributesNativeDelegate (IntPtr inst, IntPtr attrib_set, int start_offset, int end_offset);
static bool SetRunAttributes_cb (IntPtr inst, IntPtr attrib_set, int start_offset, int end_offset)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
bool __result;
__result = __obj.SetRunAttributes (new GLib.SList(attrib_set), start_offset, end_offset);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SetTextContentsNativeDelegate (IntPtr inst, IntPtr str1ng);
static void SetTextContents_cb (IntPtr inst, IntPtr str1ng)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.TextContents = GLib.Marshaller.Utf8PtrToString (str1ng);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void InsertTextNativeDelegate (IntPtr inst, IntPtr str1ng, int length, ref int position);
static void InsertText_cb (IntPtr inst, IntPtr str1ng, int length, ref int position)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.InsertText (GLib.Marshaller.Utf8PtrToString (str1ng), ref position);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void CopyTextNativeDelegate (IntPtr inst, int start_pos, int end_pos);
static void CopyText_cb (IntPtr inst, int start_pos, int end_pos)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.CopyText (start_pos, end_pos);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void CutTextNativeDelegate (IntPtr inst, int start_pos, int end_pos);
static void CutText_cb (IntPtr inst, int start_pos, int end_pos)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.CutText (start_pos, end_pos);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void DeleteTextNativeDelegate (IntPtr inst, int start_pos, int end_pos);
static void DeleteText_cb (IntPtr inst, int start_pos, int end_pos)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.DeleteText (start_pos, end_pos);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PasteTextNativeDelegate (IntPtr inst, int position);
static void PasteText_cb (IntPtr inst, int position)
{
try {
IEditableTextImplementor __obj = GLib.Object.GetObject (inst, false) as IEditableTextImplementor;
__obj.PasteText (position);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkEditableTextIface native_iface = (AtkEditableTextIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkEditableTextIface));
native_iface.SetRunAttributes = iface.SetRunAttributes;
native_iface.SetTextContents = iface.SetTextContents;
native_iface.InsertText = iface.InsertText;
native_iface.CopyText = iface.CopyText;
native_iface.CutText = iface.CutText;
native_iface.DeleteText = iface.DeleteText;
native_iface.PasteText = iface.PasteText;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public EditableTextAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public EditableTextAdapter (IEditableTextImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public EditableTextAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_editable_text_get_type();
static d_atk_editable_text_get_type atk_editable_text_get_type = FuncLoader.LoadFunction<d_atk_editable_text_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_editable_text_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IEditableText GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IEditableText GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IEditableTextImplementor)
return new EditableTextAdapter (obj as IEditableTextImplementor);
else if (obj as IEditableText == null)
return new EditableTextAdapter (obj.Handle);
else
return obj as IEditableText;
}
public IEditableTextImplementor Implementor {
get {
return implementor as IEditableTextImplementor;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_copy_text(IntPtr raw, int start_pos, int end_pos);
static d_atk_editable_text_copy_text atk_editable_text_copy_text = FuncLoader.LoadFunction<d_atk_editable_text_copy_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_copy_text"));
public void CopyText(int start_pos, int end_pos) {
atk_editable_text_copy_text(Handle, start_pos, end_pos);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_cut_text(IntPtr raw, int start_pos, int end_pos);
static d_atk_editable_text_cut_text atk_editable_text_cut_text = FuncLoader.LoadFunction<d_atk_editable_text_cut_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_cut_text"));
public void CutText(int start_pos, int end_pos) {
atk_editable_text_cut_text(Handle, start_pos, end_pos);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_delete_text(IntPtr raw, int start_pos, int end_pos);
static d_atk_editable_text_delete_text atk_editable_text_delete_text = FuncLoader.LoadFunction<d_atk_editable_text_delete_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_delete_text"));
public void DeleteText(int start_pos, int end_pos) {
atk_editable_text_delete_text(Handle, start_pos, end_pos);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_insert_text(IntPtr raw, IntPtr str1ng, int length, ref int position);
static d_atk_editable_text_insert_text atk_editable_text_insert_text = FuncLoader.LoadFunction<d_atk_editable_text_insert_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_insert_text"));
public void InsertText(string str1ng, ref int position) {
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng);
atk_editable_text_insert_text(Handle, native_str1ng, System.Text.Encoding.UTF8.GetByteCount (str1ng), ref position);
GLib.Marshaller.Free (native_str1ng);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_paste_text(IntPtr raw, int position);
static d_atk_editable_text_paste_text atk_editable_text_paste_text = FuncLoader.LoadFunction<d_atk_editable_text_paste_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_paste_text"));
public void PasteText(int position) {
atk_editable_text_paste_text(Handle, position);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_editable_text_set_run_attributes(IntPtr raw, IntPtr attrib_set, int start_offset, int end_offset);
static d_atk_editable_text_set_run_attributes atk_editable_text_set_run_attributes = FuncLoader.LoadFunction<d_atk_editable_text_set_run_attributes>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_set_run_attributes"));
public bool SetRunAttributes(GLib.SList attrib_set, int start_offset, int end_offset) {
bool raw_ret = atk_editable_text_set_run_attributes(Handle, attrib_set == null ? IntPtr.Zero : attrib_set.Handle, start_offset, end_offset);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_editable_text_set_text_contents(IntPtr raw, IntPtr str1ng);
static d_atk_editable_text_set_text_contents atk_editable_text_set_text_contents = FuncLoader.LoadFunction<d_atk_editable_text_set_text_contents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_editable_text_set_text_contents"));
public string TextContents {
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
atk_editable_text_set_text_contents(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
#endregion
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void EventListener(Atk.Object obj);
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void EventListenerInit();
}

View File

@@ -0,0 +1,33 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Focus {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_focus_tracker_init(AtkSharp.EventListenerInitNative init);
static d_atk_focus_tracker_init atk_focus_tracker_init = FuncLoader.LoadFunction<d_atk_focus_tracker_init>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_focus_tracker_init"));
[Obsolete]
public static void TrackerInit(Atk.EventListenerInit init) {
AtkSharp.EventListenerInitWrapper init_wrapper = new AtkSharp.EventListenerInitWrapper (init);
atk_focus_tracker_init(init_wrapper.NativeDelegate);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_focus_tracker_notify(IntPtr objekt);
static d_atk_focus_tracker_notify atk_focus_tracker_notify = FuncLoader.LoadFunction<d_atk_focus_tracker_notify>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_focus_tracker_notify"));
[Obsolete]
public static void TrackerNotify(Atk.Object objekt) {
atk_focus_tracker_notify(objekt == null ? IntPtr.Zero : objekt.Handle);
}
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void FocusEventHandler(object o, FocusEventArgs args);
public class FocusEventArgs : GLib.SignalArgs {
public bool FocusIn{
get {
return (bool) Args [0];
}
}
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void FocusHandler(Atk.Object objekt, bool focus_in);
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class FocusTracker : GLib.Opaque {
public FocusTracker(IntPtr raw) : base(raw) {}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate bool Function();
}

View File

@@ -0,0 +1,105 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class GObjectAccessible : Atk.Object {
public GObjectAccessible (IntPtr raw) : base(raw) {}
protected GObjectAccessible() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("pad1"
, Atk.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // pad1
, null
, "pad2"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("pad2"
, -1
, (uint) sizeof( IntPtr ) // pad2
, "pad1"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_gobject_accessible_for_object(IntPtr obj);
static d_atk_gobject_accessible_for_object atk_gobject_accessible_for_object = FuncLoader.LoadFunction<d_atk_gobject_accessible_for_object>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_gobject_accessible_for_object"));
public static Atk.Object ForObject(GLib.Object obj) {
IntPtr raw_ret = atk_gobject_accessible_for_object(obj == null ? IntPtr.Zero : obj.Handle);
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_gobject_accessible_get_object(IntPtr raw);
static d_atk_gobject_accessible_get_object atk_gobject_accessible_get_object = FuncLoader.LoadFunction<d_atk_gobject_accessible_get_object>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_gobject_accessible_get_object"));
public GLib.Object Object {
get {
IntPtr raw_ret = atk_gobject_accessible_get_object(Handle);
GLib.Object ret = GLib.Object.GetObject (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_gobject_accessible_get_type();
static d_atk_gobject_accessible_get_type atk_gobject_accessible_get_type = FuncLoader.LoadFunction<d_atk_gobject_accessible_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_gobject_accessible_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_gobject_accessible_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (Atk.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,239 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Global {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_add_focus_tracker(AtkSharp.EventListenerNative focus_tracker);
static d_atk_add_focus_tracker atk_add_focus_tracker = FuncLoader.LoadFunction<d_atk_add_focus_tracker>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_add_focus_tracker"));
[Obsolete]
public static uint AddFocusTracker(Atk.EventListener focus_tracker) {
AtkSharp.EventListenerWrapper focus_tracker_wrapper = new AtkSharp.EventListenerWrapper (focus_tracker);
uint raw_ret = atk_add_focus_tracker(focus_tracker_wrapper.NativeDelegate);
uint ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_add_key_event_listener(AtkSharp.KeySnoopFuncNative listener, IntPtr data);
static d_atk_add_key_event_listener atk_add_key_event_listener = FuncLoader.LoadFunction<d_atk_add_key_event_listener>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_add_key_event_listener"));
public static uint AddKeyEventListener(Atk.KeySnoopFunc listener) {
AtkSharp.KeySnoopFuncWrapper listener_wrapper = new AtkSharp.KeySnoopFuncWrapper (listener);
uint raw_ret = atk_add_key_event_listener(listener_wrapper.NativeDelegate, IntPtr.Zero);
uint ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_get_binary_age();
static d_atk_get_binary_age atk_get_binary_age = FuncLoader.LoadFunction<d_atk_get_binary_age>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_binary_age"));
public static uint BinaryAge {
get {
uint raw_ret = atk_get_binary_age();
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_default_registry();
static d_atk_get_default_registry atk_get_default_registry = FuncLoader.LoadFunction<d_atk_get_default_registry>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_default_registry"));
public static Atk.Registry DefaultRegistry {
get {
IntPtr raw_ret = atk_get_default_registry();
Atk.Registry ret = GLib.Object.GetObject(raw_ret) as Atk.Registry;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_focus_object();
static d_atk_get_focus_object atk_get_focus_object = FuncLoader.LoadFunction<d_atk_get_focus_object>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_focus_object"));
public static Atk.Object FocusObject {
get {
IntPtr raw_ret = atk_get_focus_object();
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_get_interface_age();
static d_atk_get_interface_age atk_get_interface_age = FuncLoader.LoadFunction<d_atk_get_interface_age>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_interface_age"));
public static uint InterfaceAge {
get {
uint raw_ret = atk_get_interface_age();
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_get_major_version();
static d_atk_get_major_version atk_get_major_version = FuncLoader.LoadFunction<d_atk_get_major_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_major_version"));
public static uint MajorVersion {
get {
uint raw_ret = atk_get_major_version();
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_get_micro_version();
static d_atk_get_micro_version atk_get_micro_version = FuncLoader.LoadFunction<d_atk_get_micro_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_micro_version"));
public static uint MicroVersion {
get {
uint raw_ret = atk_get_micro_version();
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_get_minor_version();
static d_atk_get_minor_version atk_get_minor_version = FuncLoader.LoadFunction<d_atk_get_minor_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_minor_version"));
public static uint MinorVersion {
get {
uint raw_ret = atk_get_minor_version();
uint ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_root();
static d_atk_get_root atk_get_root = FuncLoader.LoadFunction<d_atk_get_root>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_root"));
public static Atk.Object Root {
get {
IntPtr raw_ret = atk_get_root();
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_toolkit_name();
static d_atk_get_toolkit_name atk_get_toolkit_name = FuncLoader.LoadFunction<d_atk_get_toolkit_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_toolkit_name"));
public static string ToolkitName {
get {
IntPtr raw_ret = atk_get_toolkit_name();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_toolkit_version();
static d_atk_get_toolkit_version atk_get_toolkit_version = FuncLoader.LoadFunction<d_atk_get_toolkit_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_toolkit_version"));
public static string ToolkitVersion {
get {
IntPtr raw_ret = atk_get_toolkit_version();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_get_version();
static d_atk_get_version atk_get_version = FuncLoader.LoadFunction<d_atk_get_version>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_get_version"));
public static string Version {
get {
IntPtr raw_ret = atk_get_version();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_remove_focus_tracker(uint tracker_id);
static d_atk_remove_focus_tracker atk_remove_focus_tracker = FuncLoader.LoadFunction<d_atk_remove_focus_tracker>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_remove_focus_tracker"));
[Obsolete]
public static void RemoveFocusTracker(uint tracker_id) {
atk_remove_focus_tracker(tracker_id);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_remove_global_event_listener(uint listener_id);
static d_atk_remove_global_event_listener atk_remove_global_event_listener = FuncLoader.LoadFunction<d_atk_remove_global_event_listener>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_remove_global_event_listener"));
public static void RemoveGlobalEventListener(uint listener_id) {
atk_remove_global_event_listener(listener_id);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_remove_key_event_listener(uint listener_id);
static d_atk_remove_key_event_listener atk_remove_key_event_listener = FuncLoader.LoadFunction<d_atk_remove_key_event_listener>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_remove_key_event_listener"));
public static void RemoveKeyEventListener(uint listener_id) {
atk_remove_key_event_listener(listener_id);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_role_for_name(IntPtr name);
static d_atk_role_for_name atk_role_for_name = FuncLoader.LoadFunction<d_atk_role_for_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_role_for_name"));
public static Atk.Role RoleForName(string name) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
int raw_ret = atk_role_for_name(native_name);
Atk.Role ret = (Atk.Role) raw_ret;
GLib.Marshaller.Free (native_name);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_role_get_localized_name(int role);
static d_atk_role_get_localized_name atk_role_get_localized_name = FuncLoader.LoadFunction<d_atk_role_get_localized_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_role_get_localized_name"));
public static string RoleGetLocalizedName(Atk.Role role) {
IntPtr raw_ret = atk_role_get_localized_name((int) role);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_role_get_name(int role);
static d_atk_role_get_name atk_role_get_name = FuncLoader.LoadFunction<d_atk_role_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_role_get_name"));
public static string RoleGetName(Atk.Role role) {
IntPtr raw_ret = atk_role_get_name((int) role);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_role_register(IntPtr name);
static d_atk_role_register atk_role_register = FuncLoader.LoadFunction<d_atk_role_register>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_role_register"));
[Obsolete]
public static Atk.Role RoleRegister(string name) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
int raw_ret = atk_role_register(native_name);
Atk.Role ret = (Atk.Role) raw_ret;
GLib.Marshaller.Free (native_name);
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,827 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Hyperlink : GLib.Object, Atk.IAction {
public Hyperlink (IntPtr raw) : base(raw) {}
protected Hyperlink() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
[GLib.Property ("selected-link")]
public bool SelectedLink {
get {
GLib.Value val = GetProperty ("selected-link");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("number-of-anchors")]
public int NumberOfAnchors {
get {
GLib.Value val = GetProperty ("number-of-anchors");
int ret = (int) val;
val.Dispose ();
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_hyperlink_get_end_index(IntPtr raw);
static d_atk_hyperlink_get_end_index atk_hyperlink_get_end_index = FuncLoader.LoadFunction<d_atk_hyperlink_get_end_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_end_index"));
[GLib.Property ("end-index")]
public int EndIndex {
get {
int raw_ret = atk_hyperlink_get_end_index(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_hyperlink_get_start_index(IntPtr raw);
static d_atk_hyperlink_get_start_index atk_hyperlink_get_start_index = FuncLoader.LoadFunction<d_atk_hyperlink_get_start_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_start_index"));
[GLib.Property ("start-index")]
public int StartIndex {
get {
int raw_ret = atk_hyperlink_get_start_index(Handle);
int ret = raw_ret;
return ret;
}
}
[GLib.Signal("link_activated")]
public event System.EventHandler LinkActivated {
add {
this.AddSignalHandler ("link_activated", value);
}
remove {
this.RemoveSignalHandler ("link_activated", value);
}
}
static GetUriNativeDelegate GetUri_cb_delegate;
static GetUriNativeDelegate GetUriVMCallback {
get {
if (GetUri_cb_delegate == null)
GetUri_cb_delegate = new GetUriNativeDelegate (GetUri_cb);
return GetUri_cb_delegate;
}
}
static void OverrideGetUri (GLib.GType gtype)
{
OverrideGetUri (gtype, GetUriVMCallback);
}
static void OverrideGetUri (GLib.GType gtype, GetUriNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_uri"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetUriNativeDelegate (IntPtr inst, int i);
static IntPtr GetUri_cb (IntPtr inst, int i)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
string __result;
__result = __obj.OnGetUri (i);
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetUri")]
protected virtual string OnGetUri (int i)
{
return InternalGetUri (i);
}
private string InternalGetUri (int i)
{
GetUriNativeDelegate unmanaged = class_abi.BaseOverride<GetUriNativeDelegate>(this.LookupGType(), "get_uri");
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle, i);
return GLib.Marshaller.PtrToStringGFree(__result);
}
static GetObjectNativeDelegate GetObject_cb_delegate;
static GetObjectNativeDelegate GetObjectVMCallback {
get {
if (GetObject_cb_delegate == null)
GetObject_cb_delegate = new GetObjectNativeDelegate (GetObject_cb);
return GetObject_cb_delegate;
}
}
static void OverrideGetObject (GLib.GType gtype)
{
OverrideGetObject (gtype, GetObjectVMCallback);
}
static void OverrideGetObject (GLib.GType gtype, GetObjectNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetObjectNativeDelegate (IntPtr inst, int i);
static IntPtr GetObject_cb (IntPtr inst, int i)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
Atk.Object __result;
__result = __obj.OnGetObject (i);
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetObject")]
protected virtual Atk.Object OnGetObject (int i)
{
return InternalGetObject (i);
}
private Atk.Object InternalGetObject (int i)
{
GetObjectNativeDelegate unmanaged = class_abi.BaseOverride<GetObjectNativeDelegate>(this.LookupGType(), "get_object");
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle, i);
return GLib.Object.GetObject(__result) as Atk.Object;
}
static GetEndIndexNativeDelegate GetEndIndex_cb_delegate;
static GetEndIndexNativeDelegate GetEndIndexVMCallback {
get {
if (GetEndIndex_cb_delegate == null)
GetEndIndex_cb_delegate = new GetEndIndexNativeDelegate (GetEndIndex_cb);
return GetEndIndex_cb_delegate;
}
}
static void OverrideGetEndIndex (GLib.GType gtype)
{
OverrideGetEndIndex (gtype, GetEndIndexVMCallback);
}
static void OverrideGetEndIndex (GLib.GType gtype, GetEndIndexNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_end_index"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetEndIndexNativeDelegate (IntPtr inst);
static int GetEndIndex_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
int __result;
__result = __obj.OnGetEndIndex ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetEndIndex")]
protected virtual int OnGetEndIndex ()
{
return InternalGetEndIndex ();
}
private int InternalGetEndIndex ()
{
GetEndIndexNativeDelegate unmanaged = class_abi.BaseOverride<GetEndIndexNativeDelegate>(this.LookupGType(), "get_end_index");
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static GetStartIndexNativeDelegate GetStartIndex_cb_delegate;
static GetStartIndexNativeDelegate GetStartIndexVMCallback {
get {
if (GetStartIndex_cb_delegate == null)
GetStartIndex_cb_delegate = new GetStartIndexNativeDelegate (GetStartIndex_cb);
return GetStartIndex_cb_delegate;
}
}
static void OverrideGetStartIndex (GLib.GType gtype)
{
OverrideGetStartIndex (gtype, GetStartIndexVMCallback);
}
static void OverrideGetStartIndex (GLib.GType gtype, GetStartIndexNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_start_index"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetStartIndexNativeDelegate (IntPtr inst);
static int GetStartIndex_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
int __result;
__result = __obj.OnGetStartIndex ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetStartIndex")]
protected virtual int OnGetStartIndex ()
{
return InternalGetStartIndex ();
}
private int InternalGetStartIndex ()
{
GetStartIndexNativeDelegate unmanaged = class_abi.BaseOverride<GetStartIndexNativeDelegate>(this.LookupGType(), "get_start_index");
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static IsValidNativeDelegate IsValid_cb_delegate;
static IsValidNativeDelegate IsValidVMCallback {
get {
if (IsValid_cb_delegate == null)
IsValid_cb_delegate = new IsValidNativeDelegate (IsValid_cb);
return IsValid_cb_delegate;
}
}
static void OverrideIsValid (GLib.GType gtype)
{
OverrideIsValid (gtype, IsValidVMCallback);
}
static void OverrideIsValid (GLib.GType gtype, IsValidNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("is_valid"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool IsValidNativeDelegate (IntPtr inst);
static bool IsValid_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
bool __result;
__result = __obj.OnIsValid ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideIsValid")]
protected virtual bool OnIsValid ()
{
return InternalIsValid ();
}
private bool InternalIsValid ()
{
IsValidNativeDelegate unmanaged = class_abi.BaseOverride<IsValidNativeDelegate>(this.LookupGType(), "is_valid");
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle);
return __result;
}
static GetNAnchorsNativeDelegate GetNAnchors_cb_delegate;
static GetNAnchorsNativeDelegate GetNAnchorsVMCallback {
get {
if (GetNAnchors_cb_delegate == null)
GetNAnchors_cb_delegate = new GetNAnchorsNativeDelegate (GetNAnchors_cb);
return GetNAnchors_cb_delegate;
}
}
static void OverrideGetNAnchors (GLib.GType gtype)
{
OverrideGetNAnchors (gtype, GetNAnchorsVMCallback);
}
static void OverrideGetNAnchors (GLib.GType gtype, GetNAnchorsNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_n_anchors"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetNAnchorsNativeDelegate (IntPtr inst);
static int GetNAnchors_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
int __result;
__result = __obj.OnGetNAnchors ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideGetNAnchors")]
protected virtual int OnGetNAnchors ()
{
return InternalGetNAnchors ();
}
private int InternalGetNAnchors ()
{
GetNAnchorsNativeDelegate unmanaged = class_abi.BaseOverride<GetNAnchorsNativeDelegate>(this.LookupGType(), "get_n_anchors");
if (unmanaged == null) return 0;
int __result = unmanaged (this.Handle);
return __result;
}
static LinkStateNativeDelegate LinkState_cb_delegate;
static LinkStateNativeDelegate LinkStateVMCallback {
get {
if (LinkState_cb_delegate == null)
LinkState_cb_delegate = new LinkStateNativeDelegate (LinkState_cb);
return LinkState_cb_delegate;
}
}
static void OverrideLinkState (GLib.GType gtype)
{
OverrideLinkState (gtype, LinkStateVMCallback);
}
static void OverrideLinkState (GLib.GType gtype, LinkStateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("link_state"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint LinkStateNativeDelegate (IntPtr inst);
static uint LinkState_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
uint __result;
__result = __obj.OnLinkState ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideLinkState")]
protected virtual uint OnLinkState ()
{
return InternalLinkState ();
}
private uint InternalLinkState ()
{
LinkStateNativeDelegate unmanaged = class_abi.BaseOverride<LinkStateNativeDelegate>(this.LookupGType(), "link_state");
if (unmanaged == null) return 0;
uint __result = unmanaged (this.Handle);
return __result;
}
static IsSelectedLinkNativeDelegate IsSelectedLink_cb_delegate;
static IsSelectedLinkNativeDelegate IsSelectedLinkVMCallback {
get {
if (IsSelectedLink_cb_delegate == null)
IsSelectedLink_cb_delegate = new IsSelectedLinkNativeDelegate (IsSelectedLink_cb);
return IsSelectedLink_cb_delegate;
}
}
static void OverrideIsSelectedLink (GLib.GType gtype)
{
OverrideIsSelectedLink (gtype, IsSelectedLinkVMCallback);
}
static void OverrideIsSelectedLink (GLib.GType gtype, IsSelectedLinkNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("is_selected_link"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool IsSelectedLinkNativeDelegate (IntPtr inst);
static bool IsSelectedLink_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
bool __result;
__result = __obj.OnIsSelectedLink ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideIsSelectedLink")]
protected virtual bool OnIsSelectedLink ()
{
return InternalIsSelectedLink ();
}
private bool InternalIsSelectedLink ()
{
IsSelectedLinkNativeDelegate unmanaged = class_abi.BaseOverride<IsSelectedLinkNativeDelegate>(this.LookupGType(), "is_selected_link");
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle);
return __result;
}
static LinkActivatedNativeDelegate LinkActivated_cb_delegate;
static LinkActivatedNativeDelegate LinkActivatedVMCallback {
get {
if (LinkActivated_cb_delegate == null)
LinkActivated_cb_delegate = new LinkActivatedNativeDelegate (LinkActivated_cb);
return LinkActivated_cb_delegate;
}
}
static void OverrideLinkActivated (GLib.GType gtype)
{
OverrideLinkActivated (gtype, LinkActivatedVMCallback);
}
static void OverrideLinkActivated (GLib.GType gtype, LinkActivatedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("link_activated"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void LinkActivatedNativeDelegate (IntPtr inst);
static void LinkActivated_cb (IntPtr inst)
{
try {
Hyperlink __obj = GLib.Object.GetObject (inst, false) as Hyperlink;
__obj.OnLinkActivated ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Hyperlink), ConnectionMethod="OverrideLinkActivated")]
protected virtual void OnLinkActivated ()
{
InternalLinkActivated ();
}
private void InternalLinkActivated ()
{
LinkActivatedNativeDelegate unmanaged = class_abi.BaseOverride<LinkActivatedNativeDelegate>(this.LookupGType(), "link_activated");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("get_uri"
, GLib.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // get_uri
, null
, "get_object"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("get_object"
, -1
, (uint) sizeof( IntPtr ) // get_object
, "get_uri"
, "get_end_index"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("get_end_index"
, -1
, (uint) sizeof( IntPtr ) // get_end_index
, "get_object"
, "get_start_index"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("get_start_index"
, -1
, (uint) sizeof( IntPtr ) // get_start_index
, "get_end_index"
, "is_valid"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("is_valid"
, -1
, (uint) sizeof( IntPtr ) // is_valid
, "get_start_index"
, "get_n_anchors"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("get_n_anchors"
, -1
, (uint) sizeof( IntPtr ) // get_n_anchors
, "is_valid"
, "link_state"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("link_state"
, -1
, (uint) sizeof( IntPtr ) // link_state
, "get_n_anchors"
, "is_selected_link"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("is_selected_link"
, -1
, (uint) sizeof( IntPtr ) // is_selected_link
, "link_state"
, "link_activated"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("link_activated"
, -1
, (uint) sizeof( IntPtr ) // link_activated
, "is_selected_link"
, "pad1"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("pad1"
, -1
, (uint) sizeof( IntPtr ) // pad1
, "link_activated"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_hyperlink_get_n_anchors(IntPtr raw);
static d_atk_hyperlink_get_n_anchors atk_hyperlink_get_n_anchors = FuncLoader.LoadFunction<d_atk_hyperlink_get_n_anchors>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_n_anchors"));
public int NAnchors {
get {
int raw_ret = atk_hyperlink_get_n_anchors(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_get_object(IntPtr raw, int i);
static d_atk_hyperlink_get_object atk_hyperlink_get_object = FuncLoader.LoadFunction<d_atk_hyperlink_get_object>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_object"));
public Atk.Object GetObject(int i) {
IntPtr raw_ret = atk_hyperlink_get_object(Handle, i);
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_get_type();
static d_atk_hyperlink_get_type atk_hyperlink_get_type = FuncLoader.LoadFunction<d_atk_hyperlink_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_hyperlink_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_get_uri(IntPtr raw, int i);
static d_atk_hyperlink_get_uri atk_hyperlink_get_uri = FuncLoader.LoadFunction<d_atk_hyperlink_get_uri>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_get_uri"));
public string GetUri(int i) {
IntPtr raw_ret = atk_hyperlink_get_uri(Handle, i);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_hyperlink_is_inline(IntPtr raw);
static d_atk_hyperlink_is_inline atk_hyperlink_is_inline = FuncLoader.LoadFunction<d_atk_hyperlink_is_inline>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_is_inline"));
public bool IsInline {
get {
bool raw_ret = atk_hyperlink_is_inline(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_hyperlink_is_selected_link(IntPtr raw);
static d_atk_hyperlink_is_selected_link atk_hyperlink_is_selected_link = FuncLoader.LoadFunction<d_atk_hyperlink_is_selected_link>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_is_selected_link"));
[Obsolete]
public bool IsSelectedLink {
get {
bool raw_ret = atk_hyperlink_is_selected_link(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_hyperlink_is_valid(IntPtr raw);
static d_atk_hyperlink_is_valid atk_hyperlink_is_valid = FuncLoader.LoadFunction<d_atk_hyperlink_is_valid>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_is_valid"));
public bool IsValid {
get {
bool raw_ret = atk_hyperlink_is_valid(Handle);
bool ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_action_do_action(IntPtr raw, int i);
static d_atk_action_do_action atk_action_do_action = FuncLoader.LoadFunction<d_atk_action_do_action>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_do_action"));
public bool DoAction(int i) {
bool raw_ret = atk_action_do_action(Handle, i);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_description(IntPtr raw, int i);
static d_atk_action_get_description atk_action_get_description = FuncLoader.LoadFunction<d_atk_action_get_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_description"));
public string GetDescription(int i) {
IntPtr raw_ret = atk_action_get_description(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_keybinding(IntPtr raw, int i);
static d_atk_action_get_keybinding atk_action_get_keybinding = FuncLoader.LoadFunction<d_atk_action_get_keybinding>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_keybinding"));
public string GetKeybinding(int i) {
IntPtr raw_ret = atk_action_get_keybinding(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_localized_name(IntPtr raw, int i);
static d_atk_action_get_localized_name atk_action_get_localized_name = FuncLoader.LoadFunction<d_atk_action_get_localized_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_localized_name"));
public string GetLocalizedName(int i) {
IntPtr raw_ret = atk_action_get_localized_name(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_action_get_n_actions(IntPtr raw);
static d_atk_action_get_n_actions atk_action_get_n_actions = FuncLoader.LoadFunction<d_atk_action_get_n_actions>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_n_actions"));
public int NActions {
get {
int raw_ret = atk_action_get_n_actions(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_action_get_name(IntPtr raw, int i);
static d_atk_action_get_name atk_action_get_name = FuncLoader.LoadFunction<d_atk_action_get_name>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_get_name"));
public string GetName(int i) {
IntPtr raw_ret = atk_action_get_name(Handle, i);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_action_set_description(IntPtr raw, int i, IntPtr desc);
static d_atk_action_set_description atk_action_set_description = FuncLoader.LoadFunction<d_atk_action_set_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_action_set_description"));
public bool SetDescription(int i, string desc) {
IntPtr native_desc = GLib.Marshaller.StringToPtrGStrdup (desc);
bool raw_ret = atk_action_set_description(Handle, i, native_desc);
bool ret = raw_ret;
GLib.Marshaller.Free (native_desc);
return ret;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,143 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class HyperlinkImplAdapter : GLib.GInterfaceAdapter, Atk.IHyperlinkImpl {
[StructLayout (LayoutKind.Sequential)]
struct AtkHyperlinkImplIface {
public GetHyperlinkNativeDelegate GetHyperlink;
}
static AtkHyperlinkImplIface iface;
static HyperlinkImplAdapter ()
{
GLib.GType.Register (_gtype, typeof (HyperlinkImplAdapter));
iface.GetHyperlink = new GetHyperlinkNativeDelegate (GetHyperlink_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetHyperlinkNativeDelegate (IntPtr inst);
static IntPtr GetHyperlink_cb (IntPtr inst)
{
try {
IHyperlinkImplImplementor __obj = GLib.Object.GetObject (inst, false) as IHyperlinkImplImplementor;
Atk.Hyperlink __result;
__result = __obj.Hyperlink;
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkHyperlinkImplIface native_iface = (AtkHyperlinkImplIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkHyperlinkImplIface));
native_iface.GetHyperlink = iface.GetHyperlink;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public HyperlinkImplAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public HyperlinkImplAdapter (IHyperlinkImplImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public HyperlinkImplAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_impl_get_type();
static d_atk_hyperlink_impl_get_type atk_hyperlink_impl_get_type = FuncLoader.LoadFunction<d_atk_hyperlink_impl_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_impl_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_hyperlink_impl_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IHyperlinkImpl GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IHyperlinkImpl GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IHyperlinkImplImplementor)
return new HyperlinkImplAdapter (obj as IHyperlinkImplImplementor);
else if (obj as IHyperlinkImpl == null)
return new HyperlinkImplAdapter (obj.Handle);
else
return obj as IHyperlinkImpl;
}
public IHyperlinkImplImplementor Implementor {
get {
return implementor as IHyperlinkImplImplementor;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_impl_get_hyperlink(IntPtr raw);
static d_atk_hyperlink_impl_get_hyperlink atk_hyperlink_impl_get_hyperlink = FuncLoader.LoadFunction<d_atk_hyperlink_impl_get_hyperlink>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_impl_get_hyperlink"));
public Atk.Hyperlink Hyperlink {
get {
IntPtr raw_ret = atk_hyperlink_impl_get_hyperlink(Handle);
Atk.Hyperlink ret = GLib.Object.GetObject(raw_ret) as Atk.Hyperlink;
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[Flags]
[GLib.GType (typeof (Atk.HyperlinkStateFlagsGType))]
public enum HyperlinkStateFlags {
Inline = 1 << 0,
}
internal class HyperlinkStateFlagsGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hyperlink_state_flags_get_type();
static d_atk_hyperlink_state_flags_get_type atk_hyperlink_state_flags_get_type = FuncLoader.LoadFunction<d_atk_hyperlink_state_flags_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hyperlink_state_flags_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (atk_hyperlink_state_flags_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,214 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class HypertextAdapter : GLib.GInterfaceAdapter, Atk.IHypertext {
[StructLayout (LayoutKind.Sequential)]
struct AtkHypertextIface {
public GetLinkNativeDelegate GetLink;
public GetNLinksNativeDelegate GetNLinks;
public GetLinkIndexNativeDelegate GetLinkIndex;
IntPtr LinkSelected;
}
static AtkHypertextIface iface;
static HypertextAdapter ()
{
GLib.GType.Register (_gtype, typeof (HypertextAdapter));
iface.GetLink = new GetLinkNativeDelegate (GetLink_cb);
iface.GetNLinks = new GetNLinksNativeDelegate (GetNLinks_cb);
iface.GetLinkIndex = new GetLinkIndexNativeDelegate (GetLinkIndex_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetLinkNativeDelegate (IntPtr inst, int link_index);
static IntPtr GetLink_cb (IntPtr inst, int link_index)
{
try {
IHypertextImplementor __obj = GLib.Object.GetObject (inst, false) as IHypertextImplementor;
Atk.Hyperlink __result;
__result = __obj.GetLink (link_index);
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetNLinksNativeDelegate (IntPtr inst);
static int GetNLinks_cb (IntPtr inst)
{
try {
IHypertextImplementor __obj = GLib.Object.GetObject (inst, false) as IHypertextImplementor;
int __result;
__result = __obj.NLinks;
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int GetLinkIndexNativeDelegate (IntPtr inst, int char_index);
static int GetLinkIndex_cb (IntPtr inst, int char_index)
{
try {
IHypertextImplementor __obj = GLib.Object.GetObject (inst, false) as IHypertextImplementor;
int __result;
__result = __obj.GetLinkIndex (char_index);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkHypertextIface native_iface = (AtkHypertextIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkHypertextIface));
native_iface.GetLink = iface.GetLink;
native_iface.GetNLinks = iface.GetNLinks;
native_iface.GetLinkIndex = iface.GetLinkIndex;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public HypertextAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public HypertextAdapter (IHypertextImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public HypertextAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hypertext_get_type();
static d_atk_hypertext_get_type atk_hypertext_get_type = FuncLoader.LoadFunction<d_atk_hypertext_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hypertext_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_hypertext_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IHypertext GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IHypertext GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IHypertextImplementor)
return new HypertextAdapter (obj as IHypertextImplementor);
else if (obj as IHypertext == null)
return new HypertextAdapter (obj.Handle);
else
return obj as IHypertext;
}
public IHypertextImplementor Implementor {
get {
return implementor as IHypertextImplementor;
}
}
[GLib.Signal("link_selected")]
public event Atk.LinkSelectedHandler LinkSelected {
add {
GLib.Object.GetObject (Handle).AddSignalHandler ("link_selected", value, typeof (Atk.LinkSelectedArgs));
}
remove {
GLib.Object.GetObject (Handle).RemoveSignalHandler ("link_selected", value);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_hypertext_get_link(IntPtr raw, int link_index);
static d_atk_hypertext_get_link atk_hypertext_get_link = FuncLoader.LoadFunction<d_atk_hypertext_get_link>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hypertext_get_link"));
public Atk.Hyperlink GetLink(int link_index) {
IntPtr raw_ret = atk_hypertext_get_link(Handle, link_index);
Atk.Hyperlink ret = GLib.Object.GetObject(raw_ret) as Atk.Hyperlink;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_hypertext_get_link_index(IntPtr raw, int char_index);
static d_atk_hypertext_get_link_index atk_hypertext_get_link_index = FuncLoader.LoadFunction<d_atk_hypertext_get_link_index>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hypertext_get_link_index"));
public int GetLinkIndex(int char_index) {
int raw_ret = atk_hypertext_get_link_index(Handle, char_index);
int ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_hypertext_get_n_links(IntPtr raw);
static d_atk_hypertext_get_n_links atk_hypertext_get_n_links = FuncLoader.LoadFunction<d_atk_hypertext_get_n_links>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_hypertext_get_n_links"));
public int NLinks {
get {
int raw_ret = atk_hypertext_get_n_links(Handle);
int ret = raw_ret;
return ret;
}
}
#endregion
}
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IAction : GLib.IWrapper {
bool DoAction(int i);
string GetDescription(int i);
string GetKeybinding(int i);
string GetLocalizedName(int i);
int NActions {
get;
}
string GetName(int i);
bool SetDescription(int i, string desc);
}
[GLib.GInterface (typeof (ActionAdapter))]
public partial interface IActionImplementor : GLib.IWrapper {
bool DoAction (int i);
int NActions { get; }
string GetDescription (int i);
string GetName (int i);
string GetKeybinding (int i);
bool SetDescription (int i, string desc);
string GetLocalizedName (int i);
}
#endregion
}

View File

@@ -0,0 +1,53 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IComponent : GLib.IWrapper {
event Atk.BoundsChangedHandler BoundsChanged;
uint AddFocusHandler(Atk.FocusHandler handler);
bool Contains(int x, int y, Atk.CoordType coord_type);
double Alpha {
get;
}
void GetExtents(out int x, out int y, out int width, out int height, Atk.CoordType coord_type);
Atk.Layer Layer {
get;
}
int MdiZorder {
get;
}
void GetPosition(out int x, out int y, Atk.CoordType coord_type);
void GetSize(out int width, out int height);
bool GrabFocus();
Atk.Object RefAccessibleAtPoint(int x, int y, Atk.CoordType coord_type);
void RemoveFocusHandler(uint handler_id);
bool SetExtents(int x, int y, int width, int height, Atk.CoordType coord_type);
bool SetPosition(int x, int y, Atk.CoordType coord_type);
bool SetSize(int width, int height);
}
[GLib.GInterface (typeof (ComponentAdapter))]
public partial interface IComponentImplementor : GLib.IWrapper {
uint AddFocusHandler (Atk.FocusHandler handler);
bool Contains (int x, int y, Atk.CoordType coord_type);
Atk.Object RefAccessibleAtPoint (int x, int y, Atk.CoordType coord_type);
void GetExtents (out int x, out int y, out int width, out int height, Atk.CoordType coord_type);
void GetPosition (out int x, out int y, Atk.CoordType coord_type);
void GetSize (out int width, out int height);
bool GrabFocus ();
void RemoveFocusHandler (uint handler_id);
bool SetExtents (int x, int y, int width, int height, Atk.CoordType coord_type);
bool SetPosition (int x, int y, Atk.CoordType coord_type);
bool SetSize (int width, int height);
Atk.Layer Layer { get; }
int MdiZorder { get; }
double Alpha { get; }
}
#endregion
}

View File

@@ -0,0 +1,50 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IDocument : GLib.IWrapper {
event System.EventHandler Reload;
event System.EventHandler LoadComplete;
event System.EventHandler LoadStopped;
event Atk.PageChangedHandler PageChanged;
string GetAttributeValue(string attribute_name);
Atk.Attribute[] Attributes {
get;
}
int CurrentPageNumber {
get;
}
IntPtr TheDocument {
get;
}
string DocumentType {
get;
}
string Locale {
get;
}
int PageCount {
get;
}
bool SetAttributeValue(string attribute_name, string attribute_value);
}
[GLib.GInterface (typeof (DocumentAdapter))]
public partial interface IDocumentImplementor : GLib.IWrapper {
string DocumentType { get; }
IntPtr TheDocument { get; }
string Locale { get; }
Atk.Attribute[] Attributes { get; }
string GetAttributeValue (string attribute_name);
bool SetAttributeValue (string attribute_name, string attribute_value);
int CurrentPageNumber { get; }
int PageCount { get; }
}
#endregion
}

View File

@@ -0,0 +1,34 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IEditableText : GLib.IWrapper {
void CopyText(int start_pos, int end_pos);
void CutText(int start_pos, int end_pos);
void DeleteText(int start_pos, int end_pos);
void InsertText(string str1ng, ref int position);
void PasteText(int position);
bool SetRunAttributes(GLib.SList attrib_set, int start_offset, int end_offset);
string TextContents {
set;
}
}
[GLib.GInterface (typeof (EditableTextAdapter))]
public partial interface IEditableTextImplementor : GLib.IWrapper {
bool SetRunAttributes (GLib.SList attrib_set, int start_offset, int end_offset);
string TextContents { set; }
void InsertText (string str1ng, ref int position);
void CopyText (int start_pos, int end_pos);
void CutText (int start_pos, int end_pos);
void DeleteText (int start_pos, int end_pos);
void PasteText (int position);
}
#endregion
}

View File

@@ -0,0 +1,22 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IHyperlinkImpl : GLib.IWrapper {
Atk.Hyperlink Hyperlink {
get;
}
}
[GLib.GInterface (typeof (HyperlinkImplAdapter))]
public partial interface IHyperlinkImplImplementor : GLib.IWrapper {
Atk.Hyperlink Hyperlink { get; }
}
#endregion
}

View File

@@ -0,0 +1,27 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IHypertext : GLib.IWrapper {
event Atk.LinkSelectedHandler LinkSelected;
Atk.Hyperlink GetLink(int link_index);
int GetLinkIndex(int char_index);
int NLinks {
get;
}
}
[GLib.GInterface (typeof (HypertextAdapter))]
public partial interface IHypertextImplementor : GLib.IWrapper {
Atk.Hyperlink GetLink (int link_index);
int NLinks { get; }
int GetLinkIndex (int char_index);
}
#endregion
}

View File

@@ -0,0 +1,32 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IImage : GLib.IWrapper {
string ImageDescription {
get;
}
string ImageLocale {
get;
}
void GetImagePosition(out int x, out int y, Atk.CoordType coord_type);
void GetImageSize(out int width, out int height);
bool SetImageDescription(string description);
}
[GLib.GInterface (typeof (ImageAdapter))]
public partial interface IImageImplementor : GLib.IWrapper {
void GetImagePosition (out int x, out int y, Atk.CoordType coord_type);
string ImageDescription { get; }
void GetImageSize (out int width, out int height);
bool SetImageDescription (string description);
string ImageLocale { get; }
}
#endregion
}

View File

@@ -0,0 +1,20 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IImplementor : GLib.IWrapper {
Atk.Object RefAccessible();
}
[GLib.GInterface (typeof (ImplementorAdapter))]
public partial interface IImplementorImplementor : GLib.IWrapper {
Atk.Object RefAccessible ();
}
#endregion
}

View File

@@ -0,0 +1,35 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface ISelection : GLib.IWrapper {
event System.EventHandler SelectionChanged;
bool AddSelection(int i);
bool ClearSelection();
int SelectionCount {
get;
}
bool IsChildSelected(int i);
Atk.Object RefSelection(int i);
bool RemoveSelection(int i);
bool SelectAllSelection();
}
[GLib.GInterface (typeof (SelectionAdapter))]
public partial interface ISelectionImplementor : GLib.IWrapper {
bool AddSelection (int i);
bool ClearSelection ();
Atk.Object RefSelection (int i);
int SelectionCount { get; }
bool IsChildSelected (int i);
bool RemoveSelection (int i);
bool SelectAllSelection ();
}
#endregion
}

View File

@@ -0,0 +1,28 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IStreamableContent : GLib.IWrapper {
string GetMimeType(int i);
int NMimeTypes {
get;
}
IntPtr GetStream(string mime_type);
string GetUri(string mime_type);
}
[GLib.GInterface (typeof (StreamableContentAdapter))]
public partial interface IStreamableContentImplementor : GLib.IWrapper {
int NMimeTypes { get; }
string GetMimeType (int i);
IntPtr GetStream (string mime_type);
string GetUri (string mime_type);
}
#endregion
}

View File

@@ -0,0 +1,87 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface ITable : GLib.IWrapper {
event Atk.ColumnInsertedHandler ColumnInserted;
event Atk.RowDeletedHandler RowDeleted;
event System.EventHandler RowReordered;
event Atk.ColumnDeletedHandler ColumnDeleted;
event Atk.RowInsertedHandler RowInserted;
event System.EventHandler ColumnReordered;
event System.EventHandler ModelChanged;
bool AddColumnSelection(int column);
bool AddRowSelection(int row);
Atk.Object Caption {
get; set;
}
int GetColumnAtIndex(int index_);
string GetColumnDescription(int column);
int GetColumnExtentAt(int row, int column);
Atk.Object GetColumnHeader(int column);
int GetIndexAt(int row, int column);
int NColumns {
get;
}
int NRows {
get;
}
int GetRowAtIndex(int index_);
string GetRowDescription(int row);
int GetRowExtentAt(int row, int column);
Atk.Object GetRowHeader(int row);
int GetSelectedColumns(out int selected);
int GetSelectedRows(out int selected);
Atk.Object Summary {
get; set;
}
bool IsColumnSelected(int column);
bool IsRowSelected(int row);
bool IsSelected(int row, int column);
Atk.Object RefAt(int row, int column);
bool RemoveColumnSelection(int column);
bool RemoveRowSelection(int row);
void SetColumnDescription(int column, string description);
void SetColumnHeader(int column, Atk.Object header);
void SetRowDescription(int row, string description);
void SetRowHeader(int row, Atk.Object header);
}
[GLib.GInterface (typeof (TableAdapter))]
public partial interface ITableImplementor : GLib.IWrapper {
Atk.Object RefAt (int row, int column);
int GetIndexAt (int row, int column);
int GetColumnAtIndex (int index_);
int GetRowAtIndex (int index_);
int NColumns { get; }
int NRows { get; }
int GetColumnExtentAt (int row, int column);
int GetRowExtentAt (int row, int column);
Atk.Object Caption { get; set; }
string GetColumnDescription (int column);
Atk.Object GetColumnHeader (int column);
string GetRowDescription (int row);
Atk.Object GetRowHeader (int row);
Atk.Object Summary { get; set; }
void SetColumnDescription (int column, string description);
void SetColumnHeader (int column, Atk.Object header);
void SetRowDescription (int row, string description);
void SetRowHeader (int row, Atk.Object header);
int GetSelectedColumns (out int selected);
int GetSelectedRows (out int selected);
bool IsColumnSelected (int column);
bool IsRowSelected (int row);
bool IsSelected (int row, int column);
bool AddRowSelection (int row);
bool RemoveRowSelection (int row);
bool AddColumnSelection (int column);
bool RemoveColumnSelection (int column);
}
#endregion
}

View File

@@ -0,0 +1,42 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface ITableCell : GLib.IWrapper {
GLib.PtrArray ColumnHeaderCells {
get;
}
int ColumnSpan {
get;
}
bool GetPosition(out int row, out int column);
bool GetRowColumnSpan(out int row, out int column, out int row_span, out int column_span);
GLib.PtrArray RowHeaderCells {
get;
}
int RowSpan {
get;
}
Atk.Object Table {
get;
}
}
[GLib.GInterface (typeof (TableCellAdapter))]
public partial interface ITableCellImplementor : GLib.IWrapper {
int ColumnSpan { get; }
GLib.PtrArray ColumnHeaderCells { get; }
bool GetPosition (out int row, out int column);
int RowSpan { get; }
GLib.PtrArray RowHeaderCells { get; }
bool GetRowColumnSpan (out int row, out int column, out int row_span, out int column_span);
Atk.Object Table { get; }
}
#endregion
}

View File

@@ -0,0 +1,72 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IText : GLib.IWrapper {
event Atk.TextInsertHandler TextInsert;
event Atk.TextRemoveHandler TextRemove;
event System.EventHandler TextAttributesChanged;
event Atk.TextCaretMovedHandler TextCaretMoved;
event Atk.TextChangedHandler TextChanged;
event System.EventHandler TextSelectionChanged;
bool AddSelection(int start_offset, int end_offset);
Atk.TextRange GetBoundedRanges(Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
int CaretOffset {
get;
}
char GetCharacterAtOffset(int offset);
int CharacterCount {
get;
}
void GetCharacterExtents(int offset, out int x, out int y, out int width, out int height, Atk.CoordType coords);
Atk.Attribute[] DefaultAttributes {
get;
}
int NSelections {
get;
}
int GetOffsetAtPoint(int x, int y, Atk.CoordType coords);
Atk.TextRectangle GetRangeExtents(int start_offset, int end_offset, Atk.CoordType coord_type);
Atk.Attribute[] GetRunAttributes(int offset, out int start_offset, out int end_offset);
string GetSelection(int selection_num, out int start_offset, out int end_offset);
string GetStringAtOffset(int offset, Atk.TextGranularity granularity, out int start_offset, out int end_offset);
string GetText(int start_offset, int end_offset);
string GetTextAfterOffset(int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
string GetTextAtOffset(int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
string GetTextBeforeOffset(int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
bool RemoveSelection(int selection_num);
bool SetCaretOffset(int offset);
bool SetSelection(int selection_num, int start_offset, int end_offset);
}
[GLib.GInterface (typeof (TextAdapter))]
public partial interface ITextImplementor : GLib.IWrapper {
string GetText (int start_offset, int end_offset);
string GetTextAfterOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
string GetTextAtOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
char GetCharacterAtOffset (int offset);
string GetTextBeforeOffset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
int CaretOffset { get; }
Atk.Attribute[] GetRunAttributes (int offset, out int start_offset, out int end_offset);
Atk.Attribute[] DefaultAttributes { get; }
void GetCharacterExtents (int offset, out int x, out int y, out int width, out int height, Atk.CoordType coords);
int CharacterCount { get; }
int GetOffsetAtPoint (int x, int y, Atk.CoordType coords);
int NSelections { get; }
string GetSelection (int selection_num, out int start_offset, out int end_offset);
bool AddSelection (int start_offset, int end_offset);
bool RemoveSelection (int selection_num);
bool SetSelection (int selection_num, int start_offset, int end_offset);
bool SetCaretOffset (int offset);
void GetRangeExtents (int start_offset, int end_offset, Atk.CoordType coord_type, out Atk.TextRectangle rect);
Atk.TextRange GetBoundedRanges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
string GetStringAtOffset (int offset, Atk.TextGranularity granularity, out int start_offset, out int end_offset);
}
#endregion
}

View File

@@ -0,0 +1,47 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IValue : GLib.IWrapper {
event Atk.ValueChangedHandler ValueChanged;
void GetCurrentValue(ref GLib.Value value);
double Increment {
get;
}
void GetMaximumValue(ref GLib.Value value);
void GetMinimumIncrement(ref GLib.Value value);
void GetMinimumValue(ref GLib.Value value);
Atk.Range Range {
get;
}
GLib.SList SubRanges {
get;
}
double GetValueAndText(string text);
bool SetCurrentValue(GLib.Value value);
double Value {
set;
}
}
[GLib.GInterface (typeof (ValueAdapter))]
public partial interface IValueImplementor : GLib.IWrapper {
void GetCurrentValue (ref GLib.Value value);
void GetMaximumValue (ref GLib.Value value);
void GetMinimumValue (ref GLib.Value value);
bool SetCurrentValue (GLib.Value value);
void GetMinimumIncrement (ref GLib.Value value);
void GetValueAndText (out double value, string text);
Atk.Range Range { get; }
double Increment { get; }
GLib.SList SubRanges { get; }
double Value { set; }
}
#endregion
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
#region Autogenerated code
public partial interface IWindow : GLib.IWrapper {
}
[GLib.GInterface (typeof (WindowAdapter))]
public partial interface IWindowImplementor : GLib.IWrapper {
}
#endregion
}

View File

@@ -0,0 +1,259 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ImageAdapter : GLib.GInterfaceAdapter, Atk.IImage {
[StructLayout (LayoutKind.Sequential)]
struct AtkImageIface {
public GetImagePositionNativeDelegate GetImagePosition;
public GetImageDescriptionNativeDelegate GetImageDescription;
public GetImageSizeNativeDelegate GetImageSize;
public SetImageDescriptionNativeDelegate SetImageDescription;
public GetImageLocaleNativeDelegate GetImageLocale;
}
static AtkImageIface iface;
static ImageAdapter ()
{
GLib.GType.Register (_gtype, typeof (ImageAdapter));
iface.GetImagePosition = new GetImagePositionNativeDelegate (GetImagePosition_cb);
iface.GetImageDescription = new GetImageDescriptionNativeDelegate (GetImageDescription_cb);
iface.GetImageSize = new GetImageSizeNativeDelegate (GetImageSize_cb);
iface.SetImageDescription = new SetImageDescriptionNativeDelegate (SetImageDescription_cb);
iface.GetImageLocale = new GetImageLocaleNativeDelegate (GetImageLocale_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetImagePositionNativeDelegate (IntPtr inst, out int x, out int y, int coord_type);
static void GetImagePosition_cb (IntPtr inst, out int x, out int y, int coord_type)
{
try {
IImageImplementor __obj = GLib.Object.GetObject (inst, false) as IImageImplementor;
__obj.GetImagePosition (out x, out y, (Atk.CoordType) coord_type);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetImageDescriptionNativeDelegate (IntPtr inst);
static IntPtr GetImageDescription_cb (IntPtr inst)
{
try {
IImageImplementor __obj = GLib.Object.GetObject (inst, false) as IImageImplementor;
string __result;
__result = __obj.ImageDescription;
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GetImageSizeNativeDelegate (IntPtr inst, out int width, out int height);
static void GetImageSize_cb (IntPtr inst, out int width, out int height)
{
try {
IImageImplementor __obj = GLib.Object.GetObject (inst, false) as IImageImplementor;
__obj.GetImageSize (out width, out height);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetImageDescriptionNativeDelegate (IntPtr inst, IntPtr description);
static bool SetImageDescription_cb (IntPtr inst, IntPtr description)
{
try {
IImageImplementor __obj = GLib.Object.GetObject (inst, false) as IImageImplementor;
bool __result;
__result = __obj.SetImageDescription (GLib.Marshaller.Utf8PtrToString (description));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetImageLocaleNativeDelegate (IntPtr inst);
static IntPtr GetImageLocale_cb (IntPtr inst)
{
try {
IImageImplementor __obj = GLib.Object.GetObject (inst, false) as IImageImplementor;
string __result;
__result = __obj.ImageLocale;
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkImageIface native_iface = (AtkImageIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkImageIface));
native_iface.GetImagePosition = iface.GetImagePosition;
native_iface.GetImageDescription = iface.GetImageDescription;
native_iface.GetImageSize = iface.GetImageSize;
native_iface.SetImageDescription = iface.SetImageDescription;
native_iface.GetImageLocale = iface.GetImageLocale;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public ImageAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public ImageAdapter (IImageImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public ImageAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_image_get_type();
static d_atk_image_get_type atk_image_get_type = FuncLoader.LoadFunction<d_atk_image_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_image_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IImage GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IImage GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IImageImplementor)
return new ImageAdapter (obj as IImageImplementor);
else if (obj as IImage == null)
return new ImageAdapter (obj.Handle);
else
return obj as IImage;
}
public IImageImplementor Implementor {
get {
return implementor as IImageImplementor;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_image_get_image_description(IntPtr raw);
static d_atk_image_get_image_description atk_image_get_image_description = FuncLoader.LoadFunction<d_atk_image_get_image_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_get_image_description"));
public string ImageDescription {
get {
IntPtr raw_ret = atk_image_get_image_description(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_image_get_image_locale(IntPtr raw);
static d_atk_image_get_image_locale atk_image_get_image_locale = FuncLoader.LoadFunction<d_atk_image_get_image_locale>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_get_image_locale"));
public string ImageLocale {
get {
IntPtr raw_ret = atk_image_get_image_locale(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_image_get_image_position(IntPtr raw, out int x, out int y, int coord_type);
static d_atk_image_get_image_position atk_image_get_image_position = FuncLoader.LoadFunction<d_atk_image_get_image_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_get_image_position"));
public void GetImagePosition(out int x, out int y, Atk.CoordType coord_type) {
atk_image_get_image_position(Handle, out x, out y, (int) coord_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_image_get_image_size(IntPtr raw, out int width, out int height);
static d_atk_image_get_image_size atk_image_get_image_size = FuncLoader.LoadFunction<d_atk_image_get_image_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_get_image_size"));
public void GetImageSize(out int width, out int height) {
atk_image_get_image_size(Handle, out width, out height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_image_set_image_description(IntPtr raw, IntPtr description);
static d_atk_image_set_image_description atk_image_set_image_description = FuncLoader.LoadFunction<d_atk_image_set_image_description>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_image_set_image_description"));
public bool SetImageDescription(string description) {
IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
bool raw_ret = atk_image_set_image_description(Handle, native_description);
bool ret = raw_ret;
GLib.Marshaller.Free (native_description);
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,141 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class ImplementorAdapter : GLib.GInterfaceAdapter, Atk.IImplementor {
[StructLayout (LayoutKind.Sequential)]
struct AtkImplementorIface {
public RefAccessibleNativeDelegate RefAccessible;
}
static AtkImplementorIface iface;
static ImplementorAdapter ()
{
GLib.GType.Register (_gtype, typeof (ImplementorAdapter));
iface.RefAccessible = new RefAccessibleNativeDelegate (RefAccessible_cb);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr RefAccessibleNativeDelegate (IntPtr inst);
static IntPtr RefAccessible_cb (IntPtr inst)
{
try {
IImplementorImplementor __obj = GLib.Object.GetObject (inst, false) as IImplementorImplementor;
Atk.Object __result;
__result = __obj.RefAccessible ();
return __result == null ? IntPtr.Zero : __result.OwnedHandle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static int class_offset = 2 * IntPtr.Size;
static void Initialize (IntPtr ptr, IntPtr data)
{
IntPtr ifaceptr = new IntPtr (ptr.ToInt64 () + class_offset);
AtkImplementorIface native_iface = (AtkImplementorIface) Marshal.PtrToStructure (ifaceptr, typeof (AtkImplementorIface));
native_iface.RefAccessible = iface.RefAccessible;
Marshal.StructureToPtr (native_iface, ifaceptr, false);
}
GLib.Object implementor;
public ImplementorAdapter ()
{
InitHandler = new GLib.GInterfaceInitHandler (Initialize);
}
public ImplementorAdapter (IImplementorImplementor implementor)
{
if (implementor == null)
throw new ArgumentNullException ("implementor");
else if (!(implementor is GLib.Object))
throw new ArgumentException ("implementor must be a subclass of GLib.Object");
this.implementor = implementor as GLib.Object;
}
public ImplementorAdapter (IntPtr handle)
{
if (!_gtype.IsInstance (handle))
throw new ArgumentException ("The gobject doesn't implement the GInterface of this adapter", "handle");
implementor = GLib.Object.GetObject (handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_implementor_get_type();
static d_atk_implementor_get_type atk_implementor_get_type = FuncLoader.LoadFunction<d_atk_implementor_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_implementor_get_type"));
private static GLib.GType _gtype = new GLib.GType (atk_implementor_get_type ());
public static GLib.GType GType {
get {
return _gtype;
}
}
public override GLib.GType GInterfaceGType {
get {
return _gtype;
}
}
public override IntPtr Handle {
get {
return implementor.Handle;
}
}
public IntPtr OwnedHandle {
get {
return implementor.OwnedHandle;
}
}
public static IImplementor GetObject (IntPtr handle, bool owned)
{
GLib.Object obj = GLib.Object.GetObject (handle, owned);
return GetObject (obj);
}
public static IImplementor GetObject (GLib.Object obj)
{
if (obj == null)
return null;
else if (obj is IImplementorImplementor)
return new ImplementorAdapter (obj as IImplementorImplementor);
else if (obj as IImplementor == null)
return new ImplementorAdapter (obj.Handle);
else
return obj as IImplementor;
}
public IImplementorImplementor Implementor {
get {
return implementor as IImplementorImplementor;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_implementor_ref_accessible(IntPtr raw);
static d_atk_implementor_ref_accessible atk_implementor_ref_accessible = FuncLoader.LoadFunction<d_atk_implementor_ref_accessible>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_implementor_ref_accessible"));
public Atk.Object RefAccessible() {
IntPtr raw_ret = atk_implementor_ref_accessible(Handle);
Atk.Object ret = GLib.Object.GetObject(raw_ret, true) as Atk.Object;
return ret;
}
#endregion
}
}

View File

@@ -0,0 +1,51 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct KeyEventStruct : IEquatable<KeyEventStruct> {
public int Type;
public uint State;
public uint Keyval;
public int Length;
public string String;
public ushort Keycode;
public uint Timestamp;
public static Atk.KeyEventStruct Zero = new Atk.KeyEventStruct ();
public static Atk.KeyEventStruct New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Atk.KeyEventStruct.Zero;
return (Atk.KeyEventStruct) Marshal.PtrToStructure (raw, typeof (Atk.KeyEventStruct));
}
public bool Equals (KeyEventStruct other)
{
return true && Type.Equals (other.Type) && State.Equals (other.State) && Keyval.Equals (other.Keyval) && Length.Equals (other.Length) && String.Equals (other.String) && Keycode.Equals (other.Keycode) && Timestamp.Equals (other.Timestamp);
}
public override bool Equals (object other)
{
return other is KeyEventStruct && Equals ((KeyEventStruct) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Type.GetHashCode () ^ State.GetHashCode () ^ Keyval.GetHashCode () ^ Length.GetHashCode () ^ String.GetHashCode () ^ Keycode.GetHashCode () ^ Timestamp.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View File

@@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Atk.KeyEventTypeGType))]
public enum KeyEventType {
Press,
Release,
LastDefined,
}
internal class KeyEventTypeGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_key_event_type_get_type();
static d_atk_key_event_type_get_type atk_key_event_type_get_type = FuncLoader.LoadFunction<d_atk_key_event_type_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_key_event_type_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (atk_key_event_type_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate int KeySnoopFunc(Atk.KeyEventStruct evnt);
}

View File

@@ -0,0 +1,35 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Atk.LayerGType))]
public enum Layer {
Invalid,
Background,
Canvas,
Widget,
Mdi,
Popup,
Overlay,
Window,
}
internal class LayerGType {
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_layer_get_type();
static d_atk_layer_get_type atk_layer_get_type = FuncLoader.LoadFunction<d_atk_layer_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_layer_get_type"));
public static GLib.GType GType {
get {
return new GLib.GType (atk_layer_get_type ());
}
}
}
#endregion
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void LinkSelectedHandler(object o, LinkSelectedArgs args);
public class LinkSelectedArgs : GLib.SignalArgs {
public int LinkIndex{
get {
return (int) Args [0];
}
}
}
}

View File

@@ -0,0 +1,221 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Misc : GLib.Object {
public Misc (IntPtr raw) : base(raw) {}
protected Misc() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
static ThreadsEnterNativeDelegate ThreadsEnter_cb_delegate;
static ThreadsEnterNativeDelegate ThreadsEnterVMCallback {
get {
if (ThreadsEnter_cb_delegate == null)
ThreadsEnter_cb_delegate = new ThreadsEnterNativeDelegate (ThreadsEnter_cb);
return ThreadsEnter_cb_delegate;
}
}
static void OverrideThreadsEnter (GLib.GType gtype)
{
OverrideThreadsEnter (gtype, ThreadsEnterVMCallback);
}
static void OverrideThreadsEnter (GLib.GType gtype, ThreadsEnterNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("threads_enter"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ThreadsEnterNativeDelegate (IntPtr inst);
static void ThreadsEnter_cb (IntPtr inst)
{
try {
Misc __obj = GLib.Object.GetObject (inst, false) as Misc;
__obj.OnThreadsEnter ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Misc), ConnectionMethod="OverrideThreadsEnter")]
protected virtual void OnThreadsEnter ()
{
InternalThreadsEnter ();
}
private void InternalThreadsEnter ()
{
ThreadsEnterNativeDelegate unmanaged = class_abi.BaseOverride<ThreadsEnterNativeDelegate>(this.LookupGType(), "threads_enter");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static ThreadsLeaveNativeDelegate ThreadsLeave_cb_delegate;
static ThreadsLeaveNativeDelegate ThreadsLeaveVMCallback {
get {
if (ThreadsLeave_cb_delegate == null)
ThreadsLeave_cb_delegate = new ThreadsLeaveNativeDelegate (ThreadsLeave_cb);
return ThreadsLeave_cb_delegate;
}
}
static void OverrideThreadsLeave (GLib.GType gtype)
{
OverrideThreadsLeave (gtype, ThreadsLeaveVMCallback);
}
static void OverrideThreadsLeave (GLib.GType gtype, ThreadsLeaveNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("threads_leave"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ThreadsLeaveNativeDelegate (IntPtr inst);
static void ThreadsLeave_cb (IntPtr inst)
{
try {
Misc __obj = GLib.Object.GetObject (inst, false) as Misc;
__obj.OnThreadsLeave ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Misc), ConnectionMethod="OverrideThreadsLeave")]
protected virtual void OnThreadsLeave ()
{
InternalThreadsLeave ();
}
private void InternalThreadsLeave ()
{
ThreadsLeaveNativeDelegate unmanaged = class_abi.BaseOverride<ThreadsLeaveNativeDelegate>(this.LookupGType(), "threads_leave");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("threads_enter"
, GLib.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // threads_enter
, null
, "threads_leave"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("threads_leave"
, -1
, (uint) sizeof( IntPtr ) // threads_leave
, "threads_enter"
, "vfuncs"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("vfuncs"
, -1
, (uint) sizeof( IntPtr ) * 32 // vfuncs
, "threads_leave"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_misc_get_instance();
static d_atk_misc_get_instance atk_misc_get_instance = FuncLoader.LoadFunction<d_atk_misc_get_instance>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_misc_get_instance"));
[Obsolete]
public static Atk.Misc Instance {
get {
IntPtr raw_ret = atk_misc_get_instance();
Atk.Misc ret = GLib.Object.GetObject(raw_ret) as Atk.Misc;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_misc_get_type();
static d_atk_misc_get_type atk_misc_get_type = FuncLoader.LoadFunction<d_atk_misc_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_misc_get_type"));
[Obsolete]
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_misc_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_misc_threads_enter(IntPtr raw);
static d_atk_misc_threads_enter atk_misc_threads_enter = FuncLoader.LoadFunction<d_atk_misc_threads_enter>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_misc_threads_enter"));
[Obsolete]
public void ThreadsEnter() {
atk_misc_threads_enter(Handle);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_misc_threads_leave(IntPtr raw);
static d_atk_misc_threads_leave atk_misc_threads_leave = FuncLoader.LoadFunction<d_atk_misc_threads_leave>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_misc_threads_leave"));
[Obsolete]
public void ThreadsLeave() {
atk_misc_threads_leave(Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,74 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class NoOpObjectFactory : Atk.ObjectFactory {
public NoOpObjectFactory (IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_no_op_object_factory_new();
static d_atk_no_op_object_factory_new atk_no_op_object_factory_new = FuncLoader.LoadFunction<d_atk_no_op_object_factory_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_no_op_object_factory_new"));
public NoOpObjectFactory () : base (IntPtr.Zero)
{
if (GetType () != typeof (NoOpObjectFactory)) {
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
return;
}
Raw = atk_no_op_object_factory_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (Atk.ObjectFactory.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_no_op_object_factory_get_type();
static d_atk_no_op_object_factory_get_type atk_no_op_object_factory_get_type = FuncLoader.LoadFunction<d_atk_no_op_object_factory_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_no_op_object_factory_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_no_op_object_factory_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (Atk.ObjectFactory.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,272 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class ObjectFactory : GLib.Object {
public ObjectFactory (IntPtr raw) : base(raw) {}
protected ObjectFactory() : base(IntPtr.Zero)
{
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
}
static CreateAccessibleNativeDelegate CreateAccessible_cb_delegate;
static CreateAccessibleNativeDelegate CreateAccessibleVMCallback {
get {
if (CreateAccessible_cb_delegate == null)
CreateAccessible_cb_delegate = new CreateAccessibleNativeDelegate (CreateAccessible_cb);
return CreateAccessible_cb_delegate;
}
}
public delegate Atk.Object CreateAccessibleDelegate (GLib.Object obj);
static CreateAccessibleDelegate create_accessible_handler;
public static CreateAccessibleDelegate CreateAccessibleHandler {
set {
create_accessible_handler = value;
OverrideCreateAccessible ((GLib.GType) typeof (ObjectFactory), value == null ? null : CreateAccessibleVMCallback);
}
}
static void OverrideCreateAccessible (GLib.GType gtype, CreateAccessibleNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("create_accessible"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CreateAccessibleNativeDelegate (IntPtr obj);
static IntPtr CreateAccessible_cb (IntPtr obj)
{
try {
Atk.Object __result;
__result = create_accessible_handler (GLib.Object.GetObject (obj));
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
static InvalidateNativeDelegate Invalidate_cb_delegate;
static InvalidateNativeDelegate InvalidateVMCallback {
get {
if (Invalidate_cb_delegate == null)
Invalidate_cb_delegate = new InvalidateNativeDelegate (Invalidate_cb);
return Invalidate_cb_delegate;
}
}
static void OverrideInvalidate (GLib.GType gtype)
{
OverrideInvalidate (gtype, InvalidateVMCallback);
}
static void OverrideInvalidate (GLib.GType gtype, InvalidateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("invalidate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void InvalidateNativeDelegate (IntPtr inst);
static void Invalidate_cb (IntPtr inst)
{
try {
ObjectFactory __obj = GLib.Object.GetObject (inst, false) as ObjectFactory;
__obj.OnInvalidate ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.ObjectFactory), ConnectionMethod="OverrideInvalidate")]
protected virtual void OnInvalidate ()
{
InternalInvalidate ();
}
private void InternalInvalidate ()
{
InvalidateNativeDelegate unmanaged = class_abi.BaseOverride<InvalidateNativeDelegate>(this.LookupGType(), "invalidate");
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static GetAccessibleTypeNativeDelegate GetAccessibleType_cb_delegate;
static GetAccessibleTypeNativeDelegate GetAccessibleTypeVMCallback {
get {
if (GetAccessibleType_cb_delegate == null)
GetAccessibleType_cb_delegate = new GetAccessibleTypeNativeDelegate (GetAccessibleType_cb);
return GetAccessibleType_cb_delegate;
}
}
public delegate GLib.GType GetAccessibleTypeDelegate ();
static GetAccessibleTypeDelegate get_accessible_type_handler;
public static GetAccessibleTypeDelegate GetAccessibleTypeHandler {
set {
get_accessible_type_handler = value;
OverrideGetAccessibleType ((GLib.GType) typeof (ObjectFactory), value == null ? null : GetAccessibleTypeVMCallback);
}
}
static void OverrideGetAccessibleType (GLib.GType gtype, GetAccessibleTypeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_accessible_type"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetAccessibleTypeNativeDelegate ();
static IntPtr GetAccessibleType_cb ()
{
try {
GLib.GType __result;
__result = get_accessible_type_handler ();
return __result.Val;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("create_accessible"
, GLib.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // create_accessible
, null
, "invalidate"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("invalidate"
, -1
, (uint) sizeof( IntPtr ) // invalidate
, "create_accessible"
, "get_accessible_type"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("get_accessible_type"
, -1
, (uint) sizeof( IntPtr ) // get_accessible_type
, "invalidate"
, "pad1"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("pad1"
, -1
, (uint) sizeof( IntPtr ) // pad1
, "get_accessible_type"
, "pad2"
, (uint) sizeof(IntPtr)
, 0
),
new GLib.AbiField("pad2"
, -1
, (uint) sizeof( IntPtr ) // pad2
, "pad1"
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_object_factory_create_accessible(IntPtr raw, IntPtr obj);
static d_atk_object_factory_create_accessible atk_object_factory_create_accessible = FuncLoader.LoadFunction<d_atk_object_factory_create_accessible>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_object_factory_create_accessible"));
public Atk.Object CreateAccessible(GLib.Object obj) {
IntPtr raw_ret = atk_object_factory_create_accessible(Handle, obj == null ? IntPtr.Zero : obj.Handle);
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_object_factory_get_accessible_type(IntPtr raw);
static d_atk_object_factory_get_accessible_type atk_object_factory_get_accessible_type = FuncLoader.LoadFunction<d_atk_object_factory_get_accessible_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_object_factory_get_accessible_type"));
public GLib.GType AccessibleType {
get {
IntPtr raw_ret = atk_object_factory_get_accessible_type(Handle);
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_object_factory_get_type();
static d_atk_object_factory_get_type atk_object_factory_get_type = FuncLoader.LoadFunction<d_atk_object_factory_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_object_factory_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_object_factory_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_object_factory_invalidate(IntPtr raw);
static d_atk_object_factory_invalidate atk_object_factory_invalidate = FuncLoader.LoadFunction<d_atk_object_factory_invalidate>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_object_factory_invalidate"));
public void Invalidate() {
atk_object_factory_invalidate(Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void PageChangedHandler(object o, PageChangedArgs args);
public class PageChangedArgs : GLib.SignalArgs {
public int P0{
get {
return (int) Args [0];
}
}
}
}

View File

@@ -0,0 +1,353 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using static GLib.AbiStructExtension;
#region Autogenerated code
public partial class Plug : Atk.Object, Atk.IComponent {
public Plug (IntPtr raw) : base(raw) {}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_plug_new();
static d_atk_plug_new atk_plug_new = FuncLoader.LoadFunction<d_atk_plug_new>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_plug_new"));
public Plug () : base (IntPtr.Zero)
{
if (GetType () != typeof (Plug)) {
CreateNativeObject (Array.Empty<string> (), Array.Empty<GLib.Value> ());
return;
}
Raw = atk_plug_new();
}
static GetObjectIdNativeDelegate GetObjectId_cb_delegate;
static GetObjectIdNativeDelegate GetObjectIdVMCallback {
get {
if (GetObjectId_cb_delegate == null)
GetObjectId_cb_delegate = new GetObjectIdNativeDelegate (GetObjectId_cb);
return GetObjectId_cb_delegate;
}
}
static void OverrideGetObjectId (GLib.GType gtype)
{
OverrideGetObjectId (gtype, GetObjectIdVMCallback);
}
static void OverrideGetObjectId (GLib.GType gtype, GetObjectIdNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_object_id"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate(callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetObjectIdNativeDelegate (IntPtr inst);
static IntPtr GetObjectId_cb (IntPtr inst)
{
try {
Plug __obj = GLib.Object.GetObject (inst, false) as Plug;
string __result;
__result = __obj.OnGetObjectId ();
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Plug), ConnectionMethod="OverrideGetObjectId")]
protected virtual string OnGetObjectId ()
{
return InternalGetObjectId ();
}
private string InternalGetObjectId ()
{
GetObjectIdNativeDelegate unmanaged = class_abi.BaseOverride<GetObjectIdNativeDelegate>(this.LookupGType(), "get_object_id");
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Marshaller.PtrToStringGFree(__result);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public unsafe new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("get_object_id"
, Atk.Object.class_abi.Fields
, (uint) sizeof( IntPtr ) // get_object_id
, null
, null
, (uint) sizeof(IntPtr)
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_plug_get_id(IntPtr raw);
static d_atk_plug_get_id atk_plug_get_id = FuncLoader.LoadFunction<d_atk_plug_get_id>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_plug_get_id"));
public string Id {
get {
IntPtr raw_ret = atk_plug_get_id(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_plug_get_type();
static d_atk_plug_get_type atk_plug_get_type = FuncLoader.LoadFunction<d_atk_plug_get_type>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_plug_get_type"));
public static new GLib.GType GType {
get {
IntPtr raw_ret = atk_plug_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint d_atk_component_add_focus_handler(IntPtr raw, AtkSharp.FocusHandlerNative handler);
static d_atk_component_add_focus_handler atk_component_add_focus_handler = FuncLoader.LoadFunction<d_atk_component_add_focus_handler>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_add_focus_handler"));
[Obsolete]
public uint AddFocusHandler(Atk.FocusHandler handler) {
AtkSharp.FocusHandlerWrapper handler_wrapper = new AtkSharp.FocusHandlerWrapper (handler);
uint raw_ret = atk_component_add_focus_handler(Handle, handler_wrapper.NativeDelegate);
uint ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_contains(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_contains atk_component_contains = FuncLoader.LoadFunction<d_atk_component_contains>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_contains"));
public bool Contains(int x, int y, Atk.CoordType coord_type) {
bool raw_ret = atk_component_contains(Handle, x, y, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate double d_atk_component_get_alpha(IntPtr raw);
static d_atk_component_get_alpha atk_component_get_alpha = FuncLoader.LoadFunction<d_atk_component_get_alpha>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_alpha"));
public double Alpha {
get {
double raw_ret = atk_component_get_alpha(Handle);
double ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_extents(IntPtr raw, out int x, out int y, out int width, out int height, int coord_type);
static d_atk_component_get_extents atk_component_get_extents = FuncLoader.LoadFunction<d_atk_component_get_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_extents"));
public void GetExtents(out int x, out int y, out int width, out int height, Atk.CoordType coord_type) {
atk_component_get_extents(Handle, out x, out y, out width, out height, (int) coord_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_component_get_layer(IntPtr raw);
static d_atk_component_get_layer atk_component_get_layer = FuncLoader.LoadFunction<d_atk_component_get_layer>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_layer"));
public Atk.Layer Layer {
get {
int raw_ret = atk_component_get_layer(Handle);
Atk.Layer ret = (Atk.Layer) raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int d_atk_component_get_mdi_zorder(IntPtr raw);
static d_atk_component_get_mdi_zorder atk_component_get_mdi_zorder = FuncLoader.LoadFunction<d_atk_component_get_mdi_zorder>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_mdi_zorder"));
public int MdiZorder {
get {
int raw_ret = atk_component_get_mdi_zorder(Handle);
int ret = raw_ret;
return ret;
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_position(IntPtr raw, out int x, out int y, int coord_type);
static d_atk_component_get_position atk_component_get_position = FuncLoader.LoadFunction<d_atk_component_get_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_position"));
[Obsolete]
public void GetPosition(out int x, out int y, Atk.CoordType coord_type) {
atk_component_get_position(Handle, out x, out y, (int) coord_type);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_get_size(IntPtr raw, out int width, out int height);
static d_atk_component_get_size atk_component_get_size = FuncLoader.LoadFunction<d_atk_component_get_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_get_size"));
[Obsolete]
public void GetSize(out int width, out int height) {
atk_component_get_size(Handle, out width, out height);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_grab_focus(IntPtr raw);
static d_atk_component_grab_focus atk_component_grab_focus = FuncLoader.LoadFunction<d_atk_component_grab_focus>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_grab_focus"));
public bool GrabFocus() {
bool raw_ret = atk_component_grab_focus(Handle);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr d_atk_component_ref_accessible_at_point(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_ref_accessible_at_point atk_component_ref_accessible_at_point = FuncLoader.LoadFunction<d_atk_component_ref_accessible_at_point>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_ref_accessible_at_point"));
public Atk.Object RefAccessibleAtPoint(int x, int y, Atk.CoordType coord_type) {
IntPtr raw_ret = atk_component_ref_accessible_at_point(Handle, x, y, (int) coord_type);
Atk.Object ret = GLib.Object.GetObject(raw_ret, true) as Atk.Object;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void d_atk_component_remove_focus_handler(IntPtr raw, uint handler_id);
static d_atk_component_remove_focus_handler atk_component_remove_focus_handler = FuncLoader.LoadFunction<d_atk_component_remove_focus_handler>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_remove_focus_handler"));
[Obsolete]
public void RemoveFocusHandler(uint handler_id) {
atk_component_remove_focus_handler(Handle, handler_id);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_extents(IntPtr raw, int x, int y, int width, int height, int coord_type);
static d_atk_component_set_extents atk_component_set_extents = FuncLoader.LoadFunction<d_atk_component_set_extents>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_extents"));
public bool SetExtents(int x, int y, int width, int height, Atk.CoordType coord_type) {
bool raw_ret = atk_component_set_extents(Handle, x, y, width, height, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_position(IntPtr raw, int x, int y, int coord_type);
static d_atk_component_set_position atk_component_set_position = FuncLoader.LoadFunction<d_atk_component_set_position>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_position"));
public bool SetPosition(int x, int y, Atk.CoordType coord_type) {
bool raw_ret = atk_component_set_position(Handle, x, y, (int) coord_type);
bool ret = raw_ret;
return ret;
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool d_atk_component_set_size(IntPtr raw, int width, int height);
static d_atk_component_set_size atk_component_set_size = FuncLoader.LoadFunction<d_atk_component_set_size>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Atk), "atk_component_set_size"));
public bool SetSize(int width, int height) {
bool raw_ret = atk_component_set_size(Handle, width, height);
bool ret = raw_ret;
return ret;
}
[GLib.Signal("bounds_changed")]
public event Atk.BoundsChangedHandler BoundsChanged {
add {
this.AddSignalHandler ("bounds_changed", value, typeof (Atk.BoundsChangedArgs));
}
remove {
this.RemoveSignalHandler ("bounds_changed", value);
}
}
static BoundsChangedNativeDelegate BoundsChanged_cb_delegate;
static BoundsChangedNativeDelegate BoundsChangedVMCallback {
get {
if (BoundsChanged_cb_delegate == null)
BoundsChanged_cb_delegate = new BoundsChangedNativeDelegate (BoundsChanged_cb);
return BoundsChanged_cb_delegate;
}
}
static void OverrideBoundsChanged (GLib.GType gtype)
{
OverrideBoundsChanged (gtype, BoundsChangedVMCallback);
}
static void OverrideBoundsChanged (GLib.GType gtype, BoundsChangedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "bounds_changed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void BoundsChangedNativeDelegate (IntPtr inst, IntPtr bounds);
static void BoundsChanged_cb (IntPtr inst, IntPtr bounds)
{
try {
Atk.Plug __obj = GLib.Object.GetObject (inst, false) as Atk.Plug;
__obj.OnBoundsChanged (Atk.Rectangle.New (bounds));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Atk.Plug), ConnectionMethod="OverrideBoundsChanged")]
protected virtual void OnBoundsChanged (Atk.Rectangle bounds)
{
InternalBoundsChanged (bounds);
}
private void InternalBoundsChanged (Atk.Rectangle bounds)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
GLib.Value[] vals = new GLib.Value [2];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (bounds);
inst_and_params.Append (vals [1]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public unsafe new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (Atk.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View File

@@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
public delegate void PropertyChangeEventHandler(object o, PropertyChangeArgs args);
public class PropertyChangeArgs : GLib.SignalArgs {
public Atk.PropertyValues Values{
get {
return (Atk.PropertyValues) Args [0];
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More