Nim GUI examples using IUP
Rewrite of IUP examples in Nim. Code uses package 'niup' which contains generated FFI bindings for latest IUP.
For code explanation and more information visit https://www.tecgraf.puc-rio.br/iup/
Strong typed API using 'niup' module
- button: Button, Text, Label, Vbox, Dialog, Image
- text
- textformat
- multiline1
- multiline2: MultiLine, List dropdown
- list1: List, drag'n'drop
- timer
- dialog_ballon: window/dialog with irregular shape based on image
C-like API examples using 'niupc' module
-
Hello World
- example2_1.nim : Initialization
- example2_2.nim : Creating a Dialog
- example2_3.nim : Adding Interaction
- example2_4.nim : Adding Layout Elements
- example2_5.nim : Improving the Layout
- example2_5_niupext.nim : Improving the Layout, using module
niupext
-
Simple Notepad
- example3_1.nim : Main Dialog
- example3_2.nim : Adding a Menu
- example3_3.nim : Using Pre-defined Dialogs
- example3_4.nim : Custom Dialogs
- example3_5.nim : Adding a Toolbar and a Statusbar
- example3_6.nim : Defining Hot Keys
- example3_7.nim : Recent Files Menu and a Configuration File
- example3_8.nim : Clipboard Support
- example3_9.nim : More File Management
- example3_10.nim : Dynamic Layout
- example3_11.nim : External Help
- simple_notepad.nim : Final Considerations
- simple_notepad_niupext.nim : Final Considerations, using module
niupext
- scintilla_notepad.nim : Version with IupScintilla instead of IupText
-
SimplePaint
- example4_1 : Loading and Saving Images
- example4_2 : Drawing with OpenGL
- example4_3 : Drawing with CD and Printing
- example4_4 : Interactive Zoom and Scrollbars
-
samples