Documentation
¶
Index ¶
- func BeginInputAttribute(id int32)
- func BeginInputAttributeV(id int32, shape PinShape)
- func BeginNode(id int32)
- func BeginNodeEditor()
- func BeginNodeTitleBar()
- func BeginOutputAttribute(id int32)
- func BeginOutputAttributeV(id int32, shape PinShape)
- func BeginStaticAttribute(id int32)
- func ClearLinkSelection()
- func ClearLinkSelectionInt(link_id int32)
- func ClearMiniMapNodeHoveringCallbackPool()
- func ClearNodeSelection()
- func ClearNodeSelectionInt(node_id int32)
- func DestroyContext()
- func DestroyContextV(ctx *Context)
- func EditorContextFree(noname1 *EditorContext)
- func EditorContextGetPanning() imgui.Vec2
- func EditorContextMoveToNode(node_id int32)
- func EditorContextResetPanning(pos imgui.Vec2)
- func EditorContextSet(noname1 *EditorContext)
- func EndInputAttribute()
- func EndNode()
- func EndNodeEditor()
- func EndNodeTitleBar()
- func EndOutputAttribute()
- func EndStaticAttribute()
- func GetNodeDimensions(id int32) imgui.Vec2
- func GetNodeEditorSpacePos(node_id int32) imgui.Vec2
- func GetNodeGridSpacePos(node_id int32) imgui.Vec2
- func GetNodeScreenSpacePos(node_id int32) imgui.Vec2
- func GetSelectedLinks(link_ids *int32)
- func GetSelectedNodes(node_ids *int32)
- func IsAnyAttributeActive() bool
- func IsAnyAttributeActiveV(attribute_id *int32) bool
- func IsAttributeActive() bool
- func IsEditorHovered() bool
- func IsLinkCreatedBoolPtr(started_at_attribute_id, ended_at_attribute_id *int32) bool
- func IsLinkCreatedBoolPtrV(started_at_attribute_id, ended_at_attribute_id *int32, created_from_snap *bool) bool
- func IsLinkCreatedIntPtr(started_at_node_id, started_at_attribute_id, ended_at_node_id, ... *int32) bool
- func IsLinkCreatedIntPtrV(started_at_node_id, started_at_attribute_id, ended_at_node_id, ... *int32, ...) bool
- func IsLinkDestroyed(link_id *int32) bool
- func IsLinkDropped() bool
- func IsLinkDroppedV(started_at_attribute_id *int32, including_detached_links bool) bool
- func IsLinkHovered(link_id *int32) bool
- func IsLinkSelected(link_id int32) bool
- func IsLinkStarted(started_at_attribute_id *int32) bool
- func IsNodeHovered(node_id *int32) bool
- func IsNodeSelected(node_id int32) bool
- func IsPinHovered(attribute_id *int32) bool
- func Link(id, start_attribute_id, end_attribute_id int32)
- func LoadCurrentEditorStateFromIniFile(file_name string)
- func LoadCurrentEditorStateFromIniString(data string, data_size uint64)
- func LoadEditorStateFromIniFile(editor *EditorContext, file_name string)
- func LoadEditorStateFromIniString(editor *EditorContext, data string, data_size uint64)
- func MiniMap()
- func MiniMapV(minimap_size_fraction float32, location MiniMapLocation, ...)
- func NumSelectedLinks() int32
- func NumSelectedNodes() int32
- func PopAttributeFlag()
- func PopColorStyle()
- func PopStyleVar()
- func PopStyleVarV(count int32)
- func PushAttributeFlag(flag AttributeFlags)
- func PushColorStyle(item Col, color uint32)
- func PushStyleVarFloat(style_item StyleVar, value float32)
- func PushStyleVarVec2(style_item StyleVar, value imgui.Vec2)
- func SaveCurrentEditorStateToIniFile(file_name string)
- func SaveCurrentEditorStateToIniString() string
- func SaveCurrentEditorStateToIniStringV(data_size *uint64) string
- func SaveEditorStateToIniFile(editor *EditorContext, file_name string)
- func SaveEditorStateToIniString(editor *EditorContext) string
- func SaveEditorStateToIniStringV(editor *EditorContext, data_size *uint64) string
- func SelectLink(link_id int32)
- func SelectNode(node_id int32)
- func SetCurrentContext(ctx *Context)
- func SetImGuiContext(ctx *imgui.Context)
- func SetNodeDraggable(node_id int32, draggable bool)
- func SetNodeEditorSpacePos(node_id int32, editor_space_pos imgui.Vec2)
- func SetNodeGridSpacePos(node_id int32, grid_pos imgui.Vec2)
- func SetNodeScreenSpacePos(node_id int32, screen_space_pos imgui.Vec2)
- func SnapNodeToGrid(node_id int32)
- func StyleColorsClassic()
- func StyleColorsClassicV(dest *Style)
- func StyleColorsDark()
- func StyleColorsDarkV(dest *Style)
- func StyleColorsLight()
- func StyleColorsLightV(dest *Style)
- type AttributeFlags
- type Col
- type Context
- type EditorContext
- type EmulateThreeButtonMouse
- func (self EmulateThreeButtonMouse) C() (C.EmulateThreeButtonMouse, func())
- func (self *EmulateThreeButtonMouse) Destroy()
- func (self *EmulateThreeButtonMouse) Handle() (result *C.EmulateThreeButtonMouse, fin func())
- func (self *EmulateThreeButtonMouse) Modifier() *bool
- func (self EmulateThreeButtonMouse) SetModifier(v *bool)
- type IO
- func (self *IO) AltMouseButton() int32
- func (self *IO) AutoPanningSpeed() float32
- func (self IO) C() (C.ImNodesIO, func())
- func (self *IO) Destroy()
- func (self *IO) EmulateThreeButtonMouse() EmulateThreeButtonMouse
- func (self *IO) Handle() (result *C.ImNodesIO, fin func())
- func (self *IO) LinkDetachWithModifierClick() LinkDetachWithModifierClick
- func (self *IO) MultipleSelectModifier() MultipleSelectModifier
- func (self IO) SetAltMouseButton(v int32)
- func (self IO) SetAutoPanningSpeed(v float32)
- func (self IO) SetEmulateThreeButtonMouse(v EmulateThreeButtonMouse)
- func (self IO) SetLinkDetachWithModifierClick(v LinkDetachWithModifierClick)
- func (self IO) SetMultipleSelectModifier(v MultipleSelectModifier)
- type LinkDetachWithModifierClick
- func (self LinkDetachWithModifierClick) C() (C.LinkDetachWithModifierClick, func())
- func (self *LinkDetachWithModifierClick) Destroy()
- func (self *LinkDetachWithModifierClick) Handle() (result *C.LinkDetachWithModifierClick, fin func())
- func (self *LinkDetachWithModifierClick) Modifier() *bool
- func (self LinkDetachWithModifierClick) SetModifier(v *bool)
- type MiniMapLocation
- type MiniMapNodeHoveringCallback
- type MiniMapNodeHoveringCallbackUserData
- type MultipleSelectModifier
- func (self MultipleSelectModifier) C() (C.MultipleSelectModifier, func())
- func (self *MultipleSelectModifier) Destroy()
- func (self *MultipleSelectModifier) Handle() (result *C.MultipleSelectModifier, fin func())
- func (self *MultipleSelectModifier) Modifier() *bool
- func (self MultipleSelectModifier) SetModifier(v *bool)
- type PinShape
- type Style
- func (self Style) C() (C.ImNodesStyle, func())
- func (self *Style) Colors() [29]uint32
- func (self *Style) Destroy()
- func (self *Style) Flags() StyleFlags
- func (self *Style) GridSpacing() float32
- func (self *Style) Handle() (result *C.ImNodesStyle, fin func())
- func (self *Style) LinkHoverDistance() float32
- func (self *Style) LinkLineSegmentsPerLength() float32
- func (self *Style) LinkThickness() float32
- func (self *Style) MiniMapOffset() imgui.Vec2
- func (self *Style) MiniMapPadding() imgui.Vec2
- func (self *Style) NodeBorderThickness() float32
- func (self *Style) NodeCornerRounding() float32
- func (self *Style) NodePadding() imgui.Vec2
- func (self *Style) PinCircleRadius() float32
- func (self *Style) PinHoverRadius() float32
- func (self *Style) PinLineThickness() float32
- func (self *Style) PinOffset() float32
- func (self *Style) PinQuadSideLength() float32
- func (self *Style) PinTriangleSideLength() float32
- func (self Style) SetColors(v *[29]uint32)
- func (self Style) SetFlags(v StyleFlags)
- func (self Style) SetGridSpacing(v float32)
- func (self Style) SetLinkHoverDistance(v float32)
- func (self Style) SetLinkLineSegmentsPerLength(v float32)
- func (self Style) SetLinkThickness(v float32)
- func (self Style) SetMiniMapOffset(v imgui.Vec2)
- func (self Style) SetMiniMapPadding(v imgui.Vec2)
- func (self Style) SetNodeBorderThickness(v float32)
- func (self Style) SetNodeCornerRounding(v float32)
- func (self Style) SetNodePadding(v imgui.Vec2)
- func (self Style) SetPinCircleRadius(v float32)
- func (self Style) SetPinHoverRadius(v float32)
- func (self Style) SetPinLineThickness(v float32)
- func (self Style) SetPinOffset(v float32)
- func (self Style) SetPinQuadSideLength(v float32)
- func (self Style) SetPinTriangleSideLength(v float32)
- type StyleFlags
- type StyleVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginInputAttribute ¶ added in v1.2.0
func BeginInputAttribute(id int32)
func BeginInputAttributeV ¶ added in v1.2.0
BeginInputAttributeV parameter default value hint: shape: ImNodesPinShape_CircleFilled
func BeginNodeEditor ¶ added in v1.2.0
func BeginNodeEditor()
func BeginNodeTitleBar ¶ added in v1.2.0
func BeginNodeTitleBar()
func BeginOutputAttribute ¶ added in v1.2.0
func BeginOutputAttribute(id int32)
func BeginOutputAttributeV ¶ added in v1.2.0
BeginOutputAttributeV parameter default value hint: shape: ImNodesPinShape_CircleFilled
func BeginStaticAttribute ¶ added in v1.2.0
func BeginStaticAttribute(id int32)
func ClearLinkSelection ¶ added in v1.2.0
func ClearLinkSelection()
func ClearLinkSelectionInt ¶ added in v1.2.0
func ClearLinkSelectionInt(link_id int32)
func ClearMiniMapNodeHoveringCallbackPool ¶ added in v1.2.0
func ClearMiniMapNodeHoveringCallbackPool()
func ClearNodeSelection ¶ added in v1.2.0
func ClearNodeSelection()
func ClearNodeSelectionInt ¶ added in v1.2.0
func ClearNodeSelectionInt(node_id int32)
func DestroyContext ¶ added in v1.2.0
func DestroyContext()
func DestroyContextV ¶ added in v1.2.0
func DestroyContextV(ctx *Context)
DestroyContextV parameter default value hint: ctx: NULL
func EditorContextFree ¶ added in v1.2.0
func EditorContextFree(noname1 *EditorContext)
func EditorContextGetPanning ¶ added in v1.2.0
func EditorContextMoveToNode ¶ added in v1.2.0
func EditorContextMoveToNode(node_id int32)
func EditorContextResetPanning ¶ added in v1.2.0
func EditorContextSet ¶ added in v1.2.0
func EditorContextSet(noname1 *EditorContext)
func EndInputAttribute ¶ added in v1.2.0
func EndInputAttribute()
func EndNodeEditor ¶ added in v1.2.0
func EndNodeEditor()
func EndNodeTitleBar ¶ added in v1.2.0
func EndNodeTitleBar()
func EndOutputAttribute ¶ added in v1.2.0
func EndOutputAttribute()
func EndStaticAttribute ¶ added in v1.2.0
func EndStaticAttribute()
func GetNodeDimensions ¶ added in v1.2.0
func GetNodeEditorSpacePos ¶ added in v1.2.0
func GetNodeGridSpacePos ¶ added in v1.2.0
func GetNodeScreenSpacePos ¶ added in v1.2.0
func GetSelectedLinks ¶ added in v1.2.0
func GetSelectedLinks(link_ids *int32)
func GetSelectedNodes ¶ added in v1.2.0
func GetSelectedNodes(node_ids *int32)
func IsAnyAttributeActive ¶ added in v1.2.0
func IsAnyAttributeActive() bool
func IsAnyAttributeActiveV ¶ added in v1.2.0
IsAnyAttributeActiveV parameter default value hint: attribute_id: NULL
func IsAttributeActive ¶ added in v1.2.0
func IsAttributeActive() bool
func IsEditorHovered ¶ added in v1.2.0
func IsEditorHovered() bool
func IsLinkCreatedBoolPtr ¶ added in v1.2.0
func IsLinkCreatedBoolPtrV ¶ added in v1.2.0
func IsLinkCreatedBoolPtrV(started_at_attribute_id, ended_at_attribute_id *int32, created_from_snap *bool) bool
IsLinkCreatedBoolPtrV parameter default value hint: created_from_snap: NULL
func IsLinkCreatedIntPtr ¶ added in v1.2.0
func IsLinkCreatedIntPtrV ¶ added in v1.2.0
func IsLinkCreatedIntPtrV(started_at_node_id, started_at_attribute_id, ended_at_node_id, ended_at_attribute_id *int32, created_from_snap *bool) bool
IsLinkCreatedIntPtrV parameter default value hint: created_from_snap: NULL
func IsLinkDestroyed ¶ added in v1.2.0
func IsLinkDropped ¶ added in v1.2.0
func IsLinkDropped() bool
func IsLinkDroppedV ¶ added in v1.2.0
IsLinkDroppedV parameter default value hint: started_at_attribute_id: NULL including_detached_links: true
func IsLinkHovered ¶ added in v1.2.0
func IsLinkSelected ¶ added in v1.2.0
func IsLinkStarted ¶ added in v1.2.0
func IsNodeHovered ¶ added in v1.2.0
func IsNodeSelected ¶ added in v1.2.0
func IsPinHovered ¶ added in v1.2.0
func LoadCurrentEditorStateFromIniFile ¶ added in v1.2.0
func LoadCurrentEditorStateFromIniFile(file_name string)
func LoadCurrentEditorStateFromIniString ¶ added in v1.2.0
func LoadEditorStateFromIniFile ¶ added in v1.2.0
func LoadEditorStateFromIniFile(editor *EditorContext, file_name string)
func LoadEditorStateFromIniString ¶ added in v1.2.0
func LoadEditorStateFromIniString(editor *EditorContext, data string, data_size uint64)
func MiniMapV ¶ added in v1.2.0
func MiniMapV(minimap_size_fraction float32, location MiniMapLocation, node_hovering_callback MiniMapNodeHoveringCallback, node_hovering_callback_data MiniMapNodeHoveringCallbackUserData)
MiniMapV parameter default value hint: minimap_size_fraction: 0.2f location: ImNodesMiniMapLocation_TopLeft node_hovering_callback: NULL node_hovering_callback_data: NULL
func NumSelectedLinks ¶ added in v1.2.0
func NumSelectedLinks() int32
func NumSelectedNodes ¶ added in v1.2.0
func NumSelectedNodes() int32
func PopAttributeFlag ¶ added in v1.2.0
func PopAttributeFlag()
func PopColorStyle ¶ added in v1.2.0
func PopColorStyle()
func PopStyleVar ¶ added in v1.2.0
func PopStyleVar()
func PopStyleVarV ¶ added in v1.2.0
func PopStyleVarV(count int32)
PopStyleVarV parameter default value hint: count: 1
func PushAttributeFlag ¶ added in v1.2.0
func PushAttributeFlag(flag AttributeFlags)
func PushColorStyle ¶ added in v1.2.0
func PushStyleVarFloat ¶ added in v1.2.0
func PushStyleVarVec2 ¶ added in v1.2.0
func SaveCurrentEditorStateToIniFile ¶ added in v1.2.0
func SaveCurrentEditorStateToIniFile(file_name string)
func SaveCurrentEditorStateToIniString ¶ added in v1.2.0
func SaveCurrentEditorStateToIniString() string
func SaveCurrentEditorStateToIniStringV ¶ added in v1.2.0
SaveCurrentEditorStateToIniStringV parameter default value hint: data_size: NULL
func SaveEditorStateToIniFile ¶ added in v1.2.0
func SaveEditorStateToIniFile(editor *EditorContext, file_name string)
func SaveEditorStateToIniString ¶ added in v1.2.0
func SaveEditorStateToIniString(editor *EditorContext) string
func SaveEditorStateToIniStringV ¶ added in v1.2.0
func SaveEditorStateToIniStringV(editor *EditorContext, data_size *uint64) string
SaveEditorStateToIniStringV parameter default value hint: data_size: NULL
func SelectLink ¶ added in v1.2.0
func SelectLink(link_id int32)
func SelectNode ¶ added in v1.2.0
func SelectNode(node_id int32)
func SetCurrentContext ¶ added in v1.2.0
func SetCurrentContext(ctx *Context)
func SetImGuiContext ¶ added in v1.2.0
func SetNodeDraggable ¶ added in v1.2.0
func SetNodeEditorSpacePos ¶ added in v1.2.0
func SetNodeGridSpacePos ¶ added in v1.2.0
func SetNodeScreenSpacePos ¶ added in v1.2.0
func SnapNodeToGrid ¶ added in v1.2.0
func SnapNodeToGrid(node_id int32)
func StyleColorsClassic ¶ added in v1.2.0
func StyleColorsClassic()
func StyleColorsClassicV ¶ added in v1.2.0
func StyleColorsClassicV(dest *Style)
StyleColorsClassicV parameter default value hint: dest: NULL
func StyleColorsDark ¶ added in v1.2.0
func StyleColorsDark()
func StyleColorsDarkV ¶ added in v1.2.0
func StyleColorsDarkV(dest *Style)
StyleColorsDarkV parameter default value hint: dest: NULL
func StyleColorsLight ¶ added in v1.2.0
func StyleColorsLight()
func StyleColorsLightV ¶ added in v1.2.0
func StyleColorsLightV(dest *Style)
StyleColorsLightV parameter default value hint: dest: NULL
Types ¶
type AttributeFlags ¶ added in v1.2.0
type AttributeFlags int32
original name: ImNodesAttributeFlags_
const ( AttributeFlagsNone AttributeFlags = 0 AttributeFlagsEnableLinkDetachWithDragClick AttributeFlags = 1 AttributeFlagsEnableLinkCreationOnSnap AttributeFlags = 2 )
type Col ¶ added in v1.2.0
type Col int32
original name: ImNodesCol_
const ( ColNodeBackground Col = 0 ColNodeBackgroundHovered Col = 1 ColNodeBackgroundSelected Col = 2 ColNodeOutline Col = 3 ColTitleBar Col = 4 ColTitleBarHovered Col = 5 ColTitleBarSelected Col = 6 ColLink Col = 7 ColLinkHovered Col = 8 ColLinkSelected Col = 9 ColPin Col = 10 ColPinHovered Col = 11 ColBoxSelector Col = 12 ColBoxSelectorOutline Col = 13 ColGridBackground Col = 14 ColGridLine Col = 15 ColGridLinePrimary Col = 16 ColMiniMapBackground Col = 17 ColMiniMapBackgroundHovered Col = 18 ColMiniMapOutline Col = 19 ColMiniMapOutlineHovered Col = 20 ColMiniMapNodeBackground Col = 21 ColMiniMapNodeBackgroundHovered Col = 22 ColMiniMapNodeBackgroundSelected Col = 23 ColMiniMapNodeOutline Col = 24 ColMiniMapLink Col = 25 ColMiniMapLinkSelected Col = 26 ColMiniMapCanvas Col = 27 ColMiniMapCanvasOutline Col = 28 ColCOUNT Col = 29 )
type Context ¶ added in v1.2.0
type Context struct {
CData *C.ImNodesContext
}
func CreateContext ¶ added in v1.2.0
func CreateContext() *Context
func GetCurrentContext ¶ added in v1.2.0
func GetCurrentContext() *Context
func NewContextFromC ¶ added in v1.2.0
NewContextFromC creates Context from its C pointer. SRC ~= *C.ImNodesContext
func (*Context) Handle ¶ added in v1.2.0
func (self *Context) Handle() (result *C.ImNodesContext, fin func())
Handle returns C version of Context and its finalizer func.
type EditorContext ¶ added in v1.2.0
type EditorContext struct {
CData *C.ImNodesEditorContext
}
func EditorContextCreate ¶ added in v1.2.0
func EditorContextCreate() *EditorContext
func NewEditorContextFromC ¶ added in v1.2.0
func NewEditorContextFromC[SRC any](cvalue SRC) *EditorContext
NewEditorContextFromC creates EditorContext from its C pointer. SRC ~= *C.ImNodesEditorContext
func (*EditorContext) Handle ¶ added in v1.2.0
func (self *EditorContext) Handle() (result *C.ImNodesEditorContext, fin func())
Handle returns C version of EditorContext and its finalizer func.
type EmulateThreeButtonMouse ¶
type EmulateThreeButtonMouse struct {
CData *C.EmulateThreeButtonMouse
}
func NewEmptyEmulateThreeButtonMouse ¶ added in v1.2.0
func NewEmptyEmulateThreeButtonMouse() *EmulateThreeButtonMouse
NewEmptyEmulateThreeButtonMouse creates EmulateThreeButtonMouse with its 0 value.
func NewEmulateThreeButtonMouse ¶
func NewEmulateThreeButtonMouse() *EmulateThreeButtonMouse
func NewEmulateThreeButtonMouseFromC ¶
func NewEmulateThreeButtonMouseFromC[SRC any](cvalue SRC) *EmulateThreeButtonMouse
NewEmulateThreeButtonMouseFromC creates EmulateThreeButtonMouse from its C pointer. SRC ~= *C.EmulateThreeButtonMouse
func (EmulateThreeButtonMouse) C ¶
func (self EmulateThreeButtonMouse) C() (C.EmulateThreeButtonMouse, func())
C is like Handle but returns plain type instead of pointer.
func (*EmulateThreeButtonMouse) Destroy ¶
func (self *EmulateThreeButtonMouse) Destroy()
func (*EmulateThreeButtonMouse) Handle ¶
func (self *EmulateThreeButtonMouse) Handle() (result *C.EmulateThreeButtonMouse, fin func())
Handle returns C version of EmulateThreeButtonMouse and its finalizer func.
func (*EmulateThreeButtonMouse) Modifier ¶
func (self *EmulateThreeButtonMouse) Modifier() *bool
func (EmulateThreeButtonMouse) SetModifier ¶
func (self EmulateThreeButtonMouse) SetModifier(v *bool)
type IO ¶ added in v1.2.0
func NewIOFromC ¶ added in v1.2.0
NewIOFromC creates IO from its C pointer. SRC ~= *C.ImNodesIO
func (*IO) AltMouseButton ¶ added in v1.2.0
func (*IO) AutoPanningSpeed ¶ added in v1.2.0
func (*IO) EmulateThreeButtonMouse ¶ added in v1.2.0
func (self *IO) EmulateThreeButtonMouse() EmulateThreeButtonMouse
func (*IO) LinkDetachWithModifierClick ¶ added in v1.2.0
func (self *IO) LinkDetachWithModifierClick() LinkDetachWithModifierClick
func (*IO) MultipleSelectModifier ¶ added in v1.2.0
func (self *IO) MultipleSelectModifier() MultipleSelectModifier
func (IO) SetAltMouseButton ¶ added in v1.2.0
func (IO) SetAutoPanningSpeed ¶ added in v1.2.0
func (IO) SetEmulateThreeButtonMouse ¶ added in v1.2.0
func (self IO) SetEmulateThreeButtonMouse(v EmulateThreeButtonMouse)
func (IO) SetLinkDetachWithModifierClick ¶ added in v1.2.0
func (self IO) SetLinkDetachWithModifierClick(v LinkDetachWithModifierClick)
func (IO) SetMultipleSelectModifier ¶ added in v1.2.0
func (self IO) SetMultipleSelectModifier(v MultipleSelectModifier)
type LinkDetachWithModifierClick ¶
type LinkDetachWithModifierClick struct {
CData *C.LinkDetachWithModifierClick
}
func NewEmptyLinkDetachWithModifierClick ¶ added in v1.2.0
func NewEmptyLinkDetachWithModifierClick() *LinkDetachWithModifierClick
NewEmptyLinkDetachWithModifierClick creates LinkDetachWithModifierClick with its 0 value.
func NewLinkDetachWithModifierClick ¶
func NewLinkDetachWithModifierClick() *LinkDetachWithModifierClick
func NewLinkDetachWithModifierClickFromC ¶
func NewLinkDetachWithModifierClickFromC[SRC any](cvalue SRC) *LinkDetachWithModifierClick
NewLinkDetachWithModifierClickFromC creates LinkDetachWithModifierClick from its C pointer. SRC ~= *C.LinkDetachWithModifierClick
func (LinkDetachWithModifierClick) C ¶
func (self LinkDetachWithModifierClick) C() (C.LinkDetachWithModifierClick, func())
C is like Handle but returns plain type instead of pointer.
func (*LinkDetachWithModifierClick) Destroy ¶
func (self *LinkDetachWithModifierClick) Destroy()
func (*LinkDetachWithModifierClick) Handle ¶
func (self *LinkDetachWithModifierClick) Handle() (result *C.LinkDetachWithModifierClick, fin func())
Handle returns C version of LinkDetachWithModifierClick and its finalizer func.
func (*LinkDetachWithModifierClick) Modifier ¶
func (self *LinkDetachWithModifierClick) Modifier() *bool
func (LinkDetachWithModifierClick) SetModifier ¶
func (self LinkDetachWithModifierClick) SetModifier(v *bool)
type MiniMapLocation ¶ added in v1.2.0
type MiniMapLocation int32
original name: ImNodesMiniMapLocation_
const ( MiniMapLocationBottomLeft MiniMapLocation = 0 MiniMapLocationBottomRight MiniMapLocation = 1 MiniMapLocationTopLeft MiniMapLocation = 2 MiniMapLocationTopRight MiniMapLocation = 3 )
type MiniMapNodeHoveringCallback ¶ added in v1.2.0
func NewMiniMapNodeHoveringCallbackFromC ¶ added in v1.2.0
func NewMiniMapNodeHoveringCallbackFromC(cvalue *C.ImNodesMiniMapNodeHoveringCallback) *MiniMapNodeHoveringCallback
func (MiniMapNodeHoveringCallback) C ¶ added in v1.2.0
func (c MiniMapNodeHoveringCallback) C() (C.ImNodesMiniMapNodeHoveringCallback, func())
type MiniMapNodeHoveringCallbackUserData ¶ added in v1.2.0
type MiniMapNodeHoveringCallbackUserData struct {
Data uintptr
}
func NewMiniMapNodeHoveringCallbackUserDataFromC ¶ added in v1.2.0
func NewMiniMapNodeHoveringCallbackUserDataFromC[SRC any](cvalue SRC) *MiniMapNodeHoveringCallbackUserData
NewMiniMapNodeHoveringCallbackUserDataFromC creates MiniMapNodeHoveringCallbackUserData from its C pointer. SRC ~= *C.ImNodesMiniMapNodeHoveringCallbackUserData
func (MiniMapNodeHoveringCallbackUserData) C ¶ added in v1.2.0
func (self MiniMapNodeHoveringCallbackUserData) C() (C.ImNodesMiniMapNodeHoveringCallbackUserData, func())
C is like Handle but returns plain type instead of pointer.
func (*MiniMapNodeHoveringCallbackUserData) Handle ¶ added in v1.2.0
func (self *MiniMapNodeHoveringCallbackUserData) Handle() (result *C.ImNodesMiniMapNodeHoveringCallbackUserData, fin func())
Handle returns C version of MiniMapNodeHoveringCallbackUserData and its finalizer func.
type MultipleSelectModifier ¶
type MultipleSelectModifier struct {
CData *C.MultipleSelectModifier
}
func NewEmptyMultipleSelectModifier ¶ added in v1.2.0
func NewEmptyMultipleSelectModifier() *MultipleSelectModifier
NewEmptyMultipleSelectModifier creates MultipleSelectModifier with its 0 value.
func NewMultipleSelectModifier ¶
func NewMultipleSelectModifier() *MultipleSelectModifier
func NewMultipleSelectModifierFromC ¶
func NewMultipleSelectModifierFromC[SRC any](cvalue SRC) *MultipleSelectModifier
NewMultipleSelectModifierFromC creates MultipleSelectModifier from its C pointer. SRC ~= *C.MultipleSelectModifier
func (MultipleSelectModifier) C ¶
func (self MultipleSelectModifier) C() (C.MultipleSelectModifier, func())
C is like Handle but returns plain type instead of pointer.
func (*MultipleSelectModifier) Destroy ¶
func (self *MultipleSelectModifier) Destroy()
func (*MultipleSelectModifier) Handle ¶
func (self *MultipleSelectModifier) Handle() (result *C.MultipleSelectModifier, fin func())
Handle returns C version of MultipleSelectModifier and its finalizer func.
func (*MultipleSelectModifier) Modifier ¶
func (self *MultipleSelectModifier) Modifier() *bool
func (MultipleSelectModifier) SetModifier ¶
func (self MultipleSelectModifier) SetModifier(v *bool)
type Style ¶ added in v1.2.0
type Style struct {
CData *C.ImNodesStyle
}
func NewEmptyStyle ¶ added in v1.2.0
func NewEmptyStyle() *Style
NewEmptyStyle creates Style with its 0 value.
func NewStyleFromC ¶ added in v1.2.0
NewStyleFromC creates Style from its C pointer. SRC ~= *C.ImNodesStyle
func (Style) C ¶ added in v1.2.0
func (self Style) C() (C.ImNodesStyle, func())
C is like Handle but returns plain type instead of pointer.
func (*Style) Flags ¶ added in v1.2.0
func (self *Style) Flags() StyleFlags
func (*Style) GridSpacing ¶ added in v1.2.0
func (*Style) Handle ¶ added in v1.2.0
func (self *Style) Handle() (result *C.ImNodesStyle, fin func())
Handle returns C version of Style and its finalizer func.
func (*Style) LinkHoverDistance ¶ added in v1.2.0
func (*Style) LinkLineSegmentsPerLength ¶ added in v1.2.0
func (*Style) LinkThickness ¶ added in v1.2.0
func (*Style) MiniMapOffset ¶ added in v1.2.0
func (*Style) MiniMapPadding ¶ added in v1.2.0
func (*Style) NodeBorderThickness ¶ added in v1.2.0
func (*Style) NodeCornerRounding ¶ added in v1.2.0
func (*Style) NodePadding ¶ added in v1.2.0
func (*Style) PinCircleRadius ¶ added in v1.2.0
func (*Style) PinHoverRadius ¶ added in v1.2.0
func (*Style) PinLineThickness ¶ added in v1.2.0
func (*Style) PinQuadSideLength ¶ added in v1.2.0
func (*Style) PinTriangleSideLength ¶ added in v1.2.0
func (Style) SetFlags ¶ added in v1.2.0
func (self Style) SetFlags(v StyleFlags)
func (Style) SetGridSpacing ¶ added in v1.2.0
func (Style) SetLinkHoverDistance ¶ added in v1.2.0
func (Style) SetLinkLineSegmentsPerLength ¶ added in v1.2.0
func (Style) SetLinkThickness ¶ added in v1.2.0
func (Style) SetMiniMapOffset ¶ added in v1.2.0
func (Style) SetMiniMapPadding ¶ added in v1.2.0
func (Style) SetNodeBorderThickness ¶ added in v1.2.0
func (Style) SetNodeCornerRounding ¶ added in v1.2.0
func (Style) SetNodePadding ¶ added in v1.2.0
func (Style) SetPinCircleRadius ¶ added in v1.2.0
func (Style) SetPinHoverRadius ¶ added in v1.2.0
func (Style) SetPinLineThickness ¶ added in v1.2.0
func (Style) SetPinOffset ¶ added in v1.2.0
func (Style) SetPinQuadSideLength ¶ added in v1.2.0
func (Style) SetPinTriangleSideLength ¶ added in v1.2.0
type StyleFlags ¶ added in v1.2.0
type StyleFlags int32
original name: ImNodesStyleFlags_
const ( StyleFlagsNone StyleFlags = 0 StyleFlagsNodeOutline StyleFlags = 1 StyleFlagsGridLines StyleFlags = 4 StyleFlagsGridLinesPrimary StyleFlags = 8 StyleFlagsGridSnapping StyleFlags = 16 )
type StyleVar ¶ added in v1.2.0
type StyleVar int32
original name: ImNodesStyleVar_
const ( StyleVarGridSpacing StyleVar = 0 StyleVarNodeCornerRounding StyleVar = 1 StyleVarNodePadding StyleVar = 2 StyleVarNodeBorderThickness StyleVar = 3 StyleVarLinkThickness StyleVar = 4 StyleVarLinkLineSegmentsPerLength StyleVar = 5 StyleVarLinkHoverDistance StyleVar = 6 StyleVarPinCircleRadius StyleVar = 7 StyleVarPinQuadSideLength StyleVar = 8 StyleVarPinTriangleSideLength StyleVar = 9 StyleVarPinLineThickness StyleVar = 10 StyleVarPinHoverRadius StyleVar = 11 StyleVarPinOffset StyleVar = 12 StyleVarMiniMapPadding StyleVar = 13 StyleVarMiniMapOffset StyleVar = 14 StyleVarCOUNT StyleVar = 15 )