Graphic API for embedded system [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a graphic API for embedded systems. With "graphic", I mean an API which is able to draw lines, fill areas, blit bitmaps, etc. I need something that is written in pure C (no C++).
With "embedded systems", I'm thinking of small systems where Linux is too big to run. So I would appreciate a library which is not too concerned with file systems, and OS-level access, but just exposes the graphic primitives with a C interface, and draws in memory buffers.
Any suggestion?

Swell Software, offers C/PEG.
Here's an excerpt from the C/PEG product page:
C/PEG is a complete graphics solution for embedded developers written entirely in ANSI C. C/PEG not only provides optimized graphics primitives, text and bitmap drawing; it also supports higher level graphic objects to give the developer a full tool set for rapid application development

We've used EasyGui - http://www.easygui.com/ - for the start of a project (it's currently on hold).
From the bit I've done it seems quite good. You design up the UI on a PC then generate the C code which makes it all happen.
One thing I like is that if you structure your app properly the code that runs the UI can be separate to the actual UI - ie it could be reused on a different screen resolution/colours/etc. We've made up a modular system where we can reuse bits in different projects as long as we follow the appropriate conventions for button numbers, etc

Related

Plotting a graph in C (ubuntu) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
i would like to ask a question,because i have been searching for 2 hours.
I have a project in a game development course and i have arrays of some map elements,positions,and lines that connect them.And i need to draw a graph from them.But I don't have the slightest idea.Do i include some header file?
Do i download that? If i had the commands i could work with that,but i don't see graphics command anywhere in code blocks.
Please inform me on what i can use to draw a simple graph,and possibly the installation process in general if it's not too much trouble
There is no such a thing as a "graphics command" somewhere in Code::Blocks. In order to create graphical interfaces and to be able to draw things, you have to use a GUI library (like GTK, Qt, SFML, wx... etc).
Since your requirement is to use C I'd recommand you then to go with GTK. Since it's one of the best and most documented library with C language at it's base.
Note: Please be careful that what I mentioned above are only GUI libraries, i.e. mainly used to create graphical user interfaces. Since you are following a game development course, you may rather want to take a look at game engines such as SDL or Unity, which are quite different things, and enable to perform a lot more (serious) gaming stuff.
Here's a Wikipedia list with a thorough listing of GUI libraries.

How to write a text mode gui in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
When I write scripts/programs, often I would like to pop up a simple text 'gui' to prompt for input:
How would I do this? For example from Shell, Ruby, Golang or C. I don't even know what this is called and Google isn't reponding to "text thingy from scripts".
(The example is from the Debian installer).
Actually, that is not dialog, but the newt library (there are a few differences in appearance). It is used by anaconda on Red Hat systems. The whiptail program uses the library, however it has no real relationship to anaconda.
Anaconda is mostly in Python; it uses the newt shared library (written in C) from a Python binding.
For learning it... documentation is largely non-existent. You have the source code.
Further reading:
screenshots for dialog
newt.git
anaconda.git
Any examples/documentation for python-newt (discussion of newt vs documentation)
Spicing up the Console for Fun and Profit, Part 2
In the past this was known as "Dialog," though as Thomas points out (as the maintainer of Dialog!!) this is no longer the case. This is most likely the Newt library. While you could certainly write something lower level using ncurses, Newt is available in Linux pretty much universally. Dialog can also be installed under Linux. You can read some basic documentation for it here.
Choosing to use this over a curses based approach allows you to focus on what it is you're actually looking to do rather than doing all of the work to build a UI. If, however, you are really looking to build UI elements, ncurses would be the way to go.

Generator of "mind map" from files.c [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I started a while ago to learn the C language, and has spent several hours I search THE miracle software.
I am looking for software that import sources of software in C (files.c) and generates a "mind map" of the code with all files, functions, variables, etc ...
Do you know if it exists? It'll help me a lot to understand the architecture of complex software.
Thank you very much for all your answers.
Take a look at the "call graph". This sort of visualization should get you started.
As the comment suggests, Doxygen is a good open-source tool. Take a look at some output here. Doxygen is straight-forward to configure for call-graph generation under *nix. It's a little more complex for Windows. First, check out this SO post: how to get doxygen to produce call & caller graphs for c functions. Doxygen's HTML output provides a number of nice cross-referencing features (files, variables, structs, etc.) in addition to caller/callee graphs.
On the commercial side, Understand for C/C++ has first-rate visualization features. Google "c call graph diagram" for other commercial and open-source options.
Finally, there are some older SO posts, like this one Tools to get a pictorial function call graph of code. Take a look at it.
Look into the program ctags. It is an indexer of names and functions based on the structure of the programming language.
It is quite mature, and has integration with a number of other tools. I use it with an older (but very nice) text editor called vi, but it can be used independently from the command line.
It does not generate a graphical view of the connections. However, in my estimation there are probably too many connections in most C programs to display visually without creating a large amount of information overload.
This answer differs from Throwback's answer in some interesting ways. A call graph can mean a few things. One thing it can mean is the path a running program took through a section of code, and another is the combination of all paths a running program might take through the code, and another is the combination of all paths in the code (whether they can be reached or not).
Your needs will drive which tool you should use.

Looking for a fairly simple 2D graphics library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Ideally, I want a library that is similar to the primitive Java2D or Quartz stuff - e.g. setFill, setStroke, moveToPoint, lineToPoint, quadCurveToPoint, fillPath, strokePath, etc. Rotation and scaling of paths would be nice, but not essential. Drawing strings with a proportional font would also be nice. Open source, free as in speech, and free as in beer would be great!
This has to run on an embedded ARM7 with a small color LCD panel. No hardware graphics support. Memory very tight, 20 kbyte RAM and 256 kbyte flash.
Any suggestions?
Take a look at SDL_draw. This library draws on an SDL surface, but you should be able to easily adapt it to draw on the screen of your embedded device. The license is GPL, not sure if that works for you.
I've used the Cairo graphics library in an embedded device. We weren't too worried about memory though.
I don't know how it compares to where you come from, but allegro (mostly for games) is free, easy, and pretty well-supported:
http://www.talula.demon.co.uk/allegro/
Edit: I missed the embedded part. I doubt you want allegro then. Sorry.
openCV might be worth a look. It's more designed for manipulating and diagnosing images rather than to draw them yourself from scratch, but it's open-source, and fairly easy to use.
It's quite fast, so an extra point for embedded systems.

What is the best free skinning library for Windows Forms? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I would like my Windows Forms .NET application to be a bit nicer, having fancy rounded windows corners, non-standard color set, pretty controls.
Though all this is possible to implement with custom ownerdraw, I'd like not to spend much time and take existing free implementation (if any).
Please recommend the choice of yours.
I don't know of any complete free library, but to improve the look or functionality of common .Net controls I'd look at the CodeProject site. There's lots of articles about customizing controls. For example, here's one about making round buttons.
You might need to do owner drawing, but assuming that the license for the code in that or other articles are suitable for your needs you might be able to re-use code without having to write much yourself and some of the articles contain class libraries that you might just be able to reference in your code.
If you want to give your app a Windows 7 look there's also the Windows API Code Pack for .Net
As far as I know, there is no way to do "themes" or "skinning" easily in WinForms. You will have to find/purchase custom controls (or control libraries) that do all of the rendering that you require or do as you mentioned and render your own controls.
If you migrate your application to WPF, you'll find a lot more support for themes and "skinning".
Cheers.

Resources