https://github.com/helloworld017/nodegui-plugin-metrics
A QFontMetrics binding for nodegui
https://github.com/helloworld017/nodegui-plugin-metrics
nodegui
Last synced: 9 months ago
JSON representation
A QFontMetrics binding for nodegui
- Host: GitHub
- URL: https://github.com/helloworld017/nodegui-plugin-metrics
- Owner: HelloWorld017
- Created: 2020-08-02T13:12:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T16:14:13.000Z (about 3 years ago)
- Last Synced: 2025-03-29T01:51:38.993Z (10 months ago)
- Topics: nodegui
- Language: C++
- Homepage:
- Size: 209 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nodegui-plugin-metrics
A minimal binding of QFontMetrics, which gives two functions.
## Bindings
* `new QFontMetrics(font: QFont)`
* `QFontMetrics::boundingRect(text: String)`
* `QFontMetrics::elidedText(text: String, mode: TextElideMode, width: number, flags: number = 0)`