VL.StandardLibs icon indicating copy to clipboard operation
VL.StandardLibs copied to clipboard

Queries

Open antongit opened this issue 3 years ago • 4 comments

Main

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L288

  • [ ] GetIO - related vvvv/VL.StandardLibs#19
  • [x] GetStyle
  • [ ] GetDrawData

Demo, Debug, Information

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L296

  • [x] GetVersion
  • [ ] DebugCheckVersionAndDataLayout

Windows Utilities

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L340

  • [x] IsWindowAppearing
  • [x] IsWindowCollapsed
  • [x] IsWindowFocused
  • [x] IsWindowHovered
  • [x] GetWindowPos
  • [x] GetWindowSize - TODO: Should we join these 2 into GetWindowBounds -> Rectangle?
  • [ ] GetWindowDrawList
  • [ ] GetWindowWidth
  • [ ] GetWindowHeight

Content region

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L374

  • [x] GetContentRegionAvail
  • [x] GetContentRegionMax
  • [x] GetWindowContentRegionMin
  • [x] GetWindowContentRegionMax

Windows Scrolling

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L379

  • [x] GetScroll -> Vector2
  • [x] GetScrollMax -> Vector2

Parameters stacks

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L405

  • [x] CalcItemWidth

Style read access

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L413

  • [ ] GetFont - @azeno: I think i need your help here, because of the returned pointer and fonts...: https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L415
  • [x] GetFontSize
  • [x] GetFontTexUvWhitePixel
  • [x] GetStyleColorVec4

Cursor / Layout

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L423

  • [x] GetCursorPos
  • [x] GetCursorStartPos
  • [x] GetCursorScreenPos
  • [x] GetTextLineHeight
  • [x] GetTextLineHeightWithSpacing
  • [x] GetFrameHeight
  • [x] GetFrameHeightWithSpacing

ID stack/scopes

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L454

  • [x] GetID

Trees

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L589

  • [x] GetTreeNodeToLabelSpacing

Popups

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L699

  • [x] IsPopupOpen

Tables: Sorting & Miscellaneous functions

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L747

  • [x] TableGetSortSpecs
  • [x] TableGetColumnCount
  • [x] TableGetColumnIndex
  • [x] TableGetRowIndex
  • [x] TableGetColumnName
  • [x] TableGetColumnFlags

Item/Widgets Utilities and Query Functions

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L821

  • [x] IsItemHovered
  • [x] IsItemActive
  • [x] IsItemFocused
  • [x] IsItemClicked
  • [x] IsItemVisible
  • [x] IsItemEdited
  • [x] IsItemActivated
  • [x] IsItemDeactivated
  • [x] IsItemDeactivatedAfterEdit
  • [x] IsItemToggledOpen
  • [x] IsAnyItemHovered
  • [x] IsAnyItemActive
  • [x] IsAnyItemFocused
  • [x] GetItemRectMin - TODO: Note, this is upper-left
  • [x] GetItemRectMax - TODO: Note, this is lower-right
  • [x] GetItemRectSize - **TODO: Should we join all of these 3 into GetItemBounds -> Rectangle? **

Text Utilities

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L865

  • [x] CalcTextSize

Viewports:

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L842

  • [x] GetMainViewport
  • [ ] GetBackgroundDrawList - Too lowlevel?
  • [ ] GetForegroundDrawList - Too lowlevel?

Misc Utils

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L852

  • [x] IsRectVisible
  • [x] GetStyleColorName
  • [ ] GetTime
  • [ ] GetFrameCount
  • [ ] GetDrawListSharedData - Too lowlevel?
  • [ ] GetStyleColorName
  • [ ] GetStateStorage

Mouse

https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L886

  • [x] IsMouseDown
  • [x] IsMouseClicked
  • [x] IsMouseReleased
  • [x] IsMouseDoubleClicked
  • [x] GetMouseClickedCount
  • [x] IsMouseHoveringRect - used our Rectangle as input, instead of Min/Max.
  • [x] GetMousePos
  • [x] GetMousePosOnOpeningCurrentPopup
  • [x] IsMouseDragging
  • [x] GetMouseDragDelta
  • [ ] IsMousePosValid
  • [ ] GetMouseCursor

Input Utilities: Mouse / Keyboard / Gamepad

https://github.com/ocornut/imgui/blob/e57871bb95faec757e51214bc0e1ae29b13258ab/imgui.h#L887

  • [x] IsKeyDown
  • [x] IsKeyPressed
  • [x] IsKeyReleased
  • [ ] GetKeyPressedAmount
  • [ ] GetKeyName

Docking [Beta API]

https://github.com/ocornut/imgui/blob/c191faf0ba478e9c58a69c63306986a21ebfb6e4/imgui.h#L803

  • [ ] GetWindowDockID
  • [ ] IsWindowDocked

Context

https://github.com/ocornut/imgui/blob/e57871bb95faec757e51214bc0e1ae29b13258ab/imgui.h#L285

  • [ ] GetCurrentContext

Memory Allocations

https://github.com/ocornut/imgui/blob/e57871bb95faec757e51214bc0e1ae29b13258ab/imgui.h#L954

Ommited.

antongit avatar Aug 16 '22 16:08 antongit

@untone I just pushed GetStyleColorVec but I'm not sure about the others (IO, Style, Font, SortSpec) - what should those nodes do? Can you sketch them like you did with GetStyleColorVec?

azeno avatar Aug 29 '22 11:08 azeno

@azeno Thank you, Elias. I've pushed my sketches for GetStyle and TableGetSortSpecs.

This SortSpecs is a bit more complicated, because it looks like, that the returned struct can be nested? (https://github.com/ocornut/imgui/blob/2d38bc99b3b0013952d3d390397297083b767972/imgui.h#L2119)... And we probably should forward ImGuiTableColumnSortSpecs in the VL doc, right?

antongit avatar Sep 02 '22 22:09 antongit

@antongit See my last commit messages.

azeno avatar Sep 16 '22 13:09 azeno

@azeno TableGetSortSpecs: yes it looks like that it works only between begin/end, but that's ok, then the node is only for the Immediate Mode, I've marked it so. But it also fails if the Table doesn't have Sortable flag, probably we need a check inside the Query if the Table is sortable or not (?), I'll check it. At the moment I can't access TableColumnSortSpecs, because I can't forward anything, I'm on preview .0197.

image image

TableGetSortSpecs - Immediate.zip

antongit avatar Sep 20 '22 06:09 antongit