Cross-platform C SDK logo

Cross-platform C SDK

SDK reference

Next ❯
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.

While civilians (i.e., nonprogrammers) often fantasize about winning the lottery, the equivalent for many programmers is the rare opportunity to create a new library from scratch, without the constraints that often frustrate their desires to extend and improve an existing library. Philip J. Schneider - Industrial Light + Magic


Outline diagram of the NAppGUI SDK.
Figure 1: Architecture of NAppGUI.
  • Packages that do not contain platform dependent code.
  • Packages that contain platform dependent code under a common interface.
  • Sewer: Basic types, asserts, Unicode.
  • Osbs: Operating system basic services. Portable API about files, directories, processes, threads, memory, etc.
  • Core: Non-graphic utilities in common use. Memory Auditor, data structures, I/O channels, MVVM, etc.
  • Geom2D: 2D geometry. Transformations, vectors, etc.
  • Draw2D: API of vector drawing, images and fonts, that connects with the native technologies of each operating system.
  • Gui: High-level composer of user interfaces.
  • OSApp: Desktop applications. Message loop.
  • INet: Protocols and Internet services. Http, Ftp, Google, etc.

The NAppGUI implementation has been divided into several static libraries written in ANSI-C (C90) with small parts in C++ 98 (Figure 1). The project compiles without problems in all the versions of Visual Studio (from VS2005), Xcode (from 3) and GCC (from 4). It can be used for the development of high performance applications written in C on Windows, MacOS and Linux systems. A clear line has been marked that separates the packages oriented to perform calculations and data access (back-end) from those destined to the presentation or interface layers (front-end). Also we have applied certain Standards whose bases are centralized in the library Sewer, that although it does not incorporate much functionality, defines the basic types and configuration macros common to the entire project.


1. Versions

Version Build Date Download eBook
NAppGUI 1.2.1 2554 30 June 2020 [⇩] [⇩]
NAppGUI 1.1.1 2374 28 January 2020
NAppGUI 1.1.0 2266 December 31, 2019

2. A little history

I started working on this project unconsciously, in mid 2008 when I was finishing my Computer Engineering studies at the University of Alicante. I wanted to develop a physical systems simulator that worked both on PC-Windows computers and Apple iMac without having to duplicate all the work. The technological alternatives of the time, such as GTK or Qt, did not convince me at all as they were too heavy, complicated to use and slow so they would end up tarnishing the quality, elegance and commitment that I was putting into my mathematical calculation algorithms. After losing several months evaluating different libraries for multiplatform programming I downloaded some technical manuals from Apple to program directly in Cocoa, the base technology to develop software for the iMac. In mid 2010 I started to see the first results and this was encouraging. I had created an application with the prototype of my simulator in just 500Kb (Figure 2), in contrast to the more than 30Mb of dependencies required by third-party solutions. The code was compact and clean, the application worked at breakneck speed and, above all, it had a professional appearance that reminded us in part of the iMovie, it allowed to manipulate 3D views as in a videogame and it provided technical data of the simulation in real time. This inspired me to continue working on drawing a barrier between the part of the reusable application and that dependent on a specific technology. This would allow me to adapt my simulator to different computer models and operating systems.

Capture of the iMech physical simulator.
Figure 2: iMech simulator, based on a primitive version of NAppGUI.

At the same time, in September 2008, I returned to the labor market after six years in the University, a market in which I still work today (July 2019), although in recent years I have worked as a freelancer at home, which allows me to organize the agenda and optimize my work. maximum time. In these years I have not abandoned my personal project, I have continued working on it in part time simply for pure hobby. Its development has allowed me to investigate and delve into interesting areas for me and recycle constantly. In 2013, I made my first foray into the world of entrepreneurship, co-founding iMech Technologies, a software company with which I am still linked and whose main objective was the sale of the simulation engine that I had previously created. By not proposing a solid marketing strategy, we did not achieve our initial objectives with iMech, but we were able to reconvert it by incorporating new clients and, to this day, it is still alive.

In the middle of 2015, I began to think about the fact that all the technical effort made during these years is enough to become a product by itself. It was then that I created the NAppGUI project and started to migrate all the iMech libraries devoted to multiplatform development. During these last years I have completed the support for Cocoa and including Win32 and Gtk+ . I have created this documentation in Spanish and English, helping me with Google translation services.

On September 31, 2019, I upload the first public version of NAppGUI.

Next ❯