Is there a way to get a screenshot of a glade/gtkbuilder UI xml by code (preferrably C)?
glade/gtkbuiler export ui to png by code (or any image format)
485 Views Asked by v1nce At
1
There are 1 best solutions below
Related Questions in GTK
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Why does GTK beep when calling `gtk_entry_set_text` (while resizing a window)?
- Distributing a GTK4 Windows application
- Callback function doesn't modify widget
- getting arguments with g_signal_connect GTK4
- ValueError: Namespace Xdp not available
- How do I link gtk/gtk.h to my compiler in VSCode
- Using GTK v0.18.1 on rust to draw
- How to set transparent background for gtk_plug_new window
- GTK Cairo. Why gtk_widget_queue_draw called from function (in iddle callback) does not work?
- GTK4 Window Created from XML, Closes Immediately After Run()
- How do I receive UDP broadcast packets using GTK / GIO?
- Install Gtk 3.0 problem with depencies in linux
- Ubuntu 22.04 libgtk-3.so: undefined reference to symbol 'gdk_window_hide'
- GTK: "Object with ID not found" error, but the ID is empty
Related Questions in GLADE
- Method to convert glade XML designed for GTK2.24 to one usable with GTK3? Python usage
- Glade C++ Linux Assistance
- Glade is extremely slow with large GtkGrid
- Using glade with multiple ui files
- can't associate Gtk::DrawingArea with its form from the glade file on c++
- What are the basics of providing "style classes" for Glade GTK+ for python app to specify a font for a widget?
- Window slicing when loading glade file
- "error: unknown type name 'GtkTooltips'" when trying to compile Glade 2.0 souce
- Glade GDK buttons have awful top border
- python glade notebook tabs won't switch
- Design and program in Glade and Python a scrollable list of a bunch of elements
- Using Gtk.FontButton in Glade causes deprecation error, but can't eliminate it
- Gtk-rs Button::connect_clicked does nothing
- Exposing GTK3 custom widget properties in glade
- Tree_view in GTK3 not showing the cells output
Related Questions in GTKBUILDER
- Julia Gtk GtkBuilder: GtkBuilder(buffer=astring) error
- How do I apply CSS attributes by object id in GTK4?
- Unable to find what would be the log domain name for gtkbuilder.c
- Application based on Gstreamer + Gtk+3 on ubuntu 18.04
- I added a gtk widget to the main window UI file, but it doesn't show up
- Menu Button in Gtk3 Vala Application
- GResource, GtkBuilder and gettext translations
- Make sure GtkWindow fits all children
- Signal 'show' not emitted from GUI constructed with GtkBuilder?
- How can I set the label of a GtkLinkButton in Glade?
- How to populate a GtkMenu with some GtkMenuItem and set its parent in Glade?
- inherited shared pointer failed to get_widget
- Changing a GtkMenuItem label in a menubar generated by GtkBuilder
- GtkBuilder F# Object reference not set to an instance of an object
- How to merge Gtk+ builder
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You have to create a window and display it in the ordinary way. There is no way to do it "just for show", so to say. For GTK 2 you also have to display the window (make it visible on screen) and then make a screenshot of it. In GTK 3 (which doesn't support the old glade format, just the newer gtkbuilder one) it is possible to render to memory. So theoretically it should be possible to just render the window and save it to a file without involving X (or any other particular back end).
There are pictures of all widgets in the manual for GTK (which is included in the source release). I don't know for sure, but perhaps they are automatically generated in some way. It might be worth looking into.