Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/madladsquad/untitledimguitextutils

A bunch of small utility functions to make marking down text in ImGui easier
https://github.com/madladsquad/untitledimguitextutils

cpp imgui utility utility-library

Last synced: about 1 month ago
JSON representation

A bunch of small utility functions to make marking down text in ImGui easier

Awesome Lists containing this project

README

        

# UntitledImGuiTextUtils
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
[![trello](https://img.shields.io/badge/Trello-UDE-blue])](https://trello.com/b/HmfuRY2K/untitleddesktop)
[![Discord](https://img.shields.io/discord/717037253292982315.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/4wgH8ZE)

A bunch of small utility functions to make marking down text in ImGui easier. We have the following rendering features:
- [x] Bold
- [x] Italic
- [x] Bold Italic
- [x] Monospace
- [x] Small
- [x] Link
- [x] Underline
- [x] Strikethrough
- [x] Blockquote
- [x] Code blocks
- [x] Inline code
- [x] Subscript
- [x] Superscript
- [x] Highlighted text
- [x] Ruby text

## Learning
All information can be found on the [wiki](https://github.com/MadLadSquad/UntitledImGuiTextUtils/wiki).

## Showcase
### Easy typeface rendering
Rendering Normal, Bold, Italic, BoldItalic and Monospace text all in 5 lines of code:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/bfe53f8d-5803-48c4-93f7-cca3e7d5ecd4)

### Underline, strikethrough, links and text highlighting
Rendering Underline, Strikethrough, Link and highlighted text with and without word wrapping, all with configurable colours:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/5b68c98f-d83e-4adc-b48e-5e16c3fb9e42)

### Blockquotes
Blockquotes, with an additional function to render only the rectangle to enable for nesting:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/1ba16928-bc66-4ee5-9016-1162462a45b9)

### Code blocks
Code blocks with monospaced text and custom background:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/6c6773b5-0596-4919-b6e6-194c20759ab5)

### Inline code
Inline code with monospaced text and custom background:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/1bbe635b-0d0c-4a26-bbe8-e5e5ec24444b)

### Ruby annotations
Ruby annotations for use with logographic writing systems like Hanzi(Only `Kanji` is ruby text in this example):

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/33c76da7-6881-4366-8eb4-6fd34b50dba5)

### Subscripts and superscripts
Subscript and superscript text rendered in 1 function call, both starting from the same X position:

![image](https://github.com/MadLadSquad/UntitledImGuiTextUtils/assets/40400590/ae576a01-e00a-47db-90be-671469a90aef)