Skip to content

Commit

Permalink
update docs for Image and newImage, fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Jul 24, 2024
1 parent d22ac6d commit cc8a559
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion uing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2701,9 +2701,12 @@ type
## The system will automatically determine the correct image to render depending
## on the screen's pixel density.
##
## Image only supports premultiplied 32-bit RGBA images.
## `Image` only supports premultiplied 32-bit RGBA images.
##
## No image file loading or image format conversion utilities are provided.
##
## .. important:: `Image` is only a container format for using with tables
## See libui-ng issue #229: https://github.com/libui-ng/libui-ng/issues/229

genImplProcs(Image)

Expand Down Expand Up @@ -2736,6 +2739,9 @@ proc newImage*(width, height: float): Image =
##
## :width: Width in points.
## :height: Height in points.
##
## .. important:: To reduce confusion, please read the notice in the
## documentation for `Image`_

newFinal result
result.impl = rawui.newImage(width.cdouble, height.cdouble)
Expand Down

0 comments on commit cc8a559

Please sign in to comment.