forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMacAPI.cs
More file actions
77 lines (64 loc) · 1.76 KB
/
MacAPI.cs
File metadata and controls
77 lines (64 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
using System;
using System.Runtime.InteropServices;
namespace PluginCore
{
internal class MacAPI : APIUtils
{
const int RTLD_NOW = 2;
internal MacAPI()
{
}
public IntPtr LoadLibrary(string fileName)
{
return dlopen(fileName, RTLD_NOW);
}
IntPtr APIUtils.SendMessage(IntPtr hWnd, int msg, int wParam, int lParam)
{
// FIXME: NOT IMPL
return new IntPtr();
}
public IntPtr CreateWindowEx(uint dwExStyle, string lpClassName, string lpWindowName, uint dwStyle, int x, int y, int width, int height, IntPtr hWndParent, int hMenu, IntPtr hInstance, string lpParam)
{
// FIXME slavara: IMPLEMENT ME
return IntPtr.Zero;
}
int APIUtils.GetScrollPos(IntPtr hWnd, int nBar)
{
// FIXME: NOT IMPL
return -1;
}
bool APIUtils.GetScrollRange(IntPtr hWnd, int nBar, out int lpMinPos, out int lpMaxPos)
{
// FIXME: NOT IMPL
lpMinPos = 0;
lpMaxPos = 0;
return false;
}
public int DragQueryFileA(IntPtr hDrop, uint idx, IntPtr buff, int sz)
{
// FIXME slavara: IMPLEMENT ME
return -1;
}
public int DragFinish(IntPtr hDrop)
{
// FIXME slavara: IMPLEMENT ME
return -1;
}
public void DragAcceptFiles(IntPtr hwnd, int accept)
{
// FIXME slavara: IMPLEMENT ME
}
public int GetDeviceCaps(IntPtr hdc, int capindex)
{
// FIXME slavara: IMPLEMENT ME
return -1;
}
public int SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags)
{
// FIXME slavara: IMPLEMENT ME
return -1;
}
[DllImport("libdl")]
private static extern IntPtr dlopen(String fileName, int flags);
}
}