ホーム › Graphics.GdiPlus › GdipGetAdjustableArrowCapFillState
GdipGetAdjustableArrowCapFillState
関数調整可能な矢印キャップを塗りつぶすかどうかの状態を取得する。
シグネチャ
// gdiplus.dll
#include <windows.h>
Status GdipGetAdjustableArrowCapFillState(
GpAdjustableArrowCap* cap,
BOOL* fillState
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| cap | GpAdjustableArrowCap* | inout |
| fillState | BOOL* | inout |
戻り値の型: Status
各言語での呼び出し定義
// gdiplus.dll
#include <windows.h>
Status GdipGetAdjustableArrowCapFillState(
GpAdjustableArrowCap* cap,
BOOL* fillState
);[DllImport("gdiplus.dll", ExactSpelling = true)]
static extern int GdipGetAdjustableArrowCapFillState(
IntPtr cap, // GpAdjustableArrowCap* in/out
ref int fillState // BOOL* in/out
);<DllImport("gdiplus.dll", ExactSpelling:=True)>
Public Shared Function GdipGetAdjustableArrowCapFillState(
cap As IntPtr, ' GpAdjustableArrowCap* in/out
ByRef fillState As Integer ' BOOL* in/out
) As Integer
End Function' cap : GpAdjustableArrowCap* in/out
' fillState : BOOL* in/out
Declare PtrSafe Function GdipGetAdjustableArrowCapFillState Lib "gdiplus" ( _
ByVal cap As LongPtr, _
ByRef fillState As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
GdipGetAdjustableArrowCapFillState = ctypes.windll.gdiplus.GdipGetAdjustableArrowCapFillState
GdipGetAdjustableArrowCapFillState.restype = ctypes.c_int
GdipGetAdjustableArrowCapFillState.argtypes = [
ctypes.c_void_p, # cap : GpAdjustableArrowCap* in/out
ctypes.c_void_p, # fillState : BOOL* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('gdiplus.dll')
GdipGetAdjustableArrowCapFillState = Fiddle::Function.new(
lib['GdipGetAdjustableArrowCapFillState'],
[
Fiddle::TYPE_VOIDP, # cap : GpAdjustableArrowCap* in/out
Fiddle::TYPE_VOIDP, # fillState : BOOL* in/out
],
Fiddle::TYPE_INT)#[link(name = "gdiplus")]
extern "system" {
fn GdipGetAdjustableArrowCapFillState(
cap: *mut GpAdjustableArrowCap, // GpAdjustableArrowCap* in/out
fillState: *mut i32 // BOOL* in/out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("gdiplus.dll")]
public static extern int GdipGetAdjustableArrowCapFillState(IntPtr cap, ref int fillState);
"@
$api = Add-Type -MemberDefinition $sig -Name 'gdiplus_GdipGetAdjustableArrowCapFillState' -Namespace Win32 -PassThru
# $api::GdipGetAdjustableArrowCapFillState(cap, fillState)#uselib "gdiplus.dll"
#func global GdipGetAdjustableArrowCapFillState "GdipGetAdjustableArrowCapFillState" sptr, sptr
; GdipGetAdjustableArrowCapFillState varptr(cap), fillState ; 戻り値は stat
; cap : GpAdjustableArrowCap* in/out -> "sptr"
; fillState : BOOL* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "gdiplus.dll" #cfunc global GdipGetAdjustableArrowCapFillState "GdipGetAdjustableArrowCapFillState" var, int ; res = GdipGetAdjustableArrowCapFillState(cap, fillState) ; cap : GpAdjustableArrowCap* in/out -> "var" ; fillState : BOOL* in/out -> "int" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "gdiplus.dll" #cfunc global GdipGetAdjustableArrowCapFillState "GdipGetAdjustableArrowCapFillState" sptr, int ; res = GdipGetAdjustableArrowCapFillState(varptr(cap), fillState) ; cap : GpAdjustableArrowCap* in/out -> "sptr" ; fillState : BOOL* in/out -> "int" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; Status GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState) #uselib "gdiplus.dll" #cfunc global GdipGetAdjustableArrowCapFillState "GdipGetAdjustableArrowCapFillState" var, int ; res = GdipGetAdjustableArrowCapFillState(cap, fillState) ; cap : GpAdjustableArrowCap* in/out -> "var" ; fillState : BOOL* in/out -> "int" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; Status GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState) #uselib "gdiplus.dll" #cfunc global GdipGetAdjustableArrowCapFillState "GdipGetAdjustableArrowCapFillState" intptr, int ; res = GdipGetAdjustableArrowCapFillState(varptr(cap), fillState) ; cap : GpAdjustableArrowCap* in/out -> "intptr" ; fillState : BOOL* in/out -> "int" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
gdiplus = windows.NewLazySystemDLL("gdiplus.dll")
procGdipGetAdjustableArrowCapFillState = gdiplus.NewProc("GdipGetAdjustableArrowCapFillState")
)
// cap (GpAdjustableArrowCap* in/out), fillState (BOOL* in/out)
r1, _, err := procGdipGetAdjustableArrowCapFillState.Call(
uintptr(cap),
uintptr(fillState),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // Statusfunction GdipGetAdjustableArrowCapFillState(
cap: Pointer; // GpAdjustableArrowCap* in/out
fillState: Pointer // BOOL* in/out
): Integer; stdcall;
external 'gdiplus.dll' name 'GdipGetAdjustableArrowCapFillState';result := DllCall("gdiplus\GdipGetAdjustableArrowCapFillState"
, "Ptr", cap ; GpAdjustableArrowCap* in/out
, "Ptr", fillState ; BOOL* in/out
, "Int") ; return: Status●GdipGetAdjustableArrowCapFillState(cap, fillState) = DLL("gdiplus.dll", "int GdipGetAdjustableArrowCapFillState(void*, void*)")
# 呼び出し: GdipGetAdjustableArrowCapFillState(cap, fillState)
# cap : GpAdjustableArrowCap* in/out -> "void*"
# fillState : BOOL* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。