Is it possible to access and change the context GtkDrawingAreaoutside of it draw_callback? If so, I would be very happy if you would provide a short example (any language) or tell me where I should look. All the examples that I have found so far are drawn inside the callback, so I wonder about the possibility.
GtkDrawingArea
draw_callback
In GTK + 2, this was possible using the interaction of GDK and Cairo to get Cairo's context from GdkWindow. In GTK + 3, which is most likely what you are asking about, you can still do this with this and this .
XY. GTK + 3 , . draw , .
, , , . , .
, , .
DrawingArea ::draw. ::draw (, ). , () (, , - ). ::draw, (, , , , , ).
::draw
GTK + , draw_cb.
draw_cb
Source: https://habr.com/ru/post/1665361/More articles:Python Pandas concatenates a series of strings into a single string - stringhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1665357/sparkscala-repeated-calls-to-withcolumn-using-the-same-function-on-multiple-columns&usg=ALkJrhiF7I1Goo6KFCbMawuMoeKfKPbxhAShell Script believes that the directory does not exist when running cd - bashWhy does this date function only work until December 30, 2016? - phpUnderstanding git commit - pre-commit only - gitWhy is PyCharm still highlighting typos, although I will not mention this feature? - pythonPhpstorm and pre commit hooks that modify files - gitI can not add jQuery to WebStorm, why? - jqueryCount equal, consecutive values ββin an ordered rowset - sqlstd :: unique_ptr and QObject :: deleteLater - c ++ 11All Articles