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