Graphviz 12.1.0~dev.20240716.0947
Loading...
Searching...
No Matches
gui.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include "smyrnadefs.h"
14#include <gtk/gtk.h>
15#include <gdk/gdkkeysyms.h>
16#include <gtk/gtkgl.h>
17#include <glade/glade.h>
18#include "callbacks.h"
19#include <cgraph/cgraph.h>
20
21 extern GladeXML *xml; //global libglade vars
22 extern GtkWidget *gladewidget;
23
24 void load_graph_properties(void); //load from graph to gui
25
26//GTK helper functions
27//void Color_Widget_bg (int r, int g, int b, GtkWidget *widget); //change background color
28 void Color_Widget_bg(char *colorstring, GtkWidget * widget);
29/*generic warning pop up*/
30 void show_gui_warning(char *str);
37 int openfiledlg(char **filename);
44 int savefiledlg(char **filename);
45 void append_textview(GtkTextView * textv, const char *s, size_t bytes);
abstract graph C library, Cgraph API
int openfiledlg(char **filename)
Definition gui.c:57
GtkWidget * gladewidget
Definition gui.c:23
int savefiledlg(char **filename)
Definition gui.c:81
void load_graph_properties(void)
Definition gui.c:33
void Color_Widget_bg(char *colorstring, GtkWidget *widget)
Definition gui.c:25
void show_gui_warning(char *str)
Definition gui.c:40
GladeXML * xml
Definition gui.c:22
void append_textview(GtkTextView *textv, const char *s, size_t bytes)
Definition gui.c:105
agxbuf * str
Definition htmlparse.c:97
Definition grammar.c:93