Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries #39

Open
67 of 88 tasks
antongit opened this issue Aug 16, 2022 · 4 comments
Open
67 of 88 tasks

Queries #39

antongit opened this issue Aug 16, 2022 · 4 comments
Labels
VL.ImGui Wrapper for the Dear ImGui library

Comments

@antongit
Copy link
Member

antongit commented Aug 16, 2022

Main

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

Demo, Debug, Information

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

  • GetVersion
  • DebugCheckVersionAndDataLayout

Windows Utilities

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

  • IsWindowAppearing
  • IsWindowCollapsed
  • IsWindowFocused
  • IsWindowHovered
  • GetWindowPos
  • 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

  • GetContentRegionAvail
  • GetContentRegionMax
  • GetWindowContentRegionMin
  • GetWindowContentRegionMax

Windows Scrolling

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

  • GetScroll -> Vector2
  • GetScrollMax -> Vector2

Parameters stacks

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

  • CalcItemWidth

Style read access

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

Cursor / Layout

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

  • GetCursorPos
  • GetCursorStartPos
  • GetCursorScreenPos
  • GetTextLineHeight
  • GetTextLineHeightWithSpacing
  • GetFrameHeight
  • GetFrameHeightWithSpacing

ID stack/scopes

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

  • GetID

Trees

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

  • GetTreeNodeToLabelSpacing

Popups

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

  • IsPopupOpen

Tables: Sorting & Miscellaneous functions

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

  • TableGetSortSpecs
  • TableGetColumnCount
  • TableGetColumnIndex
  • TableGetRowIndex
  • TableGetColumnName
  • TableGetColumnFlags

Item/Widgets Utilities and Query Functions

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

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

Text Utilities

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

  • CalcTextSize

Viewports:

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

  • GetMainViewport
  • GetBackgroundDrawList - Too lowlevel?
  • GetForegroundDrawList - Too lowlevel?

Misc Utils

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

  • IsRectVisible
  • GetStyleColorName
  • GetTime
  • GetFrameCount
  • GetDrawListSharedData - Too lowlevel?
  • GetStyleColorName
  • GetStateStorage

Mouse

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

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

Input Utilities: Mouse / Keyboard / Gamepad

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

  • IsKeyDown
  • IsKeyPressed
  • 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.

@azeno
Copy link
Member

azeno commented Aug 29, 2022

@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?

@antongit
Copy link
Member Author

antongit commented Sep 2, 2022

@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?

azeno referenced this issue in vvvv/VL.ImGui Sep 16, 2022
…violation, probably needs to be invoked in between Begin/End table calls (issue #29)
@azeno
Copy link
Member

azeno commented Sep 16, 2022

@antongit See my last commit messages.

@antongit
Copy link
Member Author

@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

@joreg joreg transferred this issue from vvvv/VL.ImGui Mar 1, 2023
@joreg joreg added the VL.ImGui Wrapper for the Dear ImGui library label Mar 1, 2023
@joreg joreg added this to the 5.0 milestone Mar 20, 2023
@antongit antongit removed this from the 5.0 milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VL.ImGui Wrapper for the Dear ImGui library
Projects
None yet
Development

No branches or pull requests

3 participants