Method for building a lightweight, cross-platform text editor

I plan to create a simple, lightweight text editor that works well with keyboard input.

I want to have a lot of control over things like anti-aliasing and the whole graphics in general, but I don't want to have a whole library of widgets. Almost the entire user interface will be based on text and in the main canvas / application window.

  • Toolboxes like GTK and Qt seem like overly redundant widgets that I donโ€™t need, and a complex code base.
  • Titanium, AIR and XULRunner are even more in some way - dev will be fast, but this is not an easy approach.
  • Shoes seemed almost perfect, but they were a little small and did not support enough events (for example, without changing the size of the window).

Do you think I should just create it on Cairo / Pango or another graphics library and remake the platform myself? I would rather use some kind of structure.

Basically all I want:

  • good event handling
  • window
  • menu
  • a drawing with really great type rendering options

From the very beginning I would like to build this cross-platform.

+3
source share
2 answers

Even if you use only Cairo / Pango, you still need windows on the screen.

The simplest combination would be cairo + pango + GDK (window part of GTK +) however even in this case you donโ€™t have a menu, and creating a menu with pure Cairo would be a difficult (but not impossible) achievement.

,

+3

Scintilla - ( GTK +) , , , , ; .

0

Source: https://habr.com/ru/post/1705317/


All Articles