question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XML documentation?

See original GitHub issue

My biggest hurdle of using imgui is the lack of built in documentation. I know that the end of line comments in imgui.h are all over the place and probably not always useful without a context, but it would be extremely helpful to convert a line like this…

IMGUI_API void          Dummy(const ImVec2& size);                                      // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into.

into …

///<summary>
/// add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into.
///</summary>
public static void Dummy(Vector2 size);

I would be very happy to contribute manual formatting of the original header file to help with this.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
mellinoecommented, Jun 1, 2019

@sonoro1234 That is pretty cool! I’ll be taking a closer look sometime soon.

0reactions
sonoro1234commented, May 25, 2019

@mellinoe @pixtur @ocornut Just pushed this https://github.com/cimgui/cimgui/tree/keep_text as an initial phase waiting for your comments

My comments

  • Initial spaces and “\n” and // should be stripped
  • assing comment to function only if it is in the same line (see: RenderText) (corrected now)
  • Comments before an struct or enum should go to a field, but as they are json arrays of their members it cant be done in json (Lua can have mixing of array and collection in a table) there are two solutions: 1- transform structs and enum to collections, one field is comments the other is the array of its members. 2- Create a separate collection with key being struct or enum name and value the comment.
Read more comments on GitHub >

github_iconTop Results From Across the Web

document APIs using /// comments
Learn about documentation comments. You can create documentation for your code by including XML elements in special comment fields.
Read more >
XML introduction - XML: Extensible Markup Language | MDN
XML (Extensible Markup Language) is a markup language similar to HTML, but without predefined tags to use. Instead, you define your own tags ......
Read more >
Extensible Markup Language (XML) 1.0 (Fifth Edition)
XML provides a mechanism, the document type declaration, to define constraints on the logical structure and to support the use of predefined ...
Read more >
Recommended XML tags for C# documentation comments
This article provides the syntax and definitions for recommended tags for XML documentation.
Read more >
XML - Documents
An XML document is a basic unit of XML information composed of elements and other markup in an orderly package. An XML document...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found