Let's say that the widget is a VBox containing a label and two buttons.
In addition, suppose that the desired degree of rotation is 90 °.
How can it be rotated? I don't think this is possible by default, but I think it is possible.
However, I have no idea how to start. Am I writing my own widget? What am I doing subclass?
You can fake it like this:
label.set_angle(90) button1.get_child().set_angle(90) # assuming it not a stock button button2.get_child().set_angle(90) vbox.set_orientation(gtk.ORIENTATION_HORIZONTAL)
First, if your widget does not have its own X window (VBox does not), place it inside the EventBox.
-, , X , X-, X Xlib . , , .
... , . GTK Cairo , , ... .
, , , , C, . GTK-Demo Suite.
https://github.com/GNOME/gtk/blob/gtk-3-22/demos/gtk-demo/offscreen_window.c
Source: https://habr.com/ru/post/1734795/More articles:support font size with different screen resolutions - jqueryHow to finish script tags? - .netWhen do asynchronous delegates use a callback pattern? - c #The most effective way to deal with open programming problems is language-agnosticXML Writer Question - c #Regression Management - regression-testingWhat special method in Python handles AttributeError? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1734798/passing-gps-lonlat-from-android-gps-to-webpage-javascript&usg=ALkJrhjgEGP8Ruz7qSXZv1qlRG0P0oUqkwCustom components - how to manage? - delphiflash engine / frame search - phpAll Articles