From a4460f6d9453bbd7e584937686449cef3e19f052 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 20 Aug 2018 20:34:57 -0400 Subject: Initial commit --- .../include/gtk-3.0/gtk/deprecated/gtkcolorsel.h | 157 +++ .../gtk-3.0/gtk/deprecated/gtkcolorseldialog.h | 80 ++ .../include/gtk-3.0/gtk/deprecated/gtkfontsel.h | 165 ++++ .../include/gtk-3.0/gtk/deprecated/gtkhandlebox.h | 100 ++ .../include/gtk-3.0/gtk/deprecated/gtkhbbox.h | 65 ++ .../include/gtk-3.0/gtk/deprecated/gtkhbox.h | 67 ++ .../include/gtk-3.0/gtk/deprecated/gtkhpaned.h | 64 ++ .../include/gtk-3.0/gtk/deprecated/gtkhscale.h | 68 ++ .../include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h | 64 ++ .../include/gtk-3.0/gtk/deprecated/gtkhseparator.h | 64 ++ gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhsv.h | 106 ++ gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkrc.h | 322 ++++++ .../include/gtk-3.0/gtk/deprecated/gtkstyle.h | 703 +++++++++++++ .../include/gtk-3.0/gtk/deprecated/gtktable.h | 162 +++ .../gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h | 74 ++ .../include/gtk-3.0/gtk/deprecated/gtkvbbox.h | 64 ++ .../include/gtk-3.0/gtk/deprecated/gtkvbox.h | 65 ++ .../include/gtk-3.0/gtk/deprecated/gtkvpaned.h | 64 ++ .../include/gtk-3.0/gtk/deprecated/gtkvscale.h | 74 ++ .../include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h | 70 ++ .../include/gtk-3.0/gtk/deprecated/gtkvseparator.h | 70 ++ gtk+-mingw/include/gtk-3.0/gtk/gtk.h | 250 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkaboutdialog.h | 169 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkaccelgroup.h | 209 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkaccellabel.h | 101 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkaccelmap.h | 93 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkaccessible.h | 75 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkaction.h | 166 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkactionable.h | 77 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkactiongroup.h | 232 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkactivatable.h | 85 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkadjustment.h | 121 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkalignment.h | 96 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkappchooser.h | 49 + .../include/gtk-3.0/gtk/gtkappchooserbutton.h | 89 ++ .../include/gtk-3.0/gtk/gtkappchooserdialog.h | 78 ++ .../include/gtk-3.0/gtk/gtkappchooserwidget.h | 103 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkapplication.h | 125 +++ .../include/gtk-3.0/gtk/gtkapplicationwindow.h | 75 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkarrow.h | 81 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkaspectframe.h | 84 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkassistant.h | 188 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkbbox.h | 90 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkbin.h | 79 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkbindings.h | 189 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkborder.h | 66 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkbox.h | 112 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkbuildable.h | 173 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkbuilder.h | 178 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkbutton.h | 128 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkcalendar.h | 169 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkcellarea.h | 482 +++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkcellareabox.h | 87 ++ .../include/gtk-3.0/gtk/gtkcellareacontext.h | 135 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkcelleditable.h | 62 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcelllayout.h | 135 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderer.h | 280 ++++++ .../include/gtk-3.0/gtk/gtkcellrendereraccel.h | 84 ++ .../include/gtk-3.0/gtk/gtkcellrenderercombo.h | 65 ++ .../include/gtk-3.0/gtk/gtkcellrendererpixbuf.h | 68 ++ .../include/gtk-3.0/gtk/gtkcellrendererprogress.h | 72 ++ .../include/gtk-3.0/gtk/gtkcellrendererspin.h | 64 ++ .../include/gtk-3.0/gtk/gtkcellrendererspinner.h | 67 ++ .../include/gtk-3.0/gtk/gtkcellrenderertext.h | 75 ++ .../include/gtk-3.0/gtk/gtkcellrenderertoggle.h | 82 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcellview.h | 95 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcheckbutton.h | 80 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcheckmenuitem.h | 98 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkclipboard.h | 237 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkcolorbutton.h | 108 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooser.h | 87 ++ .../include/gtk-3.0/gtk/gtkcolorchooserdialog.h | 68 ++ .../include/gtk-3.0/gtk/gtkcolorchooserwidget.h | 71 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcolorutils.h | 48 + gtk+-mingw/include/gtk-3.0/gtk/gtkcombobox.h | 147 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkcomboboxtext.h | 88 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcontainer.h | 227 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkcssprovider.h | 96 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkcsssection.h | 93 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkdebug.h | 70 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkdialog.h | 181 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkdnd.h | 212 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkdrawingarea.h | 74 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkeditable.h | 113 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkentry.h | 283 ++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkentrybuffer.h | 133 +++ .../include/gtk-3.0/gtk/gtkentrycompletion.h | 154 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkenums.h | 938 ++++++++++++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkeventbox.h | 79 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkexpander.h | 107 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooser.h | 247 +++++ .../include/gtk-3.0/gtk/gtkfilechooserbutton.h | 81 ++ .../include/gtk-3.0/gtk/gtkfilechooserdialog.h | 69 ++ .../include/gtk-3.0/gtk/gtkfilechooserwidget.h | 65 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkfilefilter.h | 116 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkfixed.h | 91 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkfontbutton.h | 99 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooser.h | 118 +++ .../include/gtk-3.0/gtk/gtkfontchooserdialog.h | 67 ++ .../include/gtk-3.0/gtk/gtkfontchooserwidget.h | 71 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkframe.h | 96 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkgradient.h | 66 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkgrid.h | 110 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkiconfactory.h | 183 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkicontheme.h | 233 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkiconview.h | 261 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkimage.h | 168 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkimagemenuitem.h | 90 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkimcontext.h | 126 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextinfo.h | 44 + .../include/gtk-3.0/gtk/gtkimcontextsimple.h | 74 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkimmodule.h | 34 + gtk+-mingw/include/gtk-3.0/gtk/gtkimmulticontext.h | 73 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkinfobar.h | 116 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkinvisible.h | 77 ++ gtk+-mingw/include/gtk-3.0/gtk/gtklabel.h | 176 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtklayout.h | 108 ++ gtk+-mingw/include/gtk-3.0/gtk/gtklinkbutton.h | 100 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkliststore.h | 133 +++ gtk+-mingw/include/gtk-3.0/gtk/gtklockbutton.h | 72 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkmain.h | 172 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkmenu.h | 215 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkmenubar.h | 90 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkmenuitem.h | 128 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkmenushell.h | 117 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkmenutoolbutton.h | 79 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkmessagedialog.h | 132 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkmisc.h | 89 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkmodules.h | 58 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkmountoperation.h | 81 ++ gtk+-mingw/include/gtk-3.0/gtk/gtknotebook.h | 250 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtknumerableicon.h | 87 ++ .../include/gtk-3.0/gtk/gtkoffscreenwindow.h | 64 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkorientable.h | 58 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkoverlay.h | 79 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkpagesetup.h | 106 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkpaned.h | 105 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkpapersize.h | 140 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkplug.h | 97 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkprintcontext.h | 69 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperation.h | 280 ++++++ .../include/gtk-3.0/gtk/gtkprintoperationpreview.h | 79 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkprintsettings.h | 248 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkprogressbar.h | 97 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkradioaction.h | 89 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkradiobutton.h | 92 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkradiomenuitem.h | 91 ++ .../include/gtk-3.0/gtk/gtkradiotoolbutton.h | 72 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkrange.h | 167 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkrecentaction.h | 78 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooser.h | 203 ++++ .../include/gtk-3.0/gtk/gtkrecentchooserdialog.h | 78 ++ .../include/gtk-3.0/gtk/gtkrecentchoosermenu.h | 72 ++ .../include/gtk-3.0/gtk/gtkrecentchooserwidget.h | 68 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkrecentfilter.h | 125 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkrecentmanager.h | 234 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtkscale.h | 114 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkscalebutton.h | 99 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkscrollable.h | 60 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkscrollbar.h | 72 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkscrolledwindow.h | 136 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkselection.h | 192 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkseparator.h | 75 ++ .../include/gtk-3.0/gtk/gtkseparatormenuitem.h | 72 ++ .../include/gtk-3.0/gtk/gtkseparatortoolitem.h | 70 ++ gtk+-mingw/include/gtk-3.0/gtk/gtksettings.h | 127 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkshow.h | 37 + gtk+-mingw/include/gtk-3.0/gtk/gtksizegroup.h | 95 ++ gtk+-mingw/include/gtk-3.0/gtk/gtksizerequest.h | 57 ++ gtk+-mingw/include/gtk-3.0/gtk/gtksocket.h | 84 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkspinbutton.h | 213 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkspinner.h | 71 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkstatusbar.h | 101 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkstatusicon.h | 147 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkstock.h | 1029 ++++++++++++++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkstylecontext.h | 996 +++++++++++++++++++ .../include/gtk-3.0/gtk/gtkstyleproperties.h | 117 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkstyleprovider.h | 126 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkswitch.h | 93 ++ gtk+-mingw/include/gtk-3.0/gtk/gtksymboliccolor.h | 57 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktestutils.h | 72 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktextattributes.h | 180 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtktextbuffer.h | 408 ++++++++ .../include/gtk-3.0/gtk/gtktextbufferrichtext.h | 126 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktextchild.h | 83 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktextdisplay.h | 101 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktextiter.h | 306 ++++++ gtk+-mingw/include/gtk-3.0/gtk/gtktextlayout.h | 433 ++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtktextmark.h | 103 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktexttag.h | 115 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktexttagtable.h | 96 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktextview.h | 285 ++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkthemingengine.h | 260 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtktoggleaction.h | 92 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktogglebutton.h | 93 ++ .../include/gtk-3.0/gtk/gtktoggletoolbutton.h | 75 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolbar.h | 135 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolbutton.h | 97 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolitem.h | 124 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolitemgroup.h | 104 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolpalette.h | 140 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktoolshell.h | 89 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktooltip.h | 75 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktreednd.h | 123 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktreemodel.h | 302 ++++++ .../include/gtk-3.0/gtk/gtktreemodelfilter.h | 144 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelsort.h | 84 ++ gtk+-mingw/include/gtk-3.0/gtk/gtktreeselection.h | 146 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktreesortable.h | 123 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktreestore.h | 147 +++ gtk+-mingw/include/gtk-3.0/gtk/gtktreeview.h | 501 ++++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtktreeviewcolumn.h | 224 +++++ gtk+-mingw/include/gtk-3.0/gtk/gtktypebuiltins.h | 301 ++++++ gtk+-mingw/include/gtk-3.0/gtk/gtktypes.h | 56 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkuimanager.h | 171 ++++ gtk+-mingw/include/gtk-3.0/gtk/gtkversion.h | 102 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkviewport.h | 96 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkvolumebutton.h | 70 ++ gtk+-mingw/include/gtk-3.0/gtk/gtkwidget.h | 892 +++++++++++++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkwidgetpath.h | 132 +++ gtk+-mingw/include/gtk-3.0/gtk/gtkwindow.h | 351 +++++++ gtk+-mingw/include/gtk-3.0/gtk/gtkx.h | 28 + 222 files changed, 31521 insertions(+) create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkfontsel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhpaned.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscale.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhseparator.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhsv.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkrc.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkstyle.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvpaned.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscale.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvseparator.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtk.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaboutdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaccelgroup.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaccellabel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaccelmap.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaccessible.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaction.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkactionable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkactiongroup.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkactivatable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkadjustment.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkalignment.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkappchooser.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkapplication.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkapplicationwindow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkarrow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkaspectframe.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkassistant.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbin.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbindings.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkborder.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbuildable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbuilder.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcalendar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellarea.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellareabox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellareacontext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcelleditable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcelllayout.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderer.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendereraccel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderercombo.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererprogress.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspin.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspinner.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertoggle.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcellview.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcheckbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcheckmenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkclipboard.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcolorbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooser.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcolorutils.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcombobox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcomboboxtext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcontainer.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcssprovider.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkcsssection.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkdebug.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkdnd.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkdrawingarea.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkeditable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkentry.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkentrybuffer.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkentrycompletion.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkenums.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkeventbox.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkexpander.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooser.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfilefilter.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfixed.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfontbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooser.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkframe.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkgradient.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkgrid.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkiconfactory.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkicontheme.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkiconview.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimage.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimagemenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimcontext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextinfo.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextsimple.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimmodule.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkimmulticontext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkinfobar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkinvisible.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtklabel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtklayout.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtklinkbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkliststore.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtklockbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmain.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmenu.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmenubar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmenushell.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmenutoolbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmessagedialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmisc.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmodules.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkmountoperation.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtknotebook.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtknumerableicon.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkoffscreenwindow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkorientable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkoverlay.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkpagesetup.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkpaned.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkpapersize.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkplug.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkprintcontext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperation.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperationpreview.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkprintsettings.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkprogressbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkradioaction.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkradiobutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkradiomenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkradiotoolbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrange.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentaction.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooser.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserdialog.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchoosermenu.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentfilter.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkrecentmanager.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkscale.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkscalebutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkscrollable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkscrollbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkscrolledwindow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkselection.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkseparator.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkseparatormenuitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkseparatortoolitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtksettings.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkshow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtksizegroup.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtksizerequest.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtksocket.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkspinbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkspinner.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstatusbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstatusicon.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstock.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstylecontext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstyleproperties.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkstyleprovider.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkswitch.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtksymboliccolor.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktestutils.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextattributes.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextbuffer.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextbufferrichtext.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextchild.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextdisplay.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextiter.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextlayout.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextmark.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktexttag.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktexttagtable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktextview.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkthemingengine.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoggleaction.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktogglebutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoggletoolbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolbar.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolbutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolitem.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolitemgroup.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolpalette.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktoolshell.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktooltip.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreednd.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreemodel.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelfilter.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelsort.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreeselection.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreesortable.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreestore.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreeview.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktreeviewcolumn.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktypebuiltins.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtktypes.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkuimanager.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkversion.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkviewport.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkvolumebutton.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkwidget.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkwidgetpath.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkwindow.h create mode 100644 gtk+-mingw/include/gtk-3.0/gtk/gtkx.h (limited to 'gtk+-mingw/include/gtk-3.0/gtk') diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h new file mode 100644 index 0000000..3dd3712 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h @@ -0,0 +1,157 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_SELECTION_H__ +#define __GTK_COLOR_SELECTION_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_SELECTION (gtk_color_selection_get_type ()) +#define GTK_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelection)) +#define GTK_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) +#define GTK_IS_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION)) +#define GTK_IS_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION)) +#define GTK_COLOR_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION, GtkColorSelectionClass)) + + +typedef struct _GtkColorSelection GtkColorSelection; +typedef struct _GtkColorSelectionPrivate GtkColorSelectionPrivate; +typedef struct _GtkColorSelectionClass GtkColorSelectionClass; + +typedef void (* GtkColorSelectionChangePaletteFunc) (const GdkColor *colors, + gint n_colors); + +/** + * GtkColorSelectionChangePaletteWithScreenFunc: + * @screen: + * @colors: + * @n_colors: + * + * Since: 2.2 + */ +typedef void (* GtkColorSelectionChangePaletteWithScreenFunc) (GdkScreen *screen, + const GdkColor *colors, + gint n_colors); + +struct _GtkColorSelection +{ + GtkBox parent_instance; + + /* < private_data > */ + GtkColorSelectionPrivate *private_data; +}; + +struct _GtkColorSelectionClass +{ + GtkBoxClass parent_class; + + void (*color_changed) (GtkColorSelection *color_selection); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* ColorSelection */ + +GType gtk_color_selection_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_widget_new) +GtkWidget *gtk_color_selection_new (void); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_use_alpha) +gboolean gtk_color_selection_get_has_opacity_control (GtkColorSelection *colorsel); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_use_alpha) +void gtk_color_selection_set_has_opacity_control (GtkColorSelection *colorsel, + gboolean has_opacity); +GDK_DEPRECATED_IN_3_4 +gboolean gtk_color_selection_get_has_palette (GtkColorSelection *colorsel); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_set_has_palette (GtkColorSelection *colorsel, + gboolean has_palette); + + +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_rgba) +void gtk_color_selection_set_current_alpha (GtkColorSelection *colorsel, + guint16 alpha); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_rgba) +guint16 gtk_color_selection_get_current_alpha (GtkColorSelection *colorsel); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_set_previous_alpha (GtkColorSelection *colorsel, + guint16 alpha); +GDK_DEPRECATED_IN_3_4 +guint16 gtk_color_selection_get_previous_alpha (GtkColorSelection *colorsel); + +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_rgba) +void gtk_color_selection_set_current_rgba (GtkColorSelection *colorsel, + const GdkRGBA *rgba); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_rgba) +void gtk_color_selection_get_current_rgba (GtkColorSelection *colorsel, + GdkRGBA *rgba); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_set_previous_rgba (GtkColorSelection *colorsel, + const GdkRGBA *rgba); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_get_previous_rgba (GtkColorSelection *colorsel, + GdkRGBA *rgba); + +GDK_DEPRECATED_IN_3_4 +gboolean gtk_color_selection_is_adjusting (GtkColorSelection *colorsel); + +GDK_DEPRECATED_IN_3_4 +gboolean gtk_color_selection_palette_from_string (const gchar *str, + GdkColor **colors, + gint *n_colors); +GDK_DEPRECATED_IN_3_4 +gchar* gtk_color_selection_palette_to_string (const GdkColor *colors, + gint n_colors); + +GtkColorSelectionChangePaletteWithScreenFunc gtk_color_selection_set_change_palette_with_screen_hook (GtkColorSelectionChangePaletteWithScreenFunc func); + +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_rgba) +void gtk_color_selection_set_current_color (GtkColorSelection *colorsel, + const GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_rgba) +void gtk_color_selection_get_current_color (GtkColorSelection *colorsel, + GdkColor *color); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_set_previous_color (GtkColorSelection *colorsel, + const GdkColor *color); +GDK_DEPRECATED_IN_3_4 +void gtk_color_selection_get_previous_color (GtkColorSelection *colorsel, + GdkColor *color); + + +G_END_DECLS + +#endif /* __GTK_COLOR_SELECTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h new file mode 100644 index 0000000..8a681ac --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h @@ -0,0 +1,80 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_SELECTION_DIALOG_H__ +#define __GTK_COLOR_SELECTION_DIALOG_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_SELECTION_DIALOG (gtk_color_selection_dialog_get_type ()) +#define GTK_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialog)) +#define GTK_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) +#define GTK_IS_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG)) +#define GTK_IS_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_SELECTION_DIALOG)) +#define GTK_COLOR_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_SELECTION_DIALOG, GtkColorSelectionDialogClass)) + + +typedef struct _GtkColorSelectionDialog GtkColorSelectionDialog; +typedef struct _GtkColorSelectionDialogPrivate GtkColorSelectionDialogPrivate; +typedef struct _GtkColorSelectionDialogClass GtkColorSelectionDialogClass; + + +struct _GtkColorSelectionDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkColorSelectionDialogPrivate *priv; +}; + +struct _GtkColorSelectionDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +/* ColorSelectionDialog */ +GType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_dialog_new) +GtkWidget* gtk_color_selection_dialog_new (const gchar *title); +GDK_DEPRECATED_IN_3_4_FOR(GtkColorChooser) +GtkWidget* gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel); + + +G_END_DECLS + +#endif /* __GTK_COLOR_SELECTION_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkfontsel.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkfontsel.h new file mode 100644 index 0000000..f33ad76 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkfontsel.h @@ -0,0 +1,165 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkFontSelection widget for Gtk+, by Damon Chaplin, May 1998. + * Based on the GnomeFontSelector widget, by Elliot Lee, but major changes. + * The GnomeFontSelector was derived from app/text_tool.c in the GIMP. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FONTSEL_H__ +#define __GTK_FONTSEL_H__ + + +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_FONT_SELECTION (gtk_font_selection_get_type ()) +#define GTK_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelection)) +#define GTK_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) +#define GTK_IS_FONT_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION)) +#define GTK_IS_FONT_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION)) +#define GTK_FONT_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION, GtkFontSelectionClass)) + + +#define GTK_TYPE_FONT_SELECTION_DIALOG (gtk_font_selection_dialog_get_type ()) +#define GTK_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialog)) +#define GTK_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) +#define GTK_IS_FONT_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_SELECTION_DIALOG)) +#define GTK_IS_FONT_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_SELECTION_DIALOG)) +#define GTK_FONT_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_SELECTION_DIALOG, GtkFontSelectionDialogClass)) + + +typedef struct _GtkFontSelection GtkFontSelection; +typedef struct _GtkFontSelectionPrivate GtkFontSelectionPrivate; +typedef struct _GtkFontSelectionClass GtkFontSelectionClass; + +typedef struct _GtkFontSelectionDialog GtkFontSelectionDialog; +typedef struct _GtkFontSelectionDialogPrivate GtkFontSelectionDialogPrivate; +typedef struct _GtkFontSelectionDialogClass GtkFontSelectionDialogClass; + +struct _GtkFontSelection +{ + GtkBox parent_instance; + + /*< private >*/ + GtkFontSelectionPrivate *priv; +}; + +struct _GtkFontSelectionClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +struct _GtkFontSelectionDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkFontSelectionDialogPrivate *priv; +}; + +struct _GtkFontSelectionDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_font_selection_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_new (void); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_get_family_list (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_get_face_list (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_get_size_entry (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_get_size_list (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget * gtk_font_selection_get_preview_entry (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +PangoFontFamily * + gtk_font_selection_get_family (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +PangoFontFace * + gtk_font_selection_get_face (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +gint gtk_font_selection_get_size (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel); + +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +gboolean gtk_font_selection_set_font_name (GtkFontSelection *fontsel, + const gchar *fontname); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +const gchar* gtk_font_selection_get_preview_text (GtkFontSelection *fontsel); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel, + const gchar *text); + + +GType gtk_font_selection_dialog_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget *gtk_font_selection_dialog_new (const gchar *title); + +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget *gtk_font_selection_dialog_get_ok_button (GtkFontSelectionDialog *fsd); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget *gtk_font_selection_dialog_get_cancel_button (GtkFontSelectionDialog *fsd); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +GtkWidget *gtk_font_selection_dialog_get_font_selection (GtkFontSelectionDialog *fsd); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +gchar* gtk_font_selection_dialog_get_font_name (GtkFontSelectionDialog *fsd); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +gboolean gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog *fsd, + const gchar *fontname); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +const gchar* + gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd); +GDK_DEPRECATED_IN_3_2_FOR(GtkFontChooser) +void gtk_font_selection_dialog_set_preview_text (GtkFontSelectionDialog *fsd, + const gchar *text); + +G_END_DECLS + + +#endif /* __GTK_FONTSEL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h new file mode 100644 index 0000000..0f84fc6 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h @@ -0,0 +1,100 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * Copyright (C) 1998 Elliot Lee + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/* The GtkHandleBox is to allow widgets to be dragged in and out of + * their parents. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HANDLE_BOX_H__ +#define __GTK_HANDLE_BOX_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HANDLE_BOX (gtk_handle_box_get_type ()) +#define GTK_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBox)) +#define GTK_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) +#define GTK_IS_HANDLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HANDLE_BOX)) +#define GTK_IS_HANDLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HANDLE_BOX)) +#define GTK_HANDLE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HANDLE_BOX, GtkHandleBoxClass)) + +typedef struct _GtkHandleBox GtkHandleBox; +typedef struct _GtkHandleBoxPrivate GtkHandleBoxPrivate; +typedef struct _GtkHandleBoxClass GtkHandleBoxClass; + +struct _GtkHandleBox +{ + GtkBin bin; + + /*< private >*/ + GtkHandleBoxPrivate *priv; +}; + +struct _GtkHandleBoxClass +{ + GtkBinClass parent_class; + + void (*child_attached) (GtkHandleBox *handle_box, + GtkWidget *child); + void (*child_detached) (GtkHandleBox *handle_box, + GtkWidget *child); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_handle_box_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4 +GtkWidget* gtk_handle_box_new (void); +GDK_DEPRECATED_IN_3_4 +void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box, + GtkShadowType type); +GDK_DEPRECATED_IN_3_4 +GtkShadowType gtk_handle_box_get_shadow_type (GtkHandleBox *handle_box); +GDK_DEPRECATED_IN_3_4 +void gtk_handle_box_set_handle_position (GtkHandleBox *handle_box, + GtkPositionType position); +GDK_DEPRECATED_IN_3_4 +GtkPositionType gtk_handle_box_get_handle_position(GtkHandleBox *handle_box); +GDK_DEPRECATED_IN_3_4 +void gtk_handle_box_set_snap_edge (GtkHandleBox *handle_box, + GtkPositionType edge); +GDK_DEPRECATED_IN_3_4 +GtkPositionType gtk_handle_box_get_snap_edge (GtkHandleBox *handle_box); +GDK_DEPRECATED_IN_3_4 +gboolean gtk_handle_box_get_child_detached (GtkHandleBox *handle_box); + +G_END_DECLS + +#endif /* __GTK_HANDLE_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbbox.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbbox.h new file mode 100644 index 0000000..26714c8 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbbox.h @@ -0,0 +1,65 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HBUTTON_BOX_H__ +#define __GTK_HBUTTON_BOX_H__ + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_HBUTTON_BOX (gtk_hbutton_box_get_type ()) +#define GTK_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBox)) +#define GTK_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) +#define GTK_IS_HBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBUTTON_BOX)) +#define GTK_IS_HBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBUTTON_BOX)) +#define GTK_HBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBUTTON_BOX, GtkHButtonBoxClass)) + + +typedef struct _GtkHButtonBox GtkHButtonBox; +typedef struct _GtkHButtonBoxClass GtkHButtonBoxClass; + +struct _GtkHButtonBox +{ + GtkButtonBox button_box; +}; + +struct _GtkHButtonBoxClass +{ + GtkButtonBoxClass parent_class; +}; + + +GType gtk_hbutton_box_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_button_box_new) +GtkWidget* gtk_hbutton_box_new (void); + +G_END_DECLS + +#endif /* __GTK_HBUTTON_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbox.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbox.h new file mode 100644 index 0000000..ec4f9c5 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhbox.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HBOX_H__ +#define __GTK_HBOX_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_HBOX (gtk_hbox_get_type ()) +#define GTK_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBOX, GtkHBox)) +#define GTK_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass)) +#define GTK_IS_HBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBOX)) +#define GTK_IS_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX)) +#define GTK_HBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBOX, GtkHBoxClass)) + + +typedef struct _GtkHBox GtkHBox; +typedef struct _GtkHBoxClass GtkHBoxClass; + +struct _GtkHBox +{ + GtkBox box; +}; + +struct _GtkHBoxClass +{ + GtkBoxClass parent_class; +}; + + +GType gtk_hbox_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_box_new) +GtkWidget * gtk_hbox_new (gboolean homogeneous, + gint spacing); + +G_END_DECLS + +#endif /* __GTK_HBOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhpaned.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhpaned.h new file mode 100644 index 0000000..e637939 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhpaned.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HPANED_H__ +#define __GTK_HPANED_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HPANED (gtk_hpaned_get_type ()) +#define GTK_HPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HPANED, GtkHPaned)) +#define GTK_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HPANED, GtkHPanedClass)) +#define GTK_IS_HPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HPANED)) +#define GTK_IS_HPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HPANED)) +#define GTK_HPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HPANED, GtkHPanedClass)) + + +typedef struct _GtkHPaned GtkHPaned; +typedef struct _GtkHPanedClass GtkHPanedClass; + +struct _GtkHPaned +{ + GtkPaned paned; +}; + +struct _GtkHPanedClass +{ + GtkPanedClass parent_class; +}; + + +GType gtk_hpaned_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_paned_new) +GtkWidget * gtk_hpaned_new (void); + +G_END_DECLS + +#endif /* __GTK_HPANED_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscale.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscale.h new file mode 100644 index 0000000..486a31f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscale.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HSCALE_H__ +#define __GTK_HSCALE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HSCALE (gtk_hscale_get_type ()) +#define GTK_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCALE, GtkHScale)) +#define GTK_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCALE, GtkHScaleClass)) +#define GTK_IS_HSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCALE)) +#define GTK_IS_HSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCALE)) +#define GTK_HSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCALE, GtkHScaleClass)) + + +typedef struct _GtkHScale GtkHScale; +typedef struct _GtkHScaleClass GtkHScaleClass; + +struct _GtkHScale +{ + GtkScale scale; +}; + +struct _GtkHScaleClass +{ + GtkScaleClass parent_class; +}; + + +GType gtk_hscale_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_scale_new) +GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment); +GDK_DEPRECATED_IN_3_2_FOR(gtk_scale_new_with_range) +GtkWidget* gtk_hscale_new_with_range (gdouble min, + gdouble max, + gdouble step); + +G_END_DECLS + +#endif /* __GTK_HSCALE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h new file mode 100644 index 0000000..c325c3c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HSCROLLBAR_H__ +#define __GTK_HSCROLLBAR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HSCROLLBAR (gtk_hscrollbar_get_type ()) +#define GTK_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbar)) +#define GTK_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) +#define GTK_IS_HSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSCROLLBAR)) +#define GTK_IS_HSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSCROLLBAR)) +#define GTK_HSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSCROLLBAR, GtkHScrollbarClass)) + + +typedef struct _GtkHScrollbar GtkHScrollbar; +typedef struct _GtkHScrollbarClass GtkHScrollbarClass; + +struct _GtkHScrollbar +{ + GtkScrollbar scrollbar; +}; + +struct _GtkHScrollbarClass +{ + GtkScrollbarClass parent_class; +}; + + +GType gtk_hscrollbar_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_scrollbar_new) +GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment); + +G_END_DECLS + +#endif /* __GTK_HSCROLLBAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhseparator.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhseparator.h new file mode 100644 index 0000000..f9bdaa9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhseparator.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HSEPARATOR_H__ +#define __GTK_HSEPARATOR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HSEPARATOR (gtk_hseparator_get_type ()) +#define GTK_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparator)) +#define GTK_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) +#define GTK_IS_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSEPARATOR)) +#define GTK_IS_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSEPARATOR)) +#define GTK_HSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSEPARATOR, GtkHSeparatorClass)) + + +typedef struct _GtkHSeparator GtkHSeparator; +typedef struct _GtkHSeparatorClass GtkHSeparatorClass; + +struct _GtkHSeparator +{ + GtkSeparator separator; +}; + +struct _GtkHSeparatorClass +{ + GtkSeparatorClass parent_class; +}; + + +GType gtk_hseparator_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_separator_new) +GtkWidget* gtk_hseparator_new (void); + +G_END_DECLS + +#endif /* __GTK_HSEPARATOR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhsv.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhsv.h new file mode 100644 index 0000000..9f9436c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkhsv.h @@ -0,0 +1,106 @@ +/* HSV color selector for GTK+ + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Simon Budig (original code) + * Federico Mena-Quintero (cleanup for GTK+) + * Jonathan Blandford (cleanup for GTK+) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_HSV_H__ +#define __GTK_HSV_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_HSV (gtk_hsv_get_type ()) +#define GTK_HSV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HSV, GtkHSV)) +#define GTK_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HSV, GtkHSVClass)) +#define GTK_IS_HSV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HSV)) +#define GTK_IS_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HSV)) +#define GTK_HSV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HSV, GtkHSVClass)) + + +typedef struct _GtkHSV GtkHSV; +typedef struct _GtkHSVPrivate GtkHSVPrivate; +typedef struct _GtkHSVClass GtkHSVClass; + +struct _GtkHSV +{ + GtkWidget parent_instance; + + /*< private >*/ + GtkHSVPrivate *priv; +}; + +struct _GtkHSVClass +{ + GtkWidgetClass parent_class; + + /* Notification signals */ + void (* changed) (GtkHSV *hsv); + + /* Keybindings */ + void (* move) (GtkHSV *hsv, + GtkDirectionType type); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_hsv_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4 +GtkWidget* gtk_hsv_new (void); +GDK_DEPRECATED_IN_3_4 +void gtk_hsv_set_color (GtkHSV *hsv, + double h, + double s, + double v); +GDK_DEPRECATED_IN_3_4 +void gtk_hsv_get_color (GtkHSV *hsv, + gdouble *h, + gdouble *s, + gdouble *v); +GDK_DEPRECATED_IN_3_4 +void gtk_hsv_set_metrics (GtkHSV *hsv, + gint size, + gint ring_width); +GDK_DEPRECATED_IN_3_4 +void gtk_hsv_get_metrics (GtkHSV *hsv, + gint *size, + gint *ring_width); +GDK_DEPRECATED_IN_3_4 +gboolean gtk_hsv_is_adjusting (GtkHSV *hsv); + +G_END_DECLS + +#endif /* __GTK_HSV_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkrc.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkrc.h new file mode 100644 index 0000000..2f19183 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkrc.h @@ -0,0 +1,322 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RC_H__ +#define __GTK_RC_H__ + +#include + +G_BEGIN_DECLS + +/* Forward declarations */ +typedef struct _GtkRcContext GtkRcContext; +typedef struct _GtkRcStyleClass GtkRcStyleClass; + +#define GTK_TYPE_RC_STYLE (gtk_rc_style_get_type ()) +#define GTK_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_RC_STYLE, GtkRcStyle)) +#define GTK_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) +#define GTK_IS_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_RC_STYLE)) +#define GTK_IS_RC_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RC_STYLE)) +#define GTK_RC_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RC_STYLE, GtkRcStyleClass)) + +typedef enum +{ + GTK_RC_FG = 1 << 0, + GTK_RC_BG = 1 << 1, + GTK_RC_TEXT = 1 << 2, + GTK_RC_BASE = 1 << 3 +} GtkRcFlags; + +/** + * GtkRcStyle: + * @name: + * @bg_pixmap_name: + * @font_desc: + * @color_flags: + * @fg: + * @bg: + * @text: + * @base: + * @xthickness: + * @ythickness: + * + * The #GtkRcStyle structure is used to represent a set + * of information about the appearance of a widget. + * This can later be composited together with other + * #GtkRcStyle structures to form a #GtkStyle. + */ +struct _GtkRcStyle +{ + GObject parent_instance; + + /*< public >*/ + + gchar *name; + gchar *bg_pixmap_name[5]; + PangoFontDescription *font_desc; + + GtkRcFlags color_flags[5]; + GdkColor fg[5]; + GdkColor bg[5]; + GdkColor text[5]; + GdkColor base[5]; + + gint xthickness; + gint ythickness; + + /*< private >*/ + GArray *rc_properties; + + /* list of RC style lists including this RC style */ + GSList *rc_style_lists; + + GSList *icon_factories; + + guint engine_specified : 1; /* The RC file specified the engine */ +}; + +struct _GtkRcStyleClass +{ + GObjectClass parent_class; + + /* Create an empty RC style of the same type as this RC style. + * The default implementation, which does + * g_object_new (G_OBJECT_TYPE (style), NULL); + * should work in most cases. + */ + GtkRcStyle * (*create_rc_style) (GtkRcStyle *rc_style); + + /* Fill in engine specific parts of GtkRcStyle by parsing contents + * of brackets. Returns G_TOKEN_NONE if successful, otherwise returns + * the token it expected but didn't get. + */ + guint (*parse) (GtkRcStyle *rc_style, + GtkSettings *settings, + GScanner *scanner); + + /* Combine RC style data from src into dest. If overridden, this + * function should chain to the parent. + */ + void (*merge) (GtkRcStyle *dest, + GtkRcStyle *src); + + /* Create an empty style suitable to this RC style + */ + GtkStyle * (*create_style) (GtkRcStyle *rc_style); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GSList* _gtk_rc_parse_widget_class_path (const gchar *pattern); +void _gtk_rc_free_widget_class_path (GSList *list); +gboolean _gtk_rc_match_widget_class (GSList *list, + gint length, + gchar *path, + gchar *path_reversed); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_rc_add_default_file (const gchar *filename); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_rc_set_default_files (gchar **filenames); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar** gtk_rc_get_default_files (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkStyle* gtk_rc_get_style (GtkWidget *widget); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkStyle* gtk_rc_get_style_by_paths (GtkSettings *settings, + const char *widget_path, + const char *class_path, + GType type); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gboolean gtk_rc_reparse_all_for_settings (GtkSettings *settings, + gboolean force_load); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_rc_reset_styles (GtkSettings *settings); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings, + GScanner *scanner, + const gchar *pixmap_file); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_rc_parse (const gchar *filename); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_rc_parse_string (const gchar *rc_string); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gboolean gtk_rc_reparse_all (void); + +GType gtk_rc_style_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkRcStyle* gtk_rc_style_new (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_find_module_in_path (const gchar *module_file); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_get_theme_dir (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_get_module_dir (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_get_im_module_path (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gchar* gtk_rc_get_im_module_file (void); + +/* private functions/definitions */ + +/** + * GtkRcTokenType: + * @GTK_RC_TOKEN_INVALID: + * @GTK_RC_TOKEN_INCLUDE: + * @GTK_RC_TOKEN_NORMAL: + * @GTK_RC_TOKEN_ACTIVE: + * @GTK_RC_TOKEN_PRELIGHT: + * @GTK_RC_TOKEN_SELECTED: + * @GTK_RC_TOKEN_INSENSITIVE: + * @GTK_RC_TOKEN_FG: + * @GTK_RC_TOKEN_BG: + * @GTK_RC_TOKEN_TEXT: + * @GTK_RC_TOKEN_BASE: + * @GTK_RC_TOKEN_XTHICKNESS: + * @GTK_RC_TOKEN_YTHICKNESS: + * @GTK_RC_TOKEN_FONT: + * @GTK_RC_TOKEN_FONTSET: + * @GTK_RC_TOKEN_FONT_NAME: + * @GTK_RC_TOKEN_BG_PIXMAP: + * @GTK_RC_TOKEN_PIXMAP_PATH: + * @GTK_RC_TOKEN_STYLE: + * @GTK_RC_TOKEN_BINDING: + * @GTK_RC_TOKEN_BIND: + * @GTK_RC_TOKEN_WIDGET: + * @GTK_RC_TOKEN_WIDGET_CLASS: + * @GTK_RC_TOKEN_CLASS: + * @GTK_RC_TOKEN_LOWEST: + * @GTK_RC_TOKEN_GTK: + * @GTK_RC_TOKEN_APPLICATION: + * @GTK_RC_TOKEN_THEME: + * @GTK_RC_TOKEN_RC: + * @GTK_RC_TOKEN_HIGHEST: + * @GTK_RC_TOKEN_ENGINE: + * @GTK_RC_TOKEN_MODULE_PATH: + * @GTK_RC_TOKEN_IM_MODULE_PATH: + * @GTK_RC_TOKEN_IM_MODULE_FILE: + * @GTK_RC_TOKEN_STOCK: + * @GTK_RC_TOKEN_LTR: + * @GTK_RC_TOKEN_RTL: + * @GTK_RC_TOKEN_COLOR: + * @GTK_RC_TOKEN_UNBIND: + * @GTK_RC_TOKEN_LAST: + * + * The #GtkRcTokenType enumeration represents the tokens + * in the RC file. It is exposed so that theme engines + * can reuse these tokens when parsing the theme-engine + * specific portions of a RC file. + * + * Deprecated: 3.0: Use #GtkCssProvider instead. + */ +typedef enum { + GTK_RC_TOKEN_INVALID = G_TOKEN_LAST, + GTK_RC_TOKEN_INCLUDE, + GTK_RC_TOKEN_NORMAL, + GTK_RC_TOKEN_ACTIVE, + GTK_RC_TOKEN_PRELIGHT, + GTK_RC_TOKEN_SELECTED, + GTK_RC_TOKEN_INSENSITIVE, + GTK_RC_TOKEN_FG, + GTK_RC_TOKEN_BG, + GTK_RC_TOKEN_TEXT, + GTK_RC_TOKEN_BASE, + GTK_RC_TOKEN_XTHICKNESS, + GTK_RC_TOKEN_YTHICKNESS, + GTK_RC_TOKEN_FONT, + GTK_RC_TOKEN_FONTSET, + GTK_RC_TOKEN_FONT_NAME, + GTK_RC_TOKEN_BG_PIXMAP, + GTK_RC_TOKEN_PIXMAP_PATH, + GTK_RC_TOKEN_STYLE, + GTK_RC_TOKEN_BINDING, + GTK_RC_TOKEN_BIND, + GTK_RC_TOKEN_WIDGET, + GTK_RC_TOKEN_WIDGET_CLASS, + GTK_RC_TOKEN_CLASS, + GTK_RC_TOKEN_LOWEST, + GTK_RC_TOKEN_GTK, + GTK_RC_TOKEN_APPLICATION, + GTK_RC_TOKEN_THEME, + GTK_RC_TOKEN_RC, + GTK_RC_TOKEN_HIGHEST, + GTK_RC_TOKEN_ENGINE, + GTK_RC_TOKEN_MODULE_PATH, + GTK_RC_TOKEN_IM_MODULE_PATH, + GTK_RC_TOKEN_IM_MODULE_FILE, + GTK_RC_TOKEN_STOCK, + GTK_RC_TOKEN_LTR, + GTK_RC_TOKEN_RTL, + GTK_RC_TOKEN_COLOR, + GTK_RC_TOKEN_UNBIND, + GTK_RC_TOKEN_LAST +} GtkRcTokenType; + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GScanner* gtk_rc_scanner_new (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +guint gtk_rc_parse_color (GScanner *scanner, + GdkColor *color); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +guint gtk_rc_parse_color_full (GScanner *scanner, + GtkRcStyle *style, + GdkColor *color); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +guint gtk_rc_parse_state (GScanner *scanner, + GtkStateType *state); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +guint gtk_rc_parse_priority (GScanner *scanner, + GtkPathPriorityType *priority); + +/* rc properties + * (structure forward declared in gtkstyle.h) + */ +struct _GtkRcProperty +{ + /* quark-ified property identifier like "GtkScrollbar::spacing" */ + GQuark type_name; + GQuark property_name; + + /* fields similar to GtkSettingsValue */ + gchar *origin; + GValue value; +}; + +G_END_DECLS + +#endif /* __GTK_RC_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkstyle.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkstyle.h new file mode 100644 index 0000000..1dd7100 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkstyle.h @@ -0,0 +1,703 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STYLE_H__ +#define __GTK_STYLE_H__ + + +#include +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_STYLE (gtk_style_get_type ()) +#define GTK_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_STYLE, GtkStyle)) +#define GTK_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STYLE, GtkStyleClass)) +#define GTK_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_STYLE)) +#define GTK_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STYLE)) +#define GTK_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE, GtkStyleClass)) + +/* Some forward declarations needed to rationalize the header + * files. + */ +typedef struct _GtkStyleClass GtkStyleClass; +typedef struct _GtkThemeEngine GtkThemeEngine; +typedef struct _GtkRcProperty GtkRcProperty; + +/** + * GTK_STYLE_ATTACHED: + * @style: a #GtkStyle. + * + * Returns whether the style is attached to a window. + */ +#define GTK_STYLE_ATTACHED(style) (GTK_STYLE (style)->attach_count > 0) + +struct _GtkStyle +{ + GObject parent_instance; + + /*< public >*/ + + GdkColor fg[5]; + GdkColor bg[5]; + GdkColor light[5]; + GdkColor dark[5]; + GdkColor mid[5]; + GdkColor text[5]; + GdkColor base[5]; + GdkColor text_aa[5]; /* Halfway between text/base */ + + GdkColor black; + GdkColor white; + PangoFontDescription *font_desc; + + gint xthickness; + gint ythickness; + + cairo_pattern_t *background[5]; + + /*< private >*/ + + gint attach_count; + + GdkVisual *visual; + PangoFontDescription *private_font_desc; /* Font description for style->private_font or %NULL */ + + /* the RcStyle from which this style was created */ + GtkRcStyle *rc_style; + + GSList *styles; /* of type GtkStyle* */ + GArray *property_cache; + GSList *icon_factories; /* of type GtkIconFactory* */ +}; + +struct _GtkStyleClass +{ + GObjectClass parent_class; + + /* Initialize for a particular visual. style->visual + * will have been set at this point. Will typically chain + * to parent. + */ + void (*realize) (GtkStyle *style); + + /* Clean up for a particular visual. Will typically chain + * to parent. + */ + void (*unrealize) (GtkStyle *style); + + /* Make style an exact duplicate of src. + */ + void (*copy) (GtkStyle *style, + GtkStyle *src); + + /* Create an empty style of the same type as this style. + * The default implementation, which does + * g_object_new (G_OBJECT_TYPE (style), NULL); + * should work in most cases. + */ + GtkStyle *(*clone) (GtkStyle *style); + + /* Initialize the GtkStyle with the values in the GtkRcStyle. + * should chain to the parent implementation. + */ + void (*init_from_rc) (GtkStyle *style, + GtkRcStyle *rc_style); + + void (*set_background) (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type); + + + GdkPixbuf * (* render_icon) (GtkStyle *style, + const GtkIconSource *source, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const gchar *detail); + + /* Drawing functions + */ + + void (*draw_hline) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x1, + gint x2, + gint y); + void (*draw_vline) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint y1_, + gint y2_, + gint x); + void (*draw_shadow) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_arrow) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + GtkArrowType arrow_type, + gboolean fill, + gint x, + gint y, + gint width, + gint height); + void (*draw_diamond) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_box) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_flat_box) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_check) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_option) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_tab) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_shadow_gap) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); + void (*draw_box_gap) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); + void (*draw_extension) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side); + void (*draw_focus) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); + void (*draw_slider) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); + void (*draw_handle) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); + + void (*draw_expander) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + GtkExpanderStyle expander_style); + void (*draw_layout) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + gboolean use_text, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + PangoLayout *layout); + void (*draw_resize_grip) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + GdkWindowEdge edge, + gint x, + gint y, + gint width, + gint height); + void (*draw_spinner) (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + guint step, + gint x, + gint y, + gint width, + gint height); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); + void (*_gtk_reserved9) (void); + void (*_gtk_reserved10) (void); + void (*_gtk_reserved11) (void); +}; + +GType gtk_style_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkStyle* gtk_style_new (void); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkStyle* gtk_style_copy (GtkStyle *style); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkStyle* gtk_style_attach (GtkStyle *style, + GdkWindow *window); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_detach (GtkStyle *style); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_set_background (GtkStyle *style, + GdkWindow *window, + GtkStateType state_type); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_apply_default_background (GtkStyle *style, + cairo_t *cr, + GdkWindow *window, + GtkStateType state_type, + gint x, + gint y, + gint width, + gint height); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, + const gchar *stock_id); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +gboolean gtk_style_lookup_color (GtkStyle *style, + const gchar *color_name, + GdkColor *color); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +GdkPixbuf* gtk_style_render_icon (GtkStyle *style, + const GtkIconSource *source, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const gchar *detail); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_hline (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x1, + gint x2, + gint y); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_vline (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint y1_, + gint y2_, + gint x); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_shadow (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_arrow (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + GtkArrowType arrow_type, + gboolean fill, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_diamond (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_box (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_flat_box (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_check (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_option (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_tab (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_shadow_gap (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_box_gap (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side, + gint gap_x, + gint gap_width); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_extension (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkPositionType gap_side); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_focus (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_slider (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_handle (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkShadowType shadow_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + gint width, + gint height, + GtkOrientation orientation); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_expander (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + GtkExpanderStyle expander_style); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_layout (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + gboolean use_text, + GtkWidget *widget, + const gchar *detail, + gint x, + gint y, + PangoLayout *layout); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_resize_grip (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + GdkWindowEdge edge, + gint x, + gint y, + gint width, + gint height); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_paint_spinner (GtkStyle *style, + cairo_t *cr, + GtkStateType state_type, + GtkWidget *widget, + const gchar *detail, + guint step, + gint x, + gint y, + gint width, + gint height); + +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_get_style_property (GtkStyle *style, + GType widget_type, + const gchar *property_name, + GValue *value); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_get_valist (GtkStyle *style, + GType widget_type, + const gchar *first_property_name, + va_list var_args); +GDK_DEPRECATED_IN_3_0_FOR(GtkStyleContext) +void gtk_style_get (GtkStyle *style, + GType widget_type, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; + + +/* --- private API --- */ +GtkStyle* _gtk_style_new_for_path (GdkScreen *screen, + GtkWidgetPath *path); +void _gtk_style_shade (const GdkColor *a, + GdkColor *b, + gdouble k); + +gboolean gtk_style_has_context (GtkStyle *style); + +void gtk_widget_style_attach (GtkWidget *widget); +gboolean gtk_widget_has_rc_style (GtkWidget *widget); +void gtk_widget_set_style (GtkWidget *widget, + GtkStyle *style); +void gtk_widget_ensure_style (GtkWidget *widget); +GtkStyle * gtk_widget_get_style (GtkWidget *widget); +void gtk_widget_modify_style (GtkWidget *widget, + GtkRcStyle *style); +GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget); +void gtk_widget_modify_fg (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_bg (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_text (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_base (GtkWidget *widget, + GtkStateType state, + const GdkColor *color); +void gtk_widget_modify_cursor (GtkWidget *widget, + const GdkColor *primary, + const GdkColor *secondary); +void gtk_widget_modify_font (GtkWidget *widget, + PangoFontDescription *font_desc); +void gtk_widget_reset_rc_styles (GtkWidget *widget); +GtkStyle* gtk_widget_get_default_style (void); +void gtk_widget_path (GtkWidget *widget, + guint *path_length, + gchar **path, + gchar **path_reversed); +void gtk_widget_class_path (GtkWidget *widget, + guint *path_length, + gchar **path, + gchar **path_reversed); +GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget, + const gchar *stock_id, + GtkIconSize size, + const gchar *detail); + +G_END_DECLS + +#endif /* __GTK_STYLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktable.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktable.h new file mode 100644 index 0000000..bb53c7b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktable.h @@ -0,0 +1,162 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TABLE_H__ +#define __GTK_TABLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TABLE (gtk_table_get_type ()) +#define GTK_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable)) +#define GTK_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TABLE, GtkTableClass)) +#define GTK_IS_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TABLE)) +#define GTK_IS_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TABLE)) +#define GTK_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TABLE, GtkTableClass)) + + +typedef struct _GtkTable GtkTable; +typedef struct _GtkTablePrivate GtkTablePrivate; +typedef struct _GtkTableClass GtkTableClass; +typedef struct _GtkTableChild GtkTableChild; +typedef struct _GtkTableRowCol GtkTableRowCol; + +struct _GtkTable +{ + GtkContainer container; + + /*< private >*/ + GtkTablePrivate *priv; +}; + +struct _GtkTableClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkTableChild +{ + GtkWidget *widget; + guint16 left_attach; + guint16 right_attach; + guint16 top_attach; + guint16 bottom_attach; + guint16 xpadding; + guint16 ypadding; + guint xexpand : 1; + guint yexpand : 1; + guint xshrink : 1; + guint yshrink : 1; + guint xfill : 1; + guint yfill : 1; +}; + +struct _GtkTableRowCol +{ + guint16 requisition; + guint16 allocation; + guint16 spacing; + guint need_expand : 1; + guint need_shrink : 1; + guint expand : 1; + guint shrink : 1; + guint empty : 1; +}; + + +GType gtk_table_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +GtkWidget* gtk_table_new (guint rows, + guint columns, + gboolean homogeneous); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_resize (GtkTable *table, + guint rows, + guint columns); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_attach (GtkTable *table, + GtkWidget *child, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach, + GtkAttachOptions xoptions, + GtkAttachOptions yoptions, + guint xpadding, + guint ypadding); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_attach_defaults (GtkTable *table, + GtkWidget *widget, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_set_row_spacing (GtkTable *table, + guint row, + guint spacing); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +guint gtk_table_get_row_spacing (GtkTable *table, + guint row); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_set_col_spacing (GtkTable *table, + guint column, + guint spacing); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +guint gtk_table_get_col_spacing (GtkTable *table, + guint column); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_set_row_spacings (GtkTable *table, + guint spacing); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +guint gtk_table_get_default_row_spacing (GtkTable *table); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_set_col_spacings (GtkTable *table, + guint spacing); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +guint gtk_table_get_default_col_spacing (GtkTable *table); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_set_homogeneous (GtkTable *table, + gboolean homogeneous); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +gboolean gtk_table_get_homogeneous (GtkTable *table); +GDK_DEPRECATED_IN_3_4_FOR(GtkGrid) +void gtk_table_get_size (GtkTable *table, + guint *rows, + guint *columns); + +G_END_DECLS + +#endif /* __GTK_TABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h new file mode 100644 index 0000000..d20ea07 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEAROFF_MENU_ITEM_H__ +#define __GTK_TEAROFF_MENU_ITEM_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TEAROFF_MENU_ITEM (gtk_tearoff_menu_item_get_type ()) +#define GTK_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItem)) +#define GTK_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) +#define GTK_IS_TEAROFF_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEAROFF_MENU_ITEM)) +#define GTK_IS_TEAROFF_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEAROFF_MENU_ITEM)) +#define GTK_TEAROFF_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItemClass)) + + +typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem; +typedef struct _GtkTearoffMenuItemPrivate GtkTearoffMenuItemPrivate; +typedef struct _GtkTearoffMenuItemClass GtkTearoffMenuItemClass; + +struct _GtkTearoffMenuItem +{ + GtkMenuItem menu_item; + + /*< private >*/ + GtkTearoffMenuItemPrivate *priv; +}; + +struct _GtkTearoffMenuItemClass +{ + GtkMenuItemClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tearoff_menu_item_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_4 +GtkWidget* gtk_tearoff_menu_item_new (void); + +G_END_DECLS + +#endif /* __GTK_TEAROFF_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbbox.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbbox.h new file mode 100644 index 0000000..04e64d1 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbbox.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VBBOX_H__ +#define __GTK_VBBOX_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VBUTTON_BOX (gtk_vbutton_box_get_type ()) +#define GTK_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBox)) +#define GTK_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) +#define GTK_IS_VBUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBUTTON_BOX)) +#define GTK_IS_VBUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBUTTON_BOX)) +#define GTK_VBUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBUTTON_BOX, GtkVButtonBoxClass)) + + +typedef struct _GtkVButtonBox GtkVButtonBox; +typedef struct _GtkVButtonBoxClass GtkVButtonBoxClass; + +struct _GtkVButtonBox +{ + GtkButtonBox button_box; +}; + +struct _GtkVButtonBoxClass +{ + GtkButtonBoxClass parent_class; +}; + + +GType gtk_vbutton_box_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_button_box_new) +GtkWidget *gtk_vbutton_box_new (void); + +G_END_DECLS + +#endif /* __GTK_VBBOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbox.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbox.h new file mode 100644 index 0000000..1dcc2a8 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvbox.h @@ -0,0 +1,65 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VBOX_H__ +#define __GTK_VBOX_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VBOX (gtk_vbox_get_type ()) +#define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox)) +#define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass)) +#define GTK_IS_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBOX)) +#define GTK_IS_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX)) +#define GTK_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBOX, GtkVBoxClass)) + + +typedef struct _GtkVBox GtkVBox; +typedef struct _GtkVBoxClass GtkVBoxClass; + +struct _GtkVBox +{ + GtkBox box; +}; + +struct _GtkVBoxClass +{ + GtkBoxClass parent_class; +}; + + +GType gtk_vbox_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_box_new) +GtkWidget * gtk_vbox_new (gboolean homogeneous, + gint spacing); + +G_END_DECLS + +#endif /* __GTK_VBOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvpaned.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvpaned.h new file mode 100644 index 0000000..bc54966 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvpaned.h @@ -0,0 +1,64 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VPANED_H__ +#define __GTK_VPANED_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VPANED (gtk_vpaned_get_type ()) +#define GTK_VPANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VPANED, GtkVPaned)) +#define GTK_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VPANED, GtkVPanedClass)) +#define GTK_IS_VPANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VPANED)) +#define GTK_IS_VPANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VPANED)) +#define GTK_VPANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VPANED, GtkVPanedClass)) + + +typedef struct _GtkVPaned GtkVPaned; +typedef struct _GtkVPanedClass GtkVPanedClass; + +struct _GtkVPaned +{ + GtkPaned paned; +}; + +struct _GtkVPanedClass +{ + GtkPanedClass parent_class; +}; + + +GType gtk_vpaned_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_paned_new) +GtkWidget * gtk_vpaned_new (void); + +G_END_DECLS + +#endif /* __GTK_VPANED_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscale.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscale.h new file mode 100644 index 0000000..8d191c0 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscale.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VSCALE_H__ +#define __GTK_VSCALE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VSCALE (gtk_vscale_get_type ()) +#define GTK_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCALE, GtkVScale)) +#define GTK_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCALE, GtkVScaleClass)) +#define GTK_IS_VSCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCALE)) +#define GTK_IS_VSCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCALE)) +#define GTK_VSCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCALE, GtkVScaleClass)) + + +typedef struct _GtkVScale GtkVScale; +typedef struct _GtkVScaleClass GtkVScaleClass; + +/** + * GtkVScale: + * + * The #GtkVScale struct contains private data only, and + * should be accessed using the functions below. + */ +struct _GtkVScale +{ + GtkScale scale; +}; + +struct _GtkVScaleClass +{ + GtkScaleClass parent_class; +}; + + +GType gtk_vscale_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_scale_new) +GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment); +GDK_DEPRECATED_IN_3_2_FOR(gtk_scale_new_with_range) +GtkWidget* gtk_vscale_new_with_range (gdouble min, + gdouble max, + gdouble step); + +G_END_DECLS + +#endif /* __GTK_VSCALE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h new file mode 100644 index 0000000..8f641a9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VSCROLLBAR_H__ +#define __GTK_VSCROLLBAR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VSCROLLBAR (gtk_vscrollbar_get_type ()) +#define GTK_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbar)) +#define GTK_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) +#define GTK_IS_VSCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSCROLLBAR)) +#define GTK_IS_VSCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSCROLLBAR)) +#define GTK_VSCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSCROLLBAR, GtkVScrollbarClass)) + + +typedef struct _GtkVScrollbar GtkVScrollbar; +typedef struct _GtkVScrollbarClass GtkVScrollbarClass; + +/** + * GtkVScrollbar: + * + * The #GtkVScrollbar struct contains private data and should be accessed + * using the functions below. + */ +struct _GtkVScrollbar +{ + GtkScrollbar scrollbar; +}; + +struct _GtkVScrollbarClass +{ + GtkScrollbarClass parent_class; +}; + + +GType gtk_vscrollbar_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_scrollbar_new) +GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment); + +G_END_DECLS + +#endif /* __GTK_VSCROLLBAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvseparator.h b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvseparator.h new file mode 100644 index 0000000..f0f4451 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/deprecated/gtkvseparator.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VSEPARATOR_H__ +#define __GTK_VSEPARATOR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VSEPARATOR (gtk_vseparator_get_type ()) +#define GTK_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparator)) +#define GTK_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) +#define GTK_IS_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VSEPARATOR)) +#define GTK_IS_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VSEPARATOR)) +#define GTK_VSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VSEPARATOR, GtkVSeparatorClass)) + + +typedef struct _GtkVSeparator GtkVSeparator; +typedef struct _GtkVSeparatorClass GtkVSeparatorClass; + +/** + * GtkVSeparator: + * + * The #GtkVSeparator struct contains private data only, and + * should be accessed using the functions below. + */ +struct _GtkVSeparator +{ + GtkSeparator separator; +}; + +struct _GtkVSeparatorClass +{ + GtkSeparatorClass parent_class; +}; + + +GType gtk_vseparator_get_type (void) G_GNUC_CONST; +GDK_DEPRECATED_IN_3_2_FOR(gtk_separator_new) +GtkWidget* gtk_vseparator_new (void); + +G_END_DECLS + +#endif /* __GTK_VSEPARATOR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtk.h b/gtk+-mingw/include/gtk-3.0/gtk/gtk.h new file mode 100644 index 0000000..de0181b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtk.h @@ -0,0 +1,250 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_H__ +#define __GTK_H__ + +#define __GTK_H_INSIDE__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#undef __GTK_H_INSIDE__ + +#endif /* __GTK_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaboutdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaboutdialog.h new file mode 100644 index 0000000..eae37f3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaboutdialog.h @@ -0,0 +1,169 @@ +/* GTK - The GIMP Toolkit + + Copyright (C) 2001 CodeFactory AB + Copyright (C) 2001 Anders Carlsson + Copyright (C) 2003, 2004 Matthias Clasen + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library. If not, see . + + Author: Anders Carlsson +*/ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ABOUT_DIALOG_H__ +#define __GTK_ABOUT_DIALOG_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ABOUT_DIALOG (gtk_about_dialog_get_type ()) +#define GTK_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialog)) +#define GTK_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) +#define GTK_IS_ABOUT_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ABOUT_DIALOG)) +#define GTK_IS_ABOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ABOUT_DIALOG)) +#define GTK_ABOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ABOUT_DIALOG, GtkAboutDialogClass)) + +typedef struct _GtkAboutDialog GtkAboutDialog; +typedef struct _GtkAboutDialogClass GtkAboutDialogClass; +typedef struct _GtkAboutDialogPrivate GtkAboutDialogPrivate; + +/** + * GtkLicense: + * @GTK_LICENSE_UNKNOWN: No license specified + * @GTK_LICENSE_CUSTOM: A license text is going to be specified by the + * developer + * @GTK_LICENSE_GPL_2_0: The GNU General Public License, version 2.0 + * @GTK_LICENSE_GPL_3_0: The GNU General Public License, version 3.0 + * @GTK_LICENSE_LGPL_2_1: The GNU Lesser General Public License, version 2.1 + * @GTK_LICENSE_LGPL_3_0: The GNU Lesser General Public License, version 3.0 + * @GTK_LICENSE_BSD: The BSD standard license + * @GTK_LICENSE_MIT_X11: The MIT/X11 standard license + * @GTK_LICENSE_ARTISTIC: The Artistic License, version 2.0 + * + * The type of license for an application. + * + * This enumeration can be expanded at later date. + * + * Since: 3.0 + */ +typedef enum { + GTK_LICENSE_UNKNOWN, + GTK_LICENSE_CUSTOM, + + GTK_LICENSE_GPL_2_0, + GTK_LICENSE_GPL_3_0, + + GTK_LICENSE_LGPL_2_1, + GTK_LICENSE_LGPL_3_0, + + GTK_LICENSE_BSD, + GTK_LICENSE_MIT_X11, + + GTK_LICENSE_ARTISTIC +} GtkLicense; + +/** + * GtkAboutDialog: + * + * The GtkAboutDialog struct contains + * only private fields and should not be directly accessed. + */ +struct _GtkAboutDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkAboutDialogPrivate *priv; +}; + +struct _GtkAboutDialogClass +{ + GtkDialogClass parent_class; + + gboolean (*activate_link) (GtkAboutDialog *dialog, + const gchar *uri); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_about_dialog_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_about_dialog_new (void); +void gtk_show_about_dialog (GtkWindow *parent, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; +const gchar * gtk_about_dialog_get_program_name (GtkAboutDialog *about); +void gtk_about_dialog_set_program_name (GtkAboutDialog *about, + const gchar *name); +const gchar * gtk_about_dialog_get_version (GtkAboutDialog *about); +void gtk_about_dialog_set_version (GtkAboutDialog *about, + const gchar *version); +const gchar * gtk_about_dialog_get_copyright (GtkAboutDialog *about); +void gtk_about_dialog_set_copyright (GtkAboutDialog *about, + const gchar *copyright); +const gchar * gtk_about_dialog_get_comments (GtkAboutDialog *about); +void gtk_about_dialog_set_comments (GtkAboutDialog *about, + const gchar *comments); +const gchar * gtk_about_dialog_get_license (GtkAboutDialog *about); +void gtk_about_dialog_set_license (GtkAboutDialog *about, + const gchar *license); +void gtk_about_dialog_set_license_type (GtkAboutDialog *about, + GtkLicense license_type); +GtkLicense gtk_about_dialog_get_license_type (GtkAboutDialog *about); + +gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog *about); +void gtk_about_dialog_set_wrap_license (GtkAboutDialog *about, + gboolean wrap_license); + +const gchar * gtk_about_dialog_get_website (GtkAboutDialog *about); +void gtk_about_dialog_set_website (GtkAboutDialog *about, + const gchar *website); +const gchar * gtk_about_dialog_get_website_label (GtkAboutDialog *about); +void gtk_about_dialog_set_website_label (GtkAboutDialog *about, + const gchar *website_label); +const gchar* const * gtk_about_dialog_get_authors (GtkAboutDialog *about); +void gtk_about_dialog_set_authors (GtkAboutDialog *about, + const gchar **authors); +const gchar* const * gtk_about_dialog_get_documenters (GtkAboutDialog *about); +void gtk_about_dialog_set_documenters (GtkAboutDialog *about, + const gchar **documenters); +const gchar* const * gtk_about_dialog_get_artists (GtkAboutDialog *about); +void gtk_about_dialog_set_artists (GtkAboutDialog *about, + const gchar **artists); +const gchar * gtk_about_dialog_get_translator_credits (GtkAboutDialog *about); +void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about, + const gchar *translator_credits); +GdkPixbuf *gtk_about_dialog_get_logo (GtkAboutDialog *about); +void gtk_about_dialog_set_logo (GtkAboutDialog *about, + GdkPixbuf *logo); +const gchar * gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about); +void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about, + const gchar *icon_name); +GDK_AVAILABLE_IN_3_4 +void gtk_about_dialog_add_credit_section (GtkAboutDialog *about, + const gchar *section_name, + const gchar **people); + +G_END_DECLS + +#endif /* __GTK_ABOUT_DIALOG_H__ */ + + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelgroup.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelgroup.h new file mode 100644 index 0000000..6274a44 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelgroup.h @@ -0,0 +1,209 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998, 2001 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACCEL_GROUP_H__ +#define __GTK_ACCEL_GROUP_H__ + + +#include +#include + +G_BEGIN_DECLS + + +/* --- type macros --- */ +#define GTK_TYPE_ACCEL_GROUP (gtk_accel_group_get_type ()) +#define GTK_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ACCEL_GROUP, GtkAccelGroup)) +#define GTK_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) +#define GTK_IS_ACCEL_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ACCEL_GROUP)) +#define GTK_IS_ACCEL_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_GROUP)) +#define GTK_ACCEL_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_GROUP, GtkAccelGroupClass)) + + +/* --- accel flags --- */ +typedef enum +{ + GTK_ACCEL_VISIBLE = 1 << 0, /* display in GtkAccelLabel? */ + GTK_ACCEL_LOCKED = 1 << 1, /* is it removable? */ + GTK_ACCEL_MASK = 0x07 +} GtkAccelFlags; + + +/* --- typedefs & structures --- */ +typedef struct _GtkAccelGroup GtkAccelGroup; +typedef struct _GtkAccelGroupClass GtkAccelGroupClass; +typedef struct _GtkAccelGroupPrivate GtkAccelGroupPrivate; +typedef struct _GtkAccelKey GtkAccelKey; +typedef struct _GtkAccelGroupEntry GtkAccelGroupEntry; +typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup *accel_group, + GObject *acceleratable, + guint keyval, + GdkModifierType modifier); + +/** + * GtkAccelGroupFindFunc: + * @key: + * @closure: + * @data: (closure): + * + * Since: 2.2 + */ +typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key, + GClosure *closure, + gpointer data); + +/** + * GtkAccelGroup: + * + * An object representing and maintaining a group of accelerators. + */ +struct _GtkAccelGroup +{ + GObject parent; + GtkAccelGroupPrivate *priv; +}; + +struct _GtkAccelGroupClass +{ + GObjectClass parent_class; + + void (*accel_changed) (GtkAccelGroup *accel_group, + guint keyval, + GdkModifierType modifier, + GClosure *accel_closure); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkAccelKey +{ + guint accel_key; + GdkModifierType accel_mods; + guint accel_flags : 16; +}; + + +/* -- Accelerator Groups --- */ +GType gtk_accel_group_get_type (void) G_GNUC_CONST; +GtkAccelGroup* gtk_accel_group_new (void); +gboolean gtk_accel_group_get_is_locked (GtkAccelGroup *accel_group); +GdkModifierType + gtk_accel_group_get_modifier_mask (GtkAccelGroup *accel_group); +void gtk_accel_group_lock (GtkAccelGroup *accel_group); +void gtk_accel_group_unlock (GtkAccelGroup *accel_group); +void gtk_accel_group_connect (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + GtkAccelFlags accel_flags, + GClosure *closure); +void gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group, + const gchar *accel_path, + GClosure *closure); +gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group, + GClosure *closure); +gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods); +gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group, + GQuark accel_quark, + GObject *acceleratable, + guint accel_key, + GdkModifierType accel_mods); + + +/* --- GtkActivatable glue --- */ +void _gtk_accel_group_attach (GtkAccelGroup *accel_group, + GObject *object); +void _gtk_accel_group_detach (GtkAccelGroup *accel_group, + GObject *object); +gboolean gtk_accel_groups_activate (GObject *object, + guint accel_key, + GdkModifierType accel_mods); +GSList* gtk_accel_groups_from_object (GObject *object); +GtkAccelKey* gtk_accel_group_find (GtkAccelGroup *accel_group, + GtkAccelGroupFindFunc find_func, + gpointer data); +GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure *closure); + + +/* --- Accelerators--- */ +gboolean gtk_accelerator_valid (guint keyval, + GdkModifierType modifiers) G_GNUC_CONST; +void gtk_accelerator_parse (const gchar *accelerator, + guint *accelerator_key, + GdkModifierType *accelerator_mods); +GDK_AVAILABLE_IN_3_4 +void gtk_accelerator_parse_with_keycode (const gchar *accelerator, + guint *accelerator_key, + guint **accelerator_codes, + GdkModifierType *accelerator_mods); +gchar* gtk_accelerator_name (guint accelerator_key, + GdkModifierType accelerator_mods); +GDK_AVAILABLE_IN_3_4 +gchar* gtk_accelerator_name_with_keycode (GdkDisplay *display, + guint accelerator_key, + guint keycode, + GdkModifierType accelerator_mods); +gchar* gtk_accelerator_get_label (guint accelerator_key, + GdkModifierType accelerator_mods); +GDK_AVAILABLE_IN_3_4 +gchar* gtk_accelerator_get_label_with_keycode (GdkDisplay *display, + guint accelerator_key, + guint keycode, + GdkModifierType accelerator_mods); +void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask); +GdkModifierType + gtk_accelerator_get_default_mod_mask (void); + + +/* --- internal --- */ +GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + guint *n_entries); + +void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, + GQuark accel_path_quark); +GSList* _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group); + +struct _GtkAccelGroupEntry +{ + GtkAccelKey key; + GClosure *closure; + GQuark accel_path_quark; +}; + + +G_END_DECLS + + +#endif /* __GTK_ACCEL_GROUP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaccellabel.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccellabel.h new file mode 100644 index 0000000..a1a9e02 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccellabel.h @@ -0,0 +1,101 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkAccelLabel: GtkLabel with accelerator monitoring facilities. + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACCEL_LABEL_H__ +#define __GTK_ACCEL_LABEL_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ()) +#define GTK_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel)) +#define GTK_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) +#define GTK_IS_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCEL_LABEL)) +#define GTK_IS_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_LABEL)) +#define GTK_ACCEL_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass)) + + +typedef struct _GtkAccelLabel GtkAccelLabel; +typedef struct _GtkAccelLabelClass GtkAccelLabelClass; +typedef struct _GtkAccelLabelPrivate GtkAccelLabelPrivate; + +/** + * GtkAccelLabel: + * + * The #GtkAccelLabel-struct struct contains private data only, and + * should be accessed using the functions below. + */ +struct _GtkAccelLabel +{ + GtkLabel label; + GtkAccelLabelPrivate *priv; +}; + +struct _GtkAccelLabelClass +{ + GtkLabelClass parent_class; + + gchar *signal_quote1; + gchar *signal_quote2; + gchar *mod_name_shift; + gchar *mod_name_control; + gchar *mod_name_alt; + gchar *mod_separator; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_accel_label_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_accel_label_new (const gchar *string); +GtkWidget* gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label); +guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label); +void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label, + GtkWidget *accel_widget); +void gtk_accel_label_set_accel_closure (GtkAccelLabel *accel_label, + GClosure *accel_closure); +gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label); + +/* private */ +gchar * _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass, + guint accelerator_key, + GdkModifierType accelerator_mods); + +G_END_DECLS + +#endif /* __GTK_ACCEL_LABEL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelmap.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelmap.h new file mode 100644 index 0000000..e77fb83 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccelmap.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998, 2001 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACCEL_MAP_H__ +#define __GTK_ACCEL_MAP_H__ + + +#include + +G_BEGIN_DECLS + +/* --- global GtkAccelMap object --- */ +#define GTK_TYPE_ACCEL_MAP (gtk_accel_map_get_type ()) +#define GTK_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_CAST ((accel_map), GTK_TYPE_ACCEL_MAP, GtkAccelMap)) +#define GTK_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) +#define GTK_IS_ACCEL_MAP(accel_map) (G_TYPE_CHECK_INSTANCE_TYPE ((accel_map), GTK_TYPE_ACCEL_MAP)) +#define GTK_IS_ACCEL_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_MAP)) +#define GTK_ACCEL_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_MAP, GtkAccelMapClass)) + +typedef struct _GtkAccelMap GtkAccelMap; +typedef struct _GtkAccelMapClass GtkAccelMapClass; + +/* --- notifier --- */ +/** + * GtkAccelMapForeach: + * @data: User data passed to gtk_accel_map_foreach() or + * gtk_accel_map_foreach_unfiltered() + * @accel_path: Accel path of the current accelerator + * @accel_key: Key of the current accelerator + * @accel_mods: Modifiers of the current accelerator + * @changed: Changed flag of the accelerator (if %TRUE, accelerator has changed + * during runtime and would need to be saved during an accelerator dump) + */ +typedef void (*GtkAccelMapForeach) (gpointer data, + const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods, + gboolean changed); + + +/* --- public API --- */ + +void gtk_accel_map_add_entry (const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods); +gboolean gtk_accel_map_lookup_entry (const gchar *accel_path, + GtkAccelKey *key); +gboolean gtk_accel_map_change_entry (const gchar *accel_path, + guint accel_key, + GdkModifierType accel_mods, + gboolean replace); +void gtk_accel_map_load (const gchar *file_name); +void gtk_accel_map_save (const gchar *file_name); +void gtk_accel_map_foreach (gpointer data, + GtkAccelMapForeach foreach_func); +void gtk_accel_map_load_fd (gint fd); +void gtk_accel_map_load_scanner (GScanner *scanner); +void gtk_accel_map_save_fd (gint fd); + +void gtk_accel_map_lock_path (const gchar *accel_path); +void gtk_accel_map_unlock_path (const gchar *accel_path); + +/* --- filter functions --- */ +void gtk_accel_map_add_filter (const gchar *filter_pattern); +void gtk_accel_map_foreach_unfiltered (gpointer data, + GtkAccelMapForeach foreach_func); + +/* --- notification --- */ +GType gtk_accel_map_get_type (void) G_GNUC_CONST; +GtkAccelMap *gtk_accel_map_get (void); + + +G_END_DECLS + +#endif /* __GTK_ACCEL_MAP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaccessible.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccessible.h new file mode 100644 index 0000000..5479224 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaccessible.h @@ -0,0 +1,75 @@ +/* GTK - The GIMP Toolkit + * Copyright 2001 Sun Microsystems Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACCESSIBLE_H__ +#define __GTK_ACCESSIBLE_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ACCESSIBLE (gtk_accessible_get_type ()) +#define GTK_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessible)) +#define GTK_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) +#define GTK_IS_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCESSIBLE)) +#define GTK_IS_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCESSIBLE)) +#define GTK_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCESSIBLE, GtkAccessibleClass)) + +typedef struct _GtkAccessible GtkAccessible; +typedef struct _GtkAccessiblePrivate GtkAccessiblePrivate; +typedef struct _GtkAccessibleClass GtkAccessibleClass; + +struct _GtkAccessible +{ + AtkObject parent; + + /*< private >*/ + GtkAccessiblePrivate *priv; +}; + +struct _GtkAccessibleClass +{ + AtkObjectClass parent_class; + + void (*connect_widget_destroyed) (GtkAccessible *accessible); + + void (*widget_set) (GtkAccessible *accessible); + void (*widget_unset) (GtkAccessible *accessible); + /* Padding for future expansion */ + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_accessible_get_type (void) G_GNUC_CONST; + +void gtk_accessible_set_widget (GtkAccessible *accessible, + GtkWidget *widget); +GtkWidget *gtk_accessible_get_widget (GtkAccessible *accessible); + +GDK_DEPRECATED_IN_3_4_FOR(gtk_accessible_set_widget) +void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible); + +G_END_DECLS + +#endif /* __GTK_ACCESSIBLE_H__ */ + + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaction.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaction.h new file mode 100644 index 0000000..944fb29 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaction.h @@ -0,0 +1,166 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Author: James Henstridge + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACTION_H__ +#define __GTK_ACTION_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTION (gtk_action_get_type ()) +#define GTK_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION, GtkAction)) +#define GTK_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACTION, GtkActionClass)) +#define GTK_IS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION)) +#define GTK_IS_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACTION)) +#define GTK_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_ACTION, GtkActionClass)) + +typedef struct _GtkAction GtkAction; +typedef struct _GtkActionClass GtkActionClass; +typedef struct _GtkActionPrivate GtkActionPrivate; + +struct _GtkAction +{ + GObject object; + + /*< private >*/ + GtkActionPrivate *private_data; +}; + +struct _GtkActionClass +{ + GObjectClass parent_class; + + /* activation signal */ + void (* activate) (GtkAction *action); + + GType menu_item_type; + GType toolbar_item_type; + + /* widget creation routines (not signals) */ + GtkWidget *(* create_menu_item) (GtkAction *action); + GtkWidget *(* create_tool_item) (GtkAction *action); + void (* connect_proxy) (GtkAction *action, + GtkWidget *proxy); + void (* disconnect_proxy) (GtkAction *action, + GtkWidget *proxy); + + GtkWidget *(* create_menu) (GtkAction *action); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_action_get_type (void) G_GNUC_CONST; +GtkAction *gtk_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +const gchar* gtk_action_get_name (GtkAction *action); +gboolean gtk_action_is_sensitive (GtkAction *action); +gboolean gtk_action_get_sensitive (GtkAction *action); +void gtk_action_set_sensitive (GtkAction *action, + gboolean sensitive); +gboolean gtk_action_is_visible (GtkAction *action); +gboolean gtk_action_get_visible (GtkAction *action); +void gtk_action_set_visible (GtkAction *action, + gboolean visible); +void gtk_action_activate (GtkAction *action); +GtkWidget * gtk_action_create_icon (GtkAction *action, + GtkIconSize icon_size); +GtkWidget * gtk_action_create_menu_item (GtkAction *action); +GtkWidget * gtk_action_create_tool_item (GtkAction *action); +GtkWidget * gtk_action_create_menu (GtkAction *action); +GSList * gtk_action_get_proxies (GtkAction *action); +void gtk_action_connect_accelerator (GtkAction *action); +void gtk_action_disconnect_accelerator (GtkAction *action); +const gchar *gtk_action_get_accel_path (GtkAction *action); +GClosure *gtk_action_get_accel_closure (GtkAction *action); +void gtk_action_block_activate (GtkAction *action); +void gtk_action_unblock_activate (GtkAction *action); + + +void _gtk_action_add_to_proxy_list (GtkAction *action, + GtkWidget *proxy); +void _gtk_action_remove_from_proxy_list(GtkAction *action, + GtkWidget *proxy); + +/* protected ... for use by child actions */ +void _gtk_action_emit_activate (GtkAction *action); + +/* protected ... for use by action groups */ +void gtk_action_set_accel_path (GtkAction *action, + const gchar *accel_path); +void gtk_action_set_accel_group (GtkAction *action, + GtkAccelGroup *accel_group); +void _gtk_action_sync_menu_visible (GtkAction *action, + GtkWidget *proxy, + gboolean empty); + +void gtk_action_set_label (GtkAction *action, + const gchar *label); +const gchar * gtk_action_get_label (GtkAction *action); +void gtk_action_set_short_label (GtkAction *action, + const gchar *short_label); +const gchar * gtk_action_get_short_label (GtkAction *action); +void gtk_action_set_tooltip (GtkAction *action, + const gchar *tooltip); +const gchar * gtk_action_get_tooltip (GtkAction *action); +void gtk_action_set_stock_id (GtkAction *action, + const gchar *stock_id); +const gchar * gtk_action_get_stock_id (GtkAction *action); +void gtk_action_set_gicon (GtkAction *action, + GIcon *icon); +GIcon *gtk_action_get_gicon (GtkAction *action); +void gtk_action_set_icon_name (GtkAction *action, + const gchar *icon_name); +const gchar * gtk_action_get_icon_name (GtkAction *action); +void gtk_action_set_visible_horizontal (GtkAction *action, + gboolean visible_horizontal); +gboolean gtk_action_get_visible_horizontal (GtkAction *action); +void gtk_action_set_visible_vertical (GtkAction *action, + gboolean visible_vertical); +gboolean gtk_action_get_visible_vertical (GtkAction *action); +void gtk_action_set_is_important (GtkAction *action, + gboolean is_important); +gboolean gtk_action_get_is_important (GtkAction *action); +void gtk_action_set_always_show_image (GtkAction *action, + gboolean always_show); +gboolean gtk_action_get_always_show_image (GtkAction *action); + + +G_END_DECLS + +#endif /* __GTK_ACTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkactionable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkactionable.h new file mode 100644 index 0000000..f8ea75e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkactionable.h @@ -0,0 +1,77 @@ +/* + * Copyright © 2012 Canonical Limited + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2 of the + * licence or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: Ryan Lortie + */ + +#ifndef __GTK_ACTIONABLE_H__ +#define __GTK_ACTIONABLE_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTIONABLE (gtk_actionable_get_type ()) +#define GTK_ACTIONABLE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ + GTK_TYPE_ACTIONABLE, GtkActionable)) +#define GTK_IS_ACTIONABLE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ + GTK_TYPE_ACTIONABLE)) +#define GTK_ACTIONABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), \ + GTK_TYPE_ACTIONABLE, GtkActionableInterface)) + +typedef struct _GtkActionableInterface GtkActionableInterface; +typedef struct _GtkActionable GtkActionable; + +struct _GtkActionableInterface +{ + GTypeInterface g_iface; + + const gchar * (* get_action_name) (GtkActionable *actionable); + void (* set_action_name) (GtkActionable *actionable, + const gchar *action_name); + GVariant * (* get_action_target_value) (GtkActionable *actionable); + void (* set_action_target_value) (GtkActionable *actionable, + GVariant *action_target_value); +}; + +GDK_AVAILABLE_IN_3_4 +GType gtk_actionable_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_4 +const gchar * gtk_actionable_get_action_name (GtkActionable *actionable); +GDK_AVAILABLE_IN_3_4 +void gtk_actionable_set_action_name (GtkActionable *actionable, + const gchar *action_name); + +GDK_AVAILABLE_IN_3_4 +GVariant * gtk_actionable_get_action_target_value (GtkActionable *actionable); +GDK_AVAILABLE_IN_3_4 +void gtk_actionable_set_action_target_value (GtkActionable *actionable, + GVariant *target_value); + +GDK_AVAILABLE_IN_3_4 +void gtk_actionable_set_action_target (GtkActionable *actionable, + const gchar *format_string, + ...); + +GDK_AVAILABLE_IN_3_4 +void gtk_actionable_set_detailed_action_name (GtkActionable *actionable, + const gchar *detailed_action_name); + +G_END_DECLS + +#endif /* __GTK_ACTIONABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkactiongroup.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkactiongroup.h new file mode 100644 index 0000000..5f1658a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkactiongroup.h @@ -0,0 +1,232 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Author: James Henstridge + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACTION_GROUP_H__ +#define __GTK_ACTION_GROUP_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTION_GROUP (gtk_action_group_get_type ()) +#define GTK_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTION_GROUP, GtkActionGroup)) +#define GTK_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) +#define GTK_IS_ACTION_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTION_GROUP)) +#define GTK_IS_ACTION_GROUP_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_ACTION_GROUP)) +#define GTK_ACTION_GROUP_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_ACTION_GROUP, GtkActionGroupClass)) + +typedef struct _GtkActionGroup GtkActionGroup; +typedef struct _GtkActionGroupPrivate GtkActionGroupPrivate; +typedef struct _GtkActionGroupClass GtkActionGroupClass; +typedef struct _GtkActionEntry GtkActionEntry; +typedef struct _GtkToggleActionEntry GtkToggleActionEntry; +typedef struct _GtkRadioActionEntry GtkRadioActionEntry; + +struct _GtkActionGroup +{ + GObject parent; + + /*< private >*/ + GtkActionGroupPrivate *priv; +}; + +struct _GtkActionGroupClass +{ + GObjectClass parent_class; + + GtkAction *(* get_action) (GtkActionGroup *action_group, + const gchar *action_name); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkActionEntry: + * @name: The name of the action. + * @stock_id: The stock id for the action, or the name of an icon from the + * icon theme. + * @label: The label for the action. This field should typically be marked + * for translation, see gtk_action_group_set_translation_domain(). If + * @label is %NULL, the label of the stock item with id @stock_id is used. + * @accelerator: The accelerator for the action, in the format understood by + * gtk_accelerator_parse(). + * @tooltip: The tooltip for the action. This field should typically be + * marked for translation, see gtk_action_group_set_translation_domain(). + * @callback: The function to call when the action is activated. + * + * #GtkActionEntry structs are used with gtk_action_group_add_actions() to + * construct actions. + */ +struct _GtkActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + GCallback callback; +}; + +/** + * GtkToggleActionEntry: + * @name: The name of the action. + * @stock_id: The stock id for the action, or the name of an icon from the + * icon theme. + * @label: The label for the action. This field should typically be marked + * for translation, see gtk_action_group_set_translation_domain(). + * @accelerator: The accelerator for the action, in the format understood by + * gtk_accelerator_parse(). + * @tooltip: The tooltip for the action. This field should typically be + * marked for translation, see gtk_action_group_set_translation_domain(). + * @callback: The function to call when the action is activated. + * @is_active: The initial state of the toggle action. + * + * #GtkToggleActionEntry structs are used with + * gtk_action_group_add_toggle_actions() to construct toggle actions. + */ +struct _GtkToggleActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + GCallback callback; + gboolean is_active; +}; + +/** + * GtkRadioActionEntry: + * @name: The name of the action. + * @stock_id: The stock id for the action, or the name of an icon from the + * icon theme. + * @label: The label for the action. This field should typically be marked + * for translation, see gtk_action_group_set_translation_domain(). + * @accelerator: The accelerator for the action, in the format understood by + * gtk_accelerator_parse(). + * @tooltip: The tooltip for the action. This field should typically be + * marked for translation, see gtk_action_group_set_translation_domain(). + * @value: The value to set on the radio action. See + * gtk_radio_action_get_current_value(). + * + * #GtkRadioActionEntry structs are used with + * gtk_action_group_add_radio_actions() to construct groups of radio actions. + */ +struct _GtkRadioActionEntry +{ + const gchar *name; + const gchar *stock_id; + const gchar *label; + const gchar *accelerator; + const gchar *tooltip; + gint value; +}; + +GType gtk_action_group_get_type (void) G_GNUC_CONST; +GtkActionGroup *gtk_action_group_new (const gchar *name); +const gchar *gtk_action_group_get_name (GtkActionGroup *action_group); +gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group); +void gtk_action_group_set_sensitive (GtkActionGroup *action_group, + gboolean sensitive); +gboolean gtk_action_group_get_visible (GtkActionGroup *action_group); +void gtk_action_group_set_visible (GtkActionGroup *action_group, + gboolean visible); +GtkAction *gtk_action_group_get_action (GtkActionGroup *action_group, + const gchar *action_name); +GList *gtk_action_group_list_actions (GtkActionGroup *action_group); +void gtk_action_group_add_action (GtkActionGroup *action_group, + GtkAction *action); +void gtk_action_group_add_action_with_accel (GtkActionGroup *action_group, + GtkAction *action, + const gchar *accelerator); +void gtk_action_group_remove_action (GtkActionGroup *action_group, + GtkAction *action); +void gtk_action_group_add_actions (GtkActionGroup *action_group, + const GtkActionEntry *entries, + guint n_entries, + gpointer user_data); +void gtk_action_group_add_toggle_actions (GtkActionGroup *action_group, + const GtkToggleActionEntry *entries, + guint n_entries, + gpointer user_data); +void gtk_action_group_add_radio_actions (GtkActionGroup *action_group, + const GtkRadioActionEntry *entries, + guint n_entries, + gint value, + GCallback on_change, + gpointer user_data); +void gtk_action_group_add_actions_full (GtkActionGroup *action_group, + const GtkActionEntry *entries, + guint n_entries, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_group, + const GtkToggleActionEntry *entries, + guint n_entries, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group, + const GtkRadioActionEntry *entries, + guint n_entries, + gint value, + GCallback on_change, + gpointer user_data, + GDestroyNotify destroy); +void gtk_action_group_set_translate_func (GtkActionGroup *action_group, + GtkTranslateFunc func, + gpointer data, + GDestroyNotify notify); +void gtk_action_group_set_translation_domain (GtkActionGroup *action_group, + const gchar *domain); +const gchar * gtk_action_group_translate_string (GtkActionGroup *action_group, + const gchar *string); + +/* Protected for use by GtkAction */ +void _gtk_action_group_emit_connect_proxy (GtkActionGroup *action_group, + GtkAction *action, + GtkWidget *proxy); +void _gtk_action_group_emit_disconnect_proxy (GtkActionGroup *action_group, + GtkAction *action, + GtkWidget *proxy); +void _gtk_action_group_emit_pre_activate (GtkActionGroup *action_group, + GtkAction *action); +void _gtk_action_group_emit_post_activate (GtkActionGroup *action_group, + GtkAction *action); + +G_END_DECLS + +#endif /* __GTK_ACTION_GROUP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkactivatable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkactivatable.h new file mode 100644 index 0000000..6b13c17 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkactivatable.h @@ -0,0 +1,85 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2008 Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ACTIVATABLE_H__ +#define __GTK_ACTIVATABLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ACTIVATABLE (gtk_activatable_get_type ()) +#define GTK_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatable)) +#define GTK_ACTIVATABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatableIface)) +#define GTK_IS_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACTIVATABLE)) +#define GTK_ACTIVATABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_ACTIVATABLE, GtkActivatableIface)) + + +typedef struct _GtkActivatable GtkActivatable; /* Dummy typedef */ +typedef struct _GtkActivatableIface GtkActivatableIface; + + +/** + * GtkActivatableIface: + * @update: Called to update the activatable when its related action's properties change. + * You must check the #GtkActivatable:use-action-appearance property only apply action + * properties that are meant to effect the appearance accordingly. + * @sync_action_properties: Called to update the activatable completely, this is called internally when + * #GtkActivatable:related-action property is set or unset and by the implementor when + * #GtkActivatable:use-action-appearance changes.This method can be called + * with a %NULL action at times + * + * Since: 2.16 + */ + +struct _GtkActivatableIface +{ + GTypeInterface g_iface; + + /* virtual table */ + void (* update) (GtkActivatable *activatable, + GtkAction *action, + const gchar *property_name); + void (* sync_action_properties) (GtkActivatable *activatable, + GtkAction *action); +}; + + +GType gtk_activatable_get_type (void) G_GNUC_CONST; + +void gtk_activatable_sync_action_properties (GtkActivatable *activatable, + GtkAction *action); + +void gtk_activatable_set_related_action (GtkActivatable *activatable, + GtkAction *action); +GtkAction *gtk_activatable_get_related_action (GtkActivatable *activatable); + +void gtk_activatable_set_use_action_appearance (GtkActivatable *activatable, + gboolean use_appearance); +gboolean gtk_activatable_get_use_action_appearance (GtkActivatable *activatable); + +/* For use in activatable implementations */ +void gtk_activatable_do_set_related_action (GtkActivatable *activatable, + GtkAction *action); + +G_END_DECLS + +#endif /* __GTK_ACTIVATABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkadjustment.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkadjustment.h new file mode 100644 index 0000000..8af9685 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkadjustment.h @@ -0,0 +1,121 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ADJUSTMENT_H__ +#define __GTK_ADJUSTMENT_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ADJUSTMENT (gtk_adjustment_get_type ()) +#define GTK_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustment)) +#define GTK_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) +#define GTK_IS_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ADJUSTMENT)) +#define GTK_IS_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ADJUSTMENT)) +#define GTK_ADJUSTMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass)) + + +typedef struct _GtkAdjustmentPrivate GtkAdjustmentPrivate; +typedef struct _GtkAdjustmentClass GtkAdjustmentClass; + +/** + * GtkAdjustment: + * + * The #GtkAdjustment struct contains only private fields and + * should not be directly accessed. + */ +struct _GtkAdjustment +{ + GInitiallyUnowned parent_instance; + + GtkAdjustmentPrivate *priv; +}; + +struct _GtkAdjustmentClass +{ + GInitiallyUnownedClass parent_class; + + void (* changed) (GtkAdjustment *adjustment); + void (* value_changed) (GtkAdjustment *adjustment); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_adjustment_get_type (void) G_GNUC_CONST; +GtkAdjustment* gtk_adjustment_new (gdouble value, + gdouble lower, + gdouble upper, + gdouble step_increment, + gdouble page_increment, + gdouble page_size); + +void gtk_adjustment_changed (GtkAdjustment *adjustment); +void gtk_adjustment_value_changed (GtkAdjustment *adjustment); +void gtk_adjustment_clamp_page (GtkAdjustment *adjustment, + gdouble lower, + gdouble upper); + +gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment); +void gtk_adjustment_set_value (GtkAdjustment *adjustment, + gdouble value); +gdouble gtk_adjustment_get_lower (GtkAdjustment *adjustment); +void gtk_adjustment_set_lower (GtkAdjustment *adjustment, + gdouble lower); +gdouble gtk_adjustment_get_upper (GtkAdjustment *adjustment); +void gtk_adjustment_set_upper (GtkAdjustment *adjustment, + gdouble upper); +gdouble gtk_adjustment_get_step_increment (GtkAdjustment *adjustment); +void gtk_adjustment_set_step_increment (GtkAdjustment *adjustment, + gdouble step_increment); +gdouble gtk_adjustment_get_page_increment (GtkAdjustment *adjustment); +void gtk_adjustment_set_page_increment (GtkAdjustment *adjustment, + gdouble page_increment); +gdouble gtk_adjustment_get_page_size (GtkAdjustment *adjustment); +void gtk_adjustment_set_page_size (GtkAdjustment *adjustment, + gdouble page_size); + +void gtk_adjustment_configure (GtkAdjustment *adjustment, + gdouble value, + gdouble lower, + gdouble upper, + gdouble step_increment, + gdouble page_increment, + gdouble page_size); +GDK_AVAILABLE_IN_3_2 +gdouble gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment); + +G_END_DECLS + +#endif /* __GTK_ADJUSTMENT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkalignment.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkalignment.h new file mode 100644 index 0000000..9720cbc --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkalignment.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ALIGNMENT_H__ +#define __GTK_ALIGNMENT_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_ALIGNMENT (gtk_alignment_get_type ()) +#define GTK_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ALIGNMENT, GtkAlignment)) +#define GTK_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) +#define GTK_IS_ALIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ALIGNMENT)) +#define GTK_IS_ALIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ALIGNMENT)) +#define GTK_ALIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ALIGNMENT, GtkAlignmentClass)) + + +typedef struct _GtkAlignment GtkAlignment; +typedef struct _GtkAlignmentPrivate GtkAlignmentPrivate; +typedef struct _GtkAlignmentClass GtkAlignmentClass; + +struct _GtkAlignment +{ + GtkBin bin; + + /*< private >*/ + GtkAlignmentPrivate *priv; +}; + +struct _GtkAlignmentClass +{ + GtkBinClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_alignment_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_alignment_new (gfloat xalign, + gfloat yalign, + gfloat xscale, + gfloat yscale); +void gtk_alignment_set (GtkAlignment *alignment, + gfloat xalign, + gfloat yalign, + gfloat xscale, + gfloat yscale); + +void gtk_alignment_set_padding (GtkAlignment *alignment, + guint padding_top, + guint padding_bottom, + guint padding_left, + guint padding_right); + +void gtk_alignment_get_padding (GtkAlignment *alignment, + guint *padding_top, + guint *padding_bottom, + guint *padding_left, + guint *padding_right); + +G_END_DECLS + + +#endif /* __GTK_ALIGNMENT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooser.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooser.h new file mode 100644 index 0000000..29143e8 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooser.h @@ -0,0 +1,49 @@ +/* + * gtkappchooser.h: app-chooser interface + * + * Copyright (C) 2010 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: Cosimo Cecchi + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_APP_CHOOSER_H__ +#define __GTK_APP_CHOOSER_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APP_CHOOSER (gtk_app_chooser_get_type ()) +#define GTK_APP_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER, GtkAppChooser)) +#define GTK_IS_APP_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER)) + +typedef struct _GtkAppChooser GtkAppChooser; + +GType gtk_app_chooser_get_type (void) G_GNUC_CONST; + +GAppInfo * gtk_app_chooser_get_app_info (GtkAppChooser *self); +gchar * gtk_app_chooser_get_content_type (GtkAppChooser *self); +void gtk_app_chooser_refresh (GtkAppChooser *self); + +G_END_DECLS + +#endif /* __GTK_APP_CHOOSER_H__ */ + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserbutton.h new file mode 100644 index 0000000..fae9800 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserbutton.h @@ -0,0 +1,89 @@ +/* + * gtkappchooserbutton.h: an app-chooser combobox + * + * Copyright (C) 2010 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: Cosimo Cecchi + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_APP_CHOOSER_BUTTON_H__ +#define __GTK_APP_CHOOSER_BUTTON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APP_CHOOSER_BUTTON (gtk_app_chooser_button_get_type ()) +#define GTK_APP_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButton)) +#define GTK_APP_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass)) +#define GTK_IS_APP_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_BUTTON)) +#define GTK_IS_APP_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_BUTTON)) +#define GTK_APP_CHOOSER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass)) + +typedef struct _GtkAppChooserButton GtkAppChooserButton; +typedef struct _GtkAppChooserButtonClass GtkAppChooserButtonClass; +typedef struct _GtkAppChooserButtonPrivate GtkAppChooserButtonPrivate; + +struct _GtkAppChooserButton { + GtkComboBox parent; + + /*< private >*/ + GtkAppChooserButtonPrivate *priv; +}; + +struct _GtkAppChooserButtonClass { + GtkComboBoxClass parent_class; + + void (* custom_item_activated) (GtkAppChooserButton *self, + const gchar *item_name); + + /* padding for future class expansion */ + gpointer padding[16]; +}; + +GType gtk_app_chooser_button_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_app_chooser_button_new (const gchar *content_type); + +void gtk_app_chooser_button_append_separator (GtkAppChooserButton *self); +void gtk_app_chooser_button_append_custom_item (GtkAppChooserButton *self, + const gchar *name, + const gchar *label, + GIcon *icon); +void gtk_app_chooser_button_set_active_custom_item (GtkAppChooserButton *self, + const gchar *name); + +void gtk_app_chooser_button_set_show_dialog_item (GtkAppChooserButton *self, + gboolean setting); +gboolean gtk_app_chooser_button_get_show_dialog_item (GtkAppChooserButton *self); +void gtk_app_chooser_button_set_heading (GtkAppChooserButton *self, + const gchar *heading); +const gchar * + gtk_app_chooser_button_get_heading (GtkAppChooserButton *self); +GDK_AVAILABLE_IN_3_2 +void gtk_app_chooser_button_set_show_default_item (GtkAppChooserButton *self, + gboolean setting); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_app_chooser_button_get_show_default_item (GtkAppChooserButton *self); + +G_END_DECLS + +#endif /* __GTK_APP_CHOOSER_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserdialog.h new file mode 100644 index 0000000..1958ec3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserdialog.h @@ -0,0 +1,78 @@ +/* + * gtkappchooserdialog.h: an app-chooser dialog + * + * Copyright (C) 2004 Novell, Inc. + * Copyright (C) 2007, 2010 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: Dave Camp + * Alexander Larsson + * Cosimo Cecchi + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_APP_CHOOSER_DIALOG_H__ +#define __GTK_APP_CHOOSER_DIALOG_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APP_CHOOSER_DIALOG (gtk_app_chooser_dialog_get_type ()) +#define GTK_APP_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialog)) +#define GTK_APP_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialogClass)) +#define GTK_IS_APP_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_DIALOG)) +#define GTK_IS_APP_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_DIALOG)) +#define GTK_APP_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialogClass)) + +typedef struct _GtkAppChooserDialog GtkAppChooserDialog; +typedef struct _GtkAppChooserDialogClass GtkAppChooserDialogClass; +typedef struct _GtkAppChooserDialogPrivate GtkAppChooserDialogPrivate; + +struct _GtkAppChooserDialog { + GtkDialog parent; + + /*< private >*/ + GtkAppChooserDialogPrivate *priv; +}; + +struct _GtkAppChooserDialogClass { + GtkDialogClass parent_class; + + /* padding for future class expansion */ + gpointer padding[16]; +}; + +GType gtk_app_chooser_dialog_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_app_chooser_dialog_new (GtkWindow *parent, + GtkDialogFlags flags, + GFile *file); +GtkWidget * gtk_app_chooser_dialog_new_for_content_type (GtkWindow *parent, + GtkDialogFlags flags, + const gchar *content_type); + +GtkWidget * gtk_app_chooser_dialog_get_widget (GtkAppChooserDialog *self); +void gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *self, + const gchar *heading); +const gchar * gtk_app_chooser_dialog_get_heading (GtkAppChooserDialog *self); + +G_END_DECLS + +#endif /* __GTK_APP_CHOOSER_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserwidget.h new file mode 100644 index 0000000..a80555e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkappchooserwidget.h @@ -0,0 +1,103 @@ +/* + * gtkappchooserwidget.h: an app-chooser widget + * + * Copyright (C) 2004 Novell, Inc. + * Copyright (C) 2007, 2010 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: Dave Camp + * Alexander Larsson + * Cosimo Cecchi + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_APP_CHOOSER_WIDGET_H__ +#define __GTK_APP_CHOOSER_WIDGET_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APP_CHOOSER_WIDGET (gtk_app_chooser_widget_get_type ()) +#define GTK_APP_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidget)) +#define GTK_APP_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidgetClass)) +#define GTK_IS_APP_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APP_CHOOSER_WIDGET)) +#define GTK_IS_APP_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APP_CHOOSER_WIDGET)) +#define GTK_APP_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidgetClass)) + +typedef struct _GtkAppChooserWidget GtkAppChooserWidget; +typedef struct _GtkAppChooserWidgetClass GtkAppChooserWidgetClass; +typedef struct _GtkAppChooserWidgetPrivate GtkAppChooserWidgetPrivate; + +struct _GtkAppChooserWidget { + GtkBox parent; + + /*< private >*/ + GtkAppChooserWidgetPrivate *priv; +}; + +struct _GtkAppChooserWidgetClass { + GtkBoxClass parent_class; + + void (* application_selected) (GtkAppChooserWidget *self, + GAppInfo *app_info); + + void (* application_activated) (GtkAppChooserWidget *self, + GAppInfo *app_info); + + void (* populate_popup) (GtkAppChooserWidget *self, + GtkMenu *menu, + GAppInfo *app_info); + + /* padding for future class expansion */ + gpointer padding[16]; +}; + +GType gtk_app_chooser_widget_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_app_chooser_widget_new (const gchar *content_type); + +void gtk_app_chooser_widget_set_show_default (GtkAppChooserWidget *self, + gboolean setting); +gboolean gtk_app_chooser_widget_get_show_default (GtkAppChooserWidget *self); + +void gtk_app_chooser_widget_set_show_recommended (GtkAppChooserWidget *self, + gboolean setting); +gboolean gtk_app_chooser_widget_get_show_recommended (GtkAppChooserWidget *self); + +void gtk_app_chooser_widget_set_show_fallback (GtkAppChooserWidget *self, + gboolean setting); +gboolean gtk_app_chooser_widget_get_show_fallback (GtkAppChooserWidget *self); + +void gtk_app_chooser_widget_set_show_other (GtkAppChooserWidget *self, + gboolean setting); +gboolean gtk_app_chooser_widget_get_show_other (GtkAppChooserWidget *self); + +void gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self, + gboolean setting); +gboolean gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self); + +void gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *self, + const gchar *text); +const gchar * gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self); + +G_END_DECLS + +#endif /* __GTK_APP_CHOOSER_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkapplication.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkapplication.h new file mode 100644 index 0000000..21cd389 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkapplication.h @@ -0,0 +1,125 @@ +/* + * Copyright © 2010 Codethink Limited + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the licence, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Author: Ryan Lortie + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_APPLICATION_H__ +#define __GTK_APPLICATION_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APPLICATION (gtk_application_get_type ()) +#define GTK_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APPLICATION, GtkApplication)) +#define GTK_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APPLICATION, GtkApplicationClass)) +#define GTK_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_APPLICATION)) +#define GTK_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_APPLICATION)) +#define GTK_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_APPLICATION, GtkApplicationClass)) + +typedef struct _GtkApplication GtkApplication; +typedef struct _GtkApplicationClass GtkApplicationClass; +typedef struct _GtkApplicationPrivate GtkApplicationPrivate; + +struct _GtkApplication +{ + GApplication parent; + + /*< private >*/ + GtkApplicationPrivate *priv; +}; + +struct _GtkApplicationClass +{ + GApplicationClass parent_class; + + void (*window_added) (GtkApplication *application, + GtkWindow *window); + void (*window_removed) (GtkApplication *application, + GtkWindow *window); + + /*< private >*/ + gpointer padding[12]; +}; + +GType gtk_application_get_type (void) G_GNUC_CONST; + +GtkApplication * gtk_application_new (const gchar *application_id, + GApplicationFlags flags); + +void gtk_application_add_window (GtkApplication *application, + GtkWindow *window); + +void gtk_application_remove_window (GtkApplication *application, + GtkWindow *window); +GList * gtk_application_get_windows (GtkApplication *application); + +GDK_AVAILABLE_IN_3_4 +GMenuModel * gtk_application_get_app_menu (GtkApplication *application); +GDK_AVAILABLE_IN_3_4 +void gtk_application_set_app_menu (GtkApplication *application, + GMenuModel *app_menu); + +GDK_AVAILABLE_IN_3_4 +GMenuModel * gtk_application_get_menubar (GtkApplication *application); +GDK_AVAILABLE_IN_3_4 +void gtk_application_set_menubar (GtkApplication *application, + GMenuModel *menubar); + +GDK_AVAILABLE_IN_3_4 +void gtk_application_add_accelerator (GtkApplication *application, + const gchar *accelerator, + const gchar *action_name, + GVariant *parameter); +GDK_AVAILABLE_IN_3_4 +void gtk_application_remove_accelerator (GtkApplication *application, + const gchar *action_name, + GVariant *parameter); + +typedef enum +{ + GTK_APPLICATION_INHIBIT_LOGOUT = (1 << 0), + GTK_APPLICATION_INHIBIT_SWITCH = (1 << 1), + GTK_APPLICATION_INHIBIT_SUSPEND = (1 << 2), + GTK_APPLICATION_INHIBIT_IDLE = (1 << 3) +} GtkApplicationInhibitFlags; + +GDK_AVAILABLE_IN_3_4 +guint gtk_application_inhibit (GtkApplication *application, + GtkWindow *window, + GtkApplicationInhibitFlags flags, + const gchar *reason); +GDK_AVAILABLE_IN_3_4 +void gtk_application_uninhibit (GtkApplication *application, + guint cookie); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_application_is_inhibited (GtkApplication *application, + GtkApplicationInhibitFlags flags); + +GDK_AVAILABLE_IN_3_6 +GtkWindow * gtk_application_get_window_by_id (GtkApplication *application, + guint id); + +G_END_DECLS + +#endif /* __GTK_APPLICATION_H__ */ + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkapplicationwindow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkapplicationwindow.h new file mode 100644 index 0000000..32fd068 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkapplicationwindow.h @@ -0,0 +1,75 @@ +/* + * Copyright © 2011 Canonical Limited + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the licence, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Author: Ryan Lortie + */ + +#ifndef __GTK_APPLICATION_WINDOW_H__ +#define __GTK_APPLICATION_WINDOW_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_APPLICATION_WINDOW (gtk_application_window_get_type ()) +#define GTK_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ + GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindow)) +#define GTK_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \ + GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass)) +#define GTK_IS_APPLICATION_WINDOW(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ + GTK_TYPE_APPLICATION_WINDOW)) +#define GTK_IS_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \ + GTK_TYPE_APPLICATION_WINDOW)) +#define GTK_APPLICATION_WINDOW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \ + GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass)) + +typedef struct _GtkApplicationWindowPrivate GtkApplicationWindowPrivate; +typedef struct _GtkApplicationWindowClass GtkApplicationWindowClass; +typedef struct _GtkApplicationWindow GtkApplicationWindow; + +struct _GtkApplicationWindow +{ + GtkWindow parent_instance; + + /*< private >*/ + GtkApplicationWindowPrivate *priv; +}; + +struct _GtkApplicationWindowClass +{ + GtkWindowClass parent_class; + + /*< private >*/ + gpointer padding[14]; +}; + +GDK_AVAILABLE_IN_3_4 +GType gtk_application_window_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_4 +GtkWidget * gtk_application_window_new (GtkApplication *application); + +GDK_AVAILABLE_IN_3_4 +void gtk_application_window_set_show_menubar (GtkApplicationWindow *window, + gboolean show_menubar); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_application_window_get_show_menubar (GtkApplicationWindow *window); + +GDK_AVAILABLE_IN_3_6 +guint gtk_application_window_get_id (GtkApplicationWindow *window); + +G_END_DECLS + +#endif /* __GTK_APPLICATION_WINDOW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkarrow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkarrow.h new file mode 100644 index 0000000..009e2c1 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkarrow.h @@ -0,0 +1,81 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ARROW_H__ +#define __GTK_ARROW_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_ARROW (gtk_arrow_get_type ()) +#define GTK_ARROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ARROW, GtkArrow)) +#define GTK_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ARROW, GtkArrowClass)) +#define GTK_IS_ARROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ARROW)) +#define GTK_IS_ARROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ARROW)) +#define GTK_ARROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ARROW, GtkArrowClass)) + +typedef struct _GtkArrow GtkArrow; +typedef struct _GtkArrowPrivate GtkArrowPrivate; +typedef struct _GtkArrowClass GtkArrowClass; + +struct _GtkArrow +{ + GtkMisc misc; + + /*< private >*/ + GtkArrowPrivate *priv; +}; + +struct _GtkArrowClass +{ + GtkMiscClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_arrow_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, + GtkShadowType shadow_type); +void gtk_arrow_set (GtkArrow *arrow, + GtkArrowType arrow_type, + GtkShadowType shadow_type); + + +G_END_DECLS + + +#endif /* __GTK_ARROW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkaspectframe.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkaspectframe.h new file mode 100644 index 0000000..5585561 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkaspectframe.h @@ -0,0 +1,84 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ASPECT_FRAME_H__ +#define __GTK_ASPECT_FRAME_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_ASPECT_FRAME (gtk_aspect_frame_get_type ()) +#define GTK_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrame)) +#define GTK_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) +#define GTK_IS_ASPECT_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ASPECT_FRAME)) +#define GTK_IS_ASPECT_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ASPECT_FRAME)) +#define GTK_ASPECT_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ASPECT_FRAME, GtkAspectFrameClass)) + +typedef struct _GtkAspectFrame GtkAspectFrame; +typedef struct _GtkAspectFramePrivate GtkAspectFramePrivate; +typedef struct _GtkAspectFrameClass GtkAspectFrameClass; + +struct _GtkAspectFrame +{ + GtkFrame frame; + + /*< private >*/ + GtkAspectFramePrivate *priv; +}; + +struct _GtkAspectFrameClass +{ + GtkFrameClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_aspect_frame_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_aspect_frame_new (const gchar *label, + gfloat xalign, + gfloat yalign, + gfloat ratio, + gboolean obey_child); +void gtk_aspect_frame_set (GtkAspectFrame *aspect_frame, + gfloat xalign, + gfloat yalign, + gfloat ratio, + gboolean obey_child); + + +G_END_DECLS + +#endif /* __GTK_ASPECT_FRAME_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkassistant.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkassistant.h new file mode 100644 index 0000000..03764af --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkassistant.h @@ -0,0 +1,188 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1999 Red Hat, Inc. + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2003 Matthias Clasen + * Copyright (C) 2005 Carlos Garnacho Parro + * + * All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ASSISTANT_H__ +#define __GTK_ASSISTANT_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ASSISTANT (gtk_assistant_get_type ()) +#define GTK_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_ASSISTANT, GtkAssistant)) +#define GTK_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_ASSISTANT, GtkAssistantClass)) +#define GTK_IS_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_ASSISTANT)) +#define GTK_IS_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_ASSISTANT)) +#define GTK_ASSISTANT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_ASSISTANT, GtkAssistantClass)) + +/** + * GtkAssistantPageType: + * @GTK_ASSISTANT_PAGE_CONTENT: The page has regular contents. Both the + * Back and forward buttons will be shown. + * @GTK_ASSISTANT_PAGE_INTRO: The page contains an introduction to the + * assistant task. Only the Forward button will be shown if there is a + * next page. + * @GTK_ASSISTANT_PAGE_CONFIRM: The page lets the user confirm or deny the + * changes. The Back and Apply buttons will be shown. + * @GTK_ASSISTANT_PAGE_SUMMARY: The page informs the user of the changes + * done. Only the Close button will be shown. + * @GTK_ASSISTANT_PAGE_PROGRESS: Used for tasks that take a long time to + * complete, blocks the assistant until the page is marked as complete. + * Only the back button will be shown. + * @GTK_ASSISTANT_PAGE_CUSTOM: Used for when other page types are not + * appropriate. No buttons will be shown, and the application must + * add its own buttons through gtk_assistant_add_action_widget(). + * + * An enum for determining the page role inside the #GtkAssistant. It's + * used to handle buttons sensitivity and visibility. + * + * Note that an assistant needs to end its page flow with a page of type + * %GTK_ASSISTANT_PAGE_CONFIRM, %GTK_ASSISTANT_PAGE_SUMMARY or + * %GTK_ASSISTANT_PAGE_PROGRESS to be correct. + * + * The Cancel button will only be shown if the page isn't "committed". + * See gtk_assistant_commit() for details. + */ +typedef enum +{ + GTK_ASSISTANT_PAGE_CONTENT, + GTK_ASSISTANT_PAGE_INTRO, + GTK_ASSISTANT_PAGE_CONFIRM, + GTK_ASSISTANT_PAGE_SUMMARY, + GTK_ASSISTANT_PAGE_PROGRESS, + GTK_ASSISTANT_PAGE_CUSTOM +} GtkAssistantPageType; + +typedef struct _GtkAssistant GtkAssistant; +typedef struct _GtkAssistantPrivate GtkAssistantPrivate; +typedef struct _GtkAssistantClass GtkAssistantClass; + +struct _GtkAssistant +{ + GtkWindow parent; + + /*< private >*/ + GtkAssistantPrivate *priv; +}; + +struct _GtkAssistantClass +{ + GtkWindowClass parent_class; + + void (* prepare) (GtkAssistant *assistant, GtkWidget *page); + void (* apply) (GtkAssistant *assistant); + void (* close) (GtkAssistant *assistant); + void (* cancel) (GtkAssistant *assistant); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); +}; + +/** + * GtkAssistantPageFunc: + * @current_page: The page number used to calculate the next page. + * @data: (closure): user data. + * + * A function used by gtk_assistant_set_forward_page_func() to know which + * is the next page given a current one. It's called both for computing the + * next page when the user presses the "forward" button and for handling + * the behavior of the "last" button. + * + * Returns: The next page number. + */ +typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data); + +GType gtk_assistant_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_assistant_new (void); +void gtk_assistant_next_page (GtkAssistant *assistant); +void gtk_assistant_previous_page (GtkAssistant *assistant); +gint gtk_assistant_get_current_page (GtkAssistant *assistant); +void gtk_assistant_set_current_page (GtkAssistant *assistant, + gint page_num); +gint gtk_assistant_get_n_pages (GtkAssistant *assistant); +GtkWidget *gtk_assistant_get_nth_page (GtkAssistant *assistant, + gint page_num); +gint gtk_assistant_prepend_page (GtkAssistant *assistant, + GtkWidget *page); +gint gtk_assistant_append_page (GtkAssistant *assistant, + GtkWidget *page); +gint gtk_assistant_insert_page (GtkAssistant *assistant, + GtkWidget *page, + gint position); +GDK_AVAILABLE_IN_3_2 +void gtk_assistant_remove_page (GtkAssistant *assistant, + gint page_num); +void gtk_assistant_set_forward_page_func (GtkAssistant *assistant, + GtkAssistantPageFunc page_func, + gpointer data, + GDestroyNotify destroy); +void gtk_assistant_set_page_type (GtkAssistant *assistant, + GtkWidget *page, + GtkAssistantPageType type); +GtkAssistantPageType gtk_assistant_get_page_type (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_set_page_title (GtkAssistant *assistant, + GtkWidget *page, + const gchar *title); +const gchar * gtk_assistant_get_page_title (GtkAssistant *assistant, + GtkWidget *page); + +GDK_DEPRECATED_IN_3_2 +void gtk_assistant_set_page_header_image (GtkAssistant *assistant, + GtkWidget *page, + GdkPixbuf *pixbuf); +GDK_DEPRECATED_IN_3_2 +GdkPixbuf *gtk_assistant_get_page_header_image (GtkAssistant *assistant, + GtkWidget *page); +GDK_DEPRECATED_IN_3_2 +void gtk_assistant_set_page_side_image (GtkAssistant *assistant, + GtkWidget *page, + GdkPixbuf *pixbuf); +GDK_DEPRECATED_IN_3_2 +GdkPixbuf *gtk_assistant_get_page_side_image (GtkAssistant *assistant, + GtkWidget *page); + +void gtk_assistant_set_page_complete (GtkAssistant *assistant, + GtkWidget *page, + gboolean complete); +gboolean gtk_assistant_get_page_complete (GtkAssistant *assistant, + GtkWidget *page); +void gtk_assistant_add_action_widget (GtkAssistant *assistant, + GtkWidget *child); +void gtk_assistant_remove_action_widget (GtkAssistant *assistant, + GtkWidget *child); + +void gtk_assistant_update_buttons_state (GtkAssistant *assistant); +void gtk_assistant_commit (GtkAssistant *assistant); + +G_END_DECLS + +#endif /* __GTK_ASSISTANT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbbox.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbbox.h new file mode 100644 index 0000000..46e488a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbbox.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BUTTON_BOX_H__ +#define __GTK_BUTTON_BOX_H__ + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_BUTTON_BOX (gtk_button_box_get_type ()) +#define GTK_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBox)) +#define GTK_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) +#define GTK_IS_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON_BOX)) +#define GTK_IS_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON_BOX)) +#define GTK_BUTTON_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON_BOX, GtkButtonBoxClass)) + + +typedef struct _GtkButtonBox GtkButtonBox; +typedef struct _GtkButtonBoxPrivate GtkButtonBoxPrivate; +typedef struct _GtkButtonBoxClass GtkButtonBoxClass; + +struct _GtkButtonBox +{ + GtkBox box; + + /*< private >*/ + GtkButtonBoxPrivate *priv; +}; + +struct _GtkButtonBoxClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_button_box_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_button_box_new (GtkOrientation orientation); +GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget); +void gtk_button_box_set_layout (GtkButtonBox *widget, + GtkButtonBoxStyle layout_style); +gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget, + GtkWidget *child); +void gtk_button_box_set_child_secondary (GtkButtonBox *widget, + GtkWidget *child, + gboolean is_secondary); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_button_box_get_child_non_homogeneous (GtkButtonBox *widget, + GtkWidget *child); +GDK_AVAILABLE_IN_3_2 +void gtk_button_box_set_child_non_homogeneous (GtkButtonBox *widget, + GtkWidget *child, + gboolean non_homogeneous); + + +G_END_DECLS + +#endif /* __GTK_BUTTON_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbin.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbin.h new file mode 100644 index 0000000..6d96576 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbin.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BIN_H__ +#define __GTK_BIN_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_BIN (gtk_bin_get_type ()) +#define GTK_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BIN, GtkBin)) +#define GTK_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BIN, GtkBinClass)) +#define GTK_IS_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BIN)) +#define GTK_IS_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BIN)) +#define GTK_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BIN, GtkBinClass)) + + +typedef struct _GtkBin GtkBin; +typedef struct _GtkBinPrivate GtkBinPrivate; +typedef struct _GtkBinClass GtkBinClass; + +struct _GtkBin +{ + GtkContainer container; + + /*< private >*/ + GtkBinPrivate *priv; +}; + +struct _GtkBinClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_bin_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_bin_get_child (GtkBin *bin); + +void _gtk_bin_set_child (GtkBin *bin, + GtkWidget *widget); + +G_END_DECLS + +#endif /* __GTK_BIN_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbindings.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbindings.h new file mode 100644 index 0000000..4d23ed7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbindings.h @@ -0,0 +1,189 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkBindingSet: Keybinding manager for GObjects. + * Copyright (C) 1998 Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BINDINGS_H__ +#define __GTK_BINDINGS_H__ + + +#include +#include + +G_BEGIN_DECLS + +typedef struct _GtkBindingSet GtkBindingSet; +typedef struct _GtkBindingEntry GtkBindingEntry; +typedef struct _GtkBindingSignal GtkBindingSignal; +typedef struct _GtkBindingArg GtkBindingArg; + +/** + * GtkBindingSet: + * @set_name: unique name of this binding set + * @priority: unused + * @widget_path_pspecs: unused + * @widget_class_pspecs: unused + * @class_branch_pspecs: unused + * @entries: the key binding entries in this binding set + * @current: implementation detail + * @parsed: whether this binding set stems from a CSS file and is reset upon theme changes + * + * A binding set maintains a list of activatable key bindings. + * A single binding set can match multiple types of widgets. + * Similar to style contexts, can be matched by any information contained + * in a widgets #GtkWidgetPath. When a binding within a set is matched upon + * activation, an action signal is emitted on the target widget to carry out + * the actual activation. + */ +struct _GtkBindingSet +{ + gchar *set_name; + gint priority; + GSList *widget_path_pspecs; + GSList *widget_class_pspecs; + GSList *class_branch_pspecs; + GtkBindingEntry *entries; + GtkBindingEntry *current; + guint parsed : 1; +}; + +/** + * GtkBindingEntry: + * @keyval: key value to match + * @modifiers: key modifiers to match + * @binding_set: binding set this entry belongs to + * @destroyed: implementation detail + * @in_emission: implementation detail + * @marks_unbound: implementation detail + * @set_next: linked list of entries maintained by binding set + * @hash_next: implementation detail + * @signals: action signals of this entry + * + * Each key binding element of a binding sets binding list is + * represented by a GtkBindingEntry. + */ +struct _GtkBindingEntry +{ + /* key portion */ + guint keyval; + GdkModifierType modifiers; + + GtkBindingSet *binding_set; + guint destroyed : 1; + guint in_emission : 1; + guint marks_unbound : 1; + GtkBindingEntry *set_next; + GtkBindingEntry *hash_next; + GtkBindingSignal *signals; +}; + +/** + * GtkBindingArg: + * @arg_type: implementation detail + * + * A #GtkBindingArg holds the data associated with + * an argument for a key binding signal emission as + * stored in #GtkBindingSignal. + */ +struct _GtkBindingArg +{ + GType arg_type; + union { + glong long_data; + gdouble double_data; + gchar *string_data; + } d; +}; + +/** + * GtkBindingSignal: + * @next: implementation detail + * @signal_name: the action signal to be emitted + * @n_args: number of arguments specified for the signal + * @args: the arguments specified for the signal + * + * + * A GtkBindingSignal stores the necessary information to + * activate a widget in response to a key press via a signal + * emission. + */ +struct _GtkBindingSignal +{ + GtkBindingSignal *next; + gchar *signal_name; + guint n_args; + GtkBindingArg *args; +}; + +GtkBindingSet *gtk_binding_set_new (const gchar *set_name); +GtkBindingSet *gtk_binding_set_by_class (gpointer object_class); +GtkBindingSet *gtk_binding_set_find (const gchar *set_name); + +gboolean gtk_bindings_activate (GObject *object, + guint keyval, + GdkModifierType modifiers); +gboolean gtk_bindings_activate_event (GObject *object, + GdkEventKey *event); +gboolean gtk_binding_set_activate (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + GObject *object); + +void gtk_binding_entry_skip (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers); +void gtk_binding_entry_add_signal (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + const gchar *signal_name, + guint n_args, + ...); +void gtk_binding_entry_add_signall (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers, + const gchar *signal_name, + GSList *binding_args); + +GTokenType gtk_binding_entry_add_signal_from_string + (GtkBindingSet *binding_set, + const gchar *signal_desc); + +void gtk_binding_entry_remove (GtkBindingSet *binding_set, + guint keyval, + GdkModifierType modifiers); + +GDK_DEPRECATED_IN_3_0 +void gtk_binding_set_add_path (GtkBindingSet *binding_set, + GtkPathType path_type, + const gchar *path_pattern, + GtkPathPriorityType priority); + +G_END_DECLS + +#endif /* __GTK_BINDINGS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkborder.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkborder.h new file mode 100644 index 0000000..1243e81 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkborder.h @@ -0,0 +1,66 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BORDER_H__ +#define __GTK_BORDER_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _GtkBorder GtkBorder; + +#define GTK_TYPE_BORDER (gtk_border_get_type ()) + +/** + * GtkBorder: + * @left: The width of the left border + * @right: The width of the right border + * @top: The width of the top border + * @bottom: The width of the bottom border + * + * A struct that specifies a border around a rectangular area + * that can be of different width on each side. + */ +struct _GtkBorder +{ + gint16 left; + gint16 right; + gint16 top; + gint16 bottom; +}; + +GType gtk_border_get_type (void) G_GNUC_CONST; +GtkBorder *gtk_border_new (void) G_GNUC_MALLOC; +GtkBorder *gtk_border_copy (const GtkBorder *border_); +void gtk_border_free (GtkBorder *border_); + + +G_END_DECLS + +#endif /* __GTK_BORDER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbox.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbox.h new file mode 100644 index 0000000..3f80117 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbox.h @@ -0,0 +1,112 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BOX_H__ +#define __GTK_BOX_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_BOX (gtk_box_get_type ()) +#define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox)) +#define GTK_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass)) +#define GTK_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BOX)) +#define GTK_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX)) +#define GTK_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass)) + + +typedef struct _GtkBox GtkBox; +typedef struct _GtkBoxPrivate GtkBoxPrivate; +typedef struct _GtkBoxClass GtkBoxClass; + +struct _GtkBox +{ + GtkContainer container; + + /*< private >*/ + GtkBoxPrivate *priv; +}; + +struct _GtkBoxClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_box_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_box_new (GtkOrientation orientation, + gint spacing); + +void gtk_box_pack_start (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding); +void gtk_box_pack_end (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding); + +void gtk_box_set_homogeneous (GtkBox *box, + gboolean homogeneous); +gboolean gtk_box_get_homogeneous (GtkBox *box); +void gtk_box_set_spacing (GtkBox *box, + gint spacing); +gint gtk_box_get_spacing (GtkBox *box); + +void gtk_box_reorder_child (GtkBox *box, + GtkWidget *child, + gint position); + +void gtk_box_query_child_packing (GtkBox *box, + GtkWidget *child, + gboolean *expand, + gboolean *fill, + guint *padding, + GtkPackType *pack_type); +void gtk_box_set_child_packing (GtkBox *box, + GtkWidget *child, + gboolean expand, + gboolean fill, + guint padding, + GtkPackType pack_type); + +G_END_DECLS + +#endif /* __GTK_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbuildable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbuildable.h new file mode 100644 index 0000000..2a1f65e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbuildable.h @@ -0,0 +1,173 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2006-2007 Async Open Source, + * Johan Dahlin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BUILDABLE_H__ +#define __GTK_BUILDABLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_BUILDABLE (gtk_buildable_get_type ()) +#define GTK_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildable)) +#define GTK_BUILDABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface)) +#define GTK_IS_BUILDABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUILDABLE)) +#define GTK_BUILDABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_BUILDABLE, GtkBuildableIface)) + + +typedef struct _GtkBuildable GtkBuildable; /* Dummy typedef */ +typedef struct _GtkBuildableIface GtkBuildableIface; + +/** + * GtkBuildableIface: + * @g_iface: the parent class + * @set_name: Stores the name attribute given in the GtkBuilder UI definition. + * #GtkWidget stores the name as object data. Implement this method if your + * object has some notion of "name" and it makes sense to map the XML name + * attribute to it. + * @get_name: The getter corresponding to @set_name. Implement this + * if you implement @set_name. + * @add_child: Adds a child. The @type parameter can be used to + * differentiate the kind of child. #GtkContainer implements this + * to add add a child widget to the container, #GtkNotebook uses + * the @type to distinguish between page labels (of type "page-label") + * and normal children. + * @set_buildable_property: Sets a property of a buildable object. + * It is normally not necessary to implement this, g_object_set_property() + * is used by default. #GtkWindow implements this to delay showing itself + * (i.e. setting the #GtkWidget:visible property) until the whole interface + * is created. + * @construct_child: Constructs a child of a buildable that has been + * specified as "constructor" in the UI definition. #GtkUIManager implements + * this to reference to a widget created in a <ui> tag which is outside + * of the normal GtkBuilder UI definition hierarchy. A reference to the + * constructed object is returned and becomes owned by the caller. + * @custom_tag_start: Implement this if the buildable needs to parse + * content below <child>. To handle an element, the implementation + * must fill in the @parser structure and @user_data and return %TRUE. + * #GtkWidget implements this to parse keyboard accelerators specified + * in <accelerator> elements. #GtkContainer implements it to map + * properties defined via <packing> elements to child properties. + * Note that @user_data must be freed in @custom_tag_end or @custom_finished. + * @custom_tag_end: Called for the end tag of each custom element that is + * handled by the buildable (see @custom_tag_start). + * @custom_finished: Called for each custom tag handled by the buildable + * when the builder finishes parsing (see @custom_tag_start) + * @parser_finished: Called when a builder finishes the parsing + * of a UI definition. It is normally not necessary to implement this, + * unless you need to perform special cleanup actions. #GtkWindow sets + * the #GtkWidget:visible property here. + * @get_internal_child: Returns an internal child of a buildable. + * #GtkDialog implements this to give access to its @vbox, making + * it possible to add children to the vbox in a UI definition. + * Implement this if the buildable has internal children that may + * need to be accessed from a UI definition. + * + * The GtkBuildableIface interface contains method that are + * necessary to allow #GtkBuilder to construct an object from + * a GtkBuilder UI definition. + */ +struct _GtkBuildableIface +{ + GTypeInterface g_iface; + + /* virtual table */ + void (* set_name) (GtkBuildable *buildable, + const gchar *name); + const gchar * (* get_name) (GtkBuildable *buildable); + void (* add_child) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); + void (* set_buildable_property) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name, + const GValue *value); + GObject * (* construct_child) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name); + gboolean (* custom_tag_start) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); + void (* custom_tag_end) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); + void (* custom_finished) (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer data); + void (* parser_finished) (GtkBuildable *buildable, + GtkBuilder *builder); + + GObject * (* get_internal_child) (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *childname); +}; + + +GType gtk_buildable_get_type (void) G_GNUC_CONST; + +void gtk_buildable_set_name (GtkBuildable *buildable, + const gchar *name); +const gchar * gtk_buildable_get_name (GtkBuildable *buildable); +void gtk_buildable_add_child (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); +void gtk_buildable_set_buildable_property (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name, + const GValue *value); +GObject * gtk_buildable_construct_child (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *name); +gboolean gtk_buildable_custom_tag_start (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); +void gtk_buildable_custom_tag_end (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); +void gtk_buildable_custom_finished (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer data); +void gtk_buildable_parser_finished (GtkBuildable *buildable, + GtkBuilder *builder); +GObject * gtk_buildable_get_internal_child (GtkBuildable *buildable, + GtkBuilder *builder, + const gchar *childname); + +G_END_DECLS + +#endif /* __GTK_BUILDABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbuilder.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbuilder.h new file mode 100644 index 0000000..f4950eb --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbuilder.h @@ -0,0 +1,178 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2006-2007 Async Open Source, + * Johan Dahlin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BUILDER_H__ +#define __GTK_BUILDER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_BUILDER (gtk_builder_get_type ()) +#define GTK_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUILDER, GtkBuilder)) +#define GTK_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUILDER, GtkBuilderClass)) +#define GTK_IS_BUILDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUILDER)) +#define GTK_IS_BUILDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUILDER)) +#define GTK_BUILDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUILDER, GtkBuilderClass)) + +#define GTK_BUILDER_ERROR (gtk_builder_error_quark ()) + +typedef struct _GtkBuilder GtkBuilder; +typedef struct _GtkBuilderClass GtkBuilderClass; +typedef struct _GtkBuilderPrivate GtkBuilderPrivate; + +/** + * GtkBuilderError: + * @GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION: A type-func attribute didn't name + * a function that returns a #GType. + * @GTK_BUILDER_ERROR_UNHANDLED_TAG: The input contained a tag that #GtkBuilder + * can't handle. + * @GTK_BUILDER_ERROR_MISSING_ATTRIBUTE: An attribute that is required by + * #GtkBuilder was missing. + * @GTK_BUILDER_ERROR_INVALID_ATTRIBUTE: #GtkBuilder found an attribute that + * it doesn't understand. + * @GTK_BUILDER_ERROR_INVALID_TAG: #GtkBuilder found a tag that + * it doesn't understand. + * @GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE: A required property value was + * missing. + * @GTK_BUILDER_ERROR_INVALID_VALUE: #GtkBuilder couldn't parse + * some attribute value. + * @GTK_BUILDER_ERROR_VERSION_MISMATCH: The input file requires a newer version + * of GTK+. + * @GTK_BUILDER_ERROR_DUPLICATE_ID: An object id occurred twice. + * + * Error codes that identify various errors that can occur while using + * #GtkBuilder. + */ +typedef enum +{ + GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION, + GTK_BUILDER_ERROR_UNHANDLED_TAG, + GTK_BUILDER_ERROR_MISSING_ATTRIBUTE, + GTK_BUILDER_ERROR_INVALID_ATTRIBUTE, + GTK_BUILDER_ERROR_INVALID_TAG, + GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE, + GTK_BUILDER_ERROR_INVALID_VALUE, + GTK_BUILDER_ERROR_VERSION_MISMATCH, + GTK_BUILDER_ERROR_DUPLICATE_ID +} GtkBuilderError; + +GQuark gtk_builder_error_quark (void); + +struct _GtkBuilder +{ + GObject parent_instance; + + GtkBuilderPrivate *priv; +}; + +struct _GtkBuilderClass +{ + GObjectClass parent_class; + + GType (* get_type_from_name) (GtkBuilder *builder, + const char *type_name); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, + GObject *object, + const gchar *signal_name, + const gchar *handler_name, + GObject *connect_object, + GConnectFlags flags, + gpointer user_data); + +GType gtk_builder_get_type (void) G_GNUC_CONST; +GtkBuilder* gtk_builder_new (void); + +guint gtk_builder_add_from_file (GtkBuilder *builder, + const gchar *filename, + GError **error); +guint gtk_builder_add_from_resource (GtkBuilder *builder, + const gchar *resource_path, + GError **error); +guint gtk_builder_add_from_string (GtkBuilder *builder, + const gchar *buffer, + gsize length, + GError **error); +guint gtk_builder_add_objects_from_file (GtkBuilder *builder, + const gchar *filename, + gchar **object_ids, + GError **error); +guint gtk_builder_add_objects_from_resource(GtkBuilder *builder, + const gchar *resource_path, + gchar **object_ids, + GError **error); +guint gtk_builder_add_objects_from_string (GtkBuilder *builder, + const gchar *buffer, + gsize length, + gchar **object_ids, + GError **error); +GObject* gtk_builder_get_object (GtkBuilder *builder, + const gchar *name); +GSList* gtk_builder_get_objects (GtkBuilder *builder); +void gtk_builder_connect_signals (GtkBuilder *builder, + gpointer user_data); +void gtk_builder_connect_signals_full (GtkBuilder *builder, + GtkBuilderConnectFunc func, + gpointer user_data); +void gtk_builder_set_translation_domain (GtkBuilder *builder, + const gchar *domain); +const gchar* gtk_builder_get_translation_domain (GtkBuilder *builder); +GType gtk_builder_get_type_from_name (GtkBuilder *builder, + const char *type_name); + +gboolean gtk_builder_value_from_string (GtkBuilder *builder, + GParamSpec *pspec, + const gchar *string, + GValue *value, + GError **error); +gboolean gtk_builder_value_from_string_type (GtkBuilder *builder, + GType type, + const gchar *string, + GValue *value, + GError **error); + +/** + * GTK_BUILDER_WARN_INVALID_CHILD_TYPE: + * @object: the #GtkBuildable on which the warning ocurred + * @type: the unexpected type value + * + * This macro should be used to emit a warning about and unexpected @type value + * in a #GtkBuildable add_child implementation. + */ +#define GTK_BUILDER_WARN_INVALID_CHILD_TYPE(object, type) \ + g_warning ("'%s' is not a valid child type of '%s'", type, g_type_name (G_OBJECT_TYPE (object))) + +G_END_DECLS + +#endif /* __GTK_BUILDER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkbutton.h new file mode 100644 index 0000000..e97ad5f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkbutton.h @@ -0,0 +1,128 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_BUTTON_H__ +#define __GTK_BUTTON_H__ + + +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_BUTTON (gtk_button_get_type ()) +#define GTK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BUTTON, GtkButton)) +#define GTK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BUTTON, GtkButtonClass)) +#define GTK_IS_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BUTTON)) +#define GTK_IS_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BUTTON)) +#define GTK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BUTTON, GtkButtonClass)) + +typedef struct _GtkButton GtkButton; +typedef struct _GtkButtonPrivate GtkButtonPrivate; +typedef struct _GtkButtonClass GtkButtonClass; + +struct _GtkButton +{ + /*< private >*/ + GtkBin bin; + + GtkButtonPrivate *priv; +}; + +struct _GtkButtonClass +{ + GtkBinClass parent_class; + + void (* pressed) (GtkButton *button); + void (* released) (GtkButton *button); + void (* clicked) (GtkButton *button); + void (* enter) (GtkButton *button); + void (* leave) (GtkButton *button); + void (* activate) (GtkButton *button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_button_new (void); +GtkWidget* gtk_button_new_with_label (const gchar *label); +GtkWidget* gtk_button_new_from_stock (const gchar *stock_id); +GtkWidget* gtk_button_new_with_mnemonic (const gchar *label); +void gtk_button_clicked (GtkButton *button); +GDK_DEPRECATED +void gtk_button_pressed (GtkButton *button); +GDK_DEPRECATED +void gtk_button_released (GtkButton *button); +GDK_DEPRECATED +void gtk_button_enter (GtkButton *button); +GDK_DEPRECATED +void gtk_button_leave (GtkButton *button); + +void gtk_button_set_relief (GtkButton *button, + GtkReliefStyle newstyle); +GtkReliefStyle gtk_button_get_relief (GtkButton *button); +void gtk_button_set_label (GtkButton *button, + const gchar *label); +const gchar * gtk_button_get_label (GtkButton *button); +void gtk_button_set_use_underline (GtkButton *button, + gboolean use_underline); +gboolean gtk_button_get_use_underline (GtkButton *button); +void gtk_button_set_use_stock (GtkButton *button, + gboolean use_stock); +gboolean gtk_button_get_use_stock (GtkButton *button); +void gtk_button_set_focus_on_click (GtkButton *button, + gboolean focus_on_click); +gboolean gtk_button_get_focus_on_click (GtkButton *button); +void gtk_button_set_alignment (GtkButton *button, + gfloat xalign, + gfloat yalign); +void gtk_button_get_alignment (GtkButton *button, + gfloat *xalign, + gfloat *yalign); +void gtk_button_set_image (GtkButton *button, + GtkWidget *image); +GtkWidget* gtk_button_get_image (GtkButton *button); +void gtk_button_set_image_position (GtkButton *button, + GtkPositionType position); +GtkPositionType gtk_button_get_image_position (GtkButton *button); +void gtk_button_set_always_show_image (GtkButton *button, + gboolean always_show); +gboolean gtk_button_get_always_show_image (GtkButton *button); + +GdkWindow* gtk_button_get_event_window (GtkButton *button); + + +G_END_DECLS + +#endif /* __GTK_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcalendar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcalendar.h new file mode 100644 index 0000000..8d745fa --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcalendar.h @@ -0,0 +1,169 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GTK Calendar Widget + * Copyright (C) 1998 Cesar Miquel and Shawn T. Amundson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CALENDAR_H__ +#define __GTK_CALENDAR_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_CALENDAR (gtk_calendar_get_type ()) +#define GTK_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CALENDAR, GtkCalendar)) +#define GTK_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CALENDAR, GtkCalendarClass)) +#define GTK_IS_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CALENDAR)) +#define GTK_IS_CALENDAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CALENDAR)) +#define GTK_CALENDAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CALENDAR, GtkCalendarClass)) + + +typedef struct _GtkCalendar GtkCalendar; +typedef struct _GtkCalendarClass GtkCalendarClass; + +typedef struct _GtkCalendarPrivate GtkCalendarPrivate; + +/** + * GtkCalendarDisplayOptions: + * @GTK_CALENDAR_SHOW_HEADING: Specifies that the month and year should be displayed. + * @GTK_CALENDAR_SHOW_DAY_NAMES: Specifies that three letter day descriptions should be present. + * @GTK_CALENDAR_NO_MONTH_CHANGE: Prevents the user from switching months with the calendar. + * @GTK_CALENDAR_SHOW_WEEK_NUMBERS: Displays each week numbers of the current year, down the + * left side of the calendar. + * @GTK_CALENDAR_SHOW_DETAILS: Just show an indicator, not the full details + * text when details are provided. See gtk_calendar_set_detail_func(). + * + * These options can be used to influence the display and behaviour of a #GtkCalendar. + */ +typedef enum +{ + GTK_CALENDAR_SHOW_HEADING = 1 << 0, + GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1, + GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2, + GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3, + GTK_CALENDAR_SHOW_DETAILS = 1 << 5 +} GtkCalendarDisplayOptions; + +/** + * GtkCalendarDetailFunc: + * @calendar: a #GtkCalendar. + * @year: the year for which details are needed. + * @month: the month for which details are needed. + * @day: the day of @month for which details are needed. + * @user_data: the data passed with gtk_calendar_set_detail_func(). + * + * This kind of functions provide Pango markup with detail information for the + * specified day. Examples for such details are holidays or appointments. The + * function returns %NULL when no information is available. + * + * Since: 2.14 + * + * Return value: Newly allocated string with Pango markup with details + * for the specified day, or %NULL. + */ +typedef gchar* (*GtkCalendarDetailFunc) (GtkCalendar *calendar, + guint year, + guint month, + guint day, + gpointer user_data); + +struct _GtkCalendar +{ + GtkWidget widget; + + GtkCalendarPrivate *priv; +}; + +struct _GtkCalendarClass +{ + GtkWidgetClass parent_class; + + /* Signal handlers */ + void (* month_changed) (GtkCalendar *calendar); + void (* day_selected) (GtkCalendar *calendar); + void (* day_selected_double_click) (GtkCalendar *calendar); + void (* prev_month) (GtkCalendar *calendar); + void (* next_month) (GtkCalendar *calendar); + void (* prev_year) (GtkCalendar *calendar); + void (* next_year) (GtkCalendar *calendar); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_calendar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_calendar_new (void); + +void gtk_calendar_select_month (GtkCalendar *calendar, + guint month, + guint year); +void gtk_calendar_select_day (GtkCalendar *calendar, + guint day); + +void gtk_calendar_mark_day (GtkCalendar *calendar, + guint day); +void gtk_calendar_unmark_day (GtkCalendar *calendar, + guint day); +void gtk_calendar_clear_marks (GtkCalendar *calendar); + + +void gtk_calendar_set_display_options (GtkCalendar *calendar, + GtkCalendarDisplayOptions flags); +GtkCalendarDisplayOptions + gtk_calendar_get_display_options (GtkCalendar *calendar); +void gtk_calendar_get_date (GtkCalendar *calendar, + guint *year, + guint *month, + guint *day); + +void gtk_calendar_set_detail_func (GtkCalendar *calendar, + GtkCalendarDetailFunc func, + gpointer data, + GDestroyNotify destroy); + +void gtk_calendar_set_detail_width_chars (GtkCalendar *calendar, + gint chars); +void gtk_calendar_set_detail_height_rows (GtkCalendar *calendar, + gint rows); + +gint gtk_calendar_get_detail_width_chars (GtkCalendar *calendar); +gint gtk_calendar_get_detail_height_rows (GtkCalendar *calendar); + +gboolean gtk_calendar_get_day_is_marked (GtkCalendar *calendar, + guint day); + +G_END_DECLS + +#endif /* __GTK_CALENDAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellarea.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellarea.h new file mode 100644 index 0000000..23fd02b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellarea.h @@ -0,0 +1,482 @@ +/* gtkcellarea.h + * + * Copyright (C) 2010 Openismus GmbH + * + * Authors: + * Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_AREA_H__ +#define __GTK_CELL_AREA_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_AREA (gtk_cell_area_get_type ()) +#define GTK_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA, GtkCellArea)) +#define GTK_CELL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA, GtkCellAreaClass)) +#define GTK_IS_CELL_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA)) +#define GTK_IS_CELL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA)) +#define GTK_CELL_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA, GtkCellAreaClass)) + +typedef struct _GtkCellArea GtkCellArea; +typedef struct _GtkCellAreaClass GtkCellAreaClass; +typedef struct _GtkCellAreaPrivate GtkCellAreaPrivate; +typedef struct _GtkCellAreaContext GtkCellAreaContext; + +/** + * GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID: + * @object: the #GObject on which set_cell_property() or get_get_property() + * was called + * @property_id: the numeric id of the property + * @pspec: the #GParamSpec of the property + * + * This macro should be used to emit a standard warning about unexpected + * properties in set_cell_property() and get_cell_property() implementations. + */ +#define GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID(object, property_id, pspec) \ + G_OBJECT_WARN_INVALID_PSPEC ((object), "cell property id", (property_id), (pspec)) + +/** + * GtkCellCallback: + * @renderer: the cell renderer to operate on + * @data: (closure): user-supplied data + * + * The type of the callback functions used for iterating over + * the cell renderers of a #GtkCellArea, see gtk_cell_area_foreach(). + * + * Return value: %TRUE to stop iterating over cells. + */ +typedef gboolean (*GtkCellCallback) (GtkCellRenderer *renderer, + gpointer data); + +/** + * GtkCellAllocCallback: + * @renderer: the cell renderer to operate on + * @cell_area: the area allocated to @renderer inside the rectangle + * provided to gtk_cell_area_foreach_alloc(). + * @cell_background: the background area for @renderer inside the + * background area provided to gtk_cell_area_foreach_alloc(). + * @data: (closure): user-supplied data + * + * The type of the callback functions used for iterating over the + * cell renderers and their allocated areas inside a #GtkCellArea, + * see gtk_cell_area_foreach_alloc(). + * + * Return value: %TRUE to stop iterating over cells. + */ +typedef gboolean (*GtkCellAllocCallback) (GtkCellRenderer *renderer, + const GdkRectangle *cell_area, + const GdkRectangle *cell_background, + gpointer data); + + +struct _GtkCellArea +{ + /*< private >*/ + GInitiallyUnowned parent_instance; + + GtkCellAreaPrivate *priv; +}; + + +/** + * GtkCellAreaClass: + * @add: adds a #GtkCellRenderer to the area. + * @remove: removes a #GtkCellRenderer from the area. + * @foreach: calls the #GtkCellCallback function on every #GtkCellRenderer in + * the area with the provided user data until the callback returns %TRUE. + * @foreach_alloc: Calls the #GtkCellAllocCallback function on every + * #GtkCellRenderer in the area with the allocated area for the cell + * and the provided user data until the callback returns %TRUE. + * @event: Handle an event in the area, this is generally used to activate + * a cell at the event location for button events but can also be used + * to generically pass events to #GtkWidgets drawn onto the area. + * @render: Actually render the area's cells to the specified rectangle, + * @background_area should be correctly distributed to the cells + * corresponding background areas. + * @apply_attributes: Apply the cell attributes to the cells. This is + * implemented as a signal and generally #GtkCellArea subclasses don't + * need to implement it since it is handled by the base class. + * @create_context: Creates and returns a class specific #GtkCellAreaContext + * to store cell alignment and allocation details for a said #GtkCellArea + * class. + * @copy_context: Creates a new #GtkCellAreaContext in the same state as + * the passed @context with any cell alignment data and allocations intact. + * @get_request_mode: This allows an area to tell its layouting widget whether + * it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or + * %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode. + * @get_preferred_width: Calculates the minimum and natural width of the + * areas cells with the current attributes applied while considering + * the particular layouting details of the said #GtkCellArea. While + * requests are performed over a series of rows, alignments and overall + * minimum and natural sizes should be stored in the corresponding + * #GtkCellAreaContext. + * @get_preferred_height_for_width: Calculates the minimum and natural height + * for the area if the passed @context would be allocated the given width. + * When implementing this virtual method it is safe to assume that @context + * has already stored the aligned cell widths for every #GtkTreeModel row + * that @context will be allocated for since this information was stored + * at #GtkCellAreaClass.get_preferred_width() time. This virtual method + * should also store any necessary alignments of cell heights for the + * case that the context is allocated a height. + * @get_preferred_height: Calculates the minimum and natural height of the + * areas cells with the current attributes applied. Essentially this is + * the same as #GtkCellAreaClass.get_preferred_width() only for areas + * that are being requested as %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT. + * @get_preferred_width_for_height: Calculates the minimum and natural width + * for the area if the passed @context would be allocated the given + * height. The same as #GtkCellAreaClass.get_preferred_height_for_width() + * only for handling requests in the %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT + * mode. + * @set_cell_property: This should be implemented to handle changes in child + * cell properties for a given #GtkCellRenderer that were previously + * installed on the #GtkCellAreaClass with gtk_cell_area_class_install_cell_property(). + * @get_cell_property: This should be implemented to report the values of + * child cell properties for a given child #GtkCellRenderer. + * @focus: This virtual method should be implemented to navigate focus from + * cell to cell inside the #GtkCellArea. The #GtkCellArea should move + * focus from cell to cell inside the area and return %FALSE if focus + * logically leaves the area with the following exceptions: When the + * area contains no activatable cells, the entire area recieves focus. + * Focus should not be given to cells that are actually "focus siblings" + * of other sibling cells (see gtk_cell_area_get_focus_from_sibling()). + * Focus is set by calling gtk_cell_area_set_focus_cell(). + * @is_activatable: Returns whether the #GtkCellArea can respond to + * #GtkCellAreaClass.activate(), usually this does not need to be + * implemented since the base class takes care of this however it can + * be enhanced if the #GtkCellArea subclass can handle activation in + * other ways than activating its #GtkCellRenderers. + * @activate: This is called when the layouting widget rendering the + * #GtkCellArea activates the focus cell (see gtk_cell_area_get_focus_cell()). + */ +struct _GtkCellAreaClass +{ + /*< private >*/ + GInitiallyUnownedClass parent_class; + + /*< public >*/ + + /* Basic methods */ + void (* add) (GtkCellArea *area, + GtkCellRenderer *renderer); + void (* remove) (GtkCellArea *area, + GtkCellRenderer *renderer); + void (* foreach) (GtkCellArea *area, + GtkCellCallback callback, + gpointer callback_data); + void (* foreach_alloc) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + const GdkRectangle *cell_area, + const GdkRectangle *background_area, + GtkCellAllocCallback callback, + gpointer callback_data); + gint (* event) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + GdkEvent *event, + const GdkRectangle *cell_area, + GtkCellRendererState flags); + void (* render) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + cairo_t *cr, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags, + gboolean paint_focus); + void (* apply_attributes) (GtkCellArea *area, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gboolean is_expander, + gboolean is_expanded); + + /* Geometry */ + GtkCellAreaContext *(* create_context) (GtkCellArea *area); + GtkCellAreaContext *(* copy_context) (GtkCellArea *area, + GtkCellAreaContext *context); + GtkSizeRequestMode (* get_request_mode) (GtkCellArea *area); + void (* get_preferred_width) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint *minimum_width, + gint *natural_width); + void (* get_preferred_height_for_width) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); + void (* get_preferred_height) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint *minimum_height, + gint *natural_height); + void (* get_preferred_width_for_height) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); + + /* Cell Properties */ + void (* set_cell_property) (GtkCellArea *area, + GtkCellRenderer *renderer, + guint property_id, + const GValue *value, + GParamSpec *pspec); + void (* get_cell_property) (GtkCellArea *area, + GtkCellRenderer *renderer, + guint property_id, + GValue *value, + GParamSpec *pspec); + + /* Focus */ + gboolean (* focus) (GtkCellArea *area, + GtkDirectionType direction); + gboolean (* is_activatable) (GtkCellArea *area); + gboolean (* activate) (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + const GdkRectangle *cell_area, + GtkCellRendererState flags, + gboolean edit_only); + + /*< private >*/ + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_cell_area_get_type (void) G_GNUC_CONST; + +/* Basic methods */ +void gtk_cell_area_add (GtkCellArea *area, + GtkCellRenderer *renderer); +void gtk_cell_area_remove (GtkCellArea *area, + GtkCellRenderer *renderer); +gboolean gtk_cell_area_has_renderer (GtkCellArea *area, + GtkCellRenderer *renderer); +void gtk_cell_area_foreach (GtkCellArea *area, + GtkCellCallback callback, + gpointer callback_data); +void gtk_cell_area_foreach_alloc (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + const GdkRectangle *cell_area, + const GdkRectangle *background_area, + GtkCellAllocCallback callback, + gpointer callback_data); +gint gtk_cell_area_event (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + GdkEvent *event, + const GdkRectangle *cell_area, + GtkCellRendererState flags); +void gtk_cell_area_render (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + cairo_t *cr, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags, + gboolean paint_focus); + +void gtk_cell_area_get_cell_allocation (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + GtkCellRenderer *renderer, + const GdkRectangle *cell_area, + GdkRectangle *allocation); +GtkCellRenderer *gtk_cell_area_get_cell_at_position (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + const GdkRectangle *cell_area, + gint x, + gint y, + GdkRectangle *alloc_area); + +/* Geometry */ +GtkCellAreaContext *gtk_cell_area_create_context (GtkCellArea *area); +GtkCellAreaContext *gtk_cell_area_copy_context (GtkCellArea *area, + GtkCellAreaContext *context); +GtkSizeRequestMode gtk_cell_area_get_request_mode (GtkCellArea *area); +void gtk_cell_area_get_preferred_width (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint *minimum_width, + gint *natural_width); +void gtk_cell_area_get_preferred_height_for_width (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); +void gtk_cell_area_get_preferred_height (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint *minimum_height, + gint *natural_height); +void gtk_cell_area_get_preferred_width_for_height (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); +const gchar * gtk_cell_area_get_current_path_string (GtkCellArea *area); + + +/* Attributes */ +void gtk_cell_area_apply_attributes (GtkCellArea *area, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gboolean is_expander, + gboolean is_expanded); +void gtk_cell_area_attribute_connect (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *attribute, + gint column); +void gtk_cell_area_attribute_disconnect (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *attribute); + +/* Cell Properties */ +void gtk_cell_area_class_install_cell_property (GtkCellAreaClass *aclass, + guint property_id, + GParamSpec *pspec); +GParamSpec* gtk_cell_area_class_find_cell_property (GtkCellAreaClass *aclass, + const gchar *property_name); +GParamSpec** gtk_cell_area_class_list_cell_properties (GtkCellAreaClass *aclass, + guint *n_properties); +void gtk_cell_area_add_with_properties (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_cell_area_cell_set (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_cell_area_cell_get (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_cell_area_cell_set_valist (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *first_property_name, + va_list var_args); +void gtk_cell_area_cell_get_valist (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *first_property_name, + va_list var_args); +void gtk_cell_area_cell_set_property (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *property_name, + const GValue *value); +void gtk_cell_area_cell_get_property (GtkCellArea *area, + GtkCellRenderer *renderer, + const gchar *property_name, + GValue *value); + +/* Focus */ +gboolean gtk_cell_area_is_activatable (GtkCellArea *area); +gboolean gtk_cell_area_activate (GtkCellArea *area, + GtkCellAreaContext *context, + GtkWidget *widget, + const GdkRectangle *cell_area, + GtkCellRendererState flags, + gboolean edit_only); +gboolean gtk_cell_area_focus (GtkCellArea *area, + GtkDirectionType direction); +void gtk_cell_area_set_focus_cell (GtkCellArea *area, + GtkCellRenderer *renderer); +GtkCellRenderer *gtk_cell_area_get_focus_cell (GtkCellArea *area); + + +/* Focus siblings */ +void gtk_cell_area_add_focus_sibling (GtkCellArea *area, + GtkCellRenderer *renderer, + GtkCellRenderer *sibling); +void gtk_cell_area_remove_focus_sibling (GtkCellArea *area, + GtkCellRenderer *renderer, + GtkCellRenderer *sibling); +gboolean gtk_cell_area_is_focus_sibling (GtkCellArea *area, + GtkCellRenderer *renderer, + GtkCellRenderer *sibling); +const GList * gtk_cell_area_get_focus_siblings (GtkCellArea *area, + GtkCellRenderer *renderer); +GtkCellRenderer *gtk_cell_area_get_focus_from_sibling (GtkCellArea *area, + GtkCellRenderer *renderer); + +/* Cell Activation/Editing */ +GtkCellRenderer *gtk_cell_area_get_edited_cell (GtkCellArea *area); +GtkCellEditable *gtk_cell_area_get_edit_widget (GtkCellArea *area); +gboolean gtk_cell_area_activate_cell (GtkCellArea *area, + GtkWidget *widget, + GtkCellRenderer *renderer, + GdkEvent *event, + const GdkRectangle *cell_area, + GtkCellRendererState flags); +void gtk_cell_area_stop_editing (GtkCellArea *area, + gboolean canceled); + +/* Functions for area implementations */ + +/* Distinguish the inner cell area from the whole requested area including margins */ +void gtk_cell_area_inner_cell_area (GtkCellArea *area, + GtkWidget *widget, + const GdkRectangle *cell_area, + GdkRectangle *inner_area); + +/* Request the size of a cell while respecting the cell margins (requests are margin inclusive) */ +void gtk_cell_area_request_renderer (GtkCellArea *area, + GtkCellRenderer *renderer, + GtkOrientation orientation, + GtkWidget *widget, + gint for_size, + gint *minimum_size, + gint *natural_size); + +/* For api stability, this is called from gtkcelllayout.c in order to ensure the correct + * object is passed to the user function in gtk_cell_layout_set_cell_data_func. + * + * This private api takes gpointer & GFunc arguments to circumvent circular header file + * dependancies. + */ +void _gtk_cell_area_set_cell_data_func_with_proxy (GtkCellArea *area, + GtkCellRenderer *cell, + GFunc func, + gpointer func_data, + GDestroyNotify destroy, + gpointer proxy); + +G_END_DECLS + +#endif /* __GTK_CELL_AREA_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareabox.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareabox.h new file mode 100644 index 0000000..5deccd9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareabox.h @@ -0,0 +1,87 @@ +/* gtkcellareabox.h + * + * Copyright (C) 2010 Openismus GmbH + * + * Authors: + * Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_AREA_BOX_H__ +#define __GTK_CELL_AREA_BOX_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_AREA_BOX (gtk_cell_area_box_get_type ()) +#define GTK_CELL_AREA_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBox)) +#define GTK_CELL_AREA_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBoxClass)) +#define GTK_IS_CELL_AREA_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_BOX)) +#define GTK_IS_CELL_AREA_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_BOX)) +#define GTK_CELL_AREA_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBoxClass)) + +typedef struct _GtkCellAreaBox GtkCellAreaBox; +typedef struct _GtkCellAreaBoxClass GtkCellAreaBoxClass; +typedef struct _GtkCellAreaBoxPrivate GtkCellAreaBoxPrivate; + +struct _GtkCellAreaBox +{ + /*< private >*/ + GtkCellArea parent_instance; + + GtkCellAreaBoxPrivate *priv; +}; + +struct _GtkCellAreaBoxClass +{ + /*< private >*/ + GtkCellAreaClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_area_box_get_type (void) G_GNUC_CONST; + +GtkCellArea *gtk_cell_area_box_new (void); +void gtk_cell_area_box_pack_start (GtkCellAreaBox *box, + GtkCellRenderer *renderer, + gboolean expand, + gboolean align, + gboolean fixed); +void gtk_cell_area_box_pack_end (GtkCellAreaBox *box, + GtkCellRenderer *renderer, + gboolean expand, + gboolean align, + gboolean fixed); +gint gtk_cell_area_box_get_spacing (GtkCellAreaBox *box); +void gtk_cell_area_box_set_spacing (GtkCellAreaBox *box, + gint spacing); + +/* Private interaction with GtkCellAreaBoxContext */ +gboolean _gtk_cell_area_box_group_visible (GtkCellAreaBox *box, + gint group_idx); + +G_END_DECLS + +#endif /* __GTK_CELL_AREA_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareacontext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareacontext.h new file mode 100644 index 0000000..7daca08 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellareacontext.h @@ -0,0 +1,135 @@ +/* gtkcellareacontext.h + * + * Copyright (C) 2010 Openismus GmbH + * + * Authors: + * Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_AREA_CONTEXT_H__ +#define __GTK_CELL_AREA_CONTEXT_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_AREA_CONTEXT (gtk_cell_area_context_get_type ()) +#define GTK_CELL_AREA_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContext)) +#define GTK_CELL_AREA_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContextClass)) +#define GTK_IS_CELL_AREA_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_CONTEXT)) +#define GTK_IS_CELL_AREA_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_CONTEXT)) +#define GTK_CELL_AREA_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_CONTEXT, GtkCellAreaContextClass)) + +typedef struct _GtkCellAreaContextPrivate GtkCellAreaContextPrivate; +typedef struct _GtkCellAreaContextClass GtkCellAreaContextClass; + +struct _GtkCellAreaContext +{ + /*< private >*/ + GObject parent_instance; + + GtkCellAreaContextPrivate *priv; +}; + +/** + * GtkCellAreaContextClass: + * @allocate: This tells the context that an allocation width or height + * (or both) have been decided for a group of rows. The context should + * store any allocations for internally aligned cells at this point so + * that they dont need to be recalculated at gtk_cell_area_render() time. + * @reset: Clear any previously stored information about requested and + * allocated sizes for the context. + * @get_preferred_height_for_width: Returns the aligned height for the given + * width that context must store while collecting sizes for it's rows. + * @get_preferred_width_for_height: Returns the aligned width for the given + * height that context must store while collecting sizes for it's rows. + */ +struct _GtkCellAreaContextClass +{ + /*< private >*/ + GObjectClass parent_class; + + /*< public >*/ + void (* allocate) (GtkCellAreaContext *context, + gint width, + gint height); + void (* reset) (GtkCellAreaContext *context); + void (* get_preferred_height_for_width) (GtkCellAreaContext *context, + gint width, + gint *minimum_height, + gint *natural_height); + void (* get_preferred_width_for_height) (GtkCellAreaContext *context, + gint height, + gint *minimum_width, + gint *natural_width); + + /*< private >*/ + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); +}; + +GType gtk_cell_area_context_get_type (void) G_GNUC_CONST; + +/* Main apis */ +GtkCellArea *gtk_cell_area_context_get_area (GtkCellAreaContext *context); +void gtk_cell_area_context_allocate (GtkCellAreaContext *context, + gint width, + gint height); +void gtk_cell_area_context_reset (GtkCellAreaContext *context); + +/* Apis for GtkCellArea clients to consult cached values + * for a series of GtkTreeModel rows + */ +void gtk_cell_area_context_get_preferred_width (GtkCellAreaContext *context, + gint *minimum_width, + gint *natural_width); +void gtk_cell_area_context_get_preferred_height (GtkCellAreaContext *context, + gint *minimum_height, + gint *natural_height); +void gtk_cell_area_context_get_preferred_height_for_width (GtkCellAreaContext *context, + gint width, + gint *minimum_height, + gint *natural_height); +void gtk_cell_area_context_get_preferred_width_for_height (GtkCellAreaContext *context, + gint height, + gint *minimum_width, + gint *natural_width); +void gtk_cell_area_context_get_allocation (GtkCellAreaContext *context, + gint *width, + gint *height); + +/* Apis for GtkCellArea implementations to update cached values + * for multiple GtkTreeModel rows + */ +void gtk_cell_area_context_push_preferred_width (GtkCellAreaContext *context, + gint minimum_width, + gint natural_width); +void gtk_cell_area_context_push_preferred_height (GtkCellAreaContext *context, + gint minimum_height, + gint natural_height); + +G_END_DECLS + +#endif /* __GTK_CELL_AREA_CONTEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcelleditable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcelleditable.h new file mode 100644 index 0000000..7cd3fbf --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcelleditable.h @@ -0,0 +1,62 @@ +/* gtkcelleditable.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_EDITABLE_H__ +#define __GTK_CELL_EDITABLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_EDITABLE (gtk_cell_editable_get_type ()) +#define GTK_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditable)) +#define GTK_CELL_EDITABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) +#define GTK_IS_CELL_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_EDITABLE)) +#define GTK_CELL_EDITABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_EDITABLE, GtkCellEditableIface)) + +typedef struct _GtkCellEditable GtkCellEditable; /* Dummy typedef */ +typedef struct _GtkCellEditableIface GtkCellEditableIface; + +struct _GtkCellEditableIface +{ + GTypeInterface g_iface; + + /* signals */ + void (* editing_done) (GtkCellEditable *cell_editable); + void (* remove_widget) (GtkCellEditable *cell_editable); + + /* virtual table */ + void (* start_editing) (GtkCellEditable *cell_editable, + GdkEvent *event); +}; + + +GType gtk_cell_editable_get_type (void) G_GNUC_CONST; + +void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable, + GdkEvent *event); +void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable); +void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable); + + +G_END_DECLS + +#endif /* __GTK_CELL_EDITABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcelllayout.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcelllayout.h new file mode 100644 index 0000000..28dfcaa --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcelllayout.h @@ -0,0 +1,135 @@ +/* gtkcelllayout.h + * Copyright (C) 2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_LAYOUT_H__ +#define __GTK_CELL_LAYOUT_H__ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_LAYOUT (gtk_cell_layout_get_type ()) +#define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout)) +#define GTK_IS_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT)) +#define GTK_CELL_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface)) + +typedef struct _GtkCellLayout GtkCellLayout; /* dummy typedef */ +typedef struct _GtkCellLayoutIface GtkCellLayoutIface; + +/* keep in sync with GtkTreeCellDataFunc */ +/** + * GtkCellLayoutDataFunc: + * @cell_layout: a #GtkCellLayout + * @cell: the cell renderer whose value is to be set + * @tree_model: the model + * @iter: a #GtkTreeIter indicating the row to set the value for + * @data: user data passed to gtk_cell_layout_set_cell_data_func() + * + * A function which should set the value of @cell_layout's cell renderer(s) + * as appropriate. + */ +typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); + +struct _GtkCellLayoutIface +{ + GTypeInterface g_iface; + + /* Virtual Table */ + void (* pack_start) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); + void (* pack_end) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); + void (* clear) (GtkCellLayout *cell_layout); + void (* add_attribute) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + const gchar *attribute, + gint column); + void (* set_cell_data_func) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkCellLayoutDataFunc func, + gpointer func_data, + GDestroyNotify destroy); + void (* clear_attributes) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell); + void (* reorder) (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gint position); + GList* (* get_cells) (GtkCellLayout *cell_layout); + + GtkCellArea *(* get_area) (GtkCellLayout *cell_layout); +}; + +GType gtk_cell_layout_get_type (void) G_GNUC_CONST; +void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); +void gtk_cell_layout_pack_end (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gboolean expand); +GList *gtk_cell_layout_get_cells (GtkCellLayout *cell_layout); +void gtk_cell_layout_clear (GtkCellLayout *cell_layout); +void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +void gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + const gchar *attribute, + gint column); +void gtk_cell_layout_set_cell_data_func (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + GtkCellLayoutDataFunc func, + gpointer func_data, + GDestroyNotify destroy); +void gtk_cell_layout_clear_attributes (GtkCellLayout *cell_layout, + GtkCellRenderer *cell); +void gtk_cell_layout_reorder (GtkCellLayout *cell_layout, + GtkCellRenderer *cell, + gint position); +GtkCellArea *gtk_cell_layout_get_area (GtkCellLayout *cell_layout); + +gboolean _gtk_cell_layout_buildable_custom_tag_start (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + GMarkupParser *parser, + gpointer *data); +gboolean _gtk_cell_layout_buildable_custom_tag_end (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *tagname, + gpointer *data); +void _gtk_cell_layout_buildable_add_child (GtkBuildable *buildable, + GtkBuilder *builder, + GObject *child, + const gchar *type); + +G_END_DECLS + +#endif /* __GTK_CELL_LAYOUT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderer.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderer.h new file mode 100644 index 0000000..f9a31dd --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderer.h @@ -0,0 +1,280 @@ +/* gtkcellrenderer.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_H__ +#define __GTK_CELL_RENDERER_H__ + +#include + +G_BEGIN_DECLS + + +/** + * GtkCellRendererState: + * @GTK_CELL_RENDERER_SELECTED: The cell is currently selected, and + * probably has a selection colored background to render to. + * @GTK_CELL_RENDERER_PRELIT: The mouse is hovering over the cell. + * @GTK_CELL_RENDERER_INSENSITIVE: The cell is drawn in an insensitive manner + * @GTK_CELL_RENDERER_SORTED: The cell is in a sorted row + * @GTK_CELL_RENDERER_FOCUSED: The cell is in the focus row. + * @GTK_CELL_RENDERER_EXPANDABLE: The cell is in a row that can be expanded. Since 3.4 + * @GTK_CELL_RENDERER_EXPANDED: The cell is in a row that is expanded. Since 3.4 + * + * Tells how a cell is to be rendererd. + */ +typedef enum +{ + GTK_CELL_RENDERER_SELECTED = 1 << 0, + GTK_CELL_RENDERER_PRELIT = 1 << 1, + GTK_CELL_RENDERER_INSENSITIVE = 1 << 2, + /* this flag means the cell is in the sort column/row */ + GTK_CELL_RENDERER_SORTED = 1 << 3, + GTK_CELL_RENDERER_FOCUSED = 1 << 4, + GTK_CELL_RENDERER_EXPANDABLE = 1 << 5, + GTK_CELL_RENDERER_EXPANDED = 1 << 6 +} GtkCellRendererState; + +/** + * GtkCellRendererMode: + * @GTK_CELL_RENDERER_MODE_INERT: The cell is just for display + * and cannot be interacted with. Note that this doesn't mean that eg. the + * row being drawn can't be selected -- just that a particular element of + * it cannot be individually modified. + * @GTK_CELL_RENDERER_MODE_ACTIVATABLE: The cell can be clicked. + * @GTK_CELL_RENDERER_MODE_EDITABLE: The cell can be edited or otherwise modified. + * + * Identifies how the user can interact with a particular cell. + */ +typedef enum +{ + GTK_CELL_RENDERER_MODE_INERT, + GTK_CELL_RENDERER_MODE_ACTIVATABLE, + GTK_CELL_RENDERER_MODE_EDITABLE +} GtkCellRendererMode; + +#define GTK_TYPE_CELL_RENDERER (gtk_cell_renderer_get_type ()) +#define GTK_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRenderer)) +#define GTK_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) +#define GTK_IS_CELL_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER)) +#define GTK_IS_CELL_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER)) +#define GTK_CELL_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER, GtkCellRendererClass)) + +typedef struct _GtkCellRenderer GtkCellRenderer; +typedef struct _GtkCellRendererPrivate GtkCellRendererPrivate; +typedef struct _GtkCellRendererClass GtkCellRendererClass; +typedef struct _GtkCellRendererClassPrivate GtkCellRendererClassPrivate; + +struct _GtkCellRenderer +{ + GInitiallyUnowned parent_instance; + + /*< private >*/ + GtkCellRendererPrivate *priv; +}; + +struct _GtkCellRendererClass +{ + GInitiallyUnownedClass parent_class; + + /* vtable - not signals */ + GtkSizeRequestMode (* get_request_mode) (GtkCellRenderer *cell); + void (* get_preferred_width) (GtkCellRenderer *cell, + GtkWidget *widget, + gint *minimum_size, + gint *natural_size); + void (* get_preferred_height_for_width) (GtkCellRenderer *cell, + GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); + void (* get_preferred_height) (GtkCellRenderer *cell, + GtkWidget *widget, + gint *minimum_size, + gint *natural_size); + void (* get_preferred_width_for_height) (GtkCellRenderer *cell, + GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); + void (* get_aligned_area) (GtkCellRenderer *cell, + GtkWidget *widget, + GtkCellRendererState flags, + const GdkRectangle *cell_area, + GdkRectangle *aligned_area); + void (* get_size) (GtkCellRenderer *cell, + GtkWidget *widget, + const GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); + void (* render) (GtkCellRenderer *cell, + cairo_t *cr, + GtkWidget *widget, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); + gboolean (* activate) (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); + GtkCellEditable * (* start_editing) (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); + + /* Signals */ + void (* editing_canceled) (GtkCellRenderer *cell); + void (* editing_started) (GtkCellRenderer *cell, + GtkCellEditable *editable, + const gchar *path); + + GtkCellRendererClassPrivate *priv; + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_get_type (void) G_GNUC_CONST; + +GtkSizeRequestMode gtk_cell_renderer_get_request_mode (GtkCellRenderer *cell); +void gtk_cell_renderer_get_preferred_width (GtkCellRenderer *cell, + GtkWidget *widget, + gint *minimum_size, + gint *natural_size); +void gtk_cell_renderer_get_preferred_height_for_width (GtkCellRenderer *cell, + GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); +void gtk_cell_renderer_get_preferred_height (GtkCellRenderer *cell, + GtkWidget *widget, + gint *minimum_size, + gint *natural_size); +void gtk_cell_renderer_get_preferred_width_for_height (GtkCellRenderer *cell, + GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); +void gtk_cell_renderer_get_preferred_size (GtkCellRenderer *cell, + GtkWidget *widget, + GtkRequisition *minimum_size, + GtkRequisition *natural_size); +void gtk_cell_renderer_get_aligned_area (GtkCellRenderer *cell, + GtkWidget *widget, + GtkCellRendererState flags, + const GdkRectangle *cell_area, + GdkRectangle *aligned_area); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_cell_renderer_get_preferred_size) +void gtk_cell_renderer_get_size (GtkCellRenderer *cell, + GtkWidget *widget, + const GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); +void gtk_cell_renderer_render (GtkCellRenderer *cell, + cairo_t *cr, + GtkWidget *widget, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); +gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); +GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, + const GdkRectangle *background_area, + const GdkRectangle *cell_area, + GtkCellRendererState flags); + +void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell, + gint width, + gint height); +void gtk_cell_renderer_get_fixed_size (GtkCellRenderer *cell, + gint *width, + gint *height); + +void gtk_cell_renderer_set_alignment (GtkCellRenderer *cell, + gfloat xalign, + gfloat yalign); +void gtk_cell_renderer_get_alignment (GtkCellRenderer *cell, + gfloat *xalign, + gfloat *yalign); + +void gtk_cell_renderer_set_padding (GtkCellRenderer *cell, + gint xpad, + gint ypad); +void gtk_cell_renderer_get_padding (GtkCellRenderer *cell, + gint *xpad, + gint *ypad); + +void gtk_cell_renderer_set_visible (GtkCellRenderer *cell, + gboolean visible); +gboolean gtk_cell_renderer_get_visible (GtkCellRenderer *cell); + +void gtk_cell_renderer_set_sensitive (GtkCellRenderer *cell, + gboolean sensitive); +gboolean gtk_cell_renderer_get_sensitive (GtkCellRenderer *cell); + +gboolean gtk_cell_renderer_is_activatable (GtkCellRenderer *cell); + +/* For use by cell renderer implementations only */ +void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell, + gboolean canceled); + + +void _gtk_cell_renderer_calc_offset (GtkCellRenderer *cell, + const GdkRectangle *cell_area, + GtkTextDirection direction, + gint width, + gint height, + gint *x_offset, + gint *y_offset); + +GtkStateFlags gtk_cell_renderer_get_state (GtkCellRenderer *cell, + GtkWidget *widget, + GtkCellRendererState cell_state); + +void _gtk_cell_renderer_class_set_accessible_type + (GtkCellRendererClass *renderer_class, + GType type); +GType _gtk_cell_renderer_get_accessible_type + (GtkCellRenderer * renderer); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendereraccel.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendereraccel.h new file mode 100644 index 0000000..a4fe49c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendereraccel.h @@ -0,0 +1,84 @@ +/* gtkcellrendereraccel.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_ACCEL_H__ +#define __GTK_CELL_RENDERER_ACCEL_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_ACCEL (gtk_cell_renderer_accel_get_type ()) +#define GTK_CELL_RENDERER_ACCEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccel)) +#define GTK_CELL_RENDERER_ACCEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccelClass)) +#define GTK_IS_CELL_RENDERER_ACCEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_ACCEL)) +#define GTK_IS_CELL_RENDERER_ACCEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_ACCEL)) +#define GTK_CELL_RENDERER_ACCEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_ACCEL, GtkCellRendererAccelClass)) + +typedef struct _GtkCellRendererAccel GtkCellRendererAccel; +typedef struct _GtkCellRendererAccelPrivate GtkCellRendererAccelPrivate; +typedef struct _GtkCellRendererAccelClass GtkCellRendererAccelClass; + + +typedef enum +{ + GTK_CELL_RENDERER_ACCEL_MODE_GTK, + GTK_CELL_RENDERER_ACCEL_MODE_OTHER +} GtkCellRendererAccelMode; + + +struct _GtkCellRendererAccel +{ + GtkCellRendererText parent; + + /*< private >*/ + GtkCellRendererAccelPrivate *priv; +}; + +struct _GtkCellRendererAccelClass +{ + GtkCellRendererTextClass parent_class; + + void (* accel_edited) (GtkCellRendererAccel *accel, + const gchar *path_string, + guint accel_key, + GdkModifierType accel_mods, + guint hardware_keycode); + + void (* accel_cleared) (GtkCellRendererAccel *accel, + const gchar *path_string); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_accel_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_accel_new (void); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_ACCEL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderercombo.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderercombo.h new file mode 100644 index 0000000..acbbbf4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderercombo.h @@ -0,0 +1,65 @@ +/* GtkCellRendererCombo + * Copyright (C) 2004 Lorenzo Gil Sanchez + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_COMBO_H__ +#define __GTK_CELL_RENDERER_COMBO_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_COMBO (gtk_cell_renderer_combo_get_type ()) +#define GTK_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererCombo)) +#define GTK_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererComboClass)) +#define GTK_IS_CELL_RENDERER_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_COMBO)) +#define GTK_IS_CELL_RENDERER_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_COMBO)) +#define GTK_CELL_RENDERER_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_COMBO, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererCombo GtkCellRendererCombo; +typedef struct _GtkCellRendererComboPrivate GtkCellRendererComboPrivate; +typedef struct _GtkCellRendererComboClass GtkCellRendererComboClass; + +struct _GtkCellRendererCombo +{ + GtkCellRendererText parent; + + /*< private >*/ + GtkCellRendererComboPrivate *priv; +}; + +struct _GtkCellRendererComboClass +{ + GtkCellRendererTextClass parent; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_combo_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_combo_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_COMBO_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h new file mode 100644 index 0000000..3417b4d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h @@ -0,0 +1,68 @@ +/* gtkcellrendererpixbuf.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_PIXBUF_H__ +#define __GTK_CELL_RENDERER_PIXBUF_H__ + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_PIXBUF (gtk_cell_renderer_pixbuf_get_type ()) +#define GTK_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbuf)) +#define GTK_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) +#define GTK_IS_CELL_RENDERER_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF)) +#define GTK_IS_CELL_RENDERER_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PIXBUF)) +#define GTK_CELL_RENDERER_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PIXBUF, GtkCellRendererPixbufClass)) + +typedef struct _GtkCellRendererPixbuf GtkCellRendererPixbuf; +typedef struct _GtkCellRendererPixbufPrivate GtkCellRendererPixbufPrivate; +typedef struct _GtkCellRendererPixbufClass GtkCellRendererPixbufClass; + +struct _GtkCellRendererPixbuf +{ + GtkCellRenderer parent; + + /*< private >*/ + GtkCellRendererPixbufPrivate *priv; +}; + +struct _GtkCellRendererPixbufClass +{ + GtkCellRendererClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_pixbuf_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void); + + +G_END_DECLS + + +#endif /* __GTK_CELL_RENDERER_PIXBUF_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererprogress.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererprogress.h new file mode 100644 index 0000000..809d062 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererprogress.h @@ -0,0 +1,72 @@ +/* gtkcellrendererprogress.h + * Copyright (C) 2002 Naba Kumar + * modified by Jörgen Scheibengruber + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2004. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_PROGRESS_H__ +#define __GTK_CELL_RENDERER_PROGRESS_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_PROGRESS (gtk_cell_renderer_progress_get_type ()) +#define GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress)) +#define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) +#define GTK_IS_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS)) +#define GTK_IS_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS)) +#define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) + +typedef struct _GtkCellRendererProgress GtkCellRendererProgress; +typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; +typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate; + +struct _GtkCellRendererProgress +{ + GtkCellRenderer parent_instance; + + /*< private >*/ + GtkCellRendererProgressPrivate *priv; +}; + +struct _GtkCellRendererProgressClass +{ + GtkCellRendererClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_progress_get_type (void) G_GNUC_CONST; +GtkCellRenderer* gtk_cell_renderer_progress_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_PROGRESS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspin.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspin.h new file mode 100644 index 0000000..56e3bc7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspin.h @@ -0,0 +1,64 @@ +/* GtkCellRendererSpin + * Copyright (C) 2004 Lorenzo Gil Sanchez + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_SPIN_H__ +#define __GTK_CELL_RENDERER_SPIN_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_SPIN (gtk_cell_renderer_spin_get_type ()) +#define GTK_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererSpin)) +#define GTK_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererSpinClass)) +#define GTK_IS_CELL_RENDERER_SPIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_SPIN)) +#define GTK_IS_CELL_RENDERER_SPIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_SPIN)) +#define GTK_CELL_RENDERER_SPIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_SPIN, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererSpin GtkCellRendererSpin; +typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass; +typedef struct _GtkCellRendererSpinPrivate GtkCellRendererSpinPrivate; + +struct _GtkCellRendererSpin +{ + GtkCellRendererText parent; + + /*< private >*/ + GtkCellRendererSpinPrivate *priv; +}; + +struct _GtkCellRendererSpinClass +{ + GtkCellRendererTextClass parent; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_spin_get_type (void); +GtkCellRenderer *gtk_cell_renderer_spin_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_SPIN_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspinner.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspinner.h new file mode 100644 index 0000000..7ce0a80 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrendererspinner.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2009 Matthias Clasen + * Copyright (C) 2008 Richard Hughes + * Copyright (C) 2009 Bastien Nocera + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_SPINNER_H__ +#define __GTK_CELL_RENDERER_SPINNER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_RENDERER_SPINNER (gtk_cell_renderer_spinner_get_type ()) +#define GTK_CELL_RENDERER_SPINNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinner)) +#define GTK_CELL_RENDERER_SPINNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinnerClass)) +#define GTK_IS_CELL_RENDERER_SPINNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_SPINNER)) +#define GTK_IS_CELL_RENDERER_SPINNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_SPINNER)) +#define GTK_CELL_RENDERER_SPINNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_SPINNER, GtkCellRendererSpinnerClass)) + +typedef struct _GtkCellRendererSpinner GtkCellRendererSpinner; +typedef struct _GtkCellRendererSpinnerClass GtkCellRendererSpinnerClass; +typedef struct _GtkCellRendererSpinnerPrivate GtkCellRendererSpinnerPrivate; + +struct _GtkCellRendererSpinner +{ + GtkCellRenderer parent; + + /*< private >*/ + GtkCellRendererSpinnerPrivate *priv; +}; + +struct _GtkCellRendererSpinnerClass +{ + GtkCellRendererClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_spinner_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_spinner_new (void); + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_SPINNER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertext.h new file mode 100644 index 0000000..82c94df --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertext.h @@ -0,0 +1,75 @@ +/* gtkcellrenderertext.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_TEXT_H__ +#define __GTK_CELL_RENDERER_TEXT_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_TEXT (gtk_cell_renderer_text_get_type ()) +#define GTK_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererText)) +#define GTK_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) +#define GTK_IS_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TEXT)) +#define GTK_IS_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TEXT)) +#define GTK_CELL_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass)) + +typedef struct _GtkCellRendererText GtkCellRendererText; +typedef struct _GtkCellRendererTextPrivate GtkCellRendererTextPrivate; +typedef struct _GtkCellRendererTextClass GtkCellRendererTextClass; + +struct _GtkCellRendererText +{ + GtkCellRenderer parent; + + /*< private >*/ + GtkCellRendererTextPrivate *priv; +}; + +struct _GtkCellRendererTextClass +{ + GtkCellRendererClass parent_class; + + void (* edited) (GtkCellRendererText *cell_renderer_text, + const gchar *path, + const gchar *new_text); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_text_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_text_new (void); + +void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer, + gint number_of_rows); + + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_TEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertoggle.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertoggle.h new file mode 100644 index 0000000..dd26c74 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellrenderertoggle.h @@ -0,0 +1,82 @@ +/* gtkcellrenderertoggle.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_RENDERER_TOGGLE_H__ +#define __GTK_CELL_RENDERER_TOGGLE_H__ + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_CELL_RENDERER_TOGGLE (gtk_cell_renderer_toggle_get_type ()) +#define GTK_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggle)) +#define GTK_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) +#define GTK_IS_CELL_RENDERER_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE)) +#define GTK_IS_CELL_RENDERER_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TOGGLE)) +#define GTK_CELL_RENDERER_TOGGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TOGGLE, GtkCellRendererToggleClass)) + +typedef struct _GtkCellRendererToggle GtkCellRendererToggle; +typedef struct _GtkCellRendererTogglePrivate GtkCellRendererTogglePrivate; +typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass; + +struct _GtkCellRendererToggle +{ + GtkCellRenderer parent; + + /*< private >*/ + GtkCellRendererTogglePrivate *priv; +}; + +struct _GtkCellRendererToggleClass +{ + GtkCellRendererClass parent_class; + + void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST; +GtkCellRenderer *gtk_cell_renderer_toggle_new (void); + +gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_radio (GtkCellRendererToggle *toggle, + gboolean radio); + +gboolean gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_active (GtkCellRendererToggle *toggle, + gboolean setting); + +gboolean gtk_cell_renderer_toggle_get_activatable (GtkCellRendererToggle *toggle); +void gtk_cell_renderer_toggle_set_activatable (GtkCellRendererToggle *toggle, + gboolean setting); + + +G_END_DECLS + +#endif /* __GTK_CELL_RENDERER_TOGGLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcellview.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellview.h new file mode 100644 index 0000000..3a02b02 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcellview.h @@ -0,0 +1,95 @@ +/* gtkcellview.h + * Copyright (C) 2002, 2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CELL_VIEW_H__ +#define __GTK_CELL_VIEW_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CELL_VIEW (gtk_cell_view_get_type ()) +#define GTK_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_VIEW, GtkCellView)) +#define GTK_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) +#define GTK_IS_CELL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_VIEW)) +#define GTK_IS_CELL_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_CELL_VIEW)) +#define GTK_CELL_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_CELL_VIEW, GtkCellViewClass)) + +typedef struct _GtkCellView GtkCellView; +typedef struct _GtkCellViewClass GtkCellViewClass; +typedef struct _GtkCellViewPrivate GtkCellViewPrivate; + +struct _GtkCellView +{ + GtkWidget parent_instance; + + /*< private >*/ + GtkCellViewPrivate *priv; +}; + +struct _GtkCellViewClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_cell_view_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_cell_view_new (void); +GtkWidget *gtk_cell_view_new_with_context (GtkCellArea *area, + GtkCellAreaContext *context); +GtkWidget *gtk_cell_view_new_with_text (const gchar *text); +GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup); +GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf); +void gtk_cell_view_set_model (GtkCellView *cell_view, + GtkTreeModel *model); +GtkTreeModel *gtk_cell_view_get_model (GtkCellView *cell_view); +void gtk_cell_view_set_displayed_row (GtkCellView *cell_view, + GtkTreePath *path); +GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view); +void gtk_cell_view_set_background_rgba (GtkCellView *cell_view, + const GdkRGBA *rgba); +gboolean gtk_cell_view_get_draw_sensitive (GtkCellView *cell_view); +void gtk_cell_view_set_draw_sensitive (GtkCellView *cell_view, + gboolean draw_sensitive); +gboolean gtk_cell_view_get_fit_model (GtkCellView *cell_view); +void gtk_cell_view_set_fit_model (GtkCellView *cell_view, + gboolean fit_model); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size) +gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view, + GtkTreePath *path, + GtkRequisition *requisition); +GDK_DEPRECATED_IN_3_4_FOR(gtk_cell_view_set_background_rgba) +void gtk_cell_view_set_background_color (GtkCellView *cell_view, + const GdkColor *color); + +G_END_DECLS + +#endif /* __GTK_CELL_VIEW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckbutton.h new file mode 100644 index 0000000..cf33b68 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckbutton.h @@ -0,0 +1,80 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CHECK_BUTTON_H__ +#define __GTK_CHECK_BUTTON_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_CHECK_BUTTON (gtk_check_button_get_type ()) +#define GTK_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButton)) +#define GTK_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) +#define GTK_IS_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_BUTTON)) +#define GTK_IS_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_BUTTON)) +#define GTK_CHECK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_BUTTON, GtkCheckButtonClass)) + + +typedef struct _GtkCheckButton GtkCheckButton; +typedef struct _GtkCheckButtonClass GtkCheckButtonClass; + +struct _GtkCheckButton +{ + GtkToggleButton toggle_button; +}; + +struct _GtkCheckButtonClass +{ + GtkToggleButtonClass parent_class; + + void (* draw_indicator) (GtkCheckButton *check_button, + cairo_t *cr); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_check_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_check_button_new (void); +GtkWidget* gtk_check_button_new_with_label (const gchar *label); +GtkWidget* gtk_check_button_new_with_mnemonic (const gchar *label); + +void _gtk_check_button_get_props (GtkCheckButton *check_button, + gint *indicator_size, + gint *indicator_spacing); + +G_END_DECLS + +#endif /* __GTK_CHECK_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckmenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckmenuitem.h new file mode 100644 index 0000000..0a2fe64 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcheckmenuitem.h @@ -0,0 +1,98 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CHECK_MENU_ITEM_H__ +#define __GTK_CHECK_MENU_ITEM_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_CHECK_MENU_ITEM (gtk_check_menu_item_get_type ()) +#define GTK_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItem)) +#define GTK_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) +#define GTK_IS_CHECK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CHECK_MENU_ITEM)) +#define GTK_IS_CHECK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CHECK_MENU_ITEM)) +#define GTK_CHECK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CHECK_MENU_ITEM, GtkCheckMenuItemClass)) + + +typedef struct _GtkCheckMenuItem GtkCheckMenuItem; +typedef struct _GtkCheckMenuItemPrivate GtkCheckMenuItemPrivate; +typedef struct _GtkCheckMenuItemClass GtkCheckMenuItemClass; + +struct _GtkCheckMenuItem +{ + GtkMenuItem menu_item; + + /*< private >*/ + GtkCheckMenuItemPrivate *priv; +}; + +struct _GtkCheckMenuItemClass +{ + GtkMenuItemClass parent_class; + + void (* toggled) (GtkCheckMenuItem *check_menu_item); + void (* draw_indicator) (GtkCheckMenuItem *check_menu_item, + cairo_t *cr); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_check_menu_item_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_check_menu_item_new (void); +GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_check_menu_item_new_with_mnemonic (const gchar *label); +void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, + gboolean is_active); +gboolean gtk_check_menu_item_get_active (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_toggled (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_set_inconsistent (GtkCheckMenuItem *check_menu_item, + gboolean setting); +gboolean gtk_check_menu_item_get_inconsistent (GtkCheckMenuItem *check_menu_item); +void gtk_check_menu_item_set_draw_as_radio (GtkCheckMenuItem *check_menu_item, + gboolean draw_as_radio); +gboolean gtk_check_menu_item_get_draw_as_radio (GtkCheckMenuItem *check_menu_item); + + +/* private */ +void _gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item, + gboolean is_active); + + +G_END_DECLS + +#endif /* __GTK_CHECK_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkclipboard.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkclipboard.h new file mode 100644 index 0000000..d47dba1 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkclipboard.h @@ -0,0 +1,237 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Global clipboard abstraction. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CLIPBOARD_H__ +#define __GTK_CLIPBOARD_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CLIPBOARD (gtk_clipboard_get_type ()) +#define GTK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD, GtkClipboard)) +#define GTK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD)) + +/** + * GtkClipboardReceivedFunc: + * @clipboard: the #GtkClipboard + * @selection_data: a #GtkSelectionData containing the data was received. + * If retrieving the data failed, then then length field + * of @selection_data will be negative. + * @data: the @user_data supplied to gtk_clipboard_request_contents(). + * + * A function to be called when the results of gtk_clipboard_request_contents() + * are received, or when the request fails. + */ +typedef void (* GtkClipboardReceivedFunc) (GtkClipboard *clipboard, + GtkSelectionData *selection_data, + gpointer data); + +/** + * GtkClipboardTextReceivedFunc: + * @clipboard: the #GtkClipboard + * @text: the text received, as a UTF-8 encoded string, or %NULL + * if retrieving the data failed. + * @data: the @user_data supplied to gtk_clipboard_request_text(). + * + * A function to be called when the results of gtk_clipboard_request_text() + * are received, or when the request fails. + */ +typedef void (* GtkClipboardTextReceivedFunc) (GtkClipboard *clipboard, + const gchar *text, + gpointer data); + +typedef void (* GtkClipboardRichTextReceivedFunc) (GtkClipboard *clipboard, + GdkAtom format, + const guint8 *text, + gsize length, + gpointer data); + +/** + * GtkClipboardImageReceivedFunc: + * @clipboard: the #GtkClipboard + * @pixbuf: the received image + * @data: the @user_data supplied to gtk_clipboard_request_image(). + * + * A function to be called when the results of gtk_clipboard_request_image() + * are received, or when the request fails. + * + * Since: 2.6 + */ +typedef void (* GtkClipboardImageReceivedFunc) (GtkClipboard *clipboard, + GdkPixbuf *pixbuf, + gpointer data); + +typedef void (* GtkClipboardURIReceivedFunc) (GtkClipboard *clipboard, + gchar **uris, + gpointer data); + +/** + * GtkClipboardTargetsReceivedFunc: + * @clipboard: the #GtkClipboard + * @atoms: the supported targets, as array of #GdkAtom, or %NULL + * if retrieving the data failed. + * @n_atoms: the length of the @atoms array. + * @data: the @user_data supplied to gtk_clipboard_request_targets(). + * + * A function to be called when the results of gtk_clipboard_request_targets() + * are received, or when the request fails. + * + * Since: 2.4 + */ +typedef void (* GtkClipboardTargetsReceivedFunc) (GtkClipboard *clipboard, + GdkAtom *atoms, + gint n_atoms, + gpointer data); + +/* Should these functions have GtkClipboard *clipboard as the first argument? + * right now for ClearFunc, you may have trouble determining _which_ clipboard + * was cleared, if you reuse your ClearFunc for multiple clipboards. + */ +/** + * GtkClipboardGetFunc: + * @clipboard: the #GtkClipboard + * @selection_data: a #GtkSelectionData argument in which the requested + * data should be stored. + * @info: the info field corresponding to the requested target from the + * #GtkTargetEntry array passed to gtk_clipboard_set_with_data() or + * gtk_clipboard_set_with_owner(). + * @user_data_or_owner: the @user_data argument passed to + * gtk_clipboard_set_with_data(), or the @owner argument passed to + * gtk_clipboard_set_with_owner() + * + * A function that will be called to provide the contents of the selection. + * If multiple types of data were advertised, the requested type can + * be determined from the @info parameter or by checking the target field + * of @selection_data. If the data could successfully be converted into + * then it should be stored into the @selection_data object by + * calling gtk_selection_data_set() (or related functions such + * as gtk_selection_data_set_text()). If no data is set, the requestor + * will be informed that the attempt to get the data failed. + */ +typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard, + GtkSelectionData *selection_data, + guint info, + gpointer user_data_or_owner); + +/** + * GtkClipboardClearFunc: + * @clipboard: the #GtkClipboard + * @user_data_or_owner: the @user_data argument passed to gtk_clipboard_set_with_data(), + * or the @owner argument passed to gtk_clipboard_set_with_owner() + * + * A function that will be called when the contents of the clipboard are changed + * or cleared. Once this has called, the @user_data_or_owner argument + * will not be used again. + */ +typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard, + gpointer user_data_or_owner); + +GType gtk_clipboard_get_type (void) G_GNUC_CONST; + +GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display, + GdkAtom selection); +#ifndef GDK_MULTIHEAD_SAFE +GtkClipboard *gtk_clipboard_get (GdkAtom selection); +#endif + +GdkDisplay *gtk_clipboard_get_display (GtkClipboard *clipboard); + + +gboolean gtk_clipboard_set_with_data (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + guint n_targets, + GtkClipboardGetFunc get_func, + GtkClipboardClearFunc clear_func, + gpointer user_data); +gboolean gtk_clipboard_set_with_owner (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + guint n_targets, + GtkClipboardGetFunc get_func, + GtkClipboardClearFunc clear_func, + GObject *owner); +GObject *gtk_clipboard_get_owner (GtkClipboard *clipboard); +void gtk_clipboard_clear (GtkClipboard *clipboard); +void gtk_clipboard_set_text (GtkClipboard *clipboard, + const gchar *text, + gint len); +void gtk_clipboard_set_image (GtkClipboard *clipboard, + GdkPixbuf *pixbuf); + +void gtk_clipboard_request_contents (GtkClipboard *clipboard, + GdkAtom target, + GtkClipboardReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_text (GtkClipboard *clipboard, + GtkClipboardTextReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_rich_text (GtkClipboard *clipboard, + GtkTextBuffer *buffer, + GtkClipboardRichTextReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_image (GtkClipboard *clipboard, + GtkClipboardImageReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_uris (GtkClipboard *clipboard, + GtkClipboardURIReceivedFunc callback, + gpointer user_data); +void gtk_clipboard_request_targets (GtkClipboard *clipboard, + GtkClipboardTargetsReceivedFunc callback, + gpointer user_data); + +GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard, + GdkAtom target); +gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard); +guint8 * gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard, + GtkTextBuffer *buffer, + GdkAtom *format, + gsize *length); +GdkPixbuf * gtk_clipboard_wait_for_image (GtkClipboard *clipboard); +gchar ** gtk_clipboard_wait_for_uris (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard, + GdkAtom **targets, + gint *n_targets); + +gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_is_rich_text_available (GtkClipboard *clipboard, + GtkTextBuffer *buffer); +gboolean gtk_clipboard_wait_is_image_available (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_is_uris_available (GtkClipboard *clipboard); +gboolean gtk_clipboard_wait_is_target_available (GtkClipboard *clipboard, + GdkAtom target); + + +void gtk_clipboard_set_can_store (GtkClipboard *clipboard, + const GtkTargetEntry *targets, + gint n_targets); + +void gtk_clipboard_store (GtkClipboard *clipboard); + +/* private */ +void _gtk_clipboard_handle_event (GdkEventOwnerChange *event); + +void _gtk_clipboard_store_all (void); + +G_END_DECLS + +#endif /* __GTK_CLIPBOARD_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorbutton.h new file mode 100644 index 0000000..3dd7f39 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorbutton.h @@ -0,0 +1,108 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* Color picker button for GNOME + * + * Author: Federico Mena + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_BUTTON_H__ +#define __GTK_COLOR_BUTTON_H__ + + +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_COLOR_BUTTON (gtk_color_button_get_type ()) +#define GTK_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButton)) +#define GTK_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) +#define GTK_IS_COLOR_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_BUTTON)) +#define GTK_IS_COLOR_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_BUTTON)) +#define GTK_COLOR_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_BUTTON, GtkColorButtonClass)) + +typedef struct _GtkColorButton GtkColorButton; +typedef struct _GtkColorButtonClass GtkColorButtonClass; +typedef struct _GtkColorButtonPrivate GtkColorButtonPrivate; + +struct _GtkColorButton { + GtkButton button; + + /*< private >*/ + GtkColorButtonPrivate *priv; +}; + +struct _GtkColorButtonClass { + GtkButtonClass parent_class; + + void (* color_set) (GtkColorButton *cp); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_color_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_color_button_new (void); +GtkWidget * gtk_color_button_new_with_rgba (const GdkRGBA *rgba); +void gtk_color_button_set_title (GtkColorButton *button, + const gchar *title); +const gchar *gtk_color_button_get_title (GtkColorButton *button); + +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_new_with_rgba) +GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_set_rgba) +void gtk_color_button_set_color (GtkColorButton *button, + const GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_get_rgba) +void gtk_color_button_get_color (GtkColorButton *button, + GdkColor *color); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_set_rgba) +void gtk_color_button_set_alpha (GtkColorButton *button, + guint16 alpha); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_button_get_rgba) +guint16 gtk_color_button_get_alpha (GtkColorButton *button); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_use_alpha) +void gtk_color_button_set_use_alpha (GtkColorButton *button, + gboolean use_alpha); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_use_alpha) +gboolean gtk_color_button_get_use_alpha (GtkColorButton *button); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_set_rgba) +void gtk_color_button_set_rgba (GtkColorButton *button, + const GdkRGBA *rgba); +GDK_DEPRECATED_IN_3_4_FOR(gtk_color_chooser_get_rgba) +void gtk_color_button_get_rgba (GtkColorButton *button, + GdkRGBA *rgba); + +G_END_DECLS + +#endif /* __GTK_COLOR_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooser.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooser.h new file mode 100644 index 0000000..6d3a891 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooser.h @@ -0,0 +1,87 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2012 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_CHOOSER_H__ +#define __GTK_COLOR_CHOOSER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_CHOOSER (gtk_color_chooser_get_type ()) +#define GTK_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER, GtkColorChooser)) +#define GTK_IS_COLOR_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER)) +#define GTK_COLOR_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_COLOR_CHOOSER, GtkColorChooserInterface)) + +typedef struct _GtkColorChooser GtkColorChooser; +typedef struct _GtkColorChooserInterface GtkColorChooserInterface; + +struct _GtkColorChooserInterface +{ + GTypeInterface base_interface; + + /* Methods */ + void (* get_rgba) (GtkColorChooser *chooser, + GdkRGBA *color); + void (* set_rgba) (GtkColorChooser *chooser, + const GdkRGBA *color); + + void (* add_palette) (GtkColorChooser *chooser, + GtkOrientation orientation, + gint colors_per_line, + gint n_colors, + GdkRGBA *colors); + + /* Signals */ + void (* color_activated) (GtkColorChooser *chooser, + const GdkRGBA *color); + + /* Padding */ + gpointer padding[12]; +}; + +GDK_AVAILABLE_IN_3_4 +GType gtk_color_chooser_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_4 +void gtk_color_chooser_get_rgba (GtkColorChooser *chooser, + GdkRGBA *color); +GDK_AVAILABLE_IN_3_4 +void gtk_color_chooser_set_rgba (GtkColorChooser *chooser, + const GdkRGBA *color); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_color_chooser_get_use_alpha (GtkColorChooser *chooser); + +GDK_AVAILABLE_IN_3_4 +void gtk_color_chooser_set_use_alpha (GtkColorChooser *chooser, + gboolean use_alpha); + +GDK_AVAILABLE_IN_3_4 +void gtk_color_chooser_add_palette (GtkColorChooser *chooser, + GtkOrientation orientation, + gint colors_per_line, + gint n_colors, + GdkRGBA *colors); + +G_END_DECLS + +#endif /* __GTK_COLOR_CHOOSER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserdialog.h new file mode 100644 index 0000000..9d65643 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserdialog.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2012 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_CHOOSER_DIALOG_H__ +#define __GTK_COLOR_CHOOSER_DIALOG_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_CHOOSER_DIALOG (gtk_color_chooser_dialog_get_type ()) +#define GTK_COLOR_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER_DIALOG, GtkColorChooserDialog)) +#define GTK_COLOR_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_CHOOSER_DIALOG, GtkColorChooserDialogClass)) +#define GTK_IS_COLOR_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER_DIALOG)) +#define GTK_IS_COLOR_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_CHOOSER_DIALOG)) +#define GTK_COLOR_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_CHOOSER_DIALOG, GtkColorChooserDialogClass)) + +typedef struct _GtkColorChooserDialog GtkColorChooserDialog; +typedef struct _GtkColorChooserDialogPrivate GtkColorChooserDialogPrivate; +typedef struct _GtkColorChooserDialogClass GtkColorChooserDialogClass; + +struct _GtkColorChooserDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkColorChooserDialogPrivate *priv; +}; + +struct _GtkColorChooserDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GDK_AVAILABLE_IN_3_4 +GType gtk_color_chooser_dialog_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_4 +GtkWidget * gtk_color_chooser_dialog_new (const gchar *title, + GtkWindow *parent); + +G_END_DECLS + +#endif /* __GTK_COLOR_CHOOSER_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserwidget.h new file mode 100644 index 0000000..beecc78 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorchooserwidget.h @@ -0,0 +1,71 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2012 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_CHOOSER_WIDGET_H__ +#define __GTK_COLOR_CHOOSER_WIDGET_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COLOR_CHOOSER_WIDGET (gtk_color_chooser_widget_get_type ()) +#define GTK_COLOR_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidget)) +#define GTK_COLOR_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetClass)) +#define GTK_IS_COLOR_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET)) +#define GTK_IS_COLOR_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COLOR_CHOOSER_WIDGET)) +#define GTK_COLOR_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COLOR_CHOOSER_WIDGET, GtkColorChooserWidgetClass)) + +typedef struct _GtkColorChooserWidget GtkColorChooserWidget; +typedef struct _GtkColorChooserWidgetPrivate GtkColorChooserWidgetPrivate; +typedef struct _GtkColorChooserWidgetClass GtkColorChooserWidgetClass; + +struct _GtkColorChooserWidget +{ + GtkBox parent_instance; + + /*< private >*/ + GtkColorChooserWidgetPrivate *priv; +}; + +struct _GtkColorChooserWidgetClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GDK_AVAILABLE_IN_3_4 +GType gtk_color_chooser_widget_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_4 +GtkWidget * gtk_color_chooser_widget_new (void); + +G_END_DECLS + +#endif /* __GTK_COLOR_CHOOSER_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorutils.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorutils.h new file mode 100644 index 0000000..8fdef92 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcolorutils.h @@ -0,0 +1,48 @@ +/* Color utilties + * + * Copyright (C) 1999 The Free Software Foundation + * + * Authors: Simon Budig (original code) + * Federico Mena-Quintero (cleanup for GTK+) + * Jonathan Blandford (cleanup for GTK+) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COLOR_UTILS_H__ +#define __GTK_COLOR_UTILS_H__ + +#include + +G_BEGIN_DECLS + +void gtk_hsv_to_rgb (gdouble h, gdouble s, gdouble v, + gdouble *r, gdouble *g, gdouble *b); +void gtk_rgb_to_hsv (gdouble r, gdouble g, gdouble b, + gdouble *h, gdouble *s, gdouble *v); + +G_END_DECLS + +#endif /* __GTK_COLOR_UTILS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcombobox.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcombobox.h new file mode 100644 index 0000000..8378d2d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcombobox.h @@ -0,0 +1,147 @@ +/* gtkcombobox.h + * Copyright (C) 2002, 2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COMBO_BOX_H__ +#define __GTK_COMBO_BOX_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COMBO_BOX (gtk_combo_box_get_type ()) +#define GTK_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX, GtkComboBox)) +#define GTK_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) +#define GTK_IS_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX)) +#define GTK_IS_COMBO_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_COMBO_BOX)) +#define GTK_COMBO_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), GTK_TYPE_COMBO_BOX, GtkComboBoxClass)) + +typedef struct _GtkComboBox GtkComboBox; +typedef struct _GtkComboBoxClass GtkComboBoxClass; +typedef struct _GtkComboBoxPrivate GtkComboBoxPrivate; + +struct _GtkComboBox +{ + GtkBin parent_instance; + + /*< private >*/ + GtkComboBoxPrivate *priv; +}; + +struct _GtkComboBoxClass +{ + GtkBinClass parent_class; + + /* signals */ + void (* changed) (GtkComboBox *combo_box); + gchar *(* format_entry_text) (GtkComboBox *combo_box, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + + +/* construction */ +GType gtk_combo_box_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_combo_box_new (void); +GtkWidget *gtk_combo_box_new_with_area (GtkCellArea *area); +GtkWidget *gtk_combo_box_new_with_area_and_entry (GtkCellArea *area); +GtkWidget *gtk_combo_box_new_with_entry (void); +GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model); +GtkWidget *gtk_combo_box_new_with_model_and_entry (GtkTreeModel *model); + +/* grids */ +gint gtk_combo_box_get_wrap_width (GtkComboBox *combo_box); +void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box, + gint width); +gint gtk_combo_box_get_row_span_column (GtkComboBox *combo_box); +void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box, + gint row_span); +gint gtk_combo_box_get_column_span_column (GtkComboBox *combo_box); +void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box, + gint column_span); + +gboolean gtk_combo_box_get_add_tearoffs (GtkComboBox *combo_box); +void gtk_combo_box_set_add_tearoffs (GtkComboBox *combo_box, + gboolean add_tearoffs); + +const gchar * gtk_combo_box_get_title (GtkComboBox *combo_box); +void gtk_combo_box_set_title (GtkComboBox *combo_box, + const gchar *title); + +gboolean gtk_combo_box_get_focus_on_click (GtkComboBox *combo); +void gtk_combo_box_set_focus_on_click (GtkComboBox *combo, + gboolean focus_on_click); + +/* get/set active item */ +gint gtk_combo_box_get_active (GtkComboBox *combo_box); +void gtk_combo_box_set_active (GtkComboBox *combo_box, + gint index_); +gboolean gtk_combo_box_get_active_iter (GtkComboBox *combo_box, + GtkTreeIter *iter); +void gtk_combo_box_set_active_iter (GtkComboBox *combo_box, + GtkTreeIter *iter); + +/* getters and setters */ +void gtk_combo_box_set_model (GtkComboBox *combo_box, + GtkTreeModel *model); +GtkTreeModel *gtk_combo_box_get_model (GtkComboBox *combo_box); + +GtkTreeViewRowSeparatorFunc gtk_combo_box_get_row_separator_func (GtkComboBox *combo_box); +void gtk_combo_box_set_row_separator_func (GtkComboBox *combo_box, + GtkTreeViewRowSeparatorFunc func, + gpointer data, + GDestroyNotify destroy); + +void gtk_combo_box_set_button_sensitivity (GtkComboBox *combo_box, + GtkSensitivityType sensitivity); +GtkSensitivityType gtk_combo_box_get_button_sensitivity (GtkComboBox *combo_box); + +gboolean gtk_combo_box_get_has_entry (GtkComboBox *combo_box); +void gtk_combo_box_set_entry_text_column (GtkComboBox *combo_box, + gint text_column); +gint gtk_combo_box_get_entry_text_column (GtkComboBox *combo_box); + +void gtk_combo_box_set_popup_fixed_width (GtkComboBox *combo_box, + gboolean fixed); +gboolean gtk_combo_box_get_popup_fixed_width (GtkComboBox *combo_box); + +/* programmatic control */ +void gtk_combo_box_popup (GtkComboBox *combo_box); +void gtk_combo_box_popup_for_device (GtkComboBox *combo_box, + GdkDevice *device); +void gtk_combo_box_popdown (GtkComboBox *combo_box); +AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box); + +gint gtk_combo_box_get_id_column (GtkComboBox *combo_box); +void gtk_combo_box_set_id_column (GtkComboBox *combo_box, + gint id_column); +const gchar * gtk_combo_box_get_active_id (GtkComboBox *combo_box); +gboolean gtk_combo_box_set_active_id (GtkComboBox *combo_box, + const gchar *active_id); + +G_END_DECLS + +#endif /* __GTK_COMBO_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcomboboxtext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcomboboxtext.h new file mode 100644 index 0000000..d1c362f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcomboboxtext.h @@ -0,0 +1,88 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2010 Christian Dywan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_COMBO_BOX_TEXT_H__ +#define __GTK_COMBO_BOX_TEXT_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_COMBO_BOX_TEXT (gtk_combo_box_text_get_type ()) +#define GTK_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxText)) +#define GTK_COMBO_BOX_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxTextClass)) +#define GTK_IS_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX_TEXT)) +#define GTK_IS_COMBO_BOX_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_COMBO_BOX_TEXT)) +#define GTK_COMBO_BOX_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxTextClass)) + +typedef struct _GtkComboBoxText GtkComboBoxText; +typedef struct _GtkComboBoxTextPrivate GtkComboBoxTextPrivate; +typedef struct _GtkComboBoxTextClass GtkComboBoxTextClass; + +struct _GtkComboBoxText +{ + /*< private >*/ + GtkComboBox parent_instance; + + GtkComboBoxTextPrivate *priv; +}; + +struct _GtkComboBoxTextClass +{ + GtkComboBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_combo_box_text_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_combo_box_text_new (void); +GtkWidget* gtk_combo_box_text_new_with_entry (void); +void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box, + const gchar *text); +void gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box, + gint position, + const gchar *text); +void gtk_combo_box_text_prepend_text (GtkComboBoxText *combo_box, + const gchar *text); +void gtk_combo_box_text_remove (GtkComboBoxText *combo_box, + gint position); +void gtk_combo_box_text_remove_all (GtkComboBoxText *combo_box); +gchar *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box); + +void gtk_combo_box_text_insert (GtkComboBoxText *combo_box, + gint position, + const gchar *id, + const gchar *text); +void gtk_combo_box_text_append (GtkComboBoxText *combo_box, + const gchar *id, + const gchar *text); +void gtk_combo_box_text_prepend (GtkComboBoxText *combo_box, + const gchar *id, + const gchar *text); + +G_END_DECLS + +#endif /* __GTK_COMBO_BOX_TEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcontainer.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcontainer.h new file mode 100644 index 0000000..2db2488 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcontainer.h @@ -0,0 +1,227 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_CONTAINER_H__ +#define __GTK_CONTAINER_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_CONTAINER (gtk_container_get_type ()) +#define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) +#define GTK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass)) +#define GTK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CONTAINER)) +#define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER)) +#define GTK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass)) + + +typedef struct _GtkContainer GtkContainer; +typedef struct _GtkContainerPrivate GtkContainerPrivate; +typedef struct _GtkContainerClass GtkContainerClass; + +struct _GtkContainer +{ + GtkWidget widget; + + /*< private >*/ + GtkContainerPrivate *priv; +}; + +struct _GtkContainerClass +{ + GtkWidgetClass parent_class; + + void (*add) (GtkContainer *container, + GtkWidget *widget); + void (*remove) (GtkContainer *container, + GtkWidget *widget); + void (*check_resize) (GtkContainer *container); + void (*forall) (GtkContainer *container, + gboolean include_internals, + GtkCallback callback, + gpointer callback_data); + void (*set_focus_child) (GtkContainer *container, + GtkWidget *child); + GType (*child_type) (GtkContainer *container); + gchar* (*composite_name) (GtkContainer *container, + GtkWidget *child); + void (*set_child_property) (GtkContainer *container, + GtkWidget *child, + guint property_id, + const GValue *value, + GParamSpec *pspec); + void (*get_child_property) (GtkContainer *container, + GtkWidget *child, + guint property_id, + GValue *value, + GParamSpec *pspec); + GtkWidgetPath * (*get_path_for_child) (GtkContainer *container, + GtkWidget *child); + + + /*< private >*/ + + unsigned int _handle_border_width : 1; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + + +/* Application-level methods */ + +GType gtk_container_get_type (void) G_GNUC_CONST; +void gtk_container_set_border_width (GtkContainer *container, + guint border_width); +guint gtk_container_get_border_width (GtkContainer *container); +void gtk_container_add (GtkContainer *container, + GtkWidget *widget); +void gtk_container_remove (GtkContainer *container, + GtkWidget *widget); + +void gtk_container_set_resize_mode (GtkContainer *container, + GtkResizeMode resize_mode); +GtkResizeMode gtk_container_get_resize_mode (GtkContainer *container); + +void gtk_container_check_resize (GtkContainer *container); + +void gtk_container_foreach (GtkContainer *container, + GtkCallback callback, + gpointer callback_data); +GList* gtk_container_get_children (GtkContainer *container); + +void gtk_container_propagate_draw (GtkContainer *container, + GtkWidget *child, + cairo_t *cr); + +void gtk_container_set_focus_chain (GtkContainer *container, + GList *focusable_widgets); +gboolean gtk_container_get_focus_chain (GtkContainer *container, + GList **focusable_widgets); +void gtk_container_unset_focus_chain (GtkContainer *container); + +#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && \ + (gtk_container_get_resize_mode (GTK_CONTAINER (widget)) != GTK_RESIZE_PARENT)) + +/* Widget-level methods */ + +void gtk_container_set_reallocate_redraws (GtkContainer *container, + gboolean needs_redraws); +void gtk_container_set_focus_child (GtkContainer *container, + GtkWidget *child); +GtkWidget * + gtk_container_get_focus_child (GtkContainer *container); +void gtk_container_set_focus_vadjustment (GtkContainer *container, + GtkAdjustment *adjustment); +GtkAdjustment *gtk_container_get_focus_vadjustment (GtkContainer *container); +void gtk_container_set_focus_hadjustment (GtkContainer *container, + GtkAdjustment *adjustment); +GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container); + +void gtk_container_resize_children (GtkContainer *container); + +GType gtk_container_child_type (GtkContainer *container); + + +void gtk_container_class_install_child_property (GtkContainerClass *cclass, + guint property_id, + GParamSpec *pspec); +GParamSpec* gtk_container_class_find_child_property (GObjectClass *cclass, + const gchar *property_name); +GParamSpec** gtk_container_class_list_child_properties (GObjectClass *cclass, + guint *n_properties); +void gtk_container_add_with_properties (GtkContainer *container, + GtkWidget *widget, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_set (GtkContainer *container, + GtkWidget *child, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_get (GtkContainer *container, + GtkWidget *child, + const gchar *first_prop_name, + ...) G_GNUC_NULL_TERMINATED; +void gtk_container_child_set_valist (GtkContainer *container, + GtkWidget *child, + const gchar *first_property_name, + va_list var_args); +void gtk_container_child_get_valist (GtkContainer *container, + GtkWidget *child, + const gchar *first_property_name, + va_list var_args); +void gtk_container_child_set_property (GtkContainer *container, + GtkWidget *child, + const gchar *property_name, + const GValue *value); +void gtk_container_child_get_property (GtkContainer *container, + GtkWidget *child, + const gchar *property_name, + GValue *value); + +GDK_AVAILABLE_IN_3_2 +void gtk_container_child_notify (GtkContainer *container, + GtkWidget *child, + const gchar *child_property); + +/** + * GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID: + * @object: the #GObject on which set_child_property() or get_child_property() + * was called + * @property_id: the numeric id of the property + * @pspec: the #GParamSpec of the property + * + * This macro should be used to emit a standard warning about unexpected + * properties in set_child_property() and get_child_property() implementations. + */ +#define GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID(object, property_id, pspec) \ + G_OBJECT_WARN_INVALID_PSPEC ((object), "child property id", (property_id), (pspec)) + + +void gtk_container_forall (GtkContainer *container, + GtkCallback callback, + gpointer callback_data); + +void gtk_container_class_handle_border_width (GtkContainerClass *klass); + +GtkWidgetPath * gtk_container_get_path_for_child (GtkContainer *container, + GtkWidget *child); + +G_END_DECLS + +#endif /* __GTK_CONTAINER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcssprovider.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcssprovider.h new file mode 100644 index 0000000..db0222b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcssprovider.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_CSS_PROVIDER_H__ +#define __GTK_CSS_PROVIDER_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CSS_PROVIDER (gtk_css_provider_get_type ()) +#define GTK_CSS_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_CSS_PROVIDER, GtkCssProvider)) +#define GTK_CSS_PROVIDER_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_CSS_PROVIDER, GtkCssProviderClass)) +#define GTK_IS_CSS_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_CSS_PROVIDER)) +#define GTK_IS_CSS_PROVIDER_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_CSS_PROVIDER)) +#define GTK_CSS_PROVIDER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_CSS_PROVIDER, GtkCssProviderClass)) + +#define GTK_CSS_PROVIDER_ERROR (gtk_css_provider_error_quark ()) + +typedef enum +{ + GTK_CSS_PROVIDER_ERROR_FAILED, + GTK_CSS_PROVIDER_ERROR_SYNTAX, + GTK_CSS_PROVIDER_ERROR_IMPORT, + GTK_CSS_PROVIDER_ERROR_NAME, + GTK_CSS_PROVIDER_ERROR_DEPRECATED, + GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE +} GtkCssProviderError; + +GQuark gtk_css_provider_error_quark (void); + +typedef struct _GtkCssProvider GtkCssProvider; +typedef struct _GtkCssProviderClass GtkCssProviderClass; +typedef struct _GtkCssProviderPrivate GtkCssProviderPrivate; + +struct _GtkCssProvider +{ + GObject parent_instance; + GtkCssProviderPrivate *priv; +}; + +struct _GtkCssProviderClass +{ + GObjectClass parent_class; + + void (* parsing_error) (GtkCssProvider *provider, + GtkCssSection *section, + const GError * error); + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_css_provider_get_type (void) G_GNUC_CONST; + +GtkCssProvider * gtk_css_provider_new (void); + +GDK_AVAILABLE_IN_3_2 +char * gtk_css_provider_to_string (GtkCssProvider *provider); + +gboolean gtk_css_provider_load_from_data (GtkCssProvider *css_provider, + const gchar *data, + gssize length, + GError **error); +gboolean gtk_css_provider_load_from_file (GtkCssProvider *css_provider, + GFile *file, + GError **error); +gboolean gtk_css_provider_load_from_path (GtkCssProvider *css_provider, + const gchar *path, + GError **error); + +GtkCssProvider * gtk_css_provider_get_default (void); + +GtkCssProvider * gtk_css_provider_get_named (const gchar *name, + const gchar *variant); + +G_END_DECLS + +#endif /* __GTK_CSS_PROVIDER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkcsssection.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkcsssection.h new file mode 100644 index 0000000..7901a43 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkcsssection.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2011 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_CSS_SECTION_H__ +#define __GTK_CSS_SECTION_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_CSS_SECTION (gtk_css_section_get_type ()) + +/** + * GtkCssSectionType: + * @GTK_CSS_SECTION_DOCUMENT: The section describes a complete document. + * This section time is the only one where gtk_css_section_get_parent() + * might return %NULL. + * @GTK_CSS_SECTION_IMPORT: The section defines an import rule. + * @GTK_CSS_SECTION_COLOR_DEFINITION: The section defines a color. This + * is a GTK extension to CSS. + * @GTK_CSS_SECTION_BINDING_SET: The section defines a binding set. This + * is a GTK extension to CSS. + * @GTK_CSS_SECTION_RULESET: The section defines a CSS ruleset. + * @GTK_CSS_SECTION_SELECTOR: The section defines a CSS selector. + * @GTK_CSS_SECTION_DECLARATION: The section defines the declaration of + * a CSS variable. + * @GTK_CSS_SECTION_VALUE: The section defines the value of a CSS declaration. + * + * The different types of sections indicate parts of a CSS document as + * parsed by GTK's CSS parser. They are oriented towards the CSS grammar + * CSS grammer, + * but may contain extensions. + * + * More types might be added in the future as the parser incorporates + * more features. + * + * Since: 3.2 + */ +typedef enum +{ + GTK_CSS_SECTION_DOCUMENT, + GTK_CSS_SECTION_IMPORT, + GTK_CSS_SECTION_COLOR_DEFINITION, + GTK_CSS_SECTION_BINDING_SET, + GTK_CSS_SECTION_RULESET, + GTK_CSS_SECTION_SELECTOR, + GTK_CSS_SECTION_DECLARATION, + GTK_CSS_SECTION_VALUE +} GtkCssSectionType; + +typedef struct _GtkCssSection GtkCssSection; + +GDK_AVAILABLE_IN_3_2 +GType gtk_css_section_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_2 +GtkCssSection * gtk_css_section_ref (GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +void gtk_css_section_unref (GtkCssSection *section); + +GDK_AVAILABLE_IN_3_2 +GtkCssSectionType gtk_css_section_get_section_type (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +GtkCssSection * gtk_css_section_get_parent (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +GFile * gtk_css_section_get_file (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +guint gtk_css_section_get_start_line (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +guint gtk_css_section_get_start_position (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +guint gtk_css_section_get_end_line (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 +guint gtk_css_section_get_end_position (const GtkCssSection *section); + +G_END_DECLS + +#endif /* __GTK_CSS_SECTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkdebug.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkdebug.h new file mode 100644 index 0000000..1eed41a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkdebug.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_DEBUG_H__ +#define __GTK_DEBUG_H__ + +#include + +G_BEGIN_DECLS + +typedef enum { + GTK_DEBUG_MISC = 1 << 0, + GTK_DEBUG_PLUGSOCKET = 1 << 1, + GTK_DEBUG_TEXT = 1 << 2, + GTK_DEBUG_TREE = 1 << 3, + GTK_DEBUG_UPDATES = 1 << 4, + GTK_DEBUG_KEYBINDINGS = 1 << 5, + GTK_DEBUG_MULTIHEAD = 1 << 6, + GTK_DEBUG_MODULES = 1 << 7, + GTK_DEBUG_GEOMETRY = 1 << 8, + GTK_DEBUG_ICONTHEME = 1 << 9, + GTK_DEBUG_PRINTING = 1 << 10, + GTK_DEBUG_BUILDER = 1 << 11, + GTK_DEBUG_SIZE_REQUEST = 1 << 12, + GTK_DEBUG_NO_CSS_CACHE = 1 << 13 +} GtkDebugFlag; + +#ifdef G_ENABLE_DEBUG + +#define GTK_NOTE(type,action) G_STMT_START { \ + if (gtk_get_debug_flags () & GTK_DEBUG_##type) \ + { action; }; } G_STMT_END + +#else /* !G_ENABLE_DEBUG */ + +#define GTK_NOTE(type, action) + +#endif /* G_ENABLE_DEBUG */ + +guint gtk_get_debug_flags (void); +void gtk_set_debug_flags (guint flags); + +G_END_DECLS + +#endif /* __GTK_DEBUG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkdialog.h new file mode 100644 index 0000000..d73aef7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkdialog.h @@ -0,0 +1,181 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_DIALOG_H__ +#define __GTK_DIALOG_H__ + + +#include + + +G_BEGIN_DECLS + +/** + * GtkDialogFlags: + * @GTK_DIALOG_MODAL: Make the constructed dialog modal, + * see gtk_window_set_modal() + * @GTK_DIALOG_DESTROY_WITH_PARENT: Destroy the dialog when its + * parent is destroyed, see gtk_window_set_destroy_with_parent() + * + * Flags used to influence dialog construction. + */ +typedef enum +{ + GTK_DIALOG_MODAL = 1 << 0, + GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1 +} GtkDialogFlags; + +/** + * GtkResponseType: + * @GTK_RESPONSE_NONE: Returned if an action widget has no response id, + * or if the dialog gets programmatically hidden or destroyed + * @GTK_RESPONSE_REJECT: Generic response id, not used by GTK+ dialogs + * @GTK_RESPONSE_ACCEPT: Generic response id, not used by GTK+ dialogs + * @GTK_RESPONSE_DELETE_EVENT: Returned if the dialog is deleted + * @GTK_RESPONSE_OK: Returned by OK buttons in GTK+ dialogs + * @GTK_RESPONSE_CANCEL: Returned by Cancel buttons in GTK+ dialogs + * @GTK_RESPONSE_CLOSE: Returned by Close buttons in GTK+ dialogs + * @GTK_RESPONSE_YES: Returned by Yes buttons in GTK+ dialogs + * @GTK_RESPONSE_NO: Returned by No buttons in GTK+ dialogs + * @GTK_RESPONSE_APPLY: Returned by Apply buttons in GTK+ dialogs + * @GTK_RESPONSE_HELP: Returned by Help buttons in GTK+ dialogs + * + * Predefined values for use as response ids in gtk_dialog_add_button(). + * All predefined values are negative, GTK+ leaves positive values for + * application-defined response ids. + */ +typedef enum +{ + GTK_RESPONSE_NONE = -1, + GTK_RESPONSE_REJECT = -2, + GTK_RESPONSE_ACCEPT = -3, + GTK_RESPONSE_DELETE_EVENT = -4, + GTK_RESPONSE_OK = -5, + GTK_RESPONSE_CANCEL = -6, + GTK_RESPONSE_CLOSE = -7, + GTK_RESPONSE_YES = -8, + GTK_RESPONSE_NO = -9, + GTK_RESPONSE_APPLY = -10, + GTK_RESPONSE_HELP = -11 +} GtkResponseType; + + +#define GTK_TYPE_DIALOG (gtk_dialog_get_type ()) +#define GTK_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DIALOG, GtkDialog)) +#define GTK_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DIALOG, GtkDialogClass)) +#define GTK_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DIALOG)) +#define GTK_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DIALOG)) +#define GTK_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DIALOG, GtkDialogClass)) + + +typedef struct _GtkDialog GtkDialog; +typedef struct _GtkDialogPrivate GtkDialogPrivate; +typedef struct _GtkDialogClass GtkDialogClass; + +/** + * GtkDialog: + * + * The GtkDialog struct contains only private fields + * and should not be directly accessed. + */ +struct _GtkDialog +{ + GtkWindow window; + + /*< private >*/ + GtkDialogPrivate *priv; +}; + +struct _GtkDialogClass +{ + GtkWindowClass parent_class; + + void (* response) (GtkDialog *dialog, gint response_id); + + /* Keybinding signals */ + + void (* close) (GtkDialog *dialog); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_dialog_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_dialog_new (void); + +GtkWidget* gtk_dialog_new_with_buttons (const gchar *title, + GtkWindow *parent, + GtkDialogFlags flags, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_dialog_add_action_widget (GtkDialog *dialog, + GtkWidget *child, + gint response_id); +GtkWidget* gtk_dialog_add_button (GtkDialog *dialog, + const gchar *button_text, + gint response_id); +void gtk_dialog_add_buttons (GtkDialog *dialog, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_dialog_set_response_sensitive (GtkDialog *dialog, + gint response_id, + gboolean setting); +void gtk_dialog_set_default_response (GtkDialog *dialog, + gint response_id); +GtkWidget* gtk_dialog_get_widget_for_response (GtkDialog *dialog, + gint response_id); +gint gtk_dialog_get_response_for_widget (GtkDialog *dialog, + GtkWidget *widget); + +gboolean gtk_alternative_dialog_button_order (GdkScreen *screen); +void gtk_dialog_set_alternative_button_order (GtkDialog *dialog, + gint first_response_id, + ...); +void gtk_dialog_set_alternative_button_order_from_array (GtkDialog *dialog, + gint n_params, + gint *new_order); + +/* Emit response signal */ +void gtk_dialog_response (GtkDialog *dialog, + gint response_id); + +/* Returns response_id */ +gint gtk_dialog_run (GtkDialog *dialog); + +GtkWidget * gtk_dialog_get_action_area (GtkDialog *dialog); +GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog); + +G_END_DECLS + +#endif /* __GTK_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkdnd.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkdnd.h new file mode 100644 index 0000000..4eaa056 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkdnd.h @@ -0,0 +1,212 @@ +/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_DND_H__ +#define __GTK_DND_H__ + + +#include +#include + + +G_BEGIN_DECLS + +/** + * GtkDestDefaults: + * @GTK_DEST_DEFAULT_MOTION: If set for a widget, GTK+, during a drag over this + * widget will check if the drag matches this widget's list of possible targets + * and actions. + * GTK+ will then call gdk_drag_status() as appropriate. + * @GTK_DEST_DEFAULT_HIGHLIGHT: If set for a widget, GTK+ will draw a highlight on + * this widget as long as a drag is over this widget and the widget drag format + * and action are acceptable. + * @GTK_DEST_DEFAULT_DROP: If set for a widget, when a drop occurs, GTK+ will + * will check if the drag matches this widget's list of possible targets and + * actions. If so, GTK+ will call gtk_drag_get_data() on behalf of the widget. + * Whether or not the drop is successful, GTK+ will call gtk_drag_finish(). If + * the action was a move, then if the drag was successful, then %TRUE will be + * passed for the @delete parameter to gtk_drag_finish(). + * @GTK_DEST_DEFAULT_ALL: If set, specifies that all default actions should + * be taken. + * + * The #GtkDestDefaults enumeration specifies the various + * types of action that will be taken on behalf + * of the user for a drag destination site. + */ +typedef enum { + GTK_DEST_DEFAULT_MOTION = 1 << 0, /* respond to "drag_motion" */ + GTK_DEST_DEFAULT_HIGHLIGHT = 1 << 1, /* auto-highlight */ + GTK_DEST_DEFAULT_DROP = 1 << 2, /* respond to "drag_drop" */ + GTK_DEST_DEFAULT_ALL = 0x07 +} GtkDestDefaults; + +/** + * GtkTargetFlags: + * @GTK_TARGET_SAME_APP: If this is set, the target will only be selected + * for drags within a single application. + * @GTK_TARGET_SAME_WIDGET: If this is set, the target will only be selected + * for drags within a single widget. + * @GTK_TARGET_OTHER_APP: If this is set, the target will not be selected + * for drags within a single application. + * @GTK_TARGET_OTHER_WIDGET: If this is set, the target will not be selected + * for drags withing a single widget. + * + * The #GtkTargetFlags enumeration is used to specify + * constraints on an entry in a #GtkTargetTable. + */ +typedef enum { + GTK_TARGET_SAME_APP = 1 << 0, /*< nick=same-app >*/ + GTK_TARGET_SAME_WIDGET = 1 << 1, /*< nick=same-widget >*/ + GTK_TARGET_OTHER_APP = 1 << 2, /*< nick=other-app >*/ + GTK_TARGET_OTHER_WIDGET = 1 << 3 /*< nick=other-widget >*/ +} GtkTargetFlags; + +/* Destination side */ + +void gtk_drag_get_data (GtkWidget *widget, + GdkDragContext *context, + GdkAtom target, + guint32 time_); +void gtk_drag_finish (GdkDragContext *context, + gboolean success, + gboolean del, + guint32 time_); + +GtkWidget *gtk_drag_get_source_widget (GdkDragContext *context); + +void gtk_drag_highlight (GtkWidget *widget); +void gtk_drag_unhighlight (GtkWidget *widget); + +void gtk_drag_dest_set (GtkWidget *widget, + GtkDestDefaults flags, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); + +void gtk_drag_dest_set_proxy (GtkWidget *widget, + GdkWindow *proxy_window, + GdkDragProtocol protocol, + gboolean use_coordinates); + +void gtk_drag_dest_unset (GtkWidget *widget); + +GdkAtom gtk_drag_dest_find_target (GtkWidget *widget, + GdkDragContext *context, + GtkTargetList *target_list); +GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget); +void gtk_drag_dest_set_target_list (GtkWidget *widget, + GtkTargetList *target_list); +void gtk_drag_dest_add_text_targets (GtkWidget *widget); +void gtk_drag_dest_add_image_targets (GtkWidget *widget); +void gtk_drag_dest_add_uri_targets (GtkWidget *widget); + +void gtk_drag_dest_set_track_motion (GtkWidget *widget, + gboolean track_motion); +gboolean gtk_drag_dest_get_track_motion (GtkWidget *widget); + +/* Source side */ + +void gtk_drag_source_set (GtkWidget *widget, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); + +void gtk_drag_source_unset (GtkWidget *widget); + +GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); +void gtk_drag_source_set_target_list (GtkWidget *widget, + GtkTargetList *target_list); +void gtk_drag_source_add_text_targets (GtkWidget *widget); +void gtk_drag_source_add_image_targets (GtkWidget *widget); +void gtk_drag_source_add_uri_targets (GtkWidget *widget); + +void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget, + GdkPixbuf *pixbuf); +void gtk_drag_source_set_icon_stock (GtkWidget *widget, + const gchar *stock_id); +void gtk_drag_source_set_icon_name (GtkWidget *widget, + const gchar *icon_name); +GDK_AVAILABLE_IN_3_2 +void gtk_drag_source_set_icon_gicon (GtkWidget *widget, + GIcon *icon); + +/* There probably should be functions for setting the targets + * as a GtkTargetList + */ + +GdkDragContext *gtk_drag_begin (GtkWidget *widget, + GtkTargetList *targets, + GdkDragAction actions, + gint button, + GdkEvent *event); + +/* Set the image being dragged around + */ +void gtk_drag_set_icon_widget (GdkDragContext *context, + GtkWidget *widget, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_pixbuf (GdkDragContext *context, + GdkPixbuf *pixbuf, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_stock (GdkDragContext *context, + const gchar *stock_id, + gint hot_x, + gint hot_y); +void gtk_drag_set_icon_surface(GdkDragContext *context, + cairo_surface_t *surface); +void gtk_drag_set_icon_name (GdkDragContext *context, + const gchar *icon_name, + gint hot_x, + gint hot_y); +GDK_AVAILABLE_IN_3_2 +void gtk_drag_set_icon_gicon (GdkDragContext *context, + GIcon *icon, + gint hot_x, + gint hot_y); + +void gtk_drag_set_icon_default (GdkDragContext *context); + +gboolean gtk_drag_check_threshold (GtkWidget *widget, + gint start_x, + gint start_y, + gint current_x, + gint current_y); + +/* Internal functions */ +void _gtk_drag_source_handle_event (GtkWidget *widget, + GdkEvent *event); +void _gtk_drag_dest_handle_event (GtkWidget *toplevel, + GdkEvent *event); + +G_END_DECLS + +#endif /* __GTK_DND_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkdrawingarea.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkdrawingarea.h new file mode 100644 index 0000000..1029b24 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkdrawingarea.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_DRAWING_AREA_H__ +#define __GTK_DRAWING_AREA_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_DRAWING_AREA (gtk_drawing_area_get_type ()) +#define GTK_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingArea)) +#define GTK_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) +#define GTK_IS_DRAWING_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_DRAWING_AREA)) +#define GTK_IS_DRAWING_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DRAWING_AREA)) +#define GTK_DRAWING_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_DRAWING_AREA, GtkDrawingAreaClass)) + + +typedef struct _GtkDrawingArea GtkDrawingArea; +typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass; + +struct _GtkDrawingArea +{ + GtkWidget widget; + + /*< private >*/ + gpointer dummy; +}; + +struct _GtkDrawingAreaClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_drawing_area_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_drawing_area_new (void); + +G_END_DECLS + +#endif /* __GTK_DRAWING_AREA_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkeditable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkeditable.h new file mode 100644 index 0000000..15758db --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkeditable.h @@ -0,0 +1,113 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_EDITABLE_H__ +#define __GTK_EDITABLE_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_EDITABLE (gtk_editable_get_type ()) +#define GTK_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EDITABLE, GtkEditable)) +#define GTK_IS_EDITABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EDITABLE)) +#define GTK_EDITABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_EDITABLE, GtkEditableInterface)) + +typedef struct _GtkEditable GtkEditable; /* Dummy typedef */ +typedef struct _GtkEditableInterface GtkEditableInterface; + +struct _GtkEditableInterface +{ + GTypeInterface base_iface; + + /* signals */ + void (* insert_text) (GtkEditable *editable, + const gchar *new_text, + gint new_text_length, + gint *position); + void (* delete_text) (GtkEditable *editable, + gint start_pos, + gint end_pos); + void (* changed) (GtkEditable *editable); + + /* vtable */ + void (* do_insert_text) (GtkEditable *editable, + const gchar *new_text, + gint new_text_length, + gint *position); + void (* do_delete_text) (GtkEditable *editable, + gint start_pos, + gint end_pos); + + gchar* (* get_chars) (GtkEditable *editable, + gint start_pos, + gint end_pos); + void (* set_selection_bounds) (GtkEditable *editable, + gint start_pos, + gint end_pos); + gboolean (* get_selection_bounds) (GtkEditable *editable, + gint *start_pos, + gint *end_pos); + void (* set_position) (GtkEditable *editable, + gint position); + gint (* get_position) (GtkEditable *editable); +}; + +GType gtk_editable_get_type (void) G_GNUC_CONST; +void gtk_editable_select_region (GtkEditable *editable, + gint start_pos, + gint end_pos); +gboolean gtk_editable_get_selection_bounds (GtkEditable *editable, + gint *start_pos, + gint *end_pos); +void gtk_editable_insert_text (GtkEditable *editable, + const gchar *new_text, + gint new_text_length, + gint *position); +void gtk_editable_delete_text (GtkEditable *editable, + gint start_pos, + gint end_pos); +gchar* gtk_editable_get_chars (GtkEditable *editable, + gint start_pos, + gint end_pos); +void gtk_editable_cut_clipboard (GtkEditable *editable); +void gtk_editable_copy_clipboard (GtkEditable *editable); +void gtk_editable_paste_clipboard (GtkEditable *editable); +void gtk_editable_delete_selection (GtkEditable *editable); +void gtk_editable_set_position (GtkEditable *editable, + gint position); +gint gtk_editable_get_position (GtkEditable *editable); +void gtk_editable_set_editable (GtkEditable *editable, + gboolean is_editable); +gboolean gtk_editable_get_editable (GtkEditable *editable); + +G_END_DECLS + +#endif /* __GTK_EDITABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkentry.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkentry.h new file mode 100644 index 0000000..1d44ae9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkentry.h @@ -0,0 +1,283 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * Copyright (C) 2004-2006 Christian Hammond + * Copyright (C) 2008 Cody Russell + * Copyright (C) 2008 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ENTRY_H__ +#define __GTK_ENTRY_H__ + + +#include +#include +#include +#include +#include +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_ENTRY (gtk_entry_get_type ()) +#define GTK_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY, GtkEntry)) +#define GTK_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY, GtkEntryClass)) +#define GTK_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY)) +#define GTK_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY)) +#define GTK_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY, GtkEntryClass)) + +/** + * GtkEntryIconPosition: + * @GTK_ENTRY_ICON_PRIMARY: At the beginning of the entry (depending on the text direction). + * @GTK_ENTRY_ICON_SECONDARY: At the end of the entry (depending on the text direction). + * + * Specifies the side of the entry at which an icon is placed. + * + * Since: 2.16 + */ +typedef enum +{ + GTK_ENTRY_ICON_PRIMARY, + GTK_ENTRY_ICON_SECONDARY +} GtkEntryIconPosition; + +typedef struct _GtkEntry GtkEntry; +typedef struct _GtkEntryPrivate GtkEntryPrivate; +typedef struct _GtkEntryClass GtkEntryClass; + +struct _GtkEntry +{ + /*< private >*/ + GtkWidget parent_instance; + + GtkEntryPrivate *priv; +}; + +struct _GtkEntryClass +{ + GtkWidgetClass parent_class; + + /* Hook to customize right-click popup */ + void (* populate_popup) (GtkEntry *entry, + GtkMenu *menu); + + /* Action signals + */ + void (* activate) (GtkEntry *entry); + void (* move_cursor) (GtkEntry *entry, + GtkMovementStep step, + gint count, + gboolean extend_selection); + void (* insert_at_cursor) (GtkEntry *entry, + const gchar *str); + void (* delete_from_cursor) (GtkEntry *entry, + GtkDeleteType type, + gint count); + void (* backspace) (GtkEntry *entry); + void (* cut_clipboard) (GtkEntry *entry); + void (* copy_clipboard) (GtkEntry *entry); + void (* paste_clipboard) (GtkEntry *entry); + void (* toggle_overwrite) (GtkEntry *entry); + + /* hook to add other objects beside the entry (like in GtkSpinButton) */ + void (* get_text_area_size) (GtkEntry *entry, + gint *x, + gint *y, + gint *width, + gint *height); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_entry_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_entry_new (void); +GtkWidget* gtk_entry_new_with_buffer (GtkEntryBuffer *buffer); + +GtkEntryBuffer* gtk_entry_get_buffer (GtkEntry *entry); +void gtk_entry_set_buffer (GtkEntry *entry, + GtkEntryBuffer *buffer); + +void gtk_entry_get_text_area (GtkEntry *entry, + GdkRectangle *text_area); + +void gtk_entry_set_visibility (GtkEntry *entry, + gboolean visible); +gboolean gtk_entry_get_visibility (GtkEntry *entry); + +void gtk_entry_set_invisible_char (GtkEntry *entry, + gunichar ch); +gunichar gtk_entry_get_invisible_char (GtkEntry *entry); +void gtk_entry_unset_invisible_char (GtkEntry *entry); + +void gtk_entry_set_has_frame (GtkEntry *entry, + gboolean setting); +gboolean gtk_entry_get_has_frame (GtkEntry *entry); + +GDK_DEPRECATED_IN_3_4 +void gtk_entry_set_inner_border (GtkEntry *entry, + const GtkBorder *border); +GDK_DEPRECATED_IN_3_4 +const GtkBorder* gtk_entry_get_inner_border (GtkEntry *entry); + +void gtk_entry_set_overwrite_mode (GtkEntry *entry, + gboolean overwrite); +gboolean gtk_entry_get_overwrite_mode (GtkEntry *entry); + +/* text is truncated if needed */ +void gtk_entry_set_max_length (GtkEntry *entry, + gint max); +gint gtk_entry_get_max_length (GtkEntry *entry); +guint16 gtk_entry_get_text_length (GtkEntry *entry); + +void gtk_entry_set_activates_default (GtkEntry *entry, + gboolean setting); +gboolean gtk_entry_get_activates_default (GtkEntry *entry); + +void gtk_entry_set_width_chars (GtkEntry *entry, + gint n_chars); +gint gtk_entry_get_width_chars (GtkEntry *entry); + +/* Somewhat more convenient than the GtkEditable generic functions + */ +void gtk_entry_set_text (GtkEntry *entry, + const gchar *text); +/* returns a reference to the text */ +const gchar* gtk_entry_get_text (GtkEntry *entry); + +PangoLayout* gtk_entry_get_layout (GtkEntry *entry); +void gtk_entry_get_layout_offsets (GtkEntry *entry, + gint *x, + gint *y); +void gtk_entry_set_alignment (GtkEntry *entry, + gfloat xalign); +gfloat gtk_entry_get_alignment (GtkEntry *entry); + +void gtk_entry_set_completion (GtkEntry *entry, + GtkEntryCompletion *completion); +GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry); + +gint gtk_entry_layout_index_to_text_index (GtkEntry *entry, + gint layout_index); +gint gtk_entry_text_index_to_layout_index (GtkEntry *entry, + gint text_index); + +/* For scrolling cursor appropriately + */ +void gtk_entry_set_cursor_hadjustment (GtkEntry *entry, + GtkAdjustment *adjustment); +GtkAdjustment* gtk_entry_get_cursor_hadjustment (GtkEntry *entry); + +/* Progress API + */ +void gtk_entry_set_progress_fraction (GtkEntry *entry, + gdouble fraction); +gdouble gtk_entry_get_progress_fraction (GtkEntry *entry); + +void gtk_entry_set_progress_pulse_step (GtkEntry *entry, + gdouble fraction); +gdouble gtk_entry_get_progress_pulse_step (GtkEntry *entry); + +void gtk_entry_progress_pulse (GtkEntry *entry); +GDK_AVAILABLE_IN_3_2 +const gchar* gtk_entry_get_placeholder_text (GtkEntry *entry); +GDK_AVAILABLE_IN_3_2 +void gtk_entry_set_placeholder_text (GtkEntry *entry, + const gchar *text); +/* Setting and managing icons + */ +void gtk_entry_set_icon_from_pixbuf (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + GdkPixbuf *pixbuf); +void gtk_entry_set_icon_from_stock (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + const gchar *stock_id); +void gtk_entry_set_icon_from_icon_name (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + const gchar *icon_name); +void gtk_entry_set_icon_from_gicon (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + GIcon *icon); +GtkImageType gtk_entry_get_icon_storage_type (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +GdkPixbuf* gtk_entry_get_icon_pixbuf (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +const gchar* gtk_entry_get_icon_stock (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +const gchar* gtk_entry_get_icon_name (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +GIcon* gtk_entry_get_icon_gicon (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +void gtk_entry_set_icon_activatable (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + gboolean activatable); +gboolean gtk_entry_get_icon_activatable (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +void gtk_entry_set_icon_sensitive (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + gboolean sensitive); +gboolean gtk_entry_get_icon_sensitive (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +gint gtk_entry_get_icon_at_pos (GtkEntry *entry, + gint x, + gint y); +void gtk_entry_set_icon_tooltip_text (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + const gchar *tooltip); +gchar * gtk_entry_get_icon_tooltip_text (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +void gtk_entry_set_icon_tooltip_markup (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + const gchar *tooltip); +gchar * gtk_entry_get_icon_tooltip_markup (GtkEntry *entry, + GtkEntryIconPosition icon_pos); +void gtk_entry_set_icon_drag_source (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + GtkTargetList *target_list, + GdkDragAction actions); +gint gtk_entry_get_current_icon_drag_source (GtkEntry *entry); +void gtk_entry_get_icon_area (GtkEntry *entry, + GtkEntryIconPosition icon_pos, + GdkRectangle *icon_area); + +gboolean gtk_entry_im_context_filter_keypress (GtkEntry *entry, + GdkEventKey *event); +void gtk_entry_reset_im_context (GtkEntry *entry); + + +G_END_DECLS + +#endif /* __GTK_ENTRY_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkentrybuffer.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkentrybuffer.h new file mode 100644 index 0000000..04570b7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkentrybuffer.h @@ -0,0 +1,133 @@ +/* gtkentrybuffer.h + * Copyright (C) 2009 Stefan Walter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ENTRY_BUFFER_H__ +#define __GTK_ENTRY_BUFFER_H__ + +#include + +G_BEGIN_DECLS + +/* Maximum size of text buffer, in bytes */ +#define GTK_ENTRY_BUFFER_MAX_SIZE G_MAXUSHORT + +#define GTK_TYPE_ENTRY_BUFFER (gtk_entry_buffer_get_type ()) +#define GTK_ENTRY_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY_BUFFER, GtkEntryBuffer)) +#define GTK_ENTRY_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY_BUFFER, GtkEntryBufferClass)) +#define GTK_IS_ENTRY_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY_BUFFER)) +#define GTK_IS_ENTRY_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY_BUFFER)) +#define GTK_ENTRY_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY_BUFFER, GtkEntryBufferClass)) + +typedef struct _GtkEntryBuffer GtkEntryBuffer; +typedef struct _GtkEntryBufferClass GtkEntryBufferClass; +typedef struct _GtkEntryBufferPrivate GtkEntryBufferPrivate; + +struct _GtkEntryBuffer +{ + GObject parent_instance; + + /*< private >*/ + GtkEntryBufferPrivate *priv; +}; + +struct _GtkEntryBufferClass +{ + GObjectClass parent_class; + + /* Signals */ + + void (*inserted_text) (GtkEntryBuffer *buffer, + guint position, + const gchar *chars, + guint n_chars); + + void (*deleted_text) (GtkEntryBuffer *buffer, + guint position, + guint n_chars); + + /* Virtual Methods */ + + const gchar* (*get_text) (GtkEntryBuffer *buffer, + gsize *n_bytes); + + guint (*get_length) (GtkEntryBuffer *buffer); + + guint (*insert_text) (GtkEntryBuffer *buffer, + guint position, + const gchar *chars, + guint n_chars); + + guint (*delete_text) (GtkEntryBuffer *buffer, + guint position, + guint n_chars); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_entry_buffer_get_type (void) G_GNUC_CONST; + +GtkEntryBuffer* gtk_entry_buffer_new (const gchar *initial_chars, + gint n_initial_chars); + +gsize gtk_entry_buffer_get_bytes (GtkEntryBuffer *buffer); + +guint gtk_entry_buffer_get_length (GtkEntryBuffer *buffer); + +const gchar* gtk_entry_buffer_get_text (GtkEntryBuffer *buffer); + +void gtk_entry_buffer_set_text (GtkEntryBuffer *buffer, + const gchar *chars, + gint n_chars); + +void gtk_entry_buffer_set_max_length (GtkEntryBuffer *buffer, + gint max_length); + +gint gtk_entry_buffer_get_max_length (GtkEntryBuffer *buffer); + +guint gtk_entry_buffer_insert_text (GtkEntryBuffer *buffer, + guint position, + const gchar *chars, + gint n_chars); + +guint gtk_entry_buffer_delete_text (GtkEntryBuffer *buffer, + guint position, + gint n_chars); + +void gtk_entry_buffer_emit_inserted_text (GtkEntryBuffer *buffer, + guint position, + const gchar *chars, + guint n_chars); + +void gtk_entry_buffer_emit_deleted_text (GtkEntryBuffer *buffer, + guint position, + guint n_chars); + +G_END_DECLS + +#endif /* __GTK_ENTRY_BUFFER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkentrycompletion.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkentrycompletion.h new file mode 100644 index 0000000..726685c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkentrycompletion.h @@ -0,0 +1,154 @@ +/* gtkentrycompletion.h + * Copyright (C) 2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ENTRY_COMPLETION_H__ +#define __GTK_ENTRY_COMPLETION_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ENTRY_COMPLETION (gtk_entry_completion_get_type ()) +#define GTK_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletion)) +#define GTK_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) +#define GTK_IS_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY_COMPLETION)) +#define GTK_IS_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY_COMPLETION)) +#define GTK_ENTRY_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass)) + +typedef struct _GtkEntryCompletion GtkEntryCompletion; +typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass; +typedef struct _GtkEntryCompletionPrivate GtkEntryCompletionPrivate; + +/** + * GtkEntryCompletionMatchFunc: + * @completion: the #GtkEntryCompletion + * @key: the string to match, normalized and case-folded + * @iter: a #GtkTreeIter indicating the row to match + * @user_data: user data given to gtk_entry_completion_set_match_func() + * + * A function which decides whether the row indicated by @iter matches + * a given @key, and should be displayed as a possible completion for @key. + * Note that @key is normalized and case-folded (see g_utf8_normalize() + * and g_utf8_casefold()). If this is not appropriate, match functions + * have access to the unmodified key via + * gtk_entry_get_text (GTK_ENTRY (gtk_entry_completion_get_entry ())). + * + * Returns: %TRUE if @iter should be displayed as a possible completion + * for @key + */ +typedef gboolean (* GtkEntryCompletionMatchFunc) (GtkEntryCompletion *completion, + const gchar *key, + GtkTreeIter *iter, + gpointer user_data); + + +struct _GtkEntryCompletion +{ + GObject parent_instance; + + /*< private >*/ + GtkEntryCompletionPrivate *priv; +}; + +struct _GtkEntryCompletionClass +{ + GObjectClass parent_class; + + gboolean (* match_selected) (GtkEntryCompletion *completion, + GtkTreeModel *model, + GtkTreeIter *iter); + void (* action_activated) (GtkEntryCompletion *completion, + gint index_); + gboolean (* insert_prefix) (GtkEntryCompletion *completion, + const gchar *prefix); + gboolean (* cursor_on_match) (GtkEntryCompletion *completion, + GtkTreeModel *model, + GtkTreeIter *iter); + + /* Padding for future expansion */ + void (*_gtk_reserved0) (void); + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +/* core */ +GType gtk_entry_completion_get_type (void) G_GNUC_CONST; +GtkEntryCompletion *gtk_entry_completion_new (void); +GtkEntryCompletion *gtk_entry_completion_new_with_area (GtkCellArea *area); + +GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion); + +void gtk_entry_completion_set_model (GtkEntryCompletion *completion, + GtkTreeModel *model); +GtkTreeModel *gtk_entry_completion_get_model (GtkEntryCompletion *completion); + +void gtk_entry_completion_set_match_func (GtkEntryCompletion *completion, + GtkEntryCompletionMatchFunc func, + gpointer func_data, + GDestroyNotify func_notify); +void gtk_entry_completion_set_minimum_key_length (GtkEntryCompletion *completion, + gint length); +gint gtk_entry_completion_get_minimum_key_length (GtkEntryCompletion *completion); +GDK_AVAILABLE_IN_3_4 +gchar * gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion, + const char *key); +void gtk_entry_completion_complete (GtkEntryCompletion *completion); +void gtk_entry_completion_insert_prefix (GtkEntryCompletion *completion); + +void gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion, + gint index_, + const gchar *text); +void gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion, + gint index_, + const gchar *markup); +void gtk_entry_completion_delete_action (GtkEntryCompletion *completion, + gint index_); + +void gtk_entry_completion_set_inline_completion (GtkEntryCompletion *completion, + gboolean inline_completion); +gboolean gtk_entry_completion_get_inline_completion (GtkEntryCompletion *completion); +void gtk_entry_completion_set_inline_selection (GtkEntryCompletion *completion, + gboolean inline_selection); +gboolean gtk_entry_completion_get_inline_selection (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_completion (GtkEntryCompletion *completion, + gboolean popup_completion); +gboolean gtk_entry_completion_get_popup_completion (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_set_width (GtkEntryCompletion *completion, + gboolean popup_set_width); +gboolean gtk_entry_completion_get_popup_set_width (GtkEntryCompletion *completion); +void gtk_entry_completion_set_popup_single_match (GtkEntryCompletion *completion, + gboolean popup_single_match); +gboolean gtk_entry_completion_get_popup_single_match (GtkEntryCompletion *completion); + +const gchar *gtk_entry_completion_get_completion_prefix (GtkEntryCompletion *completion); +/* convenience */ +void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion, + gint column); +gint gtk_entry_completion_get_text_column (GtkEntryCompletion *completion); + +G_END_DECLS + +#endif /* __GTK_ENTRY_COMPLETION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkenums.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkenums.h new file mode 100644 index 0000000..e409d79 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkenums.h @@ -0,0 +1,938 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ENUMS_H__ +#define __GTK_ENUMS_H__ + +#include + + +/** + * SECTION:gtkenum + * @Short_description: Public enumerated types used throughout GTK+ + * @Title: Standard Enumerations + */ + + +G_BEGIN_DECLS + +/** + * GtkAlign: + * @GTK_ALIGN_FILL: stretch to fill all space if possible, center if + * no meaningful way to stretch + * @GTK_ALIGN_START: snap to left or top side, leaving space on right + * or bottom + * @GTK_ALIGN_END: snap to right or bottom side, leaving space on left + * or top + * @GTK_ALIGN_CENTER: center natural width of widget inside the + * allocation + * + * Controls how a widget deals with extra space in a single (x or y) + * dimension. + * + * Alignment only matters if the widget receives a "too large" allocation, + * for example if you packed the widget with the #GtkWidget:expand + * flag inside a #GtkBox, then the widget might get extra space. If + * you have for example a 16x16 icon inside a 32x32 space, the icon + * could be scaled and stretched, it could be centered, or it could be + * positioned to one side of the space. + * + * Note that in horizontal context @GTK_ALIGN_START and @GTK_ALIGN_END + * are interpreted relative to text direction. + */ +typedef enum +{ + GTK_ALIGN_FILL, + GTK_ALIGN_START, + GTK_ALIGN_END, + GTK_ALIGN_CENTER +} GtkAlign; + + +/** + * GtkArrowPlacement: + * @GTK_ARROWS_BOTH: Place one arrow on each end of the menu. + * @GTK_ARROWS_START: Place both arrows at the top of the menu. + * @GTK_ARROWS_END: Place both arrows at the bottom of the menu. + * + * Used to specify the placement of scroll arrows in scrolling menus. + */ +typedef enum +{ + GTK_ARROWS_BOTH, + GTK_ARROWS_START, + GTK_ARROWS_END +} GtkArrowPlacement; + +/** + * GtkArrowType: + * @GTK_ARROW_UP: Represents an upward pointing arrow. + * @GTK_ARROW_DOWN: Represents a downward pointing arrow. + * @GTK_ARROW_LEFT: Represents a left pointing arrow. + * @GTK_ARROW_RIGHT: Represents a right pointing arrow. + * @GTK_ARROW_NONE: No arrow. Since 2.10. + * + * Used to indicate the direction in which a #GtkArrow should point. + */ +typedef enum +{ + GTK_ARROW_UP, + GTK_ARROW_DOWN, + GTK_ARROW_LEFT, + GTK_ARROW_RIGHT, + GTK_ARROW_NONE +} GtkArrowType; + +/** + * GtkAttachOptions: + * @GTK_EXPAND: the widget should expand to take up any extra space in its + * container that has been allocated. + * @GTK_SHRINK: the widget should shrink as and when possible. + * @GTK_FILL: the widget should fill the space allocated to it. + * + * Denotes the expansion properties that a widget will have when it (or its + * parent) is resized. + */ +typedef enum +{ + GTK_EXPAND = 1 << 0, + GTK_SHRINK = 1 << 1, + GTK_FILL = 1 << 2 +} GtkAttachOptions; + +/** + * GtkButtonBoxStyle: + * @GTK_BUTTONBOX_DEFAULT_STYLE: Default packing. + * @GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the box. + * @GTK_BUTTONBOX_EDGE: Buttons are placed at the edges of the box. + * @GTK_BUTTONBOX_START: Buttons are grouped towards the start of the box, + * (on the left for a HBox, or the top for a VBox). + * @GTK_BUTTONBOX_END: Buttons are grouped towards the end of the box, + * (on the right for a HBox, or the bottom for a VBox). + * @GTK_BUTTONBOX_CENTER: Buttons are centered in the box. Since 2.12. + * + * Used to dictate the style that a #GtkButtonBox uses to layout the buttons it + * contains. (See also: #GtkVButtonBox and #GtkHButtonBox). + */ +typedef enum +{ + GTK_BUTTONBOX_SPREAD = 1, + GTK_BUTTONBOX_EDGE, + GTK_BUTTONBOX_START, + GTK_BUTTONBOX_END, + GTK_BUTTONBOX_CENTER +} GtkButtonBoxStyle; + + +typedef enum +{ + GTK_DELETE_CHARS, + GTK_DELETE_WORD_ENDS, /* delete only the portion of the word to the + * left/right of cursor if we're in the middle + * of a word */ + GTK_DELETE_WORDS, + GTK_DELETE_DISPLAY_LINES, + GTK_DELETE_DISPLAY_LINE_ENDS, + GTK_DELETE_PARAGRAPH_ENDS, /* like C-k in Emacs (or its reverse) */ + GTK_DELETE_PARAGRAPHS, /* C-k in pico, kill whole line */ + GTK_DELETE_WHITESPACE /* M-\ in Emacs */ +} GtkDeleteType; + +/* Focus movement types */ +typedef enum +{ + GTK_DIR_TAB_FORWARD, + GTK_DIR_TAB_BACKWARD, + GTK_DIR_UP, + GTK_DIR_DOWN, + GTK_DIR_LEFT, + GTK_DIR_RIGHT +} GtkDirectionType; + +/** + * GtkExpanderStyle: + * @GTK_EXPANDER_COLLAPSED: The style used for a collapsed subtree. + * @GTK_EXPANDER_SEMI_COLLAPSED: Intermediate style used during animation. + * @GTK_EXPANDER_SEMI_EXPANDED: Intermediate style used during animation. + * @GTK_EXPANDER_EXPANDED: The style used for an expanded subtree. + * + * Used to specify the style of the expanders drawn by a #GtkTreeView. + */ +typedef enum +{ + GTK_EXPANDER_COLLAPSED, + GTK_EXPANDER_SEMI_COLLAPSED, + GTK_EXPANDER_SEMI_EXPANDED, + GTK_EXPANDER_EXPANDED +} GtkExpanderStyle; + +/* Built-in stock icon sizes */ +typedef enum +{ + GTK_ICON_SIZE_INVALID, + GTK_ICON_SIZE_MENU, + GTK_ICON_SIZE_SMALL_TOOLBAR, + GTK_ICON_SIZE_LARGE_TOOLBAR, + GTK_ICON_SIZE_BUTTON, + GTK_ICON_SIZE_DND, + GTK_ICON_SIZE_DIALOG +} GtkIconSize; + +/** + * GtkSensitivityType: + * @GTK_SENSITIVITY_AUTO: The arrow is made insensitive if the + * thumb is at the end + * @GTK_SENSITIVITY_ON: The arrow is always sensitive + * @GTK_SENSITIVITY_OFF: The arrow is always insensitive + * + * Determines how GTK+ handles the sensitivity of stepper arrows + * at the end of range widgets. + */ +typedef enum +{ + GTK_SENSITIVITY_AUTO, + GTK_SENSITIVITY_ON, + GTK_SENSITIVITY_OFF +} GtkSensitivityType; + +/* Reading directions for text */ +typedef enum +{ + GTK_TEXT_DIR_NONE, + GTK_TEXT_DIR_LTR, + GTK_TEXT_DIR_RTL +} GtkTextDirection; + +/** + * GtkJustification: + * @GTK_JUSTIFY_LEFT: The text is placed at the left edge of the label. + * @GTK_JUSTIFY_RIGHT: The text is placed at the right edge of the label. + * @GTK_JUSTIFY_CENTER: The text is placed in the center of the label. + * @GTK_JUSTIFY_FILL: The text is placed is distributed across the label. + * + * Used for justifying the text inside a #GtkLabel widget. (See also + * #GtkAlignment). + */ +typedef enum +{ + GTK_JUSTIFY_LEFT, + GTK_JUSTIFY_RIGHT, + GTK_JUSTIFY_CENTER, + GTK_JUSTIFY_FILL +} GtkJustification; + +/** + * GtkMenuDirectionType: + * @GTK_MENU_DIR_PARENT: To the parent menu shell + * @GTK_MENU_DIR_CHILD: To the submenu, if any, associated with the item + * @GTK_MENU_DIR_NEXT: To the next menu item + * @GTK_MENU_DIR_PREV: To the previous menu item + * + * An enumeration representing directional movements within a menu. + */ +typedef enum +{ + GTK_MENU_DIR_PARENT, + GTK_MENU_DIR_CHILD, + GTK_MENU_DIR_NEXT, + GTK_MENU_DIR_PREV +} GtkMenuDirectionType; + +/** + * GtkMessageType: + * @GTK_MESSAGE_INFO: Informational message + * @GTK_MESSAGE_WARNING: Nonfatal warning message + * @GTK_MESSAGE_QUESTION: Question requiring a choice + * @GTK_MESSAGE_ERROR: Fatal error message + * @GTK_MESSAGE_OTHER: None of the above, doesn't get an icon + * + * The type of message being displayed in the dialog. + */ +typedef enum +{ + GTK_MESSAGE_INFO, + GTK_MESSAGE_WARNING, + GTK_MESSAGE_QUESTION, + GTK_MESSAGE_ERROR, + GTK_MESSAGE_OTHER +} GtkMessageType; + +/** + * GtkMovementStep: + * @GTK_MOVEMENT_LOGICAL_POSITIONS: Move forward or back by graphemes + * @GTK_MOVEMENT_VISUAL_POSITIONS: Move left or right by graphemes + * @GTK_MOVEMENT_WORDS: Move forward or back by words + * @GTK_MOVEMENT_DISPLAY_LINES: Move up or down lines (wrapped lines) + * @GTK_MOVEMENT_DISPLAY_LINE_ENDS: Move to either end of a line + * @GTK_MOVEMENT_PARAGRAPHS: Move up or down paragraphs (newline-ended lines) + * @GTK_MOVEMENT_PARAGRAPH_ENDS: Move to either end of a paragraph + * @GTK_MOVEMENT_PAGES: Move by pages + * @GTK_MOVEMENT_BUFFER_ENDS: Move to ends of the buffer + * @GTK_MOVEMENT_HORIZONTAL_PAGES: Move horizontally by pages + */ +typedef enum +{ + GTK_MOVEMENT_LOGICAL_POSITIONS, + GTK_MOVEMENT_VISUAL_POSITIONS, + GTK_MOVEMENT_WORDS, + GTK_MOVEMENT_DISPLAY_LINES, + GTK_MOVEMENT_DISPLAY_LINE_ENDS, + GTK_MOVEMENT_PARAGRAPHS, + GTK_MOVEMENT_PARAGRAPH_ENDS, + GTK_MOVEMENT_PAGES, + GTK_MOVEMENT_BUFFER_ENDS, + GTK_MOVEMENT_HORIZONTAL_PAGES +} GtkMovementStep; + +typedef enum +{ + GTK_SCROLL_STEPS, + GTK_SCROLL_PAGES, + GTK_SCROLL_ENDS, + GTK_SCROLL_HORIZONTAL_STEPS, + GTK_SCROLL_HORIZONTAL_PAGES, + GTK_SCROLL_HORIZONTAL_ENDS +} GtkScrollStep; + +/** + * GtkOrientation: + * @GTK_ORIENTATION_HORIZONTAL: The widget is in horizontal orientation. + * @GTK_ORIENTATION_VERTICAL: The widget is in vertical orientation. + * + * Represents the orientation of widgets which can be switched between horizontal + * and vertical orientation on the fly, like #GtkToolbar. + */ +typedef enum +{ + GTK_ORIENTATION_HORIZONTAL, + GTK_ORIENTATION_VERTICAL +} GtkOrientation; + +/** + * GtkCornerType: + * @GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the + * widget (default behaviour). + * @GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the + * widget. + * @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the + * widget. + * @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the + * widget. + * + * Specifies which corner a child widget should be placed in when packed into + * a #GtkScrolledWindow. This is effectively the opposite of where the scroll + * bars are placed. + */ +typedef enum +{ + GTK_CORNER_TOP_LEFT, + GTK_CORNER_BOTTOM_LEFT, + GTK_CORNER_TOP_RIGHT, + GTK_CORNER_BOTTOM_RIGHT +} GtkCornerType; + +/** + * GtkPackType: + * @GTK_PACK_START: The child is packed into the start of the box + * @GTK_PACK_END: The child is packed into the end of the box + * + * Represents the packing location #GtkBox children. (See: #GtkVBox, + * #GtkHBox, and #GtkButtonBox). + */ +typedef enum +{ + GTK_PACK_START, + GTK_PACK_END +} GtkPackType; + +/* priorities for path lookups */ +typedef enum +{ + GTK_PATH_PRIO_LOWEST = 0, + GTK_PATH_PRIO_GTK = 4, + GTK_PATH_PRIO_APPLICATION = 8, + GTK_PATH_PRIO_THEME = 10, + GTK_PATH_PRIO_RC = 12, + GTK_PATH_PRIO_HIGHEST = 15 +} GtkPathPriorityType; +#define GTK_PATH_PRIO_MASK 0x0f + +/* widget path types */ +typedef enum +{ + GTK_PATH_WIDGET, + GTK_PATH_WIDGET_CLASS, + GTK_PATH_CLASS +} GtkPathType; + +/** + * GtkPolicyType: + * @GTK_POLICY_ALWAYS: The scrollbar is always visible. + * @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example, + * when all of a #GtkCList can not be seen. + * @GTK_POLICY_NEVER: The scrollbar will never appear. + * + * Determines when a scroll bar will be visible. + */ +typedef enum +{ + GTK_POLICY_ALWAYS, + GTK_POLICY_AUTOMATIC, + GTK_POLICY_NEVER +} GtkPolicyType; + +/** + * GtkPositionType: + * @GTK_POS_LEFT: The feature is at the left edge. + * @GTK_POS_RIGHT: The feature is at the right edge. + * @GTK_POS_TOP: The feature is at the top edge. + * @GTK_POS_BOTTOM: The feature is at the bottom edge. + * + * Describes which edge of a widget a certain feature is positioned at, e.g. the + * tabs of a #GtkNotebook, the handle of a #GtkHandleBox or the label of a + * #GtkScale. + */ +typedef enum +{ + GTK_POS_LEFT, + GTK_POS_RIGHT, + GTK_POS_TOP, + GTK_POS_BOTTOM +} GtkPositionType; + +/** + * GtkReliefStyle: + * @GTK_RELIEF_NORMAL: Draw a normal relief. + * @GTK_RELIEF_HALF: A half relief. + * @GTK_RELIEF_NONE: No relief. + * + * Indicated the relief to be drawn around a #GtkButton. + */ +typedef enum +{ + GTK_RELIEF_NORMAL, + GTK_RELIEF_HALF, + GTK_RELIEF_NONE +} GtkReliefStyle; + +/** + * GtkResizeMode: + * @GTK_RESIZE_PARENT: Pass resize request to the parent + * @GTK_RESIZE_QUEUE: Queue resizes on this widget + * @GTK_RESIZE_IMMEDIATE: Resize immediately. Deprecated. + */ +typedef enum +{ + GTK_RESIZE_PARENT, + GTK_RESIZE_QUEUE, + GTK_RESIZE_IMMEDIATE +} GtkResizeMode; + +/* scrolling types */ +typedef enum +{ + GTK_SCROLL_NONE, + GTK_SCROLL_JUMP, + GTK_SCROLL_STEP_BACKWARD, + GTK_SCROLL_STEP_FORWARD, + GTK_SCROLL_PAGE_BACKWARD, + GTK_SCROLL_PAGE_FORWARD, + GTK_SCROLL_STEP_UP, + GTK_SCROLL_STEP_DOWN, + GTK_SCROLL_PAGE_UP, + GTK_SCROLL_PAGE_DOWN, + GTK_SCROLL_STEP_LEFT, + GTK_SCROLL_STEP_RIGHT, + GTK_SCROLL_PAGE_LEFT, + GTK_SCROLL_PAGE_RIGHT, + GTK_SCROLL_START, + GTK_SCROLL_END +} GtkScrollType; + +/** + * GtkSelectionMode: + * @GTK_SELECTION_NONE: No selection is possible. + * @GTK_SELECTION_SINGLE: Zero or one element may be selected. + * @GTK_SELECTION_BROWSE: Exactly one element is selected. + * In some circumstances, such as initially or during a search + * operation, it's possible for no element to be selected with + * %GTK_SELECTION_BROWSE. What is really enforced is that the user + * can't deselect a currently selected element except by selecting + * another element. + * @GTK_SELECTION_MULTIPLE: Any number of elements may be selected. + * The Ctrl key may be used to enlarge the selection, and Shift + * key to select between the focus and the child pointed to. + * Some widgets may also allow Click-drag to select a range of elements. + * @GTK_SELECTION_EXTENDED: Deprecated, behaves identical to %GTK_SELECTION_MULTIPLE. + * + * Used to control what selections users are allowed to make. + */ +typedef enum +{ + GTK_SELECTION_NONE, + GTK_SELECTION_SINGLE, + GTK_SELECTION_BROWSE, + GTK_SELECTION_MULTIPLE +} GtkSelectionMode; + +/** + * GtkShadowType: + * @GTK_SHADOW_NONE: No outline. + * @GTK_SHADOW_IN: The outline is bevelled inwards. + * @GTK_SHADOW_OUT: The outline is bevelled outwards like a button. + * @GTK_SHADOW_ETCHED_IN: The outline has a sunken 3d appearance. + * @GTK_SHADOW_ETCHED_OUT: The outline has a raised 3d appearance. + * + * Used to change the appearance of an outline typically provided by a #GtkFrame. + */ +typedef enum +{ + GTK_SHADOW_NONE, + GTK_SHADOW_IN, + GTK_SHADOW_OUT, + GTK_SHADOW_ETCHED_IN, + GTK_SHADOW_ETCHED_OUT +} GtkShadowType; + +/* Widget states */ + +/** + * GtkStateType: + * @GTK_STATE_NORMAL: State during normal operation. + * @GTK_STATE_ACTIVE: State of a currently active widget, such as a depressed button. + * @GTK_STATE_PRELIGHT: State indicating that the mouse pointer is over + * the widget and the widget will respond to mouse clicks. + * @GTK_STATE_SELECTED: State of a selected item, such the selected row in a list. + * @GTK_STATE_INSENSITIVE: State indicating that the widget is + * unresponsive to user actions. + * @GTK_STATE_INCONSISTENT: The widget is inconsistent, such as checkbuttons + * or radiobuttons that aren't either set to %TRUE nor %FALSE, + * or buttons requiring the user attention. + * @GTK_STATE_FOCUSED: The widget has the keyboard focus. + * + * This type indicates the current state of a widget; the state determines how + * the widget is drawn. The #GtkStateType enumeration is also used to + * identify different colors in a #GtkStyle for drawing, so states can be + * used for subparts of a widget as well as entire widgets. + */ +typedef enum +{ + GTK_STATE_NORMAL, + GTK_STATE_ACTIVE, + GTK_STATE_PRELIGHT, + GTK_STATE_SELECTED, + GTK_STATE_INSENSITIVE, + GTK_STATE_INCONSISTENT, + GTK_STATE_FOCUSED +} GtkStateType; + +/** + * GtkToolbarStyle: + * @GTK_TOOLBAR_ICONS: Buttons display only icons in the toolbar. + * @GTK_TOOLBAR_TEXT: Buttons display only text labels in the toolbar. + * @GTK_TOOLBAR_BOTH: Buttons display text and icons in the toolbar. + * @GTK_TOOLBAR_BOTH_HORIZ: Buttons display icons and text alongside each + * other, rather than vertically stacked + * + * Used to customize the appearance of a #GtkToolbar. Note that + * setting the toolbar style overrides the user's preferences + * for the default toolbar style. Note that if the button has only + * a label set and GTK_TOOLBAR_ICONS is used, the label will be + * visible, and vice versa. + */ +typedef enum +{ + GTK_TOOLBAR_ICONS, + GTK_TOOLBAR_TEXT, + GTK_TOOLBAR_BOTH, + GTK_TOOLBAR_BOTH_HORIZ +} GtkToolbarStyle; + +/** + * GtkWindowPosition: + * @GTK_WIN_POS_NONE: No influence is made on placement. + * @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen. + * @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position. + * @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc. + * @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient + * parent (see gtk_window_set_transient_for()). + * + * Window placement can be influenced using this enumeration. Note that + * using #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea. + * It won't necessarily work well with all window managers or on all windowing systems. + */ +typedef enum +{ + GTK_WIN_POS_NONE, + GTK_WIN_POS_CENTER, + GTK_WIN_POS_MOUSE, + GTK_WIN_POS_CENTER_ALWAYS, + GTK_WIN_POS_CENTER_ON_PARENT +} GtkWindowPosition; + +/** + * GtkWindowType: + * @GTK_WINDOW_TOPLEVEL: A regular window, such as a dialog. + * @GTK_WINDOW_POPUP: A special window such as a tooltip. + * + * A #GtkWindow can be one of these types. Most things you'd consider a + * "window" should have type #GTK_WINDOW_TOPLEVEL; windows with this type + * are managed by the window manager and have a frame by default (call + * gtk_window_set_decorated() to toggle the frame). Windows with type + * #GTK_WINDOW_POPUP are ignored by the window manager; window manager + * keybindings won't work on them, the window manager won't decorate the + * window with a frame, many GTK+ features that rely on the window + * manager will not work (e.g. resize grips and + * maximization/minimization). #GTK_WINDOW_POPUP is used to implement + * widgets such as #GtkMenu or tooltips that you normally don't think of + * as windows per se. Nearly all windows should be #GTK_WINDOW_TOPLEVEL. + * In particular, do not use #GTK_WINDOW_POPUP just to turn off + * the window borders; use gtk_window_set_decorated() for that. + */ +typedef enum +{ + GTK_WINDOW_TOPLEVEL, + GTK_WINDOW_POPUP +} GtkWindowType; + +/** + * GtkWrapMode: + * @GTK_WRAP_NONE: do not wrap lines; just make the text area wider + * @GTK_WRAP_CHAR: wrap text, breaking lines anywhere the cursor can + * appear (between characters, usually - if you want to be technical, + * between graphemes, see pango_get_log_attrs()) + * @GTK_WRAP_WORD: wrap text, breaking lines in between words + * @GTK_WRAP_WORD_CHAR: wrap text, breaking lines in between words, or if + * that is not enough, also between graphemes + * + * Describes a type of line wrapping. + */ +typedef enum +{ + GTK_WRAP_NONE, + GTK_WRAP_CHAR, + GTK_WRAP_WORD, + GTK_WRAP_WORD_CHAR +} GtkWrapMode; + +/** + * GtkSortType: + * @GTK_SORT_ASCENDING: Sorting is in ascending order. + * @GTK_SORT_DESCENDING: Sorting is in descending order. + * + * Determines the direction of a sort. + */ +typedef enum +{ + GTK_SORT_ASCENDING, + GTK_SORT_DESCENDING +} GtkSortType; + +/* Style for gtk input method preedit/status */ +typedef enum +{ + GTK_IM_PREEDIT_NOTHING, + GTK_IM_PREEDIT_CALLBACK, + GTK_IM_PREEDIT_NONE +} GtkIMPreeditStyle; + +typedef enum +{ + GTK_IM_STATUS_NOTHING, + GTK_IM_STATUS_CALLBACK, + GTK_IM_STATUS_NONE +} GtkIMStatusStyle; + +/** + * GtkPackDirection: + * @GTK_PACK_DIRECTION_LTR: Widgets are packed left-to-right + * @GTK_PACK_DIRECTION_RTL: Widgets are packed right-to-left + * @GTK_PACK_DIRECTION_TTB: Widgets are packed top-to-bottom + * @GTK_PACK_DIRECTION_BTT: Widgets are packed bottom-to-top + * + * Determines how widgets should be packed insided menubars + * and menuitems contained in menubars. + */ +typedef enum +{ + GTK_PACK_DIRECTION_LTR, + GTK_PACK_DIRECTION_RTL, + GTK_PACK_DIRECTION_TTB, + GTK_PACK_DIRECTION_BTT +} GtkPackDirection; + +typedef enum +{ + GTK_PRINT_PAGES_ALL, + GTK_PRINT_PAGES_CURRENT, + GTK_PRINT_PAGES_RANGES, + GTK_PRINT_PAGES_SELECTION +} GtkPrintPages; + +typedef enum +{ + GTK_PAGE_SET_ALL, + GTK_PAGE_SET_EVEN, + GTK_PAGE_SET_ODD +} GtkPageSet; + +/** + * GtkNumberUpLayout: + * @GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM: + * @GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP: + * @GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM: + * @GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP: + * @GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT: + * @GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT: + * @GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT: + * @GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT: + * + * Used to determine the layout of pages on a sheet when printing + * multiple pages per sheet. + */ +typedef enum +{ + GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM, /*< nick=lrtb >*/ + GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP, /*< nick=lrbt >*/ + GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM, /*< nick=rltb >*/ + GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP, /*< nick=rlbt >*/ + GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT, /*< nick=tblr >*/ + GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT, /*< nick=tbrl >*/ + GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT, /*< nick=btlr >*/ + GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT /*< nick=btrl >*/ +} GtkNumberUpLayout; + +typedef enum +{ + GTK_PAGE_ORIENTATION_PORTRAIT, + GTK_PAGE_ORIENTATION_LANDSCAPE, + GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT, + GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE +} GtkPageOrientation; + +typedef enum +{ + GTK_PRINT_QUALITY_LOW, + GTK_PRINT_QUALITY_NORMAL, + GTK_PRINT_QUALITY_HIGH, + GTK_PRINT_QUALITY_DRAFT +} GtkPrintQuality; + +typedef enum +{ + GTK_PRINT_DUPLEX_SIMPLEX, + GTK_PRINT_DUPLEX_HORIZONTAL, + GTK_PRINT_DUPLEX_VERTICAL +} GtkPrintDuplex; + + +typedef enum +{ + GTK_UNIT_NONE, + GTK_UNIT_POINTS, + GTK_UNIT_INCH, + GTK_UNIT_MM +} GtkUnit; + +#define GTK_UNIT_PIXEL GTK_UNIT_NONE + +/** + * GtkTreeViewGridLines: + * @GTK_TREE_VIEW_GRID_LINES_NONE: No grid lines. + * @GTK_TREE_VIEW_GRID_LINES_HORIZONTAL: Horizontal grid lines. + * @GTK_TREE_VIEW_GRID_LINES_VERTICAL: Vertical grid lines. + * @GTK_TREE_VIEW_GRID_LINES_BOTH: Horizontal and vertical grid lines. + * + * Used to indicate which grid lines to draw in a tree view. + */ +typedef enum +{ + GTK_TREE_VIEW_GRID_LINES_NONE, + GTK_TREE_VIEW_GRID_LINES_HORIZONTAL, + GTK_TREE_VIEW_GRID_LINES_VERTICAL, + GTK_TREE_VIEW_GRID_LINES_BOTH +} GtkTreeViewGridLines; + +/** + * GtkDragResult: + * @GTK_DRAG_RESULT_SUCCESS: The drag operation was successful. + * @GTK_DRAG_RESULT_NO_TARGET: No suitable drag target. + * @GTK_DRAG_RESULT_USER_CANCELLED: The user cancelled the drag operation. + * @GTK_DRAG_RESULT_TIMEOUT_EXPIRED: The drag operation timed out. + * @GTK_DRAG_RESULT_GRAB_BROKEN: The pointer or keyboard grab used + * for the drag operation was broken. + * @GTK_DRAG_RESULT_ERROR: The drag operation failed due to some + * unspecified error. + * + * Gives an indication why a drag operation failed. + * The value can by obtained by connecting to the + * #GtkWidget::drag-failed signal. + */ +typedef enum +{ + GTK_DRAG_RESULT_SUCCESS, + GTK_DRAG_RESULT_NO_TARGET, + GTK_DRAG_RESULT_USER_CANCELLED, + GTK_DRAG_RESULT_TIMEOUT_EXPIRED, + GTK_DRAG_RESULT_GRAB_BROKEN, + GTK_DRAG_RESULT_ERROR +} GtkDragResult; + +/** + * GtkSizeRequestMode: + * @GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH: Prefer height-for-width geometry management + * @GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT: Prefer width-for-height geometry management + * @GTK_SIZE_REQUEST_CONSTANT_SIZE: Dont trade height-for-width or width-for-height + * + * Specifies a preference for height-for-width or + * width-for-height geometry management. + */ +typedef enum +{ + GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH = 0, + GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT, + GTK_SIZE_REQUEST_CONSTANT_SIZE +} GtkSizeRequestMode; + +/** + * GtkScrollablePolicy: + * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size + * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size + * + * Defines the policy to be used in a scrollable widget when updating + * the scrolled window adjustments in a given orientation. + */ +typedef enum +{ + GTK_SCROLL_MINIMUM = 0, + GTK_SCROLL_NATURAL +} GtkScrollablePolicy; + +/** + * GtkStateFlags: + * @GTK_STATE_FLAG_NORMAL: State during normal operation. + * @GTK_STATE_FLAG_ACTIVE: Widget is active. + * @GTK_STATE_FLAG_PRELIGHT: Widget has a mouse pointer over it. + * @GTK_STATE_FLAG_SELECTED: Widget is selected. + * @GTK_STATE_FLAG_INSENSITIVE: Widget is insensitive. + * @GTK_STATE_FLAG_INCONSISTENT: Widget is inconsistent. + * @GTK_STATE_FLAG_FOCUSED: Widget has the keyboard focus. + * @GTK_STATE_FLAG_BACKDROP: Widget is in a background toplevel window. + * + * Describes a widget state. + */ +typedef enum +{ + GTK_STATE_FLAG_NORMAL = 0, + GTK_STATE_FLAG_ACTIVE = 1 << 0, + GTK_STATE_FLAG_PRELIGHT = 1 << 1, + GTK_STATE_FLAG_SELECTED = 1 << 2, + GTK_STATE_FLAG_INSENSITIVE = 1 << 3, + GTK_STATE_FLAG_INCONSISTENT = 1 << 4, + GTK_STATE_FLAG_FOCUSED = 1 << 5, + GTK_STATE_FLAG_BACKDROP = 1 << 6 +} GtkStateFlags; + +/** + * GtkRegionFlags: + * @GTK_REGION_EVEN: Region has an even number within a set. + * @GTK_REGION_ODD: Region has an odd number within a set. + * @GTK_REGION_FIRST: Region is the first one within a set. + * @GTK_REGION_LAST: Region is the last one within a set. + * @GTK_REGION_ONLY: Region is the only one within a set. + * @GTK_REGION_SORTED: Region is part of a sorted area. + * + * Describes a region within a widget. + */ +typedef enum { + GTK_REGION_EVEN = 1 << 0, + GTK_REGION_ODD = 1 << 1, + GTK_REGION_FIRST = 1 << 2, + GTK_REGION_LAST = 1 << 3, + GTK_REGION_ONLY = 1 << 4, + GTK_REGION_SORTED = 1 << 5 +} GtkRegionFlags; + +/** + * GtkJunctionSides: + * @GTK_JUNCTION_NONE: No junctions. + * @GTK_JUNCTION_CORNER_TOPLEFT: Element connects on the top-left corner. + * @GTK_JUNCTION_CORNER_TOPRIGHT: Element connects on the top-right corner. + * @GTK_JUNCTION_CORNER_BOTTOMLEFT: Element connects on the bottom-left corner. + * @GTK_JUNCTION_CORNER_BOTTOMRIGHT: Element connects on the bottom-right corner. + * @GTK_JUNCTION_TOP: Element connects on the top side. + * @GTK_JUNCTION_BOTTOM: Element connects on the bottom side. + * @GTK_JUNCTION_LEFT: Element connects on the left side. + * @GTK_JUNCTION_RIGHT: Element connects on the right side. + * + * Describes how a rendered element connects to adjacent elements. + */ +typedef enum { + GTK_JUNCTION_NONE = 0, + GTK_JUNCTION_CORNER_TOPLEFT = 1 << 0, + GTK_JUNCTION_CORNER_TOPRIGHT = 1 << 1, + GTK_JUNCTION_CORNER_BOTTOMLEFT = 1 << 2, + GTK_JUNCTION_CORNER_BOTTOMRIGHT = 1 << 3, + GTK_JUNCTION_TOP = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_TOPRIGHT), + GTK_JUNCTION_BOTTOM = (GTK_JUNCTION_CORNER_BOTTOMLEFT | GTK_JUNCTION_CORNER_BOTTOMRIGHT), + GTK_JUNCTION_LEFT = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_BOTTOMLEFT), + GTK_JUNCTION_RIGHT = (GTK_JUNCTION_CORNER_TOPRIGHT | GTK_JUNCTION_CORNER_BOTTOMRIGHT) +} GtkJunctionSides; + +/** + * GtkBorderStyle: + * @GTK_BORDER_STYLE_NONE: No visible border + * @GTK_BORDER_STYLE_SOLID: A single line segment + * @GTK_BORDER_STYLE_INSET: Looks as if the content is sunken into the canvas + * @GTK_BORDER_STYLE_OUTSET: Looks as if the content is coming out of the canvas + * @GTK_BORDER_STYLE_HIDDEN: Same as @GTK_BORDER_STYLE_NONE + * @GTK_BORDER_STYLE_DOTTED: A series of round dots + * @GTK_BORDER_STYLE_DASHED: A series of square-ended dashes + * @GTK_BORDER_STYLE_DOUBLE: Two parrallel lines with some space between them + * @GTK_BORDER_STYLE_GROOVE: Looks as if it were carved in the canvas + * @GTK_BORDER_STYLE_RIDGE: Looks as if it were coming out of the canvas + * + * Describes how the border of a UI element should be rendered. + */ +typedef enum { + GTK_BORDER_STYLE_NONE, + GTK_BORDER_STYLE_SOLID, + GTK_BORDER_STYLE_INSET, + GTK_BORDER_STYLE_OUTSET, + GTK_BORDER_STYLE_HIDDEN, + GTK_BORDER_STYLE_DOTTED, + GTK_BORDER_STYLE_DASHED, + GTK_BORDER_STYLE_DOUBLE, + GTK_BORDER_STYLE_GROOVE, + GTK_BORDER_STYLE_RIDGE +} GtkBorderStyle; + +G_END_DECLS + + +#endif /* __GTK_ENUMS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkeventbox.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkeventbox.h new file mode 100644 index 0000000..adada8c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkeventbox.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_EVENT_BOX_H__ +#define __GTK_EVENT_BOX_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_EVENT_BOX (gtk_event_box_get_type ()) +#define GTK_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EVENT_BOX, GtkEventBox)) +#define GTK_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) +#define GTK_IS_EVENT_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EVENT_BOX)) +#define GTK_IS_EVENT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EVENT_BOX)) +#define GTK_EVENT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EVENT_BOX, GtkEventBoxClass)) + +typedef struct _GtkEventBox GtkEventBox; +typedef struct _GtkEventBoxClass GtkEventBoxClass; +typedef struct _GtkEventBoxPrivate GtkEventBoxPrivate; + +struct _GtkEventBox +{ + GtkBin bin; + + /*< private >*/ + GtkEventBoxPrivate *priv; +}; + +struct _GtkEventBoxClass +{ + GtkBinClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_event_box_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_event_box_new (void); +gboolean gtk_event_box_get_visible_window (GtkEventBox *event_box); +void gtk_event_box_set_visible_window (GtkEventBox *event_box, + gboolean visible_window); +gboolean gtk_event_box_get_above_child (GtkEventBox *event_box); +void gtk_event_box_set_above_child (GtkEventBox *event_box, + gboolean above_child); + +G_END_DECLS + +#endif /* __GTK_EVENT_BOX_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkexpander.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkexpander.h new file mode 100644 index 0000000..a9ca742 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkexpander.h @@ -0,0 +1,107 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Sun Microsystems, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: + * Mark McLoughlin + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_EXPANDER_H__ +#define __GTK_EXPANDER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_EXPANDER (gtk_expander_get_type ()) +#define GTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_EXPANDER, GtkExpander)) +#define GTK_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_EXPANDER, GtkExpanderClass)) +#define GTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_EXPANDER)) +#define GTK_IS_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_EXPANDER)) +#define GTK_EXPANDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_EXPANDER, GtkExpanderClass)) + +typedef struct _GtkExpander GtkExpander; +typedef struct _GtkExpanderClass GtkExpanderClass; +typedef struct _GtkExpanderPrivate GtkExpanderPrivate; + +struct _GtkExpander +{ + GtkBin bin; + + GtkExpanderPrivate *priv; +}; + +struct _GtkExpanderClass +{ + GtkBinClass parent_class; + + /* Key binding signal; to get notification on the expansion + * state connect to notify:expanded. + */ + void (* activate) (GtkExpander *expander); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_expander_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_expander_new (const gchar *label); +GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label); + +void gtk_expander_set_expanded (GtkExpander *expander, + gboolean expanded); +gboolean gtk_expander_get_expanded (GtkExpander *expander); + +/* Spacing between the expander/label and the child */ +void gtk_expander_set_spacing (GtkExpander *expander, + gint spacing); +gint gtk_expander_get_spacing (GtkExpander *expander); + +void gtk_expander_set_label (GtkExpander *expander, + const gchar *label); +const gchar * gtk_expander_get_label (GtkExpander *expander); + +void gtk_expander_set_use_underline (GtkExpander *expander, + gboolean use_underline); +gboolean gtk_expander_get_use_underline (GtkExpander *expander); + +void gtk_expander_set_use_markup (GtkExpander *expander, + gboolean use_markup); +gboolean gtk_expander_get_use_markup (GtkExpander *expander); + +void gtk_expander_set_label_widget (GtkExpander *expander, + GtkWidget *label_widget); +GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander); +void gtk_expander_set_label_fill (GtkExpander *expander, + gboolean label_fill); +gboolean gtk_expander_get_label_fill (GtkExpander *expander); +GDK_AVAILABLE_IN_3_2 +void gtk_expander_set_resize_toplevel (GtkExpander *expander, + gboolean resize_toplevel); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_expander_get_resize_toplevel (GtkExpander *expander); + +G_END_DECLS + +#endif /* __GTK_EXPANDER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooser.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooser.h new file mode 100644 index 0000000..6e7d416 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooser.h @@ -0,0 +1,247 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooser.h: Abstract interface for file selector GUIs + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FILE_CHOOSER_H__ +#define __GTK_FILE_CHOOSER_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER (gtk_file_chooser_get_type ()) +#define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser)) +#define GTK_IS_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER)) + +typedef struct _GtkFileChooser GtkFileChooser; + +/** + * GtkFileChooserAction: + * @GTK_FILE_CHOOSER_ACTION_OPEN: Indicates open mode. The file chooser + * will only let the user pick an existing file. + * @GTK_FILE_CHOOSER_ACTION_SAVE: Indicates save mode. The file chooser + * will let the user pick an existing file, or type in a new + * filename. + * @GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER: Indicates an Open mode for + * selecting folders. The file chooser will let the user pick an + * existing folder. + * @GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER: Indicates a mode for creating a + * new folder. The file chooser will let the user name an existing or + * new folder. + * + * Describes whether a #GtkFileChooser is being used to open existing files + * or to save to a possibly new file. + */ +typedef enum +{ + GTK_FILE_CHOOSER_ACTION_OPEN, + GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, + GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER +} GtkFileChooserAction; + +/** + * GtkFileChooserConfirmation: + * @GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM: The file chooser will present + * its stock dialog to confirm about overwriting an existing file. + * @GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME: The file chooser will + * terminate and accept the user's choice of a file name. + * @GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN: The file chooser will + * continue running, so as to let the user select another file name. + * + * Used as a return value of handlers for the + * #GtkFileChooser::confirm-overwrite signal of a #GtkFileChooser. This + * value determines whether the file chooser will present the stock + * confirmation dialog, accept the user's choice of a filename, or + * let the user choose another filename. + * + * Since: 2.8 + */ +typedef enum +{ + GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM, + GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME, + GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN +} GtkFileChooserConfirmation; + +GType gtk_file_chooser_get_type (void) G_GNUC_CONST; + +/* GError enumeration for GtkFileChooser */ +/** + * GTK_FILE_CHOOSER_ERROR: + * + * Used to get the #GError quark for #GtkFileChooser errors. + */ +#define GTK_FILE_CHOOSER_ERROR (gtk_file_chooser_error_quark ()) + +/** + * GtkFileChooserError: + * @GTK_FILE_CHOOSER_ERROR_NONEXISTENT: Indicates that a file does not exist. + * @GTK_FILE_CHOOSER_ERROR_BAD_FILENAME: Indicates a malformed filename. + * @GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS: Indicates a duplicate path (e.g. when + * adding a bookmark). + * @GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME: Indicates an incomplete hostname (e.g. "http://foo" without a slash after that). + * + * These identify the various errors that can occur while calling + * #GtkFileChooser functions. + */ +typedef enum { + GTK_FILE_CHOOSER_ERROR_NONEXISTENT, + GTK_FILE_CHOOSER_ERROR_BAD_FILENAME, + GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS, + GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME +} GtkFileChooserError; + +GQuark gtk_file_chooser_error_quark (void); + +/* Configuration + */ +void gtk_file_chooser_set_action (GtkFileChooser *chooser, + GtkFileChooserAction action); +GtkFileChooserAction gtk_file_chooser_get_action (GtkFileChooser *chooser); +void gtk_file_chooser_set_local_only (GtkFileChooser *chooser, + gboolean local_only); +gboolean gtk_file_chooser_get_local_only (GtkFileChooser *chooser); +void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser, + gboolean select_multiple); +gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser); +void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser, + gboolean show_hidden); +gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser); + +void gtk_file_chooser_set_do_overwrite_confirmation (GtkFileChooser *chooser, + gboolean do_overwrite_confirmation); +gboolean gtk_file_chooser_get_do_overwrite_confirmation (GtkFileChooser *chooser); + +void gtk_file_chooser_set_create_folders (GtkFileChooser *chooser, + gboolean create_folders); +gboolean gtk_file_chooser_get_create_folders (GtkFileChooser *chooser); + +/* Suggested name for the Save-type actions + */ +void gtk_file_chooser_set_current_name (GtkFileChooser *chooser, + const gchar *name); + +/* Filename manipulation + */ +gchar * gtk_file_chooser_get_filename (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_filename (GtkFileChooser *chooser, + const char *filename); +gboolean gtk_file_chooser_select_filename (GtkFileChooser *chooser, + const char *filename); +void gtk_file_chooser_unselect_filename (GtkFileChooser *chooser, + const char *filename); +void gtk_file_chooser_select_all (GtkFileChooser *chooser); +void gtk_file_chooser_unselect_all (GtkFileChooser *chooser); +GSList * gtk_file_chooser_get_filenames (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser, + const gchar *filename); +gchar * gtk_file_chooser_get_current_folder (GtkFileChooser *chooser); + + +/* URI manipulation + */ +gchar * gtk_file_chooser_get_uri (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_uri (GtkFileChooser *chooser, + const char *uri); +gboolean gtk_file_chooser_select_uri (GtkFileChooser *chooser, + const char *uri); +void gtk_file_chooser_unselect_uri (GtkFileChooser *chooser, + const char *uri); +GSList * gtk_file_chooser_get_uris (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser, + const gchar *uri); +gchar * gtk_file_chooser_get_current_folder_uri (GtkFileChooser *chooser); + +/* GFile manipulation */ +GFile * gtk_file_chooser_get_file (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +gboolean gtk_file_chooser_select_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +void gtk_file_chooser_unselect_file (GtkFileChooser *chooser, + GFile *file); +GSList * gtk_file_chooser_get_files (GtkFileChooser *chooser); +gboolean gtk_file_chooser_set_current_folder_file (GtkFileChooser *chooser, + GFile *file, + GError **error); +GFile * gtk_file_chooser_get_current_folder_file (GtkFileChooser *chooser); + +/* Preview widget + */ +void gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser, + GtkWidget *preview_widget); +GtkWidget *gtk_file_chooser_get_preview_widget (GtkFileChooser *chooser); +void gtk_file_chooser_set_preview_widget_active (GtkFileChooser *chooser, + gboolean active); +gboolean gtk_file_chooser_get_preview_widget_active (GtkFileChooser *chooser); +void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser, + gboolean use_label); +gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser); + +char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser); +char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser); +GFile *gtk_file_chooser_get_preview_file (GtkFileChooser *chooser); + +/* Extra widget + */ +void gtk_file_chooser_set_extra_widget (GtkFileChooser *chooser, + GtkWidget *extra_widget); +GtkWidget *gtk_file_chooser_get_extra_widget (GtkFileChooser *chooser); + +/* List of user selectable filters + */ +void gtk_file_chooser_add_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +void gtk_file_chooser_remove_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +GSList *gtk_file_chooser_list_filters (GtkFileChooser *chooser); + +/* Current filter + */ +void gtk_file_chooser_set_filter (GtkFileChooser *chooser, + GtkFileFilter *filter); +GtkFileFilter *gtk_file_chooser_get_filter (GtkFileChooser *chooser); + +/* Per-application shortcut folders */ + +gboolean gtk_file_chooser_add_shortcut_folder (GtkFileChooser *chooser, + const char *folder, + GError **error); +gboolean gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser, + const char *folder, + GError **error); +GSList *gtk_file_chooser_list_shortcut_folders (GtkFileChooser *chooser); + +gboolean gtk_file_chooser_add_shortcut_folder_uri (GtkFileChooser *chooser, + const char *uri, + GError **error); +gboolean gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser, + const char *uri, + GError **error); +GSList *gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser); + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserbutton.h new file mode 100644 index 0000000..ae02a76 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserbutton.h @@ -0,0 +1,81 @@ +/* GTK+: gtkfilechooserbutton.h + * + * Copyright (c) 2004 James M. Cape + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FILE_CHOOSER_BUTTON_H__ +#define __GTK_FILE_CHOOSER_BUTTON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER_BUTTON (gtk_file_chooser_button_get_type ()) +#define GTK_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton)) +#define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) +#define GTK_IS_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON)) +#define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON)) +#define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass)) + +typedef struct _GtkFileChooserButton GtkFileChooserButton; +typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate; +typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass; + +struct _GtkFileChooserButton +{ + GtkBox parent; + + /*< private >*/ + GtkFileChooserButtonPrivate *priv; +}; + +struct _GtkFileChooserButtonClass +{ + /*< private >*/ + GtkBoxClass parent_class; + + void (* file_set) (GtkFileChooserButton *fc); + + /* Padding for future expansion */ + void (*__gtk_reserved1); + void (*__gtk_reserved2); + void (*__gtk_reserved3); + void (*__gtk_reserved4); +}; + + +GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_file_chooser_button_new (const gchar *title, + GtkFileChooserAction action); +GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); +const gchar * gtk_file_chooser_button_get_title (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, + const gchar *title); +gint gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button, + gint n_chars); +gboolean gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button, + gboolean focus_on_click); + +G_END_DECLS + +#endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserdialog.h new file mode 100644 index 0000000..1b5ec12 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserdialog.h @@ -0,0 +1,69 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserdialog.h: File selector dialog + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FILE_CHOOSER_DIALOG_H__ +#define __GTK_FILE_CHOOSER_DIALOG_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER_DIALOG (gtk_file_chooser_dialog_get_type ()) +#define GTK_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialog)) +#define GTK_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) +#define GTK_IS_FILE_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG)) +#define GTK_IS_FILE_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_DIALOG)) +#define GTK_FILE_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_DIALOG, GtkFileChooserDialogClass)) + +typedef struct _GtkFileChooserDialog GtkFileChooserDialog; +typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate; +typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass; + +struct _GtkFileChooserDialog +{ + GtkDialog parent_instance; + + GtkFileChooserDialogPrivate *priv; +}; + +struct _GtkFileChooserDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_file_chooser_dialog_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_file_chooser_dialog_new (const gchar *title, + GtkWindow *parent, + GtkFileChooserAction action, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserwidget.h new file mode 100644 index 0000000..841567c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilechooserwidget.h @@ -0,0 +1,65 @@ +/* GTK - The GIMP Toolkit + * gtkfilechooserwidget.h: Embeddable file selector widget + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FILE_CHOOSER_WIDGET_H__ +#define __GTK_FILE_CHOOSER_WIDGET_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_CHOOSER_WIDGET (gtk_file_chooser_widget_get_type ()) +#define GTK_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidget)) +#define GTK_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) +#define GTK_IS_FILE_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET)) +#define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET)) +#define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass)) + +typedef struct _GtkFileChooserWidget GtkFileChooserWidget; +typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate; +typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass; + +struct _GtkFileChooserWidget +{ + GtkBox parent_instance; + + GtkFileChooserWidgetPrivate *priv; +}; + +struct _GtkFileChooserWidgetClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); + +G_END_DECLS + +#endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfilefilter.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilefilter.h new file mode 100644 index 0000000..b7c6c68 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfilefilter.h @@ -0,0 +1,116 @@ +/* GTK - The GIMP Toolkit + * gtkfilefilter.h: Filters for selecting a file subset + * Copyright (C) 2003, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FILE_FILTER_H__ +#define __GTK_FILE_FILTER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FILE_FILTER (gtk_file_filter_get_type ()) +#define GTK_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_FILTER, GtkFileFilter)) +#define GTK_IS_FILE_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_FILTER)) + +typedef struct _GtkFileFilter GtkFileFilter; +typedef struct _GtkFileFilterInfo GtkFileFilterInfo; + +/** + * GtkFileFilterFlags: + * @GTK_FILE_FILTER_FILENAME: the filename of the file being tested + * @GTK_FILE_FILTER_URI: the URI for the file being tested + * @GTK_FILE_FILTER_DISPLAY_NAME: the string that will be used to + * display the file in the file chooser + * @GTK_FILE_FILTER_MIME_TYPE: the mime type of the file + * + * These flags indicate what parts of a #GtkFileFilterInfo struct + * are filled or need to be filled. + */ +typedef enum { + GTK_FILE_FILTER_FILENAME = 1 << 0, + GTK_FILE_FILTER_URI = 1 << 1, + GTK_FILE_FILTER_DISPLAY_NAME = 1 << 2, + GTK_FILE_FILTER_MIME_TYPE = 1 << 3 +} GtkFileFilterFlags; + +/** + * GtkFileFilterFunc: + * @filter_info: a #GtkFileFilterInfo that is filled according + * to the @needed flags passed to gtk_file_filter_add_custom() + * @data: (closure): user data passed to gtk_file_filter_add_custom() + * + * The type of function that is used with custom filters, see + * gtk_file_filter_add_custom(). + * + * Returns: %TRUE if the file should be displayed + */ +typedef gboolean (*GtkFileFilterFunc) (const GtkFileFilterInfo *filter_info, + gpointer data); + +/** + * GtkFileFilterInfo: + * @contains: Flags indicating which of the following fields need + * are filled + * @filename: the filename of the file being tested + * @uri: the URI for the file being tested + * @display_name: the string that will be used to display the file + * in the file chooser + * @mime_type: the mime type of the file + * + * A #GtkFileFilterInfo struct is used to pass information about the + * tested file to gtk_file_filter_filter(). + */ +struct _GtkFileFilterInfo +{ + GtkFileFilterFlags contains; + + const gchar *filename; + const gchar *uri; + const gchar *display_name; + const gchar *mime_type; +}; + +GType gtk_file_filter_get_type (void) G_GNUC_CONST; + +GtkFileFilter * gtk_file_filter_new (void); +void gtk_file_filter_set_name (GtkFileFilter *filter, + const gchar *name); +const gchar * gtk_file_filter_get_name (GtkFileFilter *filter); + +void gtk_file_filter_add_mime_type (GtkFileFilter *filter, + const gchar *mime_type); +void gtk_file_filter_add_pattern (GtkFileFilter *filter, + const gchar *pattern); +void gtk_file_filter_add_pixbuf_formats (GtkFileFilter *filter); +void gtk_file_filter_add_custom (GtkFileFilter *filter, + GtkFileFilterFlags needed, + GtkFileFilterFunc func, + gpointer data, + GDestroyNotify notify); + +GtkFileFilterFlags gtk_file_filter_get_needed (GtkFileFilter *filter); +gboolean gtk_file_filter_filter (GtkFileFilter *filter, + const GtkFileFilterInfo *filter_info); + +G_END_DECLS + +#endif /* __GTK_FILE_FILTER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfixed.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfixed.h new file mode 100644 index 0000000..50a00ce --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfixed.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FIXED_H__ +#define __GTK_FIXED_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_FIXED (gtk_fixed_get_type ()) +#define GTK_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FIXED, GtkFixed)) +#define GTK_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FIXED, GtkFixedClass)) +#define GTK_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FIXED)) +#define GTK_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FIXED)) +#define GTK_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FIXED, GtkFixedClass)) + +typedef struct _GtkFixed GtkFixed; +typedef struct _GtkFixedPrivate GtkFixedPrivate; +typedef struct _GtkFixedClass GtkFixedClass; +typedef struct _GtkFixedChild GtkFixedChild; + +struct _GtkFixed +{ + GtkContainer container; + + /*< private >*/ + GtkFixedPrivate *priv; +}; + +struct _GtkFixedClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkFixedChild +{ + GtkWidget *widget; + gint x; + gint y; +}; + + +GType gtk_fixed_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_fixed_new (void); +void gtk_fixed_put (GtkFixed *fixed, + GtkWidget *widget, + gint x, + gint y); +void gtk_fixed_move (GtkFixed *fixed, + GtkWidget *widget, + gint x, + gint y); + + +G_END_DECLS + +#endif /* __GTK_FIXED_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfontbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontbutton.h new file mode 100644 index 0000000..5175498 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontbutton.h @@ -0,0 +1,99 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1998 David Abilleira Freijeiro + * All rights reserved + * Based on gnome-color-picker by Federico Mena + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ +/* + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FONT_BUTTON_H__ +#define __GTK_FONT_BUTTON_H__ + +#include + + +G_BEGIN_DECLS + +/* GtkFontButton is a button widget that allow user to select a font. + */ + +#define GTK_TYPE_FONT_BUTTON (gtk_font_button_get_type ()) +#define GTK_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButton)) +#define GTK_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) +#define GTK_IS_FONT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_BUTTON)) +#define GTK_IS_FONT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_BUTTON)) +#define GTK_FONT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_BUTTON, GtkFontButtonClass)) + +typedef struct _GtkFontButton GtkFontButton; +typedef struct _GtkFontButtonClass GtkFontButtonClass; +typedef struct _GtkFontButtonPrivate GtkFontButtonPrivate; + +struct _GtkFontButton { + GtkButton button; + + /*< private >*/ + GtkFontButtonPrivate *priv; +}; + +struct _GtkFontButtonClass { + GtkButtonClass parent_class; + + /* font_set signal is emitted when font is chosen */ + void (* font_set) (GtkFontButton *gfp); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_font_button_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_font_button_new (void); +GtkWidget *gtk_font_button_new_with_font (const gchar *fontname); + +const gchar * gtk_font_button_get_title (GtkFontButton *font_button); +void gtk_font_button_set_title (GtkFontButton *font_button, + const gchar *title); +gboolean gtk_font_button_get_use_font (GtkFontButton *font_button); +void gtk_font_button_set_use_font (GtkFontButton *font_button, + gboolean use_font); +gboolean gtk_font_button_get_use_size (GtkFontButton *font_button); +void gtk_font_button_set_use_size (GtkFontButton *font_button, + gboolean use_size); +const gchar * gtk_font_button_get_font_name (GtkFontButton *font_button); +gboolean gtk_font_button_set_font_name (GtkFontButton *font_button, + const gchar *fontname); +gboolean gtk_font_button_get_show_style (GtkFontButton *font_button); +void gtk_font_button_set_show_style (GtkFontButton *font_button, + gboolean show_style); +gboolean gtk_font_button_get_show_size (GtkFontButton *font_button); +void gtk_font_button_set_show_size (GtkFontButton *font_button, + gboolean show_size); + +G_END_DECLS + + +#endif /* __GTK_FONT_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooser.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooser.h new file mode 100644 index 0000000..93323f3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooser.h @@ -0,0 +1,118 @@ +/* GTK - The GIMP Toolkit + * gtkfontchooser.h - Abstract interface for font file selectors GUIs + * + * Copyright (C) 2006, Emmanuele Bassi + * Copyright (C) 2011 Alberto Ruiz + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FONT_CHOOSER_H__ +#define __GTK_FONT_CHOOSER_H__ + +#include + +G_BEGIN_DECLS + +/** + * GtkFontFilterFunc: + * @family: a #PangoFontFamily + * @face: a #PangoFontFace belonging to @family + * @data: (closure): user data passed to gtk_font_chooser_set_filter_func() + * + * The type of function that is used for deciding what fonts get + * shown in a #GtkFontChooser. See gtk_font_chooser_set_filter_func(). + * + * Returns: %TRUE if the font should be displayed + */ +typedef gboolean (*GtkFontFilterFunc) (const PangoFontFamily *family, + const PangoFontFace *face, + gpointer data); + +#define GTK_TYPE_FONT_CHOOSER (gtk_font_chooser_get_type ()) +#define GTK_FONT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_CHOOSER, GtkFontChooser)) +#define GTK_IS_FONT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_CHOOSER)) +#define GTK_FONT_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FONT_CHOOSER, GtkFontChooserIface)) + +typedef struct _GtkFontChooser GtkFontChooser; /* dummy */ +typedef struct _GtkFontChooserIface GtkFontChooserIface; + +struct _GtkFontChooserIface +{ + GTypeInterface base_iface; + + /* Methods */ + PangoFontFamily * (* get_font_family) (GtkFontChooser *chooser); + PangoFontFace * (* get_font_face) (GtkFontChooser *chooser); + gint (* get_font_size) (GtkFontChooser *chooser); + + void (* set_filter_func) (GtkFontChooser *chooser, + GtkFontFilterFunc filter, + gpointer data, + GDestroyNotify destroy); + + /* Signals */ + void (* font_activated) (GtkFontChooser *chooser, + const gchar *fontname); + + /* Padding */ + gpointer padding[12]; +}; + +GDK_AVAILABLE_IN_3_2 +GType gtk_font_chooser_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_2 +PangoFontFamily *gtk_font_chooser_get_font_family (GtkFontChooser *fontchooser); +GDK_AVAILABLE_IN_3_2 +PangoFontFace *gtk_font_chooser_get_font_face (GtkFontChooser *fontchooser); +GDK_AVAILABLE_IN_3_2 +gint gtk_font_chooser_get_font_size (GtkFontChooser *fontchooser); + +GDK_AVAILABLE_IN_3_2 +PangoFontDescription * + gtk_font_chooser_get_font_desc (GtkFontChooser *fontchooser); +GDK_AVAILABLE_IN_3_2 +void gtk_font_chooser_set_font_desc (GtkFontChooser *fontchooser, + const PangoFontDescription *font_desc); + +GDK_AVAILABLE_IN_3_2 +gchar* gtk_font_chooser_get_font (GtkFontChooser *fontchooser); + +GDK_AVAILABLE_IN_3_2 +void gtk_font_chooser_set_font (GtkFontChooser *fontchooser, + const gchar *fontname); +GDK_AVAILABLE_IN_3_2 +gchar* gtk_font_chooser_get_preview_text (GtkFontChooser *fontchooser); +GDK_AVAILABLE_IN_3_2 +void gtk_font_chooser_set_preview_text (GtkFontChooser *fontchooser, + const gchar *text); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_font_chooser_get_show_preview_entry (GtkFontChooser *fontchooser); +GDK_AVAILABLE_IN_3_2 +void gtk_font_chooser_set_show_preview_entry (GtkFontChooser *fontchooser, + gboolean show_preview_entry); +GDK_AVAILABLE_IN_3_2 +void gtk_font_chooser_set_filter_func (GtkFontChooser *fontchooser, + GtkFontFilterFunc filter, + gpointer user_data, + GDestroyNotify destroy); + +G_END_DECLS + +#endif /* __GTK_FONT_CHOOSER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserdialog.h new file mode 100644 index 0000000..ad8d7c7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserdialog.h @@ -0,0 +1,67 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2011 Alberto Ruiz + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FONT_CHOOSER_DIALOG_H__ +#define __GTK_FONT_CHOOSER_DIALOG_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FONT_CHOOSER_DIALOG (gtk_font_chooser_dialog_get_type ()) +#define GTK_FONT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_CHOOSER_DIALOG, GtkFontChooserDialog)) +#define GTK_FONT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_CHOOSER_DIALOG, GtkFontChooserDialogClass)) +#define GTK_IS_FONT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_CHOOSER_DIALOG)) +#define GTK_IS_FONT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_CHOOSER_DIALOG)) +#define GTK_FONT_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_CHOOSER_DIALOG, GtkFontChooserDialogClass)) + +typedef struct _GtkFontChooserDialog GtkFontChooserDialog; +typedef struct _GtkFontChooserDialogPrivate GtkFontChooserDialogPrivate; +typedef struct _GtkFontChooserDialogClass GtkFontChooserDialogClass; + +struct _GtkFontChooserDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkFontChooserDialogPrivate *priv; +}; + +struct _GtkFontChooserDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GDK_AVAILABLE_IN_3_2 +GType gtk_font_chooser_dialog_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_2 +GtkWidget* gtk_font_chooser_dialog_new (const gchar *title, + GtkWindow *parent); + +G_END_DECLS + +#endif /* __GTK_FONT_CHOOSER_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserwidget.h new file mode 100644 index 0000000..c998085 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkfontchooserwidget.h @@ -0,0 +1,71 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2011 Alberto Ruiz + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FONT_CHOOSER_WIDGET_H__ +#define __GTK_FONT_CHOOSER_WIDGET_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_FONT_CHOOSER_WIDGET (gtk_font_chooser_widget_get_type ()) +#define GTK_FONT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FONT_CHOOSER_WIDGET, GtkFontChooserWidget)) +#define GTK_FONT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FONT_CHOOSER_WIDGET, GtkFontChooserWidgetClass)) +#define GTK_IS_FONT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FONT_CHOOSER_WIDGET)) +#define GTK_IS_FONT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FONT_CHOOSER_WIDGET)) +#define GTK_FONT_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FONT_CHOOSER_WIDGET, GtkFontChooserWidgetClass)) + +typedef struct _GtkFontChooserWidget GtkFontChooserWidget; +typedef struct _GtkFontChooserWidgetPrivate GtkFontChooserWidgetPrivate; +typedef struct _GtkFontChooserWidgetClass GtkFontChooserWidgetClass; + +struct _GtkFontChooserWidget +{ + GtkBox parent_instance; + + /*< private >*/ + GtkFontChooserWidgetPrivate *priv; +}; + +struct _GtkFontChooserWidgetClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GDK_AVAILABLE_IN_3_2 +GType gtk_font_chooser_widget_get_type (void) G_GNUC_CONST; + +GDK_AVAILABLE_IN_3_2 +GtkWidget* gtk_font_chooser_widget_new (void); + +G_END_DECLS + +#endif /* __GTK_FONT_CHOOSER_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkframe.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkframe.h new file mode 100644 index 0000000..2d981f0 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkframe.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_FRAME_H__ +#define __GTK_FRAME_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_FRAME (gtk_frame_get_type ()) +#define GTK_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FRAME, GtkFrame)) +#define GTK_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FRAME, GtkFrameClass)) +#define GTK_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FRAME)) +#define GTK_IS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FRAME)) +#define GTK_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FRAME, GtkFrameClass)) + +typedef struct _GtkFrame GtkFrame; +typedef struct _GtkFramePrivate GtkFramePrivate; +typedef struct _GtkFrameClass GtkFrameClass; + +struct _GtkFrame +{ + GtkBin bin; + + /*< private >*/ + GtkFramePrivate *priv; +}; + +struct _GtkFrameClass +{ + GtkBinClass parent_class; + + void (*compute_child_allocation) (GtkFrame *frame, GtkAllocation *allocation); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_frame_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_frame_new (const gchar *label); + +void gtk_frame_set_label (GtkFrame *frame, + const gchar *label); +const gchar * gtk_frame_get_label (GtkFrame *frame); + +void gtk_frame_set_label_widget (GtkFrame *frame, + GtkWidget *label_widget); +GtkWidget *gtk_frame_get_label_widget (GtkFrame *frame); +void gtk_frame_set_label_align (GtkFrame *frame, + gfloat xalign, + gfloat yalign); +void gtk_frame_get_label_align (GtkFrame *frame, + gfloat *xalign, + gfloat *yalign); +void gtk_frame_set_shadow_type (GtkFrame *frame, + GtkShadowType type); +GtkShadowType gtk_frame_get_shadow_type (GtkFrame *frame); + + +G_END_DECLS + + +#endif /* __GTK_FRAME_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkgradient.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkgradient.h new file mode 100644 index 0000000..59a0710 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkgradient.h @@ -0,0 +1,66 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_GRADIENT_H__ +#define __GTK_GRADIENT_H__ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_GRADIENT (gtk_gradient_get_type ()) + +GType gtk_gradient_get_type (void) G_GNUC_CONST; + +GtkGradient * gtk_gradient_new_linear (gdouble x0, + gdouble y0, + gdouble x1, + gdouble y1); +GtkGradient * gtk_gradient_new_radial (gdouble x0, + gdouble y0, + gdouble radius0, + gdouble x1, + gdouble y1, + gdouble radius1); + +void gtk_gradient_add_color_stop (GtkGradient *gradient, + gdouble offset, + GtkSymbolicColor *color); + +GtkGradient * gtk_gradient_ref (GtkGradient *gradient); +void gtk_gradient_unref (GtkGradient *gradient); + +gboolean gtk_gradient_resolve (GtkGradient *gradient, + GtkStyleProperties *props, + cairo_pattern_t **resolved_gradient); +cairo_pattern_t * + gtk_gradient_resolve_for_context + (GtkGradient *gradient, + GtkStyleContext *context); + +char * gtk_gradient_to_string (GtkGradient *gradient); + +G_END_DECLS + +#endif /* __GTK_GRADIENT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkgrid.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkgrid.h new file mode 100644 index 0000000..0c72d19 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkgrid.h @@ -0,0 +1,110 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Red Hat, Inc. + * Author: Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_GRID_H__ +#define __GTK_GRID_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_GRID (gtk_grid_get_type ()) +#define GTK_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_GRID, GtkGrid)) +#define GTK_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_GRID, GtkGridClass)) +#define GTK_IS_GRID(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_GRID)) +#define GTK_IS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_GRID)) +#define GTK_GRID_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GRID, GtkGridClass)) + + +typedef struct _GtkGrid GtkGrid; +typedef struct _GtkGridPrivate GtkGridPrivate; +typedef struct _GtkGridClass GtkGridClass; + +struct _GtkGrid +{ + /*< private >*/ + GtkContainer container; + + GtkGridPrivate *priv; +}; + +struct _GtkGridClass +{ + GtkContainerClass parent_class; + + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_grid_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_grid_new (void); +void gtk_grid_attach (GtkGrid *grid, + GtkWidget *child, + gint left, + gint top, + gint width, + gint height); +void gtk_grid_attach_next_to (GtkGrid *grid, + GtkWidget *child, + GtkWidget *sibling, + GtkPositionType side, + gint width, + gint height); +GDK_AVAILABLE_IN_3_2 +GtkWidget *gtk_grid_get_child_at (GtkGrid *grid, + gint left, + gint top); +GDK_AVAILABLE_IN_3_2 +void gtk_grid_insert_row (GtkGrid *grid, + gint position); +GDK_AVAILABLE_IN_3_2 +void gtk_grid_insert_column (GtkGrid *grid, + gint position); +GDK_AVAILABLE_IN_3_2 +void gtk_grid_insert_next_to (GtkGrid *grid, + GtkWidget *sibling, + GtkPositionType side); +void gtk_grid_set_row_homogeneous (GtkGrid *grid, + gboolean homogeneous); +gboolean gtk_grid_get_row_homogeneous (GtkGrid *grid); +void gtk_grid_set_row_spacing (GtkGrid *grid, + guint spacing); +guint gtk_grid_get_row_spacing (GtkGrid *grid); +void gtk_grid_set_column_homogeneous (GtkGrid *grid, + gboolean homogeneous); +gboolean gtk_grid_get_column_homogeneous (GtkGrid *grid); +void gtk_grid_set_column_spacing (GtkGrid *grid, + guint spacing); +guint gtk_grid_get_column_spacing (GtkGrid *grid); + + +G_END_DECLS + +#endif /* __GTK_GRID_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkiconfactory.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkiconfactory.h new file mode 100644 index 0000000..8e49e62 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkiconfactory.h @@ -0,0 +1,183 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ICON_FACTORY_H__ +#define __GTK_ICON_FACTORY_H__ + +#include +#include +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_ICON_FACTORY (gtk_icon_factory_get_type ()) +#define GTK_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_ICON_FACTORY, GtkIconFactory)) +#define GTK_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) +#define GTK_IS_ICON_FACTORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_ICON_FACTORY)) +#define GTK_IS_ICON_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_FACTORY)) +#define GTK_ICON_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_FACTORY, GtkIconFactoryClass)) +#define GTK_TYPE_ICON_SET (gtk_icon_set_get_type ()) +#define GTK_TYPE_ICON_SOURCE (gtk_icon_source_get_type ()) + +typedef struct _GtkIconFactory GtkIconFactory; +typedef struct _GtkIconFactoryPrivate GtkIconFactoryPrivate; +typedef struct _GtkIconFactoryClass GtkIconFactoryClass; + +struct _GtkIconFactory +{ + GObject parent_instance; + + /*< private >*/ + GtkIconFactoryPrivate *priv; +}; + +struct _GtkIconFactoryClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_icon_factory_get_type (void) G_GNUC_CONST; +GtkIconFactory* gtk_icon_factory_new (void); +void gtk_icon_factory_add (GtkIconFactory *factory, + const gchar *stock_id, + GtkIconSet *icon_set); +GtkIconSet* gtk_icon_factory_lookup (GtkIconFactory *factory, + const gchar *stock_id); + +/* Manage the default icon factory stack */ + +void gtk_icon_factory_add_default (GtkIconFactory *factory); +void gtk_icon_factory_remove_default (GtkIconFactory *factory); +GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id); + +/* Get preferred real size from registered semantic size. Note that + * themes SHOULD use this size, but they aren't required to; for size + * requests and such, you should get the actual pixbuf from the icon + * set and see what size was rendered. + * + * This function is intended for people who are scaling icons, + * rather than for people who are displaying already-scaled icons. + * That is, if you are displaying an icon, you should get the + * size from the rendered pixbuf, not from here. + */ + +#ifndef GDK_MULTIHEAD_SAFE +gboolean gtk_icon_size_lookup (GtkIconSize size, + gint *width, + gint *height); +#endif /* GDK_MULTIHEAD_SAFE */ +gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings, + GtkIconSize size, + gint *width, + gint *height); + +GtkIconSize gtk_icon_size_register (const gchar *name, + gint width, + gint height); +void gtk_icon_size_register_alias (const gchar *alias, + GtkIconSize target); +GtkIconSize gtk_icon_size_from_name (const gchar *name); +const gchar* gtk_icon_size_get_name (GtkIconSize size); + +/* Icon sets */ + +GType gtk_icon_set_get_type (void) G_GNUC_CONST; +GtkIconSet* gtk_icon_set_new (void); +GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf); + +GtkIconSet* gtk_icon_set_ref (GtkIconSet *icon_set); +void gtk_icon_set_unref (GtkIconSet *icon_set); +GtkIconSet* gtk_icon_set_copy (GtkIconSet *icon_set); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_icon_set_render_icon_pixbuf) +GdkPixbuf* gtk_icon_set_render_icon (GtkIconSet *icon_set, + GtkStyle *style, + GtkTextDirection direction, + GtkStateType state, + GtkIconSize size, + GtkWidget *widget, + const gchar *detail); + +void gtk_icon_set_add_source (GtkIconSet *icon_set, + const GtkIconSource *source); + +void gtk_icon_set_get_sizes (GtkIconSet *icon_set, + GtkIconSize **sizes, + gint *n_sizes); + +GType gtk_icon_source_get_type (void) G_GNUC_CONST; +GtkIconSource* gtk_icon_source_new (void); +GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source); +void gtk_icon_source_free (GtkIconSource *source); + +void gtk_icon_source_set_filename (GtkIconSource *source, + const gchar *filename); +void gtk_icon_source_set_icon_name (GtkIconSource *source, + const gchar *icon_name); +void gtk_icon_source_set_pixbuf (GtkIconSource *source, + GdkPixbuf *pixbuf); + +const gchar * gtk_icon_source_get_filename (const GtkIconSource *source); +const gchar * gtk_icon_source_get_icon_name (const GtkIconSource *source); +GdkPixbuf* gtk_icon_source_get_pixbuf (const GtkIconSource *source); + +void gtk_icon_source_set_direction_wildcarded (GtkIconSource *source, + gboolean setting); +void gtk_icon_source_set_state_wildcarded (GtkIconSource *source, + gboolean setting); +void gtk_icon_source_set_size_wildcarded (GtkIconSource *source, + gboolean setting); +gboolean gtk_icon_source_get_size_wildcarded (const GtkIconSource *source); +gboolean gtk_icon_source_get_state_wildcarded (const GtkIconSource *source); +gboolean gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source); +void gtk_icon_source_set_direction (GtkIconSource *source, + GtkTextDirection direction); +void gtk_icon_source_set_state (GtkIconSource *source, + GtkStateType state); +void gtk_icon_source_set_size (GtkIconSource *source, + GtkIconSize size); +GtkTextDirection gtk_icon_source_get_direction (const GtkIconSource *source); +GtkStateType gtk_icon_source_get_state (const GtkIconSource *source); +GtkIconSize gtk_icon_source_get_size (const GtkIconSource *source); + + +/* ignore this */ +void _gtk_icon_set_invalidate_caches (void); +GList* _gtk_icon_factory_list_ids (void); +void _gtk_icon_factory_ensure_default_icons (void); + +G_END_DECLS + +#endif /* __GTK_ICON_FACTORY_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkicontheme.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkicontheme.h new file mode 100644 index 0000000..3ecae6e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkicontheme.h @@ -0,0 +1,233 @@ +/* GtkIconTheme - a loader for icon themes + * gtk-icon-loader.h Copyright (C) 2002, 2003 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ICON_THEME_H__ +#define __GTK_ICON_THEME_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ICON_INFO (gtk_icon_info_get_type ()) + +#define GTK_TYPE_ICON_THEME (gtk_icon_theme_get_type ()) +#define GTK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_THEME, GtkIconTheme)) +#define GTK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) +#define GTK_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_THEME)) +#define GTK_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_THEME)) +#define GTK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_THEME, GtkIconThemeClass)) + +/** + * GtkIconInfo: + * + * Contains information found when looking up an icon in + * an icon theme. + */ +typedef struct _GtkIconInfo GtkIconInfo; +typedef struct _GtkIconTheme GtkIconTheme; +typedef struct _GtkIconThemeClass GtkIconThemeClass; +typedef struct _GtkIconThemePrivate GtkIconThemePrivate; + +/** + * GtkIconTheme: + * + * Acts as a database of information about an icon theme. + * Normally, you retrieve the icon theme for a particular + * screen using gtk_icon_theme_get_for_screen() and it + * will contain information about current icon theme for + * that screen, but you can also create a new #GtkIconTheme + * object and set the icon theme name explicitely using + * gtk_icon_theme_set_custom_theme(). + */ +struct _GtkIconTheme +{ + /*< private >*/ + GObject parent_instance; + + GtkIconThemePrivate *priv; +}; + +struct _GtkIconThemeClass +{ + GObjectClass parent_class; + + void (* changed) (GtkIconTheme *icon_theme); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkIconLookupFlags: + * @GTK_ICON_LOOKUP_NO_SVG: Never return SVG icons, even if gdk-pixbuf + * supports them. Cannot be used together with %GTK_ICON_LOOKUP_FORCE_SVG. + * @GTK_ICON_LOOKUP_FORCE_SVG: Return SVG icons, even if gdk-pixbuf + * doesn't support them. + * Cannot be used together with %GTK_ICON_LOOKUP_NO_SVG. + * @GTK_ICON_LOOKUP_USE_BUILTIN: When passed to + * gtk_icon_theme_lookup_icon() includes builtin icons + * as well as files. For a builtin icon, gtk_icon_info_get_filename() + * returns %NULL and you need to call gtk_icon_info_get_builtin_pixbuf(). + * @GTK_ICON_LOOKUP_GENERIC_FALLBACK: Try to shorten icon name at '-' + * characters before looking at inherited themes. For more general + * fallback, see gtk_icon_theme_choose_icon(). Since 2.12. + * @GTK_ICON_LOOKUP_FORCE_SIZE: Always return the icon scaled to the + * requested size. Since 2.14. + * + * Used to specify options for gtk_icon_theme_lookup_icon() + **/ +typedef enum +{ + GTK_ICON_LOOKUP_NO_SVG = 1 << 0, + GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1, + GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2, + GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3, + GTK_ICON_LOOKUP_FORCE_SIZE = 1 << 4 +} GtkIconLookupFlags; + +/** + * GTK_ICON_THEME_ERROR: + * + * The #GQuark used for #GtkIconThemeError errors. + */ +#define GTK_ICON_THEME_ERROR gtk_icon_theme_error_quark () + +/** + * GtkIconThemeError: + * @GTK_ICON_THEME_NOT_FOUND: The icon specified does not exist in the theme + * @GTK_ICON_THEME_FAILED: An unspecified error occurred. + * + * Error codes for GtkIconTheme operations. + **/ +typedef enum { + GTK_ICON_THEME_NOT_FOUND, + GTK_ICON_THEME_FAILED +} GtkIconThemeError; + +GQuark gtk_icon_theme_error_quark (void); + +GType gtk_icon_theme_get_type (void) G_GNUC_CONST; + +GtkIconTheme *gtk_icon_theme_new (void); +GtkIconTheme *gtk_icon_theme_get_default (void); +GtkIconTheme *gtk_icon_theme_get_for_screen (GdkScreen *screen); +void gtk_icon_theme_set_screen (GtkIconTheme *icon_theme, + GdkScreen *screen); + +void gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme, + const gchar *path[], + gint n_elements); +void gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme, + gchar **path[], + gint *n_elements); +void gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme, + const gchar *path); +void gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme, + const gchar *path); + +void gtk_icon_theme_set_custom_theme (GtkIconTheme *icon_theme, + const gchar *theme_name); + +gboolean gtk_icon_theme_has_icon (GtkIconTheme *icon_theme, + const gchar *icon_name); +gint *gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme, + const gchar *icon_name); +GtkIconInfo * gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme, + const gchar *icon_name, + gint size, + GtkIconLookupFlags flags); +GtkIconInfo * gtk_icon_theme_choose_icon (GtkIconTheme *icon_theme, + const gchar *icon_names[], + gint size, + GtkIconLookupFlags flags); +GdkPixbuf * gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, + const gchar *icon_name, + gint size, + GtkIconLookupFlags flags, + GError **error); + +GtkIconInfo * gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme, + GIcon *icon, + gint size, + GtkIconLookupFlags flags); + +GList * gtk_icon_theme_list_icons (GtkIconTheme *icon_theme, + const gchar *context); +GList * gtk_icon_theme_list_contexts (GtkIconTheme *icon_theme); +char * gtk_icon_theme_get_example_icon_name (GtkIconTheme *icon_theme); + +gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *icon_theme); + +void gtk_icon_theme_add_builtin_icon (const gchar *icon_name, + gint size, + GdkPixbuf *pixbuf); + +GType gtk_icon_info_get_type (void) G_GNUC_CONST; +GtkIconInfo * gtk_icon_info_copy (GtkIconInfo *icon_info); +void gtk_icon_info_free (GtkIconInfo *icon_info); + +GtkIconInfo * gtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_theme, + GdkPixbuf *pixbuf); + +gint gtk_icon_info_get_base_size (GtkIconInfo *icon_info); +const gchar * gtk_icon_info_get_filename (GtkIconInfo *icon_info); +GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info); +GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info, + GError **error); +GdkPixbuf * gtk_icon_info_load_symbolic (GtkIconInfo *icon_info, + const GdkRGBA *fg, + const GdkRGBA *success_color, + const GdkRGBA *warning_color, + const GdkRGBA *error_color, + gboolean *was_symbolic, + GError **error); +GdkPixbuf * gtk_icon_info_load_symbolic_for_context (GtkIconInfo *icon_info, + GtkStyleContext *context, + gboolean *was_symbolic, + GError **error); +GDK_DEPRECATED_IN_3_0_FOR(gtk_icon_info_load_symbol_for_context) +GdkPixbuf * gtk_icon_info_load_symbolic_for_style (GtkIconInfo *icon_info, + GtkStyle *style, + GtkStateType state, + gboolean *was_symbolic, + GError **error); +void gtk_icon_info_set_raw_coordinates (GtkIconInfo *icon_info, + gboolean raw_coordinates); + +gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info, + GdkRectangle *rectangle); +gboolean gtk_icon_info_get_attach_points (GtkIconInfo *icon_info, + GdkPoint **points, + gint *n_points); +const gchar * gtk_icon_info_get_display_name (GtkIconInfo *icon_info); + +/* Non-public methods */ +void _gtk_icon_theme_check_reload (GdkDisplay *display); +void _gtk_icon_theme_ensure_builtin_cache (void); + +G_END_DECLS + +#endif /* __GTK_ICON_THEME_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkiconview.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkiconview.h new file mode 100644 index 0000000..6e9f6c4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkiconview.h @@ -0,0 +1,261 @@ +/* gtkiconview.h + * Copyright (C) 2002, 2004 Anders Carlsson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ICON_VIEW_H__ +#define __GTK_ICON_VIEW_H__ + +#include +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ICON_VIEW (gtk_icon_view_get_type ()) +#define GTK_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_VIEW, GtkIconView)) +#define GTK_ICON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) +#define GTK_IS_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_VIEW)) +#define GTK_IS_ICON_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ICON_VIEW)) +#define GTK_ICON_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ICON_VIEW, GtkIconViewClass)) + +typedef struct _GtkIconView GtkIconView; +typedef struct _GtkIconViewClass GtkIconViewClass; +typedef struct _GtkIconViewPrivate GtkIconViewPrivate; + +/** + * GtkIconViewForeachFunc: + * @icon_view: a #GtkIconView + * @path: The #GtkTreePath of a selected row + * @data: user data + * + * A function used by gtk_icon_view_selected_foreach() to map all + * selected rows. It will be called on every selected row in the view. + */ +typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view, + GtkTreePath *path, + gpointer data); + +/** + * GtkIconViewDropPosition: + * @GTK_ICON_VIEW_NO_DROP: no drop possible + * @GTK_ICON_VIEW_DROP_INTO: dropped item replaces the item + * @GTK_ICON_VIEW_DROP_LEFT: droppped item is inserted to the left + * @GTK_ICON_VIEW_DROP_RIGHT: dropped item is inserted to the right + * @GTK_ICON_VIEW_DROP_ABOVE: dropped item is inserted above + * @GTK_ICON_VIEW_DROP_BELOW: dropped item is inserted below + * + * An enum for determining where a dropped item goes. + */ +typedef enum +{ + GTK_ICON_VIEW_NO_DROP, + GTK_ICON_VIEW_DROP_INTO, + GTK_ICON_VIEW_DROP_LEFT, + GTK_ICON_VIEW_DROP_RIGHT, + GTK_ICON_VIEW_DROP_ABOVE, + GTK_ICON_VIEW_DROP_BELOW +} GtkIconViewDropPosition; + +struct _GtkIconView +{ + GtkContainer parent; + + /*< private >*/ + GtkIconViewPrivate *priv; +}; + +struct _GtkIconViewClass +{ + GtkContainerClass parent_class; + + void (* item_activated) (GtkIconView *icon_view, + GtkTreePath *path); + void (* selection_changed) (GtkIconView *icon_view); + + /* Key binding signals */ + void (* select_all) (GtkIconView *icon_view); + void (* unselect_all) (GtkIconView *icon_view); + void (* select_cursor_item) (GtkIconView *icon_view); + void (* toggle_cursor_item) (GtkIconView *icon_view); + gboolean (* move_cursor) (GtkIconView *icon_view, + GtkMovementStep step, + gint count); + gboolean (* activate_cursor_item) (GtkIconView *icon_view); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_icon_view_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_icon_view_new (void); +GtkWidget * gtk_icon_view_new_with_area (GtkCellArea *area); +GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model); + +void gtk_icon_view_set_model (GtkIconView *icon_view, + GtkTreeModel *model); +GtkTreeModel * gtk_icon_view_get_model (GtkIconView *icon_view); +void gtk_icon_view_set_text_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_text_column (GtkIconView *icon_view); +void gtk_icon_view_set_markup_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_markup_column (GtkIconView *icon_view); +void gtk_icon_view_set_pixbuf_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_pixbuf_column (GtkIconView *icon_view); + +void gtk_icon_view_set_item_orientation (GtkIconView *icon_view, + GtkOrientation orientation); +GtkOrientation gtk_icon_view_get_item_orientation (GtkIconView *icon_view); +void gtk_icon_view_set_columns (GtkIconView *icon_view, + gint columns); +gint gtk_icon_view_get_columns (GtkIconView *icon_view); +void gtk_icon_view_set_item_width (GtkIconView *icon_view, + gint item_width); +gint gtk_icon_view_get_item_width (GtkIconView *icon_view); +void gtk_icon_view_set_spacing (GtkIconView *icon_view, + gint spacing); +gint gtk_icon_view_get_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_row_spacing (GtkIconView *icon_view, + gint row_spacing); +gint gtk_icon_view_get_row_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_column_spacing (GtkIconView *icon_view, + gint column_spacing); +gint gtk_icon_view_get_column_spacing (GtkIconView *icon_view); +void gtk_icon_view_set_margin (GtkIconView *icon_view, + gint margin); +gint gtk_icon_view_get_margin (GtkIconView *icon_view); +void gtk_icon_view_set_item_padding (GtkIconView *icon_view, + gint item_padding); +gint gtk_icon_view_get_item_padding (GtkIconView *icon_view); + +GtkTreePath * gtk_icon_view_get_path_at_pos (GtkIconView *icon_view, + gint x, + gint y); +gboolean gtk_icon_view_get_item_at_pos (GtkIconView *icon_view, + gint x, + gint y, + GtkTreePath **path, + GtkCellRenderer **cell); +gboolean gtk_icon_view_get_visible_range (GtkIconView *icon_view, + GtkTreePath **start_path, + GtkTreePath **end_path); + +void gtk_icon_view_selected_foreach (GtkIconView *icon_view, + GtkIconViewForeachFunc func, + gpointer data); +void gtk_icon_view_set_selection_mode (GtkIconView *icon_view, + GtkSelectionMode mode); +GtkSelectionMode gtk_icon_view_get_selection_mode (GtkIconView *icon_view); +void gtk_icon_view_select_path (GtkIconView *icon_view, + GtkTreePath *path); +void gtk_icon_view_unselect_path (GtkIconView *icon_view, + GtkTreePath *path); +gboolean gtk_icon_view_path_is_selected (GtkIconView *icon_view, + GtkTreePath *path); +gint gtk_icon_view_get_item_row (GtkIconView *icon_view, + GtkTreePath *path); +gint gtk_icon_view_get_item_column (GtkIconView *icon_view, + GtkTreePath *path); +GList *gtk_icon_view_get_selected_items (GtkIconView *icon_view); +void gtk_icon_view_select_all (GtkIconView *icon_view); +void gtk_icon_view_unselect_all (GtkIconView *icon_view); +void gtk_icon_view_item_activated (GtkIconView *icon_view, + GtkTreePath *path); +void gtk_icon_view_set_cursor (GtkIconView *icon_view, + GtkTreePath *path, + GtkCellRenderer *cell, + gboolean start_editing); +gboolean gtk_icon_view_get_cursor (GtkIconView *icon_view, + GtkTreePath **path, + GtkCellRenderer **cell); +void gtk_icon_view_scroll_to_path (GtkIconView *icon_view, + GtkTreePath *path, + gboolean use_align, + gfloat row_align, + gfloat col_align); + +/* Drag-and-Drop support */ +void gtk_icon_view_enable_model_drag_source (GtkIconView *icon_view, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_icon_view_enable_model_drag_dest (GtkIconView *icon_view, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_icon_view_unset_model_drag_source (GtkIconView *icon_view); +void gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view); +void gtk_icon_view_set_reorderable (GtkIconView *icon_view, + gboolean reorderable); +gboolean gtk_icon_view_get_reorderable (GtkIconView *icon_view); + + +/* These are useful to implement your own custom stuff. */ +void gtk_icon_view_set_drag_dest_item (GtkIconView *icon_view, + GtkTreePath *path, + GtkIconViewDropPosition pos); +void gtk_icon_view_get_drag_dest_item (GtkIconView *icon_view, + GtkTreePath **path, + GtkIconViewDropPosition *pos); +gboolean gtk_icon_view_get_dest_item_at_pos (GtkIconView *icon_view, + gint drag_x, + gint drag_y, + GtkTreePath **path, + GtkIconViewDropPosition *pos); +cairo_surface_t *gtk_icon_view_create_drag_icon (GtkIconView *icon_view, + GtkTreePath *path); + +void gtk_icon_view_convert_widget_to_bin_window_coords (GtkIconView *icon_view, + gint wx, + gint wy, + gint *bx, + gint *by); + + +void gtk_icon_view_set_tooltip_item (GtkIconView *icon_view, + GtkTooltip *tooltip, + GtkTreePath *path); +void gtk_icon_view_set_tooltip_cell (GtkIconView *icon_view, + GtkTooltip *tooltip, + GtkTreePath *path, + GtkCellRenderer *cell); +gboolean gtk_icon_view_get_tooltip_context (GtkIconView *icon_view, + gint *x, + gint *y, + gboolean keyboard_tip, + GtkTreeModel **model, + GtkTreePath **path, + GtkTreeIter *iter); +void gtk_icon_view_set_tooltip_column (GtkIconView *icon_view, + gint column); +gint gtk_icon_view_get_tooltip_column (GtkIconView *icon_view); + + +G_END_DECLS + +#endif /* __GTK_ICON_VIEW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimage.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimage.h new file mode 100644 index 0000000..6fb4532 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimage.h @@ -0,0 +1,168 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IMAGE_H__ +#define __GTK_IMAGE_H__ + + +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_IMAGE (gtk_image_get_type ()) +#define GTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage)) +#define GTK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass)) +#define GTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE)) +#define GTK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE)) +#define GTK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass)) + + +typedef struct _GtkImage GtkImage; +typedef struct _GtkImagePrivate GtkImagePrivate; +typedef struct _GtkImageClass GtkImageClass; + +/** + * GtkImageType: + * @GTK_IMAGE_EMPTY: there is no image displayed by the widget + * @GTK_IMAGE_PIXBUF: the widget contains a #GdkPixbuf + * @GTK_IMAGE_STOCK: the widget contains a stock icon name (see + * ) + * @GTK_IMAGE_ICON_SET: the widget contains a #GtkIconSet + * @GTK_IMAGE_ANIMATION: the widget contains a #GdkPixbufAnimation + * @GTK_IMAGE_ICON_NAME: the widget contains a named icon. + * This image type was added in GTK+ 2.6 + * @GTK_IMAGE_GICON: the widget contains a #GIcon. + * This image type was added in GTK+ 2.14 + * + * Describes the image data representation used by a #GtkImage. If you + * want to get the image from the widget, you can only get the + * currently-stored representation. e.g. if the + * gtk_image_get_storage_type() returns #GTK_IMAGE_PIXBUF, then you can + * call gtk_image_get_pixbuf() but not gtk_image_get_stock(). For empty + * images, you can request any storage type (call any of the "get" + * functions), but they will all return %NULL values. + */ +typedef enum +{ + GTK_IMAGE_EMPTY, + GTK_IMAGE_PIXBUF, + GTK_IMAGE_STOCK, + GTK_IMAGE_ICON_SET, + GTK_IMAGE_ANIMATION, + GTK_IMAGE_ICON_NAME, + GTK_IMAGE_GICON +} GtkImageType; + +/** + * GtkImage: + * + * This struct contain private data only and should be accessed by the functions + * below. + */ +struct _GtkImage +{ + GtkMisc misc; + + /*< private >*/ + GtkImagePrivate *priv; +}; + +struct _GtkImageClass +{ + GtkMiscClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_image_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_image_new (void); +GtkWidget* gtk_image_new_from_file (const gchar *filename); +GtkWidget* gtk_image_new_from_resource (const gchar *resource_path); +GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf); +GtkWidget* gtk_image_new_from_stock (const gchar *stock_id, + GtkIconSize size); +GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set, + GtkIconSize size); +GtkWidget* gtk_image_new_from_animation (GdkPixbufAnimation *animation); +GtkWidget* gtk_image_new_from_icon_name (const gchar *icon_name, + GtkIconSize size); +GtkWidget* gtk_image_new_from_gicon (GIcon *icon, + GtkIconSize size); + +void gtk_image_clear (GtkImage *image); +void gtk_image_set_from_file (GtkImage *image, + const gchar *filename); +void gtk_image_set_from_resource (GtkImage *image, + const gchar *resource_path); +void gtk_image_set_from_pixbuf (GtkImage *image, + GdkPixbuf *pixbuf); +void gtk_image_set_from_stock (GtkImage *image, + const gchar *stock_id, + GtkIconSize size); +void gtk_image_set_from_icon_set (GtkImage *image, + GtkIconSet *icon_set, + GtkIconSize size); +void gtk_image_set_from_animation (GtkImage *image, + GdkPixbufAnimation *animation); +void gtk_image_set_from_icon_name (GtkImage *image, + const gchar *icon_name, + GtkIconSize size); +void gtk_image_set_from_gicon (GtkImage *image, + GIcon *icon, + GtkIconSize size); +void gtk_image_set_pixel_size (GtkImage *image, + gint pixel_size); + +GtkImageType gtk_image_get_storage_type (GtkImage *image); + +GdkPixbuf* gtk_image_get_pixbuf (GtkImage *image); +void gtk_image_get_stock (GtkImage *image, + gchar **stock_id, + GtkIconSize *size); +void gtk_image_get_icon_set (GtkImage *image, + GtkIconSet **icon_set, + GtkIconSize *size); +GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image); +void gtk_image_get_icon_name (GtkImage *image, + const gchar **icon_name, + GtkIconSize *size); +void gtk_image_get_gicon (GtkImage *image, + GIcon **gicon, + GtkIconSize *size); +gint gtk_image_get_pixel_size (GtkImage *image); + +G_END_DECLS + +#endif /* __GTK_IMAGE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimagemenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimagemenuitem.h new file mode 100644 index 0000000..f53cc68 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimagemenuitem.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IMAGE_MENU_ITEM_H__ +#define __GTK_IMAGE_MENU_ITEM_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_IMAGE_MENU_ITEM (gtk_image_menu_item_get_type ()) +#define GTK_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItem)) +#define GTK_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) +#define GTK_IS_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE_MENU_ITEM)) +#define GTK_IS_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE_MENU_ITEM)) +#define GTK_IMAGE_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE_MENU_ITEM, GtkImageMenuItemClass)) + + +typedef struct _GtkImageMenuItem GtkImageMenuItem; +typedef struct _GtkImageMenuItemPrivate GtkImageMenuItemPrivate; +typedef struct _GtkImageMenuItemClass GtkImageMenuItemClass; + +struct _GtkImageMenuItem +{ + GtkMenuItem menu_item; + + /*< private >*/ + GtkImageMenuItemPrivate *priv; +}; + +struct _GtkImageMenuItemClass +{ + GtkMenuItemClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_image_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_image_menu_item_new (void); +GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label); +GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id, + GtkAccelGroup *accel_group); +void gtk_image_menu_item_set_always_show_image (GtkImageMenuItem *image_menu_item, + gboolean always_show); +gboolean gtk_image_menu_item_get_always_show_image (GtkImageMenuItem *image_menu_item); +void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item, + GtkWidget *image); +GtkWidget* gtk_image_menu_item_get_image (GtkImageMenuItem *image_menu_item); +void gtk_image_menu_item_set_use_stock (GtkImageMenuItem *image_menu_item, + gboolean use_stock); +gboolean gtk_image_menu_item_get_use_stock (GtkImageMenuItem *image_menu_item); +void gtk_image_menu_item_set_accel_group (GtkImageMenuItem *image_menu_item, + GtkAccelGroup *accel_group); + +G_END_DECLS + +#endif /* __GTK_IMAGE_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontext.h new file mode 100644 index 0000000..85025d9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontext.h @@ -0,0 +1,126 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IM_CONTEXT_H__ +#define __GTK_IM_CONTEXT_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_IM_CONTEXT (gtk_im_context_get_type ()) +#define GTK_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContext)) +#define GTK_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) +#define GTK_IS_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT)) +#define GTK_IS_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT)) +#define GTK_IM_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContextClass)) + + +typedef struct _GtkIMContext GtkIMContext; +typedef struct _GtkIMContextClass GtkIMContextClass; + +struct _GtkIMContext +{ + GObject parent_instance; +}; + +struct _GtkIMContextClass +{ + /*< private >*/ + GObjectClass parent_class; + + /*< public >*/ + /* Signals */ + void (*preedit_start) (GtkIMContext *context); + void (*preedit_end) (GtkIMContext *context); + void (*preedit_changed) (GtkIMContext *context); + void (*commit) (GtkIMContext *context, const gchar *str); + gboolean (*retrieve_surrounding) (GtkIMContext *context); + gboolean (*delete_surrounding) (GtkIMContext *context, + gint offset, + gint n_chars); + + /* Virtual functions */ + void (*set_client_window) (GtkIMContext *context, + GdkWindow *window); + void (*get_preedit_string) (GtkIMContext *context, + gchar **str, + PangoAttrList **attrs, + gint *cursor_pos); + gboolean (*filter_keypress) (GtkIMContext *context, + GdkEventKey *event); + void (*focus_in) (GtkIMContext *context); + void (*focus_out) (GtkIMContext *context); + void (*reset) (GtkIMContext *context); + void (*set_cursor_location) (GtkIMContext *context, + GdkRectangle *area); + void (*set_use_preedit) (GtkIMContext *context, + gboolean use_preedit); + void (*set_surrounding) (GtkIMContext *context, + const gchar *text, + gint len, + gint cursor_index); + gboolean (*get_surrounding) (GtkIMContext *context, + gchar **text, + gint *cursor_index); + /*< private >*/ + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); +}; + +GType gtk_im_context_get_type (void) G_GNUC_CONST; + +void gtk_im_context_set_client_window (GtkIMContext *context, + GdkWindow *window); +void gtk_im_context_get_preedit_string (GtkIMContext *context, + gchar **str, + PangoAttrList **attrs, + gint *cursor_pos); +gboolean gtk_im_context_filter_keypress (GtkIMContext *context, + GdkEventKey *event); +void gtk_im_context_focus_in (GtkIMContext *context); +void gtk_im_context_focus_out (GtkIMContext *context); +void gtk_im_context_reset (GtkIMContext *context); +void gtk_im_context_set_cursor_location (GtkIMContext *context, + const GdkRectangle *area); +void gtk_im_context_set_use_preedit (GtkIMContext *context, + gboolean use_preedit); +void gtk_im_context_set_surrounding (GtkIMContext *context, + const gchar *text, + gint len, + gint cursor_index); +gboolean gtk_im_context_get_surrounding (GtkIMContext *context, + gchar **text, + gint *cursor_index); +gboolean gtk_im_context_delete_surrounding (GtkIMContext *context, + gint offset, + gint n_chars); + +G_END_DECLS + +#endif /* __GTK_IM_CONTEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextinfo.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextinfo.h new file mode 100644 index 0000000..1c3fdae --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextinfo.h @@ -0,0 +1,44 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IM_CONTEXT_INFO_H__ +#define __GTK_IM_CONTEXT_INFO_H__ + + +#include + +G_BEGIN_DECLS + +typedef struct _GtkIMContextInfo GtkIMContextInfo; + +struct _GtkIMContextInfo +{ + const gchar *context_id; + const gchar *context_name; + const gchar *domain; + const gchar *domain_dirname; + const gchar *default_locales; +}; + + +G_END_DECLS + +#endif /* __GTK_IM_CONTEXT_INFO_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextsimple.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextsimple.h new file mode 100644 index 0000000..03479c8 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimcontextsimple.h @@ -0,0 +1,74 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IM_CONTEXT_SIMPLE_H__ +#define __GTK_IM_CONTEXT_SIMPLE_H__ + +#include + + +G_BEGIN_DECLS + +/** + * GTK_MAX_COMPOSE_LEN: + * + * The maximum length of sequences in compose tables. + */ +#define GTK_MAX_COMPOSE_LEN 7 + +#define GTK_TYPE_IM_CONTEXT_SIMPLE (gtk_im_context_simple_get_type ()) +#define GTK_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimple)) +#define GTK_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) +#define GTK_IS_IM_CONTEXT_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE)) +#define GTK_IS_IM_CONTEXT_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_SIMPLE)) +#define GTK_IM_CONTEXT_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_SIMPLE, GtkIMContextSimpleClass)) + + +typedef struct _GtkIMContextSimple GtkIMContextSimple; +typedef struct _GtkIMContextSimplePrivate GtkIMContextSimplePrivate; +typedef struct _GtkIMContextSimpleClass GtkIMContextSimpleClass; + +struct _GtkIMContextSimple +{ + GtkIMContext object; + + /*< private >*/ + GtkIMContextSimplePrivate *priv; +}; + +struct _GtkIMContextSimpleClass +{ + GtkIMContextClass parent_class; +}; + +GType gtk_im_context_simple_get_type (void) G_GNUC_CONST; +GtkIMContext *gtk_im_context_simple_new (void); + +void gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple, + guint16 *data, + gint max_seq_len, + gint n_seqs); + + +G_END_DECLS + + +#endif /* __GTK_IM_CONTEXT_SIMPLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimmodule.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimmodule.h new file mode 100644 index 0000000..db5d70f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimmodule.h @@ -0,0 +1,34 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_IM_MODULE_H__ +#define __GTK_IM_MODULE_H__ + +#include + +/* The following entry points are exported by each input method module + */ + +/* +void im_module_list (const GtkIMContextInfo ***contexts, + guint *n_contexts); +void im_module_init (GtkModule *module); +void im_module_exit (void); +GtkIMContext *im_module_create (const gchar *context_id); +*/ + +#endif /* __GTK_IM_MODULE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkimmulticontext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkimmulticontext.h new file mode 100644 index 0000000..08779a7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkimmulticontext.h @@ -0,0 +1,73 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_IM_MULTICONTEXT_H__ +#define __GTK_IM_MULTICONTEXT_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_IM_MULTICONTEXT (gtk_im_multicontext_get_type ()) +#define GTK_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontext)) +#define GTK_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) +#define GTK_IS_IM_MULTICONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_MULTICONTEXT)) +#define GTK_IS_IM_MULTICONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_MULTICONTEXT)) +#define GTK_IM_MULTICONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_MULTICONTEXT, GtkIMMulticontextClass)) + + +typedef struct _GtkIMMulticontext GtkIMMulticontext; +typedef struct _GtkIMMulticontextClass GtkIMMulticontextClass; +typedef struct _GtkIMMulticontextPrivate GtkIMMulticontextPrivate; + +struct _GtkIMMulticontext +{ + GtkIMContext object; + + /*< private >*/ + GtkIMMulticontextPrivate *priv; +}; + +struct _GtkIMMulticontextClass +{ + GtkIMContextClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_im_multicontext_get_type (void) G_GNUC_CONST; +GtkIMContext *gtk_im_multicontext_new (void); + +void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, + GtkMenuShell *menushell); +const char * gtk_im_multicontext_get_context_id (GtkIMMulticontext *context); + +void gtk_im_multicontext_set_context_id (GtkIMMulticontext *context, + const char *context_id); + +G_END_DECLS + +#endif /* __GTK_IM_MULTICONTEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkinfobar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkinfobar.h new file mode 100644 index 0000000..9a3ca0e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkinfobar.h @@ -0,0 +1,116 @@ +/* + * gtkinfobar.h + * This file is part of GTK+ + * + * Copyright (C) 2005 - Paolo Maggi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the gedit Team, 2005. See the gedit AUTHORS file for a + * list of people on the gedit Team. + * See the gedit ChangeLog files for a list of changes. + * + * Modified by the GTK+ Team, 2008-2009. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_INFO_BAR_H__ +#define __GTK_INFO_BAR_H__ + +#include +#include + +G_BEGIN_DECLS + +/* + * Type checking and casting macros + */ +#define GTK_TYPE_INFO_BAR (gtk_info_bar_get_type()) +#define GTK_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INFO_BAR, GtkInfoBar)) +#define GTK_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INFO_BAR, GtkInfoBarClass)) +#define GTK_IS_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INFO_BAR)) +#define GTK_IS_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INFO_BAR)) +#define GTK_INFO_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INFO_BAR, GtkInfoBarClass)) + + +typedef struct _GtkInfoBarPrivate GtkInfoBarPrivate; +typedef struct _GtkInfoBarClass GtkInfoBarClass; +typedef struct _GtkInfoBar GtkInfoBar; + + +struct _GtkInfoBar +{ + GtkBox parent; + + /*< private > */ + GtkInfoBarPrivate *priv; +}; + + +struct _GtkInfoBarClass +{ + GtkBoxClass parent_class; + + /* Signals */ + void (* response) (GtkInfoBar *info_bar, gint response_id); + + /* Keybinding signals */ + void (* close) (GtkInfoBar *info_bar); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_info_bar_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_info_bar_new (void); + +GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button_text, + ...); + +GtkWidget *gtk_info_bar_get_action_area (GtkInfoBar *info_bar); +GtkWidget *gtk_info_bar_get_content_area (GtkInfoBar *info_bar); +void gtk_info_bar_add_action_widget (GtkInfoBar *info_bar, + GtkWidget *child, + gint response_id); +GtkWidget *gtk_info_bar_add_button (GtkInfoBar *info_bar, + const gchar *button_text, + gint response_id); +void gtk_info_bar_add_buttons (GtkInfoBar *info_bar, + const gchar *first_button_text, + ...); +void gtk_info_bar_set_response_sensitive (GtkInfoBar *info_bar, + gint response_id, + gboolean setting); +void gtk_info_bar_set_default_response (GtkInfoBar *info_bar, + gint response_id); + +/* Emit response signal */ +void gtk_info_bar_response (GtkInfoBar *info_bar, + gint response_id); + +void gtk_info_bar_set_message_type (GtkInfoBar *info_bar, + GtkMessageType message_type); +GtkMessageType gtk_info_bar_get_message_type (GtkInfoBar *info_bar); + +G_END_DECLS + +#endif /* __GTK_INFO_BAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkinvisible.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkinvisible.h new file mode 100644 index 0000000..c574568 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkinvisible.h @@ -0,0 +1,77 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_INVISIBLE_H__ +#define __GTK_INVISIBLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_INVISIBLE (gtk_invisible_get_type ()) +#define GTK_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_INVISIBLE, GtkInvisible)) +#define GTK_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) +#define GTK_IS_INVISIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_INVISIBLE)) +#define GTK_IS_INVISIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INVISIBLE)) +#define GTK_INVISIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_INVISIBLE, GtkInvisibleClass)) + + +typedef struct _GtkInvisible GtkInvisible; +typedef struct _GtkInvisiblePrivate GtkInvisiblePrivate; +typedef struct _GtkInvisibleClass GtkInvisibleClass; + +struct _GtkInvisible +{ + GtkWidget widget; + + /*< private >*/ + GtkInvisiblePrivate *priv; +}; + +struct _GtkInvisibleClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_invisible_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_invisible_new (void); +GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen); +void gtk_invisible_set_screen (GtkInvisible *invisible, + GdkScreen *screen); +GdkScreen* gtk_invisible_get_screen (GtkInvisible *invisible); + +G_END_DECLS + +#endif /* __GTK_INVISIBLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtklabel.h b/gtk+-mingw/include/gtk-3.0/gtk/gtklabel.h new file mode 100644 index 0000000..81c9ac8 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtklabel.h @@ -0,0 +1,176 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_LABEL_H__ +#define __GTK_LABEL_H__ + + +#include +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_LABEL (gtk_label_get_type ()) +#define GTK_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LABEL, GtkLabel)) +#define GTK_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LABEL, GtkLabelClass)) +#define GTK_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LABEL)) +#define GTK_IS_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LABEL)) +#define GTK_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LABEL, GtkLabelClass)) + + +typedef struct _GtkLabel GtkLabel; +typedef struct _GtkLabelPrivate GtkLabelPrivate; +typedef struct _GtkLabelClass GtkLabelClass; + +typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo; + +struct _GtkLabel +{ + GtkMisc misc; + + /*< private >*/ + GtkLabelPrivate *priv; +}; + +struct _GtkLabelClass +{ + GtkMiscClass parent_class; + + void (* move_cursor) (GtkLabel *label, + GtkMovementStep step, + gint count, + gboolean extend_selection); + void (* copy_clipboard) (GtkLabel *label); + + /* Hook to customize right-click popup for selectable labels */ + void (* populate_popup) (GtkLabel *label, + GtkMenu *menu); + + gboolean (*activate_link) (GtkLabel *label, + const gchar *uri); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_label_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_label_new (const gchar *str); +GtkWidget* gtk_label_new_with_mnemonic (const gchar *str); +void gtk_label_set_text (GtkLabel *label, + const gchar *str); +const gchar* gtk_label_get_text (GtkLabel *label); +void gtk_label_set_attributes (GtkLabel *label, + PangoAttrList *attrs); +PangoAttrList *gtk_label_get_attributes (GtkLabel *label); +void gtk_label_set_label (GtkLabel *label, + const gchar *str); +const gchar * gtk_label_get_label (GtkLabel *label); +void gtk_label_set_markup (GtkLabel *label, + const gchar *str); +void gtk_label_set_use_markup (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_use_markup (GtkLabel *label); +void gtk_label_set_use_underline (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_use_underline (GtkLabel *label); + +void gtk_label_set_markup_with_mnemonic (GtkLabel *label, + const gchar *str); +guint gtk_label_get_mnemonic_keyval (GtkLabel *label); +void gtk_label_set_mnemonic_widget (GtkLabel *label, + GtkWidget *widget); +GtkWidget *gtk_label_get_mnemonic_widget (GtkLabel *label); +void gtk_label_set_text_with_mnemonic (GtkLabel *label, + const gchar *str); +void gtk_label_set_justify (GtkLabel *label, + GtkJustification jtype); +GtkJustification gtk_label_get_justify (GtkLabel *label); +void gtk_label_set_ellipsize (GtkLabel *label, + PangoEllipsizeMode mode); +PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); +void gtk_label_set_width_chars (GtkLabel *label, + gint n_chars); +gint gtk_label_get_width_chars (GtkLabel *label); +void gtk_label_set_max_width_chars (GtkLabel *label, + gint n_chars); +gint gtk_label_get_max_width_chars (GtkLabel *label); +void gtk_label_set_pattern (GtkLabel *label, + const gchar *pattern); +void gtk_label_set_line_wrap (GtkLabel *label, + gboolean wrap); +gboolean gtk_label_get_line_wrap (GtkLabel *label); +void gtk_label_set_line_wrap_mode (GtkLabel *label, + PangoWrapMode wrap_mode); +PangoWrapMode gtk_label_get_line_wrap_mode (GtkLabel *label); +void gtk_label_set_selectable (GtkLabel *label, + gboolean setting); +gboolean gtk_label_get_selectable (GtkLabel *label); +void gtk_label_set_angle (GtkLabel *label, + gdouble angle); +gdouble gtk_label_get_angle (GtkLabel *label); +void gtk_label_select_region (GtkLabel *label, + gint start_offset, + gint end_offset); +gboolean gtk_label_get_selection_bounds (GtkLabel *label, + gint *start, + gint *end); + +PangoLayout *gtk_label_get_layout (GtkLabel *label); +void gtk_label_get_layout_offsets (GtkLabel *label, + gint *x, + gint *y); + +void gtk_label_set_single_line_mode (GtkLabel *label, + gboolean single_line_mode); +gboolean gtk_label_get_single_line_mode (GtkLabel *label); + +const gchar *gtk_label_get_current_uri (GtkLabel *label); +void gtk_label_set_track_visited_links (GtkLabel *label, + gboolean track_links); +gboolean gtk_label_get_track_visited_links (GtkLabel *label); + + +/* private */ + +void _gtk_label_mnemonics_visible_apply_recursively (GtkWidget *widget, + gboolean mnemonics_visible); +gint _gtk_label_get_cursor_position (GtkLabel *label); +gint _gtk_label_get_selection_bound (GtkLabel *label); + +G_END_DECLS + +#endif /* __GTK_LABEL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtklayout.h b/gtk+-mingw/include/gtk-3.0/gtk/gtklayout.h new file mode 100644 index 0000000..f5b710e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtklayout.h @@ -0,0 +1,108 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * GtkLayout: Widget for scrolling of arbitrary-sized areas. + * + * Copyright Owen Taylor, 1998 + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_LAYOUT_H__ +#define __GTK_LAYOUT_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_LAYOUT (gtk_layout_get_type ()) +#define GTK_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout)) +#define GTK_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass)) +#define GTK_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LAYOUT)) +#define GTK_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT)) +#define GTK_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LAYOUT, GtkLayoutClass)) + + +typedef struct _GtkLayout GtkLayout; +typedef struct _GtkLayoutPrivate GtkLayoutPrivate; +typedef struct _GtkLayoutClass GtkLayoutClass; + +struct _GtkLayout +{ + GtkContainer container; + + /*< private >*/ + GtkLayoutPrivate *priv; +}; + +struct _GtkLayoutClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_layout_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +GdkWindow* gtk_layout_get_bin_window (GtkLayout *layout); +void gtk_layout_put (GtkLayout *layout, + GtkWidget *child_widget, + gint x, + gint y); + +void gtk_layout_move (GtkLayout *layout, + GtkWidget *child_widget, + gint x, + gint y); + +void gtk_layout_set_size (GtkLayout *layout, + guint width, + guint height); +void gtk_layout_get_size (GtkLayout *layout, + guint *width, + guint *height); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) +GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) +GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment) +void gtk_layout_set_hadjustment (GtkLayout *layout, + GtkAdjustment *adjustment); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment) +void gtk_layout_set_vadjustment (GtkLayout *layout, + GtkAdjustment *adjustment); + + +G_END_DECLS + +#endif /* __GTK_LAYOUT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtklinkbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtklinkbutton.h new file mode 100644 index 0000000..0de6685 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtklinkbutton.h @@ -0,0 +1,100 @@ +/* GTK - The GIMP Toolkit + * gtklinkbutton.h - an hyperlink-enabled button + * + * Copyright (C) 2005 Emmanuele Bassi + * All rights reserved. + * + * Based on gnome-href code by: + * James Henstridge + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_LINK_BUTTON_H__ +#define __GTK_LINK_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_LINK_BUTTON (gtk_link_button_get_type ()) +#define GTK_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButton)) +#define GTK_IS_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LINK_BUTTON)) +#define GTK_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass)) +#define GTK_IS_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LINK_BUTTON)) +#define GTK_LINK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass)) + +typedef struct _GtkLinkButton GtkLinkButton; +typedef struct _GtkLinkButtonClass GtkLinkButtonClass; +typedef struct _GtkLinkButtonPrivate GtkLinkButtonPrivate; + +/** + * GtkLinkButton: + * + * The GtkLinkButton structure contains only + * private data and should be accessed using the provided API. + */ +struct _GtkLinkButton +{ + /*< private >*/ + GtkButton parent_instance; + + GtkLinkButtonPrivate *priv; +}; + +/** + * GtkLinkButtonClass: + * @activate_link: class handler for the #GtkLinkButton::activate-link signal + * + * The GtkLinkButtonClass structure contains only + * private data. + */ +struct _GtkLinkButtonClass +{ + /*< private >*/ + GtkButtonClass parent_class; + + /*< public >*/ + gboolean (* activate_link) (GtkLinkButton *button); + + /*< private >*/ + /* Padding for future expansion */ + void (*_gtk_padding1) (void); + void (*_gtk_padding2) (void); + void (*_gtk_padding3) (void); + void (*_gtk_padding4) (void); +}; + +GType gtk_link_button_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_link_button_new (const gchar *uri); +GtkWidget * gtk_link_button_new_with_label (const gchar *uri, + const gchar *label); + +const gchar * gtk_link_button_get_uri (GtkLinkButton *link_button); +void gtk_link_button_set_uri (GtkLinkButton *link_button, + const gchar *uri); + +gboolean gtk_link_button_get_visited (GtkLinkButton *link_button); +void gtk_link_button_set_visited (GtkLinkButton *link_button, + gboolean visited); + + +G_END_DECLS + +#endif /* __GTK_LINK_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkliststore.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkliststore.h new file mode 100644 index 0000000..568e10c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkliststore.h @@ -0,0 +1,133 @@ +/* gtkliststore.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_LIST_STORE_H__ +#define __GTK_LIST_STORE_H__ + +#include +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_LIST_STORE (gtk_list_store_get_type ()) +#define GTK_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LIST_STORE, GtkListStore)) +#define GTK_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LIST_STORE, GtkListStoreClass)) +#define GTK_IS_LIST_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LIST_STORE)) +#define GTK_IS_LIST_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LIST_STORE)) +#define GTK_LIST_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LIST_STORE, GtkListStoreClass)) + +typedef struct _GtkListStore GtkListStore; +typedef struct _GtkListStorePrivate GtkListStorePrivate; +typedef struct _GtkListStoreClass GtkListStoreClass; + +struct _GtkListStore +{ + GObject parent; + + /*< private >*/ + GtkListStorePrivate *priv; +}; + +struct _GtkListStoreClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_list_store_get_type (void) G_GNUC_CONST; +GtkListStore *gtk_list_store_new (gint n_columns, + ...); +GtkListStore *gtk_list_store_newv (gint n_columns, + GType *types); +void gtk_list_store_set_column_types (GtkListStore *list_store, + gint n_columns, + GType *types); + +/* NOTE: use gtk_tree_model_get to get values from a GtkListStore */ + +void gtk_list_store_set_value (GtkListStore *list_store, + GtkTreeIter *iter, + gint column, + GValue *value); +void gtk_list_store_set (GtkListStore *list_store, + GtkTreeIter *iter, + ...); +void gtk_list_store_set_valuesv (GtkListStore *list_store, + GtkTreeIter *iter, + gint *columns, + GValue *values, + gint n_values); +void gtk_list_store_set_valist (GtkListStore *list_store, + GtkTreeIter *iter, + va_list var_args); +gboolean gtk_list_store_remove (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_insert (GtkListStore *list_store, + GtkTreeIter *iter, + gint position); +void gtk_list_store_insert_before (GtkListStore *list_store, + GtkTreeIter *iter, + GtkTreeIter *sibling); +void gtk_list_store_insert_after (GtkListStore *list_store, + GtkTreeIter *iter, + GtkTreeIter *sibling); +void gtk_list_store_insert_with_values (GtkListStore *list_store, + GtkTreeIter *iter, + gint position, + ...); +void gtk_list_store_insert_with_valuesv (GtkListStore *list_store, + GtkTreeIter *iter, + gint position, + gint *columns, + GValue *values, + gint n_values); +void gtk_list_store_prepend (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_append (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_clear (GtkListStore *list_store); +gboolean gtk_list_store_iter_is_valid (GtkListStore *list_store, + GtkTreeIter *iter); +void gtk_list_store_reorder (GtkListStore *store, + gint *new_order); +void gtk_list_store_swap (GtkListStore *store, + GtkTreeIter *a, + GtkTreeIter *b); +void gtk_list_store_move_after (GtkListStore *store, + GtkTreeIter *iter, + GtkTreeIter *position); +void gtk_list_store_move_before (GtkListStore *store, + GtkTreeIter *iter, + GtkTreeIter *position); + + +G_END_DECLS + + +#endif /* __GTK_LIST_STORE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtklockbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtklockbutton.h new file mode 100644 index 0000000..1d08973 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtklockbutton.h @@ -0,0 +1,72 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Red Hat, Inc. + * Author: Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_LOCK_BUTTON_H__ +#define __GTK_LOCK_BUTTON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_LOCK_BUTTON (gtk_lock_button_get_type ()) +#define GTK_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButton)) +#define GTK_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_LOCK_BUTTON, GtkLockButtonClass)) +#define GTK_IS_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_LOCK_BUTTON)) +#define GTK_IS_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_LOCK_BUTTON)) +#define GTK_LOCK_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButtonClass)) + +typedef struct _GtkLockButton GtkLockButton; +typedef struct _GtkLockButtonClass GtkLockButtonClass; +typedef struct _GtkLockButtonPrivate GtkLockButtonPrivate; + +struct _GtkLockButton +{ + GtkButton parent; + + GtkLockButtonPrivate *priv; +}; + +struct _GtkLockButtonClass +{ + GtkButtonClass parent_class; + + void (*reserved0) (void); + void (*reserved1) (void); + void (*reserved2) (void); + void (*reserved3) (void); + void (*reserved4) (void); + void (*reserved5) (void); + void (*reserved6) (void); + void (*reserved7) (void); +}; + +GDK_AVAILABLE_IN_3_2 +GType gtk_lock_button_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_2 +GtkWidget *gtk_lock_button_new (GPermission *permission); +GDK_AVAILABLE_IN_3_2 +GPermission *gtk_lock_button_get_permission (GtkLockButton *button); +GDK_AVAILABLE_IN_3_2 +void gtk_lock_button_set_permission (GtkLockButton *button, + GPermission *permission); + + +G_END_DECLS + +#endif /* __GTK_LOCK_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmain.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmain.h new file mode 100644 index 0000000..b2ae0a3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmain.h @@ -0,0 +1,172 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MAIN_H__ +#define __GTK_MAIN_H__ + + +#include +#include +#ifdef G_PLATFORM_WIN32 +#include +#include +#endif + +G_BEGIN_DECLS + +/** + * GTK_PRIORITY_RESIZE: + * + * Use this priority for functionality related to size allocation. + * + * It is used internally by GTK+ to compute the sizes of widgets. + * This priority is higher than %GDK_PRIORITY_REDRAW to avoid + * resizing a widget which was just redrawn. + */ +#define GTK_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 10) + +/** + * GtkKeySnoopFunc: + * @grab_widget: the widget to which the event will be delivered + * @event: the key event + * @func_data: data supplied to gtk_key_snooper_install() + * + * Key snooper functions are called before normal event delivery. + * They can be used to implement custom key event handling. + * + * Returns: %TRUE to stop further processing of @event, %FALSE to continue. + */ +typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, + GdkEventKey *event, + gpointer func_data); + +/* GTK+ version + */ +guint gtk_get_major_version (void) G_GNUC_CONST; +guint gtk_get_minor_version (void) G_GNUC_CONST; +guint gtk_get_micro_version (void) G_GNUC_CONST; +guint gtk_get_binary_age (void) G_GNUC_CONST; +guint gtk_get_interface_age (void) G_GNUC_CONST; + +#define gtk_major_version gtk_get_major_version () +#define gtk_minor_version gtk_get_minor_version () +#define gtk_micro_version gtk_get_micro_version () +#define gtk_binary_age gtk_get_binary_age () +#define gtk_interface_age gtk_get_interface_age () + +const gchar* gtk_check_version (guint required_major, + guint required_minor, + guint required_micro); + + +/* Initialization, exit, mainloop and miscellaneous routines + */ + +gboolean gtk_parse_args (int *argc, + char ***argv); + +void gtk_init (int *argc, + char ***argv); + +gboolean gtk_init_check (int *argc, + char ***argv); + +gboolean gtk_init_with_args (gint *argc, + gchar ***argv, + const gchar *parameter_string, + const GOptionEntry *entries, + const gchar *translation_domain, + GError **error); + +GOptionGroup *gtk_get_option_group (gboolean open_default_display); + +#ifdef G_OS_WIN32 + +/* Variants that are used to check for correct struct packing + * when building GTK+-using code. + */ +void gtk_init_abi_check (int *argc, + char ***argv, + int num_checks, + size_t sizeof_GtkWindow, + size_t sizeof_GtkBox); +gboolean gtk_init_check_abi_check (int *argc, + char ***argv, + int num_checks, + size_t sizeof_GtkWindow, + size_t sizeof_GtkBox); + +#define gtk_init(argc, argv) gtk_init_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox)) +#define gtk_init_check(argc, argv) gtk_init_check_abi_check (argc, argv, 2, sizeof (GtkWindow), sizeof (GtkBox)) + +#endif + +void gtk_disable_setlocale (void); +PangoLanguage *gtk_get_default_language (void); +gboolean gtk_events_pending (void); + +void gtk_main_do_event (GdkEvent *event); +void gtk_main (void); +guint gtk_main_level (void); +void gtk_main_quit (void); +gboolean gtk_main_iteration (void); +gboolean gtk_main_iteration_do (gboolean blocking); + +gboolean gtk_true (void) G_GNUC_CONST; +gboolean gtk_false (void) G_GNUC_CONST; + +void gtk_grab_add (GtkWidget *widget); +GtkWidget* gtk_grab_get_current (void); +void gtk_grab_remove (GtkWidget *widget); + +void gtk_device_grab_add (GtkWidget *widget, + GdkDevice *device, + gboolean block_others); +void gtk_device_grab_remove (GtkWidget *widget, + GdkDevice *device); + +GDK_DEPRECATED_IN_3_4 +guint gtk_key_snooper_install (GtkKeySnoopFunc snooper, + gpointer func_data); +GDK_DEPRECATED_IN_3_4 +void gtk_key_snooper_remove (guint snooper_handler_id); + +GdkEvent * gtk_get_current_event (void); +guint32 gtk_get_current_event_time (void); +gboolean gtk_get_current_event_state (GdkModifierType *state); +GdkDevice *gtk_get_current_event_device (void); + +GtkWidget *gtk_get_event_widget (GdkEvent *event); + +void gtk_propagate_event (GtkWidget *widget, + GdkEvent *event); + + +G_END_DECLS + +#endif /* __GTK_MAIN_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmenu.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenu.h new file mode 100644 index 0000000..1c50ca1 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenu.h @@ -0,0 +1,215 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MENU_H__ +#define __GTK_MENU_H__ + + +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU (gtk_menu_get_type ()) +#define GTK_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU, GtkMenu)) +#define GTK_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU, GtkMenuClass)) +#define GTK_IS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU)) +#define GTK_IS_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU)) +#define GTK_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU, GtkMenuClass)) + + +typedef struct _GtkMenu GtkMenu; +typedef struct _GtkMenuClass GtkMenuClass; +typedef struct _GtkMenuPrivate GtkMenuPrivate; + +/** + * GtkMenuPositionFunc: + * @menu: a #GtkMenu. + * @x: (out): address of the #gint representing the horizontal + * position where the menu shall be drawn. + * @y: (out): address of the #gint representing the vertical position + * where the menu shall be drawn. This is an output parameter. + * @push_in: (out): This parameter controls how menus placed outside + * the monitor are handled. If this is set to %TRUE and part of + * the menu is outside the monitor then GTK+ pushes the window + * into the visible area, effectively modifying the popup + * position. Note that moving and possibly resizing the menu + * around will alter the scroll position to keep the menu items + * "in place", i.e. at the same monitor position they would have + * been without resizing. In practice, this behavior is only + * useful for combobox popups or option menus and cannot be used + * to simply confine a menu to monitor boundaries. In that case, + * changing the scroll offset is not desirable. + * @user_data: the data supplied by the user in the gtk_menu_popup() + * @data parameter. + * + * A user function supplied when calling gtk_menu_popup() which + * controls the positioning of the menu when it is displayed. The + * function sets the @x and @y parameters to the coordinates where the + * menu is to be drawn. To make the menu appear on a different + * monitor than the mouse pointer, gtk_menu_set_monitor() must be + * called. + */ +typedef void (*GtkMenuPositionFunc) (GtkMenu *menu, + gint *x, + gint *y, + gboolean *push_in, + gpointer user_data); + +/** + * GtkMenuDetachFunc: + * @attach_widget: the #GtkWidget that the menu is being detached from. + * @menu: the #GtkMenu being detached. + * + * A user function supplied when calling gtk_menu_attach_to_widget() which + * will be called when the menu is later detached from the widget. + */ +typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget, + GtkMenu *menu); + +struct _GtkMenu +{ + GtkMenuShell menu_shell; + + /*< private >*/ + GtkMenuPrivate *priv; +}; + +struct _GtkMenuClass +{ + GtkMenuShellClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_menu_new (void); +GDK_AVAILABLE_IN_3_4 +GtkWidget* gtk_menu_new_from_model (GMenuModel *model); + +/* Display the menu onscreen */ +void gtk_menu_popup (GtkMenu *menu, + GtkWidget *parent_menu_shell, + GtkWidget *parent_menu_item, + GtkMenuPositionFunc func, + gpointer data, + guint button, + guint32 activate_time); +void gtk_menu_popup_for_device (GtkMenu *menu, + GdkDevice *device, + GtkWidget *parent_menu_shell, + GtkWidget *parent_menu_item, + GtkMenuPositionFunc func, + gpointer data, + GDestroyNotify destroy, + guint button, + guint32 activate_time); + +/* Position the menu according to its position function. Called + * from gtkmenuitem.c when a menu-item changes its allocation + */ +void gtk_menu_reposition (GtkMenu *menu); + +void gtk_menu_popdown (GtkMenu *menu); + +/* Keep track of the last menu item selected. (For the purposes + * of the option menu + */ +GtkWidget* gtk_menu_get_active (GtkMenu *menu); +void gtk_menu_set_active (GtkMenu *menu, + guint index); + +/* set/get the accelerator group that holds global accelerators (should + * be added to the corresponding toplevel with gtk_window_add_accel_group(). + */ +void gtk_menu_set_accel_group (GtkMenu *menu, + GtkAccelGroup *accel_group); +GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu); +void gtk_menu_set_accel_path (GtkMenu *menu, + const gchar *accel_path); +const gchar* gtk_menu_get_accel_path (GtkMenu *menu); + +/* A reference count is kept for a widget when it is attached to + * a particular widget. This is typically a menu item; it may also + * be a widget with a popup menu - for instance, the Notebook widget. + */ +void gtk_menu_attach_to_widget (GtkMenu *menu, + GtkWidget *attach_widget, + GtkMenuDetachFunc detacher); +void gtk_menu_detach (GtkMenu *menu); + +/* This should be dumped in favor of data set when the menu is popped + * up - that is currently in the ItemFactory code, but should be + * in the Menu code. + */ +GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu); + +void gtk_menu_set_tearoff_state (GtkMenu *menu, + gboolean torn_off); +gboolean gtk_menu_get_tearoff_state (GtkMenu *menu); + +/* This sets the window manager title for the window that + * appears when a menu is torn off + */ +void gtk_menu_set_title (GtkMenu *menu, + const gchar *title); +const gchar * gtk_menu_get_title (GtkMenu *menu); + +void gtk_menu_reorder_child (GtkMenu *menu, + GtkWidget *child, + gint position); + +void gtk_menu_set_screen (GtkMenu *menu, + GdkScreen *screen); + +void gtk_menu_attach (GtkMenu *menu, + GtkWidget *child, + guint left_attach, + guint right_attach, + guint top_attach, + guint bottom_attach); + +void gtk_menu_set_monitor (GtkMenu *menu, + gint monitor_num); +gint gtk_menu_get_monitor (GtkMenu *menu); +GList* gtk_menu_get_for_attach_widget (GtkWidget *widget); + +void gtk_menu_set_reserve_toggle_size (GtkMenu *menu, + gboolean reserve_toggle_size); +gboolean gtk_menu_get_reserve_toggle_size (GtkMenu *menu); + + +G_END_DECLS + +#endif /* __GTK_MENU_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmenubar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenubar.h new file mode 100644 index 0000000..5529ecf --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenubar.h @@ -0,0 +1,90 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MENU_BAR_H__ +#define __GTK_MENU_BAR_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_MENU_BAR (gtk_menu_bar_get_type ()) +#define GTK_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_BAR, GtkMenuBar)) +#define GTK_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) +#define GTK_IS_MENU_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_BAR)) +#define GTK_IS_MENU_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_BAR)) +#define GTK_MENU_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_BAR, GtkMenuBarClass)) + +typedef struct _GtkMenuBar GtkMenuBar; +typedef struct _GtkMenuBarPrivate GtkMenuBarPrivate; +typedef struct _GtkMenuBarClass GtkMenuBarClass; + +struct _GtkMenuBar +{ + GtkMenuShell menu_shell; + + /*< private >*/ + GtkMenuBarPrivate *priv; +}; + +struct _GtkMenuBarClass +{ + GtkMenuShellClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_bar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_menu_bar_new (void); +GDK_AVAILABLE_IN_3_4 +GtkWidget* gtk_menu_bar_new_from_model (GMenuModel *model); + +GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar); +void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar, + GtkPackDirection pack_dir); +GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar); +void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar, + GtkPackDirection child_pack_dir); + +/* Private functions */ +void _gtk_menu_bar_cycle_focus (GtkMenuBar *menubar, + GtkDirectionType dir); + + +G_END_DECLS + + +#endif /* __GTK_MENU_BAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenuitem.h new file mode 100644 index 0000000..e9e6ef2 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenuitem.h @@ -0,0 +1,128 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MENU_ITEM_H__ +#define __GTK_MENU_ITEM_H__ + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_ITEM (gtk_menu_item_get_type ()) +#define GTK_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItem)) +#define GTK_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) +#define GTK_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_ITEM)) +#define GTK_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_ITEM)) +#define GTK_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_ITEM, GtkMenuItemClass)) + + +typedef struct _GtkMenuItem GtkMenuItem; +typedef struct _GtkMenuItemClass GtkMenuItemClass; +typedef struct _GtkMenuItemPrivate GtkMenuItemPrivate; + +struct _GtkMenuItem +{ + GtkBin bin; + + /*< private >*/ + GtkMenuItemPrivate *priv; +}; + +struct _GtkMenuItemClass +{ + GtkBinClass parent_class; + + /* If the following flag is true, then we should always + * hide the menu when the MenuItem is activated. Otherwise, + * it is up to the caller. For instance, when navigating + * a menu with the keyboard, doesn't hide, but + * does. + */ + guint hide_on_activate : 1; + + void (* activate) (GtkMenuItem *menu_item); + void (* activate_item) (GtkMenuItem *menu_item); + void (* toggle_size_request) (GtkMenuItem *menu_item, + gint *requisition); + void (* toggle_size_allocate) (GtkMenuItem *menu_item, + gint allocation); + void (* set_label) (GtkMenuItem *menu_item, + const gchar *label); + const gchar * (* get_label) (GtkMenuItem *menu_item); + + void (* select) (GtkMenuItem *menu_item); + void (* deselect) (GtkMenuItem *menu_item); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_item_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_menu_item_new (void); +GtkWidget* gtk_menu_item_new_with_label (const gchar *label); +GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label); +void gtk_menu_item_set_submenu (GtkMenuItem *menu_item, + GtkWidget *submenu); +GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item); +void gtk_menu_item_select (GtkMenuItem *menu_item); +void gtk_menu_item_deselect (GtkMenuItem *menu_item); +void gtk_menu_item_activate (GtkMenuItem *menu_item); +void gtk_menu_item_toggle_size_request (GtkMenuItem *menu_item, + gint *requisition); +void gtk_menu_item_toggle_size_allocate (GtkMenuItem *menu_item, + gint allocation); +GDK_DEPRECATED_IN_3_2 +void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item, + gboolean right_justified); +GDK_DEPRECATED_IN_3_2 +gboolean gtk_menu_item_get_right_justified (GtkMenuItem *menu_item); +void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, + const gchar *accel_path); +const gchar * gtk_menu_item_get_accel_path (GtkMenuItem *menu_item); + +void gtk_menu_item_set_label (GtkMenuItem *menu_item, + const gchar *label); +const gchar * gtk_menu_item_get_label (GtkMenuItem *menu_item); + +void gtk_menu_item_set_use_underline (GtkMenuItem *menu_item, + gboolean setting); +gboolean gtk_menu_item_get_use_underline (GtkMenuItem *menu_item); + +void gtk_menu_item_set_reserve_indicator (GtkMenuItem *menu_item, + gboolean reserve); +gboolean gtk_menu_item_get_reserve_indicator (GtkMenuItem *menu_item); + +G_END_DECLS + +#endif /* __GTK_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmenushell.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenushell.h new file mode 100644 index 0000000..6e15ffc --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenushell.h @@ -0,0 +1,117 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MENU_SHELL_H__ +#define __GTK_MENU_SHELL_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_SHELL (gtk_menu_shell_get_type ()) +#define GTK_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShell)) +#define GTK_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) +#define GTK_IS_MENU_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MENU_SHELL)) +#define GTK_IS_MENU_SHELL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MENU_SHELL)) +#define GTK_MENU_SHELL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MENU_SHELL, GtkMenuShellClass)) + + +typedef struct _GtkMenuShell GtkMenuShell; +typedef struct _GtkMenuShellClass GtkMenuShellClass; +typedef struct _GtkMenuShellPrivate GtkMenuShellPrivate; + +struct _GtkMenuShell +{ + GtkContainer container; + + /*< private >*/ + GtkMenuShellPrivate *priv; +}; + +struct _GtkMenuShellClass +{ + GtkContainerClass parent_class; + + guint submenu_placement : 1; + + void (*deactivate) (GtkMenuShell *menu_shell); + void (*selection_done) (GtkMenuShell *menu_shell); + + void (*move_current) (GtkMenuShell *menu_shell, + GtkMenuDirectionType direction); + void (*activate_current) (GtkMenuShell *menu_shell, + gboolean force_hide); + void (*cancel) (GtkMenuShell *menu_shell); + void (*select_item) (GtkMenuShell *menu_shell, + GtkWidget *menu_item); + void (*insert) (GtkMenuShell *menu_shell, + GtkWidget *child, + gint position); + gint (*get_popup_delay) (GtkMenuShell *menu_shell); + gboolean (*move_selected) (GtkMenuShell *menu_shell, + gint distance); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_menu_shell_get_type (void) G_GNUC_CONST; + +void gtk_menu_shell_append (GtkMenuShell *menu_shell, + GtkWidget *child); +void gtk_menu_shell_prepend (GtkMenuShell *menu_shell, + GtkWidget *child); +void gtk_menu_shell_insert (GtkMenuShell *menu_shell, + GtkWidget *child, + gint position); +void gtk_menu_shell_deactivate (GtkMenuShell *menu_shell); +void gtk_menu_shell_select_item (GtkMenuShell *menu_shell, + GtkWidget *menu_item); +void gtk_menu_shell_deselect (GtkMenuShell *menu_shell); +void gtk_menu_shell_activate_item (GtkMenuShell *menu_shell, + GtkWidget *menu_item, + gboolean force_deactivate); +void gtk_menu_shell_select_first (GtkMenuShell *menu_shell, + gboolean search_sensitive); +void gtk_menu_shell_cancel (GtkMenuShell *menu_shell); +gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell); +void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell, + gboolean take_focus); + +GtkWidget *gtk_menu_shell_get_selected_item (GtkMenuShell *menu_shell); +GtkWidget *gtk_menu_shell_get_parent_shell (GtkMenuShell *menu_shell); + +G_END_DECLS + +#endif /* __GTK_MENU_SHELL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmenutoolbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenutoolbutton.h new file mode 100644 index 0000000..fb7977b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmenutoolbutton.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2003 Ricardo Fernandez Pascual + * Copyright (C) 2004 Paolo Borelli + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MENU_TOOL_BUTTON_H__ +#define __GTK_MENU_TOOL_BUTTON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_MENU_TOOL_BUTTON (gtk_menu_tool_button_get_type ()) +#define GTK_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButton)) +#define GTK_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) +#define GTK_IS_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MENU_TOOL_BUTTON)) +#define GTK_IS_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MENU_TOOL_BUTTON)) +#define GTK_MENU_TOOL_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass)) + +typedef struct _GtkMenuToolButtonClass GtkMenuToolButtonClass; +typedef struct _GtkMenuToolButton GtkMenuToolButton; +typedef struct _GtkMenuToolButtonPrivate GtkMenuToolButtonPrivate; + +struct _GtkMenuToolButton +{ + GtkToolButton parent; + + /*< private >*/ + GtkMenuToolButtonPrivate *priv; +}; + +struct _GtkMenuToolButtonClass +{ + GtkToolButtonClass parent_class; + + void (*show_menu) (GtkMenuToolButton *button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_menu_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget, + const gchar *label); +GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button, + GtkWidget *menu); +GtkWidget *gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); +void gtk_menu_tool_button_set_arrow_tooltip_text (GtkMenuToolButton *button, + const gchar *text); +void gtk_menu_tool_button_set_arrow_tooltip_markup (GtkMenuToolButton *button, + const gchar *markup); + +G_END_DECLS + +#endif /* __GTK_MENU_TOOL_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmessagedialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmessagedialog.h new file mode 100644 index 0000000..5f5d1a9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmessagedialog.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MESSAGE_DIALOG_H__ +#define __GTK_MESSAGE_DIALOG_H__ + +#include +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ()) +#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog)) +#define GTK_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) +#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG)) +#define GTK_IS_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MESSAGE_DIALOG)) +#define GTK_MESSAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) + +typedef struct _GtkMessageDialog GtkMessageDialog; +typedef struct _GtkMessageDialogPrivate GtkMessageDialogPrivate; +typedef struct _GtkMessageDialogClass GtkMessageDialogClass; + +struct _GtkMessageDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkMessageDialogPrivate *priv; +}; + +struct _GtkMessageDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkButtonsType: + * @GTK_BUTTONS_NONE: no buttons at all + * @GTK_BUTTONS_OK: an OK button + * @GTK_BUTTONS_CLOSE: a Close button + * @GTK_BUTTONS_CANCEL: a Cancel button + * @GTK_BUTTONS_YES_NO: Yes and No buttons + * @GTK_BUTTONS_OK_CANCEL: OK and Cancel buttons + * + * Prebuilt sets of buttons for the dialog. If + * none of these choices are appropriate, simply use %GTK_BUTTONS_NONE + * then call gtk_dialog_add_buttons(). + * + * Please note that %GTK_BUTTONS_OK, %GTK_BUTTONS_YES_NO + * and %GTK_BUTTONS_OK_CANCEL are discouraged by the + * GNOME HIG. + * + */ +typedef enum +{ + GTK_BUTTONS_NONE, + GTK_BUTTONS_OK, + GTK_BUTTONS_CLOSE, + GTK_BUTTONS_CANCEL, + GTK_BUTTONS_YES_NO, + GTK_BUTTONS_OK_CANCEL +} GtkButtonsType; + +GType gtk_message_dialog_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_message_dialog_new (GtkWindow *parent, + GtkDialogFlags flags, + GtkMessageType type, + GtkButtonsType buttons, + const gchar *message_format, + ...) G_GNUC_PRINTF (5, 6); + +GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent, + GtkDialogFlags flags, + GtkMessageType type, + GtkButtonsType buttons, + const gchar *message_format, + ...) G_GNUC_PRINTF (5, 6); + +void gtk_message_dialog_set_image (GtkMessageDialog *dialog, + GtkWidget *image); + +GtkWidget * gtk_message_dialog_get_image (GtkMessageDialog *dialog); + +void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog, + const gchar *str); + +void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); + +void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); + +GtkWidget *gtk_message_dialog_get_message_area (GtkMessageDialog *message_dialog); + +G_END_DECLS + +#endif /* __GTK_MESSAGE_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmisc.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmisc.h new file mode 100644 index 0000000..b767dd4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmisc.h @@ -0,0 +1,89 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MISC_H__ +#define __GTK_MISC_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_MISC (gtk_misc_get_type ()) +#define GTK_MISC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MISC, GtkMisc)) +#define GTK_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MISC, GtkMiscClass)) +#define GTK_IS_MISC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MISC)) +#define GTK_IS_MISC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MISC)) +#define GTK_MISC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MISC, GtkMiscClass)) + + +typedef struct _GtkMisc GtkMisc; +typedef struct _GtkMiscPrivate GtkMiscPrivate; +typedef struct _GtkMiscClass GtkMiscClass; + +struct _GtkMisc +{ + GtkWidget widget; + + /*< private >*/ + GtkMiscPrivate *priv; +}; + +struct _GtkMiscClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_misc_get_type (void) G_GNUC_CONST; +void gtk_misc_set_alignment (GtkMisc *misc, + gfloat xalign, + gfloat yalign); +void gtk_misc_get_alignment (GtkMisc *misc, + gfloat *xalign, + gfloat *yalign); +void gtk_misc_set_padding (GtkMisc *misc, + gint xpad, + gint ypad); +void gtk_misc_get_padding (GtkMisc *misc, + gint *xpad, + gint *ypad); + +void _gtk_misc_get_padding_and_border (GtkMisc *misc, + GtkBorder *border); + +G_END_DECLS + +#endif /* __GTK_MISC_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmodules.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmodules.h new file mode 100644 index 0000000..594f99e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmodules.h @@ -0,0 +1,58 @@ +/* GTK - The GIMP Toolkit + * Copyright 1998-2002 Tim Janik, Red Hat, Inc., and others. + * Copyright (C) 2003 Alex Graveley + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MODULES_H__ +#define __GTK_MODULES_H__ + +#include + +G_BEGIN_DECLS + +/** + * GtkModuleInitFunc: + * @argc: (allow-none): GTK+ always passes %NULL for this argument + * @argv: (allow-none) (array length=argc): GTK+ always passes %NULL for this argument + * + * Each GTK+ module must have a function gtk_module_init() + * with this prototype. This function is called after loading + * the module. + */ +typedef void (*GtkModuleInitFunc) (gint *argc, + gchar ***argv); + +/** + * GtkModuleDisplayInitFunc: + * @display: an open #GdkDisplay + * + * A multihead-aware GTK+ module may have a gtk_module_display_init() + * function with this prototype. GTK+ calls this function for each + * opened display. + * + * Since: 2.2 + */ +typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display); + + +G_END_DECLS + + +#endif /* __GTK_MODULES_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkmountoperation.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkmountoperation.h new file mode 100644 index 0000000..e75561c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkmountoperation.h @@ -0,0 +1,81 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) Christian Kellner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_MOUNT_OPERATION_H__ +#define __GTK_MOUNT_OPERATION_H__ + +G_BEGIN_DECLS + +#define GTK_TYPE_MOUNT_OPERATION (gtk_mount_operation_get_type ()) +#define GTK_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MOUNT_OPERATION, GtkMountOperation)) +#define GTK_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MOUNT_OPERATION, GtkMountOperationClass)) +#define GTK_IS_MOUNT_OPERATION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MOUNT_OPERATION)) +#define GTK_IS_MOUNT_OPERATION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MOUNT_OPERATION)) +#define GTK_MOUNT_OPERATION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MOUNT_OPERATION, GtkMountOperationClass)) + +typedef struct _GtkMountOperation GtkMountOperation; +typedef struct _GtkMountOperationClass GtkMountOperationClass; +typedef struct _GtkMountOperationPrivate GtkMountOperationPrivate; + +/** + * GtkMountOperation: + * + * This should not be accessed directly. Use the accessor functions below. + */ +struct _GtkMountOperation +{ + GMountOperation parent_instance; + + GtkMountOperationPrivate *priv; +}; + +struct _GtkMountOperationClass +{ + GMountOperationClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_mount_operation_get_type (void); +GMountOperation *gtk_mount_operation_new (GtkWindow *parent); +gboolean gtk_mount_operation_is_showing (GtkMountOperation *op); +void gtk_mount_operation_set_parent (GtkMountOperation *op, + GtkWindow *parent); +GtkWindow * gtk_mount_operation_get_parent (GtkMountOperation *op); +void gtk_mount_operation_set_screen (GtkMountOperation *op, + GdkScreen *screen); +GdkScreen *gtk_mount_operation_get_screen (GtkMountOperation *op); + +G_END_DECLS + +#endif /* __GTK_MOUNT_OPERATION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtknotebook.h b/gtk+-mingw/include/gtk-3.0/gtk/gtknotebook.h new file mode 100644 index 0000000..5fa72af --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtknotebook.h @@ -0,0 +1,250 @@ +/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_NOTEBOOK_H__ +#define __GTK_NOTEBOOK_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_NOTEBOOK (gtk_notebook_get_type ()) +#define GTK_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_NOTEBOOK, GtkNotebook)) +#define GTK_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) +#define GTK_IS_NOTEBOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_NOTEBOOK)) +#define GTK_IS_NOTEBOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NOTEBOOK)) +#define GTK_NOTEBOOK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_NOTEBOOK, GtkNotebookClass)) + + +typedef enum +{ + GTK_NOTEBOOK_TAB_FIRST, + GTK_NOTEBOOK_TAB_LAST +} GtkNotebookTab; + +typedef struct _GtkNotebook GtkNotebook; +typedef struct _GtkNotebookPrivate GtkNotebookPrivate; +typedef struct _GtkNotebookClass GtkNotebookClass; + +struct _GtkNotebook +{ + /*< private >*/ + GtkContainer container; + + GtkNotebookPrivate *priv; +}; + +struct _GtkNotebookClass +{ + GtkContainerClass parent_class; + + void (* switch_page) (GtkNotebook *notebook, + GtkWidget *page, + guint page_num); + + /* Action signals for keybindings */ + gboolean (* select_page) (GtkNotebook *notebook, + gboolean move_focus); + gboolean (* focus_tab) (GtkNotebook *notebook, + GtkNotebookTab type); + gboolean (* change_current_page) (GtkNotebook *notebook, + gint offset); + void (* move_focus_out) (GtkNotebook *notebook, + GtkDirectionType direction); + gboolean (* reorder_tab) (GtkNotebook *notebook, + GtkDirectionType direction, + gboolean move_to_last); + + /* More vfuncs */ + gint (* insert_page) (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label, + gint position); + + GtkNotebook * (* create_window) (GtkNotebook *notebook, + GtkWidget *page, + gint x, + gint y); + + void (* page_reordered) (GtkNotebook *notebook, + GtkWidget *child, + guint page_num); + + void (* page_removed) (GtkNotebook *notebook, + GtkWidget *child, + guint page_num); + + void (* page_added) (GtkNotebook *notebook, + GtkWidget *child, + guint page_num); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +/*********************************************************** + * Creation, insertion, deletion * + ***********************************************************/ + +GType gtk_notebook_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_notebook_new (void); +gint gtk_notebook_append_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +gint gtk_notebook_append_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label); +gint gtk_notebook_prepend_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +gint gtk_notebook_prepend_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label); +gint gtk_notebook_insert_page (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + gint position); +gint gtk_notebook_insert_page_menu (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label, + GtkWidget *menu_label, + gint position); +void gtk_notebook_remove_page (GtkNotebook *notebook, + gint page_num); + +/*********************************************************** + * Tabs drag and drop * + ***********************************************************/ + +void gtk_notebook_set_group_name (GtkNotebook *notebook, + const gchar *group_name); +const gchar *gtk_notebook_get_group_name (GtkNotebook *notebook); + + + +/*********************************************************** + * query, set current NotebookPage * + ***********************************************************/ + +gint gtk_notebook_get_current_page (GtkNotebook *notebook); +GtkWidget* gtk_notebook_get_nth_page (GtkNotebook *notebook, + gint page_num); +gint gtk_notebook_get_n_pages (GtkNotebook *notebook); +gint gtk_notebook_page_num (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_current_page (GtkNotebook *notebook, + gint page_num); +void gtk_notebook_next_page (GtkNotebook *notebook); +void gtk_notebook_prev_page (GtkNotebook *notebook); + +/*********************************************************** + * set Notebook, NotebookTab style * + ***********************************************************/ + +void gtk_notebook_set_show_border (GtkNotebook *notebook, + gboolean show_border); +gboolean gtk_notebook_get_show_border (GtkNotebook *notebook); +void gtk_notebook_set_show_tabs (GtkNotebook *notebook, + gboolean show_tabs); +gboolean gtk_notebook_get_show_tabs (GtkNotebook *notebook); +void gtk_notebook_set_tab_pos (GtkNotebook *notebook, + GtkPositionType pos); +GtkPositionType gtk_notebook_get_tab_pos (GtkNotebook *notebook); +void gtk_notebook_set_scrollable (GtkNotebook *notebook, + gboolean scrollable); +gboolean gtk_notebook_get_scrollable (GtkNotebook *notebook); +guint16 gtk_notebook_get_tab_hborder (GtkNotebook *notebook); +guint16 gtk_notebook_get_tab_vborder (GtkNotebook *notebook); + +/*********************************************************** + * enable/disable PopupMenu * + ***********************************************************/ + +void gtk_notebook_popup_enable (GtkNotebook *notebook); +void gtk_notebook_popup_disable (GtkNotebook *notebook); + +/*********************************************************** + * query/set NotebookPage Properties * + ***********************************************************/ + +GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_label (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *tab_label); +void gtk_notebook_set_tab_label_text (GtkNotebook *notebook, + GtkWidget *child, + const gchar *tab_text); +const gchar * gtk_notebook_get_tab_label_text (GtkNotebook *notebook, + GtkWidget *child); +GtkWidget * gtk_notebook_get_menu_label (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_menu_label (GtkNotebook *notebook, + GtkWidget *child, + GtkWidget *menu_label); +void gtk_notebook_set_menu_label_text (GtkNotebook *notebook, + GtkWidget *child, + const gchar *menu_text); +const gchar * gtk_notebook_get_menu_label_text (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_reorder_child (GtkNotebook *notebook, + GtkWidget *child, + gint position); +gboolean gtk_notebook_get_tab_reorderable (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_reorderable (GtkNotebook *notebook, + GtkWidget *child, + gboolean reorderable); +gboolean gtk_notebook_get_tab_detachable (GtkNotebook *notebook, + GtkWidget *child); +void gtk_notebook_set_tab_detachable (GtkNotebook *notebook, + GtkWidget *child, + gboolean detachable); + +GtkWidget* gtk_notebook_get_action_widget (GtkNotebook *notebook, + GtkPackType pack_type); +void gtk_notebook_set_action_widget (GtkNotebook *notebook, + GtkWidget *widget, + GtkPackType pack_type); + +G_END_DECLS + +#endif /* __GTK_NOTEBOOK_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtknumerableicon.h b/gtk+-mingw/include/gtk-3.0/gtk/gtknumerableicon.h new file mode 100644 index 0000000..850506d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtknumerableicon.h @@ -0,0 +1,87 @@ +/* + * gtknumerableicon.h: an emblemed icon with number emblems + * + * Copyright (C) 2010 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + * + * Authors: Cosimo Cecchi + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_NUMERABLE_ICON_H__ +#define __GTK_NUMERABLE_ICON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_NUMERABLE_ICON (gtk_numerable_icon_get_type ()) +#define GTK_NUMERABLE_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_NUMERABLE_ICON, GtkNumerableIcon)) +#define GTK_NUMERABLE_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_NUMERABLE_ICON, GtkNumerableIconClass)) +#define GTK_IS_NUMERABLE_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_NUMERABLE_ICON)) +#define GTK_IS_NUMERABLE_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_NUMERABLE_ICON)) +#define GTK_NUMERABLE_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_NUMERABLE_ICON, GtkNumerableIconClass)) + +typedef struct _GtkNumerableIcon GtkNumerableIcon; +typedef struct _GtkNumerableIconClass GtkNumerableIconClass; +typedef struct _GtkNumerableIconPrivate GtkNumerableIconPrivate; + +struct _GtkNumerableIcon { + GEmblemedIcon parent; + + /*< private >*/ + GtkNumerableIconPrivate *priv; +}; + +struct _GtkNumerableIconClass { + GEmblemedIconClass parent_class; + + /* padding for future class expansion */ + gpointer padding[16]; +}; + +GType gtk_numerable_icon_get_type (void) G_GNUC_CONST; + +GIcon * gtk_numerable_icon_new (GIcon *base_icon); +GIcon * gtk_numerable_icon_new_with_style_context (GIcon *base_icon, + GtkStyleContext *context); + +GtkStyleContext * gtk_numerable_icon_get_style_context (GtkNumerableIcon *self); +void gtk_numerable_icon_set_style_context (GtkNumerableIcon *self, + GtkStyleContext *style); + +gint gtk_numerable_icon_get_count (GtkNumerableIcon *self); +void gtk_numerable_icon_set_count (GtkNumerableIcon *self, + gint count); + +const gchar * gtk_numerable_icon_get_label (GtkNumerableIcon *self); +void gtk_numerable_icon_set_label (GtkNumerableIcon *self, + const gchar *label); + +void gtk_numerable_icon_set_background_gicon (GtkNumerableIcon *self, + GIcon *icon); +GIcon * gtk_numerable_icon_get_background_gicon (GtkNumerableIcon *self); + +void gtk_numerable_icon_set_background_icon_name (GtkNumerableIcon *self, + const gchar *icon_name); +const gchar * gtk_numerable_icon_get_background_icon_name (GtkNumerableIcon *self); + +G_END_DECLS + +#endif /* __GTK_NUMERABLE_ICON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkoffscreenwindow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkoffscreenwindow.h new file mode 100644 index 0000000..9b5837a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkoffscreenwindow.h @@ -0,0 +1,64 @@ +/* + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: Cody Russell + * Alexander Larsson + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_OFFSCREEN_WINDOW_H__ +#define __GTK_OFFSCREEN_WINDOW_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_OFFSCREEN_WINDOW (gtk_offscreen_window_get_type ()) +#define GTK_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindow)) +#define GTK_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass)) +#define GTK_IS_OFFSCREEN_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_OFFSCREEN_WINDOW)) +#define GTK_IS_OFFSCREEN_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_OFFSCREEN_WINDOW)) +#define GTK_OFFSCREEN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_OFFSCREEN_WINDOW, GtkOffscreenWindowClass)) + +typedef struct _GtkOffscreenWindow GtkOffscreenWindow; +typedef struct _GtkOffscreenWindowClass GtkOffscreenWindowClass; + +struct _GtkOffscreenWindow +{ + GtkWindow parent_object; +}; + +struct _GtkOffscreenWindowClass +{ + GtkWindowClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_offscreen_window_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_offscreen_window_new (void); +cairo_surface_t *gtk_offscreen_window_get_surface (GtkOffscreenWindow *offscreen); +GdkPixbuf *gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen); + +G_END_DECLS + +#endif /* __GTK_OFFSCREEN_WINDOW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkorientable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkorientable.h new file mode 100644 index 0000000..bdc34d3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkorientable.h @@ -0,0 +1,58 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * gtkorientable.h + * Copyright (C) 2008 Imendio AB + * Contact: Michael Natterer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_ORIENTABLE_H__ +#define __GTK_ORIENTABLE_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_ORIENTABLE (gtk_orientable_get_type ()) +#define GTK_ORIENTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ORIENTABLE, GtkOrientable)) +#define GTK_ORIENTABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_ORIENTABLE, GtkOrientableIface)) +#define GTK_IS_ORIENTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ORIENTABLE)) +#define GTK_IS_ORIENTABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_ORIENTABLE)) +#define GTK_ORIENTABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_ORIENTABLE, GtkOrientableIface)) + + +typedef struct _GtkOrientable GtkOrientable; /* Dummy typedef */ +typedef struct _GtkOrientableIface GtkOrientableIface; + +struct _GtkOrientableIface +{ + GTypeInterface base_iface; +}; + + +GType gtk_orientable_get_type (void) G_GNUC_CONST; + +void gtk_orientable_set_orientation (GtkOrientable *orientable, + GtkOrientation orientation); +GtkOrientation gtk_orientable_get_orientation (GtkOrientable *orientable); + +G_END_DECLS + +#endif /* __GTK_ORIENTABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkoverlay.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkoverlay.h new file mode 100644 index 0000000..fb186d3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkoverlay.h @@ -0,0 +1,79 @@ +/* + * gtkoverlay.h + * This file is part of gtk + * + * Copyright (C) 2011 - Ignacio Casal Quinteiro + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_OVERLAY_H__ +#define __GTK_OVERLAY_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_OVERLAY (gtk_overlay_get_type ()) +#define GTK_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_OVERLAY, GtkOverlay)) +#define GTK_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OVERLAY, GtkOverlayClass)) +#define GTK_IS_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_OVERLAY)) +#define GTK_IS_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OVERLAY)) +#define GTK_OVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_OVERLAY, GtkOverlayClass)) + +typedef struct _GtkOverlay GtkOverlay; +typedef struct _GtkOverlayClass GtkOverlayClass; +typedef struct _GtkOverlayPrivate GtkOverlayPrivate; + +struct _GtkOverlay +{ + GtkBin parent; + + GtkOverlayPrivate *priv; +}; + +struct _GtkOverlayClass +{ + GtkBinClass parent_class; + + gboolean (*get_child_position) (GtkOverlay *overlay, + GtkWidget *widget, + GtkAllocation *allocation); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GDK_AVAILABLE_IN_3_2 +GType gtk_overlay_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_2 +GtkWidget *gtk_overlay_new (void); +GDK_AVAILABLE_IN_3_2 +void gtk_overlay_add_overlay (GtkOverlay *overlay, + GtkWidget *widget); + +G_END_DECLS + +#endif /* __GTK_OVERLAY_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkpagesetup.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkpagesetup.h new file mode 100644 index 0000000..cd4607d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkpagesetup.h @@ -0,0 +1,106 @@ +/* GTK - The GIMP Toolkit + * gtkpagesetup.h: Page Setup + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PAGE_SETUP_H__ +#define __GTK_PAGE_SETUP_H__ + + +#include + + +G_BEGIN_DECLS + +typedef struct _GtkPageSetup GtkPageSetup; + +#define GTK_TYPE_PAGE_SETUP (gtk_page_setup_get_type ()) +#define GTK_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP, GtkPageSetup)) +#define GTK_IS_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP)) + +GType gtk_page_setup_get_type (void) G_GNUC_CONST; +GtkPageSetup * gtk_page_setup_new (void); +GtkPageSetup * gtk_page_setup_copy (GtkPageSetup *other); +GtkPageOrientation gtk_page_setup_get_orientation (GtkPageSetup *setup); +void gtk_page_setup_set_orientation (GtkPageSetup *setup, + GtkPageOrientation orientation); +GtkPaperSize * gtk_page_setup_get_paper_size (GtkPageSetup *setup); +void gtk_page_setup_set_paper_size (GtkPageSetup *setup, + GtkPaperSize *size); +gdouble gtk_page_setup_get_top_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_top_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_bottom_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_bottom_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_left_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_left_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); +gdouble gtk_page_setup_get_right_margin (GtkPageSetup *setup, + GtkUnit unit); +void gtk_page_setup_set_right_margin (GtkPageSetup *setup, + gdouble margin, + GtkUnit unit); + +void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup, + GtkPaperSize *size); + +/* These take orientation, but not margins into consideration */ +gdouble gtk_page_setup_get_paper_width (GtkPageSetup *setup, + GtkUnit unit); +gdouble gtk_page_setup_get_paper_height (GtkPageSetup *setup, + GtkUnit unit); + + +/* These take orientation, and margins into consideration */ +gdouble gtk_page_setup_get_page_width (GtkPageSetup *setup, + GtkUnit unit); +gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup, + GtkUnit unit); + +/* Saving and restoring page setup */ +GtkPageSetup *gtk_page_setup_new_from_file (const gchar *file_name, + GError **error); +gboolean gtk_page_setup_load_file (GtkPageSetup *setup, + const char *file_name, + GError **error); +gboolean gtk_page_setup_to_file (GtkPageSetup *setup, + const char *file_name, + GError **error); +GtkPageSetup *gtk_page_setup_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +gboolean gtk_page_setup_load_key_file (GtkPageSetup *setup, + GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_page_setup_to_key_file (GtkPageSetup *setup, + GKeyFile *key_file, + const gchar *group_name); + +G_END_DECLS + +#endif /* __GTK_PAGE_SETUP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkpaned.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkpaned.h new file mode 100644 index 0000000..67642a3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkpaned.h @@ -0,0 +1,105 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PANED_H__ +#define __GTK_PANED_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_PANED (gtk_paned_get_type ()) +#define GTK_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PANED, GtkPaned)) +#define GTK_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PANED, GtkPanedClass)) +#define GTK_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PANED)) +#define GTK_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PANED)) +#define GTK_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PANED, GtkPanedClass)) + + +typedef struct _GtkPaned GtkPaned; +typedef struct _GtkPanedClass GtkPanedClass; +typedef struct _GtkPanedPrivate GtkPanedPrivate; + +struct _GtkPaned +{ + GtkContainer container; + + /*< private >*/ + GtkPanedPrivate *priv; +}; + +struct _GtkPanedClass +{ + GtkContainerClass parent_class; + + gboolean (* cycle_child_focus) (GtkPaned *paned, + gboolean reverse); + gboolean (* toggle_handle_focus) (GtkPaned *paned); + gboolean (* move_handle) (GtkPaned *paned, + GtkScrollType scroll); + gboolean (* cycle_handle_focus) (GtkPaned *paned, + gboolean reverse); + gboolean (* accept_position) (GtkPaned *paned); + gboolean (* cancel_position) (GtkPaned *paned); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_paned_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_paned_new (GtkOrientation orientation); +void gtk_paned_add1 (GtkPaned *paned, + GtkWidget *child); +void gtk_paned_add2 (GtkPaned *paned, + GtkWidget *child); +void gtk_paned_pack1 (GtkPaned *paned, + GtkWidget *child, + gboolean resize, + gboolean shrink); +void gtk_paned_pack2 (GtkPaned *paned, + GtkWidget *child, + gboolean resize, + gboolean shrink); + +gint gtk_paned_get_position (GtkPaned *paned); +void gtk_paned_set_position (GtkPaned *paned, + gint position); + +GtkWidget * gtk_paned_get_child1 (GtkPaned *paned); +GtkWidget * gtk_paned_get_child2 (GtkPaned *paned); + +GdkWindow * gtk_paned_get_handle_window (GtkPaned *paned); + + +G_END_DECLS + +#endif /* __GTK_PANED_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkpapersize.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkpapersize.h new file mode 100644 index 0000000..f3cfa6e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkpapersize.h @@ -0,0 +1,140 @@ +/* GTK - The GIMP Toolkit + * gtkpapersize.h: Paper Size + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PAPER_SIZE_H__ +#define __GTK_PAPER_SIZE_H__ + + +#include + + +G_BEGIN_DECLS + +typedef struct _GtkPaperSize GtkPaperSize; + +#define GTK_TYPE_PAPER_SIZE (gtk_paper_size_get_type ()) + +/* Common names, from PWG 5101.1-2002 PWG: Standard for Media Standardized Names */ +/** + * GTK_PAPER_NAME_A3: + * + * Name for the A4 paper size. + */ +#define GTK_PAPER_NAME_A3 "iso_a3" + +/** + * GTK_PAPER_NAME_A4: + * + * Name for the A4 paper size. + */ +#define GTK_PAPER_NAME_A4 "iso_a4" + +/** + * GTK_PAPER_NAME_A5: + * + * Name for the A5 paper size. + */ +#define GTK_PAPER_NAME_A5 "iso_a5" + +/** + * GTK_PAPER_NAME_B5: + * + * Name for the B5 paper size. + */ +#define GTK_PAPER_NAME_B5 "iso_b5" + +/** + * GTK_PAPER_NAME_LETTER: + * + * Name for the Letter paper size. + */ +#define GTK_PAPER_NAME_LETTER "na_letter" + +/** + * GTK_PAPER_NAME_EXECUTIVE: + * + * Name for the Executive paper size. + */ +#define GTK_PAPER_NAME_EXECUTIVE "na_executive" + +/** + * GTK_PAPER_NAME_LEGAL: + * + * Name for the Legal paper size. + */ +#define GTK_PAPER_NAME_LEGAL "na_legal" + +GType gtk_paper_size_get_type (void) G_GNUC_CONST; + +GtkPaperSize *gtk_paper_size_new (const gchar *name); +GtkPaperSize *gtk_paper_size_new_from_ppd (const gchar *ppd_name, + const gchar *ppd_display_name, + gdouble width, + gdouble height); +GtkPaperSize *gtk_paper_size_new_custom (const gchar *name, + const gchar *display_name, + gdouble width, + gdouble height, + GtkUnit unit); +GtkPaperSize *gtk_paper_size_copy (GtkPaperSize *other); +void gtk_paper_size_free (GtkPaperSize *size); +gboolean gtk_paper_size_is_equal (GtkPaperSize *size1, + GtkPaperSize *size2); + +GList *gtk_paper_size_get_paper_sizes (gboolean include_custom); + +/* The width is always the shortest side, measure in mm */ +const gchar *gtk_paper_size_get_name (GtkPaperSize *size); +const gchar *gtk_paper_size_get_display_name (GtkPaperSize *size); +const gchar *gtk_paper_size_get_ppd_name (GtkPaperSize *size); + +gdouble gtk_paper_size_get_width (GtkPaperSize *size, GtkUnit unit); +gdouble gtk_paper_size_get_height (GtkPaperSize *size, GtkUnit unit); +gboolean gtk_paper_size_is_custom (GtkPaperSize *size); + +/* Only for custom sizes: */ +void gtk_paper_size_set_size (GtkPaperSize *size, + gdouble width, + gdouble height, + GtkUnit unit); + +gdouble gtk_paper_size_get_default_top_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_left_margin (GtkPaperSize *size, + GtkUnit unit); +gdouble gtk_paper_size_get_default_right_margin (GtkPaperSize *size, + GtkUnit unit); + +const gchar *gtk_paper_size_get_default (void); + +GtkPaperSize *gtk_paper_size_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_paper_size_to_key_file (GtkPaperSize *size, + GKeyFile *key_file, + const gchar *group_name); + +G_END_DECLS + +#endif /* __GTK_PAPER_SIZE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkplug.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkplug.h new file mode 100644 index 0000000..60156ce --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkplug.h @@ -0,0 +1,97 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTKX_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PLUG_H__ +#define __GTK_PLUG_H__ + +#include + +#ifdef GDK_WINDOWING_X11 + +#include + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_PLUG (gtk_plug_get_type ()) +#define GTK_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PLUG, GtkPlug)) +#define GTK_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PLUG, GtkPlugClass)) +#define GTK_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PLUG)) +#define GTK_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PLUG)) +#define GTK_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLUG, GtkPlugClass)) + + +typedef struct _GtkPlug GtkPlug; +typedef struct _GtkPlugPrivate GtkPlugPrivate; +typedef struct _GtkPlugClass GtkPlugClass; + + +struct _GtkPlug +{ + GtkWindow window; + + GtkPlugPrivate *priv; +}; + +struct _GtkPlugClass +{ + GtkWindowClass parent_class; + + void (*embedded) (GtkPlug *plug); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_plug_get_type (void) G_GNUC_CONST; + +#ifndef GDK_MULTIHEAD_SAFE +void gtk_plug_construct (GtkPlug *plug, + Window socket_id); +GtkWidget *gtk_plug_new (Window socket_id); +#endif + +void gtk_plug_construct_for_display (GtkPlug *plug, + GdkDisplay *display, + Window socket_id); +GtkWidget *gtk_plug_new_for_display (GdkDisplay *display, + Window socket_id); +Window gtk_plug_get_id (GtkPlug *plug); +gboolean gtk_plug_get_embedded (GtkPlug *plug); +GdkWindow *gtk_plug_get_socket_window (GtkPlug *plug); + +G_END_DECLS + +#endif /* GDK_WINDOWING_X11 */ + +#endif /* __GTK_PLUG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkprintcontext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintcontext.h new file mode 100644 index 0000000..561d0c4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintcontext.h @@ -0,0 +1,69 @@ +/* GTK - The GIMP Toolkit + * gtkprintcontext.h: Print Context + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PRINT_CONTEXT_H__ +#define __GTK_PRINT_CONTEXT_H__ + + +#include +#include + + +G_BEGIN_DECLS + +typedef struct _GtkPrintContext GtkPrintContext; + +#define GTK_TYPE_PRINT_CONTEXT (gtk_print_context_get_type ()) +#define GTK_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_CONTEXT, GtkPrintContext)) +#define GTK_IS_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_CONTEXT)) + +GType gtk_print_context_get_type (void) G_GNUC_CONST; + + +/* Rendering */ +cairo_t *gtk_print_context_get_cairo_context (GtkPrintContext *context); + +GtkPageSetup *gtk_print_context_get_page_setup (GtkPrintContext *context); +gdouble gtk_print_context_get_width (GtkPrintContext *context); +gdouble gtk_print_context_get_height (GtkPrintContext *context); +gdouble gtk_print_context_get_dpi_x (GtkPrintContext *context); +gdouble gtk_print_context_get_dpi_y (GtkPrintContext *context); +gboolean gtk_print_context_get_hard_margins (GtkPrintContext *context, + gdouble *top, + gdouble *bottom, + gdouble *left, + gdouble *right); + +/* Fonts */ +PangoFontMap *gtk_print_context_get_pango_fontmap (GtkPrintContext *context); +PangoContext *gtk_print_context_create_pango_context (GtkPrintContext *context); +PangoLayout *gtk_print_context_create_pango_layout (GtkPrintContext *context); + +/* Needed for preview implementations */ +void gtk_print_context_set_cairo_context (GtkPrintContext *context, + cairo_t *cr, + double dpi_x, + double dpi_y); + +G_END_DECLS + +#endif /* __GTK_PRINT_CONTEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperation.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperation.h new file mode 100644 index 0000000..a1e8aec --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperation.h @@ -0,0 +1,280 @@ +/* GTK - The GIMP Toolkit + * gtkprintoperation.h: Print Operation + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PRINT_OPERATION_H__ +#define __GTK_PRINT_OPERATION_H__ + + +#include +#include +#include +#include +#include +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_OPERATION (gtk_print_operation_get_type ()) +#define GTK_PRINT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_OPERATION, GtkPrintOperation)) +#define GTK_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINT_OPERATION, GtkPrintOperationClass)) +#define GTK_IS_PRINT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_OPERATION)) +#define GTK_IS_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINT_OPERATION)) +#define GTK_PRINT_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINT_OPERATION, GtkPrintOperationClass)) + +typedef struct _GtkPrintOperationClass GtkPrintOperationClass; +typedef struct _GtkPrintOperationPrivate GtkPrintOperationPrivate; +typedef struct _GtkPrintOperation GtkPrintOperation; + +/** + * GtkPrintStatus: + * @GTK_PRINT_STATUS_INITIAL: The printing has not started yet; this + * status is set initially, and while the print dialog is shown. + * @GTK_PRINT_STATUS_PREPARING: This status is set while the begin-print + * signal is emitted and during pagination. + * @GTK_PRINT_STATUS_GENERATING_DATA: This status is set while the + * pages are being rendered. + * @GTK_PRINT_STATUS_SENDING_DATA: The print job is being sent off to the + * printer. + * @GTK_PRINT_STATUS_PENDING: The print job has been sent to the printer, + * but is not printed for some reason, e.g. the printer may be stopped. + * @GTK_PRINT_STATUS_PENDING_ISSUE: Some problem has occurred during + * printing, e.g. a paper jam. + * @GTK_PRINT_STATUS_PRINTING: The printer is processing the print job. + * @GTK_PRINT_STATUS_FINISHED: The printing has been completed successfully. + * @GTK_PRINT_STATUS_FINISHED_ABORTED: The printing has been aborted. + * + * The status gives a rough indication of the completion of a running + * print operation. + */ +typedef enum { + GTK_PRINT_STATUS_INITIAL, + GTK_PRINT_STATUS_PREPARING, + GTK_PRINT_STATUS_GENERATING_DATA, + GTK_PRINT_STATUS_SENDING_DATA, + GTK_PRINT_STATUS_PENDING, + GTK_PRINT_STATUS_PENDING_ISSUE, + GTK_PRINT_STATUS_PRINTING, + GTK_PRINT_STATUS_FINISHED, + GTK_PRINT_STATUS_FINISHED_ABORTED +} GtkPrintStatus; + +/** + * GtkPrintOperationResult: + * @GTK_PRINT_OPERATION_RESULT_ERROR: An error has occured. + * @GTK_PRINT_OPERATION_RESULT_APPLY: The print settings should be stored. + * @GTK_PRINT_OPERATION_RESULT_CANCEL: The print operation has been canceled, + * the print settings should not be stored. + * @GTK_PRINT_OPERATION_RESULT_IN_PROGRESS: The print operation is not complete + * yet. This value will only be returned when running asynchronously. + * + * A value of this type is returned by gtk_print_operation_run(). + */ +typedef enum { + GTK_PRINT_OPERATION_RESULT_ERROR, + GTK_PRINT_OPERATION_RESULT_APPLY, + GTK_PRINT_OPERATION_RESULT_CANCEL, + GTK_PRINT_OPERATION_RESULT_IN_PROGRESS +} GtkPrintOperationResult; + +/** + * GtkPrintOperationAction: + * @GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG: Show the print dialog. + * @GTK_PRINT_OPERATION_ACTION_PRINT: Start to print without showing + * the print dialog, based on the current print settings. + * @GTK_PRINT_OPERATION_ACTION_PREVIEW: Show the print preview. + * @GTK_PRINT_OPERATION_ACTION_EXPORT: Export to a file. This requires + * the export-filename property to be set. + * + * The @action parameter to gtk_print_operation_run() + * determines what action the print operation should perform. + */ +typedef enum { + GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, + GTK_PRINT_OPERATION_ACTION_PRINT, + GTK_PRINT_OPERATION_ACTION_PREVIEW, + GTK_PRINT_OPERATION_ACTION_EXPORT +} GtkPrintOperationAction; + + +struct _GtkPrintOperation +{ + GObject parent_instance; + + /*< private >*/ + GtkPrintOperationPrivate *priv; +}; + +struct _GtkPrintOperationClass +{ + GObjectClass parent_class; + + void (*done) (GtkPrintOperation *operation, + GtkPrintOperationResult result); + void (*begin_print) (GtkPrintOperation *operation, + GtkPrintContext *context); + gboolean (*paginate) (GtkPrintOperation *operation, + GtkPrintContext *context); + void (*request_page_setup) (GtkPrintOperation *operation, + GtkPrintContext *context, + gint page_nr, + GtkPageSetup *setup); + void (*draw_page) (GtkPrintOperation *operation, + GtkPrintContext *context, + gint page_nr); + void (*end_print) (GtkPrintOperation *operation, + GtkPrintContext *context); + void (*status_changed) (GtkPrintOperation *operation); + + GtkWidget *(*create_custom_widget) (GtkPrintOperation *operation); + void (*custom_widget_apply) (GtkPrintOperation *operation, + GtkWidget *widget); + + gboolean (*preview) (GtkPrintOperation *operation, + GtkPrintOperationPreview *preview, + GtkPrintContext *context, + GtkWindow *parent); + + void (*update_custom_widget) (GtkPrintOperation *operation, + GtkWidget *widget, + GtkPageSetup *setup, + GtkPrintSettings *settings); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +/** + * GTK_PRINT_ERROR: + * + * The error domain for #GtkPrintError errors. + */ +#define GTK_PRINT_ERROR gtk_print_error_quark () + +/** + * GtkPrintError: + * @GTK_PRINT_ERROR_GENERAL: An unspecified error occurred. + * @GTK_PRINT_ERROR_INTERNAL_ERROR: An internal error occurred. + * @GTK_PRINT_ERROR_NOMEM: A memory allocation failed. + * @GTK_PRINT_ERROR_INVALID_FILE: An error occurred while loading a page setup + * or paper size from a key file. + * + * Error codes that identify various errors that can occur while + * using the GTK+ printing support. + */ +typedef enum +{ + GTK_PRINT_ERROR_GENERAL, + GTK_PRINT_ERROR_INTERNAL_ERROR, + GTK_PRINT_ERROR_NOMEM, + GTK_PRINT_ERROR_INVALID_FILE +} GtkPrintError; + +GQuark gtk_print_error_quark (void); + +GType gtk_print_operation_get_type (void) G_GNUC_CONST; +GtkPrintOperation * gtk_print_operation_new (void); +void gtk_print_operation_set_default_page_setup (GtkPrintOperation *op, + GtkPageSetup *default_page_setup); +GtkPageSetup * gtk_print_operation_get_default_page_setup (GtkPrintOperation *op); +void gtk_print_operation_set_print_settings (GtkPrintOperation *op, + GtkPrintSettings *print_settings); +GtkPrintSettings * gtk_print_operation_get_print_settings (GtkPrintOperation *op); +void gtk_print_operation_set_job_name (GtkPrintOperation *op, + const gchar *job_name); +void gtk_print_operation_set_n_pages (GtkPrintOperation *op, + gint n_pages); +void gtk_print_operation_set_current_page (GtkPrintOperation *op, + gint current_page); +void gtk_print_operation_set_use_full_page (GtkPrintOperation *op, + gboolean full_page); +void gtk_print_operation_set_unit (GtkPrintOperation *op, + GtkUnit unit); +void gtk_print_operation_set_export_filename (GtkPrintOperation *op, + const gchar *filename); +void gtk_print_operation_set_track_print_status (GtkPrintOperation *op, + gboolean track_status); +void gtk_print_operation_set_show_progress (GtkPrintOperation *op, + gboolean show_progress); +void gtk_print_operation_set_allow_async (GtkPrintOperation *op, + gboolean allow_async); +void gtk_print_operation_set_custom_tab_label (GtkPrintOperation *op, + const gchar *label); +GtkPrintOperationResult gtk_print_operation_run (GtkPrintOperation *op, + GtkPrintOperationAction action, + GtkWindow *parent, + GError **error); +void gtk_print_operation_get_error (GtkPrintOperation *op, + GError **error); +GtkPrintStatus gtk_print_operation_get_status (GtkPrintOperation *op); +const gchar * gtk_print_operation_get_status_string (GtkPrintOperation *op); +gboolean gtk_print_operation_is_finished (GtkPrintOperation *op); +void gtk_print_operation_cancel (GtkPrintOperation *op); +void gtk_print_operation_draw_page_finish (GtkPrintOperation *op); +void gtk_print_operation_set_defer_drawing (GtkPrintOperation *op); +void gtk_print_operation_set_support_selection (GtkPrintOperation *op, + gboolean support_selection); +gboolean gtk_print_operation_get_support_selection (GtkPrintOperation *op); +void gtk_print_operation_set_has_selection (GtkPrintOperation *op, + gboolean has_selection); +gboolean gtk_print_operation_get_has_selection (GtkPrintOperation *op); +void gtk_print_operation_set_embed_page_setup (GtkPrintOperation *op, + gboolean embed); +gboolean gtk_print_operation_get_embed_page_setup (GtkPrintOperation *op); +gint gtk_print_operation_get_n_pages_to_print (GtkPrintOperation *op); + +GtkPageSetup *gtk_print_run_page_setup_dialog (GtkWindow *parent, + GtkPageSetup *page_setup, + GtkPrintSettings *settings); + +/** + * GtkPageSetupDoneFunc: + * @page_setup: the #GtkPageSetup that has been + * @data: (closure): user data that has been passed to + * gtk_print_run_page_setup_dialog_async() + * + * The type of function that is passed to + * gtk_print_run_page_setup_dialog_async(). + * + * This function will be called when the page setup dialog + * is dismissed, and also serves as destroy notify for @data. + */ +typedef void (* GtkPageSetupDoneFunc) (GtkPageSetup *page_setup, + gpointer data); + +void gtk_print_run_page_setup_dialog_async (GtkWindow *parent, + GtkPageSetup *page_setup, + GtkPrintSettings *settings, + GtkPageSetupDoneFunc done_cb, + gpointer data); + +G_END_DECLS + +#endif /* __GTK_PRINT_OPERATION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperationpreview.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperationpreview.h new file mode 100644 index 0000000..e932e7c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintoperationpreview.h @@ -0,0 +1,79 @@ +/* GTK - The GIMP Toolkit + * gtkprintoperationpreview.h: Abstract print preview interface + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PRINT_OPERATION_PREVIEW_H__ +#define __GTK_PRINT_OPERATION_PREVIEW_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_PRINT_OPERATION_PREVIEW (gtk_print_operation_preview_get_type ()) +#define GTK_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreview)) +#define GTK_IS_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW)) +#define GTK_PRINT_OPERATION_PREVIEW_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreviewIface)) + +typedef struct _GtkPrintOperationPreview GtkPrintOperationPreview; /*dummy typedef */ +typedef struct _GtkPrintOperationPreviewIface GtkPrintOperationPreviewIface; + + +struct _GtkPrintOperationPreviewIface +{ + GTypeInterface g_iface; + + /* signals */ + void (*ready) (GtkPrintOperationPreview *preview, + GtkPrintContext *context); + void (*got_page_size) (GtkPrintOperationPreview *preview, + GtkPrintContext *context, + GtkPageSetup *page_setup); + + /* methods */ + void (*render_page) (GtkPrintOperationPreview *preview, + gint page_nr); + gboolean (*is_selected) (GtkPrintOperationPreview *preview, + gint page_nr); + void (*end_preview) (GtkPrintOperationPreview *preview); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_print_operation_preview_get_type (void) G_GNUC_CONST; + +void gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview, + gint page_nr); +void gtk_print_operation_preview_end_preview (GtkPrintOperationPreview *preview); +gboolean gtk_print_operation_preview_is_selected (GtkPrintOperationPreview *preview, + gint page_nr); + +G_END_DECLS + +#endif /* __GTK_PRINT_OPERATION_PREVIEW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkprintsettings.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintsettings.h new file mode 100644 index 0000000..3323a7b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkprintsettings.h @@ -0,0 +1,248 @@ +/* GTK - The GIMP Toolkit + * gtkprintsettings.h: Print Settings + * Copyright (C) 2006, Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PRINT_SETTINGS_H__ +#define __GTK_PRINT_SETTINGS_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _GtkPrintSettings GtkPrintSettings; + +#define GTK_TYPE_PRINT_SETTINGS (gtk_print_settings_get_type ()) +#define GTK_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_SETTINGS, GtkPrintSettings)) +#define GTK_IS_PRINT_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_SETTINGS)) + +typedef void (*GtkPrintSettingsFunc) (const gchar *key, + const gchar *value, + gpointer user_data); + +typedef struct _GtkPageRange GtkPageRange; +struct _GtkPageRange +{ + gint start; + gint end; +}; + +GType gtk_print_settings_get_type (void) G_GNUC_CONST; +GtkPrintSettings *gtk_print_settings_new (void); + +GtkPrintSettings *gtk_print_settings_copy (GtkPrintSettings *other); + +GtkPrintSettings *gtk_print_settings_new_from_file (const gchar *file_name, + GError **error); +gboolean gtk_print_settings_load_file (GtkPrintSettings *settings, + const gchar *file_name, + GError **error); +gboolean gtk_print_settings_to_file (GtkPrintSettings *settings, + const gchar *file_name, + GError **error); +GtkPrintSettings *gtk_print_settings_new_from_key_file (GKeyFile *key_file, + const gchar *group_name, + GError **error); +gboolean gtk_print_settings_load_key_file (GtkPrintSettings *settings, + GKeyFile *key_file, + const gchar *group_name, + GError **error); +void gtk_print_settings_to_key_file (GtkPrintSettings *settings, + GKeyFile *key_file, + const gchar *group_name); +gboolean gtk_print_settings_has_key (GtkPrintSettings *settings, + const gchar *key); +const gchar * gtk_print_settings_get (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_set (GtkPrintSettings *settings, + const gchar *key, + const gchar *value); +void gtk_print_settings_unset (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_foreach (GtkPrintSettings *settings, + GtkPrintSettingsFunc func, + gpointer user_data); +gboolean gtk_print_settings_get_bool (GtkPrintSettings *settings, + const gchar *key); +void gtk_print_settings_set_bool (GtkPrintSettings *settings, + const gchar *key, + gboolean value); +gdouble gtk_print_settings_get_double (GtkPrintSettings *settings, + const gchar *key); +gdouble gtk_print_settings_get_double_with_default (GtkPrintSettings *settings, + const gchar *key, + gdouble def); +void gtk_print_settings_set_double (GtkPrintSettings *settings, + const gchar *key, + gdouble value); +gdouble gtk_print_settings_get_length (GtkPrintSettings *settings, + const gchar *key, + GtkUnit unit); +void gtk_print_settings_set_length (GtkPrintSettings *settings, + const gchar *key, + gdouble value, + GtkUnit unit); +gint gtk_print_settings_get_int (GtkPrintSettings *settings, + const gchar *key); +gint gtk_print_settings_get_int_with_default (GtkPrintSettings *settings, + const gchar *key, + gint def); +void gtk_print_settings_set_int (GtkPrintSettings *settings, + const gchar *key, + gint value); + +#define GTK_PRINT_SETTINGS_PRINTER "printer" +#define GTK_PRINT_SETTINGS_ORIENTATION "orientation" +#define GTK_PRINT_SETTINGS_PAPER_FORMAT "paper-format" +#define GTK_PRINT_SETTINGS_PAPER_WIDTH "paper-width" +#define GTK_PRINT_SETTINGS_PAPER_HEIGHT "paper-height" +#define GTK_PRINT_SETTINGS_N_COPIES "n-copies" +#define GTK_PRINT_SETTINGS_DEFAULT_SOURCE "default-source" +#define GTK_PRINT_SETTINGS_QUALITY "quality" +#define GTK_PRINT_SETTINGS_RESOLUTION "resolution" +#define GTK_PRINT_SETTINGS_USE_COLOR "use-color" +#define GTK_PRINT_SETTINGS_DUPLEX "duplex" +#define GTK_PRINT_SETTINGS_COLLATE "collate" +#define GTK_PRINT_SETTINGS_REVERSE "reverse" +#define GTK_PRINT_SETTINGS_MEDIA_TYPE "media-type" +#define GTK_PRINT_SETTINGS_DITHER "dither" +#define GTK_PRINT_SETTINGS_SCALE "scale" +#define GTK_PRINT_SETTINGS_PRINT_PAGES "print-pages" +#define GTK_PRINT_SETTINGS_PAGE_RANGES "page-ranges" +#define GTK_PRINT_SETTINGS_PAGE_SET "page-set" +#define GTK_PRINT_SETTINGS_FINISHINGS "finishings" +#define GTK_PRINT_SETTINGS_NUMBER_UP "number-up" +#define GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT "number-up-layout" +#define GTK_PRINT_SETTINGS_OUTPUT_BIN "output-bin" +#define GTK_PRINT_SETTINGS_RESOLUTION_X "resolution-x" +#define GTK_PRINT_SETTINGS_RESOLUTION_Y "resolution-y" +#define GTK_PRINT_SETTINGS_PRINTER_LPI "printer-lpi" +#define GTK_PRINT_SETTINGS_OUTPUT_DIR "output-dir" +#define GTK_PRINT_SETTINGS_OUTPUT_BASENAME "output-basename" + +/** + * GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT: + * + * The key used by the "Print to file" printer to store the format + * of the output. The supported values are "PS" and "PDF". + */ +#define GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT "output-file-format" + +/** + * GTK_PRINT_SETTINGS_OUTPUT_URI: + * + * The key used by the "Print to file" printer to store the URI + * to which the output should be written. GTK+ itself supports + * only "file://" URIs. + */ +#define GTK_PRINT_SETTINGS_OUTPUT_URI "output-uri" + +#define GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION "win32-driver-version" +#define GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA "win32-driver-extra" + +/* Helpers: */ + +const gchar * gtk_print_settings_get_printer (GtkPrintSettings *settings); +void gtk_print_settings_set_printer (GtkPrintSettings *settings, + const gchar *printer); +GtkPageOrientation gtk_print_settings_get_orientation (GtkPrintSettings *settings); +void gtk_print_settings_set_orientation (GtkPrintSettings *settings, + GtkPageOrientation orientation); +GtkPaperSize * gtk_print_settings_get_paper_size (GtkPrintSettings *settings); +void gtk_print_settings_set_paper_size (GtkPrintSettings *settings, + GtkPaperSize *paper_size); +gdouble gtk_print_settings_get_paper_width (GtkPrintSettings *settings, + GtkUnit unit); +void gtk_print_settings_set_paper_width (GtkPrintSettings *settings, + gdouble width, + GtkUnit unit); +gdouble gtk_print_settings_get_paper_height (GtkPrintSettings *settings, + GtkUnit unit); +void gtk_print_settings_set_paper_height (GtkPrintSettings *settings, + gdouble height, + GtkUnit unit); +gboolean gtk_print_settings_get_use_color (GtkPrintSettings *settings); +void gtk_print_settings_set_use_color (GtkPrintSettings *settings, + gboolean use_color); +gboolean gtk_print_settings_get_collate (GtkPrintSettings *settings); +void gtk_print_settings_set_collate (GtkPrintSettings *settings, + gboolean collate); +gboolean gtk_print_settings_get_reverse (GtkPrintSettings *settings); +void gtk_print_settings_set_reverse (GtkPrintSettings *settings, + gboolean reverse); +GtkPrintDuplex gtk_print_settings_get_duplex (GtkPrintSettings *settings); +void gtk_print_settings_set_duplex (GtkPrintSettings *settings, + GtkPrintDuplex duplex); +GtkPrintQuality gtk_print_settings_get_quality (GtkPrintSettings *settings); +void gtk_print_settings_set_quality (GtkPrintSettings *settings, + GtkPrintQuality quality); +gint gtk_print_settings_get_n_copies (GtkPrintSettings *settings); +void gtk_print_settings_set_n_copies (GtkPrintSettings *settings, + gint num_copies); +gint gtk_print_settings_get_number_up (GtkPrintSettings *settings); +void gtk_print_settings_set_number_up (GtkPrintSettings *settings, + gint number_up); +GtkNumberUpLayout gtk_print_settings_get_number_up_layout (GtkPrintSettings *settings); +void gtk_print_settings_set_number_up_layout (GtkPrintSettings *settings, + GtkNumberUpLayout number_up_layout); +gint gtk_print_settings_get_resolution (GtkPrintSettings *settings); +void gtk_print_settings_set_resolution (GtkPrintSettings *settings, + gint resolution); +gint gtk_print_settings_get_resolution_x (GtkPrintSettings *settings); +gint gtk_print_settings_get_resolution_y (GtkPrintSettings *settings); +void gtk_print_settings_set_resolution_xy (GtkPrintSettings *settings, + gint resolution_x, + gint resolution_y); +gdouble gtk_print_settings_get_printer_lpi (GtkPrintSettings *settings); +void gtk_print_settings_set_printer_lpi (GtkPrintSettings *settings, + gdouble lpi); +gdouble gtk_print_settings_get_scale (GtkPrintSettings *settings); +void gtk_print_settings_set_scale (GtkPrintSettings *settings, + gdouble scale); +GtkPrintPages gtk_print_settings_get_print_pages (GtkPrintSettings *settings); +void gtk_print_settings_set_print_pages (GtkPrintSettings *settings, + GtkPrintPages pages); +GtkPageRange * gtk_print_settings_get_page_ranges (GtkPrintSettings *settings, + gint *num_ranges); +void gtk_print_settings_set_page_ranges (GtkPrintSettings *settings, + GtkPageRange *page_ranges, + gint num_ranges); +GtkPageSet gtk_print_settings_get_page_set (GtkPrintSettings *settings); +void gtk_print_settings_set_page_set (GtkPrintSettings *settings, + GtkPageSet page_set); +const gchar * gtk_print_settings_get_default_source (GtkPrintSettings *settings); +void gtk_print_settings_set_default_source (GtkPrintSettings *settings, + const gchar *default_source); +const gchar * gtk_print_settings_get_media_type (GtkPrintSettings *settings); +void gtk_print_settings_set_media_type (GtkPrintSettings *settings, + const gchar *media_type); +const gchar * gtk_print_settings_get_dither (GtkPrintSettings *settings); +void gtk_print_settings_set_dither (GtkPrintSettings *settings, + const gchar *dither); +const gchar * gtk_print_settings_get_finishings (GtkPrintSettings *settings); +void gtk_print_settings_set_finishings (GtkPrintSettings *settings, + const gchar *finishings); +const gchar * gtk_print_settings_get_output_bin (GtkPrintSettings *settings); +void gtk_print_settings_set_output_bin (GtkPrintSettings *settings, + const gchar *output_bin); + +G_END_DECLS + +#endif /* __GTK_PRINT_SETTINGS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkprogressbar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkprogressbar.h new file mode 100644 index 0000000..ae07bdc --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkprogressbar.h @@ -0,0 +1,97 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_PROGRESS_BAR_H__ +#define __GTK_PROGRESS_BAR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_PROGRESS_BAR (gtk_progress_bar_get_type ()) +#define GTK_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBar)) +#define GTK_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) +#define GTK_IS_PROGRESS_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PROGRESS_BAR)) +#define GTK_IS_PROGRESS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PROGRESS_BAR)) +#define GTK_PROGRESS_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PROGRESS_BAR, GtkProgressBarClass)) + + +typedef struct _GtkProgressBar GtkProgressBar; +typedef struct _GtkProgressBarPrivate GtkProgressBarPrivate; +typedef struct _GtkProgressBarClass GtkProgressBarClass; + +struct _GtkProgressBar +{ + GtkWidget parent; + + /*< private >*/ + GtkProgressBarPrivate *priv; +}; + +struct _GtkProgressBarClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_progress_bar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_progress_bar_new (void); + +void gtk_progress_bar_pulse (GtkProgressBar *pbar); +void gtk_progress_bar_set_text (GtkProgressBar *pbar, + const gchar *text); +void gtk_progress_bar_set_fraction (GtkProgressBar *pbar, + gdouble fraction); + +void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, + gdouble fraction); +void gtk_progress_bar_set_inverted (GtkProgressBar *pbar, + gboolean inverted); + +const gchar * gtk_progress_bar_get_text (GtkProgressBar *pbar); +gdouble gtk_progress_bar_get_fraction (GtkProgressBar *pbar); +gdouble gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar); + +gboolean gtk_progress_bar_get_inverted (GtkProgressBar *pbar); +void gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar, + PangoEllipsizeMode mode); +PangoEllipsizeMode gtk_progress_bar_get_ellipsize (GtkProgressBar *pbar); + +void gtk_progress_bar_set_show_text (GtkProgressBar *pbar, + gboolean show_text); +gboolean gtk_progress_bar_get_show_text (GtkProgressBar *pbar); + +G_END_DECLS + +#endif /* __GTK_PROGRESS_BAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkradioaction.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkradioaction.h new file mode 100644 index 0000000..84eac16 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkradioaction.h @@ -0,0 +1,89 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Author: James Henstridge + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RADIO_ACTION_H__ +#define __GTK_RADIO_ACTION_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_ACTION (gtk_radio_action_get_type ()) +#define GTK_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioAction)) +#define GTK_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) +#define GTK_IS_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_ACTION)) +#define GTK_IS_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_ACTION)) +#define GTK_RADIO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass)) + +typedef struct _GtkRadioAction GtkRadioAction; +typedef struct _GtkRadioActionPrivate GtkRadioActionPrivate; +typedef struct _GtkRadioActionClass GtkRadioActionClass; + +struct _GtkRadioAction +{ + GtkToggleAction parent; + + /*< private >*/ + GtkRadioActionPrivate *private_data; +}; + +struct _GtkRadioActionClass +{ + GtkToggleActionClass parent_class; + + void (* changed) (GtkRadioAction *action, GtkRadioAction *current); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_radio_action_get_type (void) G_GNUC_CONST; +GtkRadioAction *gtk_radio_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id, + gint value); +GSList *gtk_radio_action_get_group (GtkRadioAction *action); +void gtk_radio_action_set_group (GtkRadioAction *action, + GSList *group); +void gtk_radio_action_join_group (GtkRadioAction *action, + GtkRadioAction *group_source); +gint gtk_radio_action_get_current_value (GtkRadioAction *action); +void gtk_radio_action_set_current_value (GtkRadioAction *action, + gint current_value); + +G_END_DECLS + +#endif /* __GTK_RADIO_ACTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkradiobutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiobutton.h new file mode 100644 index 0000000..14ad10d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiobutton.h @@ -0,0 +1,92 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RADIO_BUTTON_H__ +#define __GTK_RADIO_BUTTON_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_BUTTON (gtk_radio_button_get_type ()) +#define GTK_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButton)) +#define GTK_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) +#define GTK_IS_RADIO_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_BUTTON)) +#define GTK_IS_RADIO_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_BUTTON)) +#define GTK_RADIO_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_BUTTON, GtkRadioButtonClass)) + + +typedef struct _GtkRadioButton GtkRadioButton; +typedef struct _GtkRadioButtonPrivate GtkRadioButtonPrivate; +typedef struct _GtkRadioButtonClass GtkRadioButtonClass; + +struct _GtkRadioButton +{ + GtkCheckButton check_button; + + /*< private >*/ + GtkRadioButtonPrivate *priv; +}; + +struct _GtkRadioButtonClass +{ + GtkCheckButtonClass parent_class; + + /* Signals */ + void (*group_changed) (GtkRadioButton *radio_button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_radio_button_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_radio_button_new (GSList *group); +GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member); +GtkWidget* gtk_radio_button_new_with_label (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *radio_group_member, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_mnemonic (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *radio_group_member, + const gchar *label); +GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button); +void gtk_radio_button_set_group (GtkRadioButton *radio_button, + GSList *group); +void gtk_radio_button_join_group (GtkRadioButton *radio_button, + GtkRadioButton *group_source); +G_END_DECLS + +#endif /* __GTK_RADIO_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkradiomenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiomenuitem.h new file mode 100644 index 0000000..e9e36a5 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiomenuitem.h @@ -0,0 +1,91 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RADIO_MENU_ITEM_H__ +#define __GTK_RADIO_MENU_ITEM_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_MENU_ITEM (gtk_radio_menu_item_get_type ()) +#define GTK_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItem)) +#define GTK_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) +#define GTK_IS_RADIO_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_MENU_ITEM)) +#define GTK_IS_RADIO_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_MENU_ITEM)) +#define GTK_RADIO_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RADIO_MENU_ITEM, GtkRadioMenuItemClass)) + + +typedef struct _GtkRadioMenuItem GtkRadioMenuItem; +typedef struct _GtkRadioMenuItemPrivate GtkRadioMenuItemPrivate; +typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass; + +struct _GtkRadioMenuItem +{ + GtkCheckMenuItem check_menu_item; + + /*< private >*/ + GtkRadioMenuItemPrivate *priv; +}; + +struct _GtkRadioMenuItemClass +{ + GtkCheckMenuItemClass parent_class; + + /* Signals */ + void (*group_changed) (GtkRadioMenuItem *radio_menu_item); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_radio_menu_item_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_radio_menu_item_new (GSList *group); +GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group, + const gchar *label); +GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group); +GtkWidget *gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GtkWidget *gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group, + const gchar *label); +GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item); +void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item, + GSList *group); + +G_END_DECLS + +#endif /* __GTK_RADIO_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkradiotoolbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiotoolbutton.h new file mode 100644 index 0000000..3c5e605 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkradiotoolbutton.h @@ -0,0 +1,72 @@ +/* gtkradiotoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RADIO_TOOL_BUTTON_H__ +#define __GTK_RADIO_TOOL_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RADIO_TOOL_BUTTON (gtk_radio_tool_button_get_type ()) +#define GTK_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButton)) +#define GTK_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) +#define GTK_IS_RADIO_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_TOOL_BUTTON)) +#define GTK_IS_RADIO_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RADIO_TOOL_BUTTON)) +#define GTK_RADIO_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_TOOL_BUTTON, GtkRadioToolButtonClass)) + +typedef struct _GtkRadioToolButton GtkRadioToolButton; +typedef struct _GtkRadioToolButtonClass GtkRadioToolButtonClass; + +struct _GtkRadioToolButton +{ + GtkToggleToolButton parent; +}; + +struct _GtkRadioToolButtonClass +{ + GtkToggleToolButtonClass parent_class; + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_radio_tool_button_get_type (void) G_GNUC_CONST; + +GtkToolItem *gtk_radio_tool_button_new (GSList *group); +GtkToolItem *gtk_radio_tool_button_new_from_stock (GSList *group, + const gchar *stock_id); +GtkToolItem *gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group); +GtkToolItem *gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group, + const gchar *stock_id); +GSList * gtk_radio_tool_button_get_group (GtkRadioToolButton *button); +void gtk_radio_tool_button_set_group (GtkRadioToolButton *button, + GSList *group); + +G_END_DECLS + +#endif /* __GTK_RADIO_TOOL_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrange.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrange.h new file mode 100644 index 0000000..99bbb7d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrange.h @@ -0,0 +1,167 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RANGE_H__ +#define __GTK_RANGE_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_RANGE (gtk_range_get_type ()) +#define GTK_RANGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RANGE, GtkRange)) +#define GTK_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RANGE, GtkRangeClass)) +#define GTK_IS_RANGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RANGE)) +#define GTK_IS_RANGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RANGE)) +#define GTK_RANGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RANGE, GtkRangeClass)) + +typedef struct _GtkRange GtkRange; +typedef struct _GtkRangePrivate GtkRangePrivate; +typedef struct _GtkRangeClass GtkRangeClass; + +struct _GtkRange +{ + GtkWidget widget; + + GtkRangePrivate *priv; +}; + +struct _GtkRangeClass +{ + GtkWidgetClass parent_class; + + /* what detail to pass to GTK drawing functions */ + gchar *slider_detail; + gchar *stepper_detail; + + void (* value_changed) (GtkRange *range); + void (* adjust_bounds) (GtkRange *range, + gdouble new_value); + + /* action signals for keybindings */ + void (* move_slider) (GtkRange *range, + GtkScrollType scroll); + + /* Virtual functions */ + void (* get_range_border) (GtkRange *range, + GtkBorder *border_); + + gboolean (* change_value) (GtkRange *range, + GtkScrollType scroll, + gdouble new_value); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_range_get_type (void) G_GNUC_CONST; + +void gtk_range_set_adjustment (GtkRange *range, + GtkAdjustment *adjustment); +GtkAdjustment* gtk_range_get_adjustment (GtkRange *range); + +void gtk_range_set_inverted (GtkRange *range, + gboolean setting); +gboolean gtk_range_get_inverted (GtkRange *range); + +void gtk_range_set_flippable (GtkRange *range, + gboolean flippable); +gboolean gtk_range_get_flippable (GtkRange *range); + +void gtk_range_set_slider_size_fixed (GtkRange *range, + gboolean size_fixed); +gboolean gtk_range_get_slider_size_fixed (GtkRange *range); + +void gtk_range_set_min_slider_size (GtkRange *range, + gint min_size); +gint gtk_range_get_min_slider_size (GtkRange *range); + +void gtk_range_get_range_rect (GtkRange *range, + GdkRectangle *range_rect); +void gtk_range_get_slider_range (GtkRange *range, + gint *slider_start, + gint *slider_end); + +void gtk_range_set_lower_stepper_sensitivity (GtkRange *range, + GtkSensitivityType sensitivity); +GtkSensitivityType gtk_range_get_lower_stepper_sensitivity (GtkRange *range); +void gtk_range_set_upper_stepper_sensitivity (GtkRange *range, + GtkSensitivityType sensitivity); +GtkSensitivityType gtk_range_get_upper_stepper_sensitivity (GtkRange *range); + +void gtk_range_set_increments (GtkRange *range, + gdouble step, + gdouble page); +void gtk_range_set_range (GtkRange *range, + gdouble min, + gdouble max); +void gtk_range_set_value (GtkRange *range, + gdouble value); +gdouble gtk_range_get_value (GtkRange *range); + +void gtk_range_set_show_fill_level (GtkRange *range, + gboolean show_fill_level); +gboolean gtk_range_get_show_fill_level (GtkRange *range); +void gtk_range_set_restrict_to_fill_level (GtkRange *range, + gboolean restrict_to_fill_level); +gboolean gtk_range_get_restrict_to_fill_level (GtkRange *range); +void gtk_range_set_fill_level (GtkRange *range, + gdouble fill_level); +gdouble gtk_range_get_fill_level (GtkRange *range); +void gtk_range_set_round_digits (GtkRange *range, + gint round_digits); +gint gtk_range_get_round_digits (GtkRange *range); + +/* internal API */ +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkEventScroll *event); +void _gtk_range_set_has_origin (GtkRange *range, + gboolean has_origin); +gboolean _gtk_range_get_has_origin (GtkRange *range); +void _gtk_range_set_stop_values (GtkRange *range, + gdouble *values, + gint n_values); +gint _gtk_range_get_stop_positions (GtkRange *range, + gint **values); +void _gtk_range_set_steppers (GtkRange *range, + gboolean has_a, + gboolean has_b, + gboolean has_c, + gboolean has_d); + +G_END_DECLS + + +#endif /* __GTK_RANGE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentaction.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentaction.h new file mode 100644 index 0000000..016b587 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentaction.h @@ -0,0 +1,78 @@ +/* GTK - The GIMP Toolkit + * Recent chooser action for GtkUIManager + * + * Copyright (C) 2007, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_ACTION_H__ +#define __GTK_RECENT_ACTION_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_ACTION (gtk_recent_action_get_type ()) +#define GTK_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentAction)) +#define GTK_IS_RECENT_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_ACTION)) +#define GTK_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass)) +#define GTK_IS_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_ACTION)) +#define GTK_RECENT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_ACTION, GtkRecentActionClass)) + +typedef struct _GtkRecentAction GtkRecentAction; +typedef struct _GtkRecentActionPrivate GtkRecentActionPrivate; +typedef struct _GtkRecentActionClass GtkRecentActionClass; + +struct _GtkRecentAction +{ + GtkAction parent_instance; + + /*< private >*/ + GtkRecentActionPrivate *priv; +}; + +struct _GtkRecentActionClass +{ + GtkActionClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_recent_action_get_type (void) G_GNUC_CONST; +GtkAction *gtk_recent_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +GtkAction *gtk_recent_action_new_for_manager (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id, + GtkRecentManager *manager); +gboolean gtk_recent_action_get_show_numbers (GtkRecentAction *action); +void gtk_recent_action_set_show_numbers (GtkRecentAction *action, + gboolean show_numbers); + +G_END_DECLS + +#endif /* __GTK_RECENT_ACTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooser.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooser.h new file mode 100644 index 0000000..ae222c6 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooser.h @@ -0,0 +1,203 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooser.h - Abstract interface for recent file selectors GUIs + * + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_CHOOSER_H__ +#define __GTK_RECENT_CHOOSER_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER (gtk_recent_chooser_get_type ()) +#define GTK_RECENT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER, GtkRecentChooser)) +#define GTK_IS_RECENT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER)) +#define GTK_RECENT_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_RECENT_CHOOSER, GtkRecentChooserIface)) + +/** + * GtkRecentSortType: + * @GTK_RECENT_SORT_NONE: Do not sort the returned list of recently used + * resources. + * @GTK_RECENT_SORT_MRU: Sort the returned list with the most recently used + * items first. + * @GTK_RECENT_SORT_LRU: Sort the returned list with the least recently used + * items first. + * @GTK_RECENT_SORT_CUSTOM: Sort the returned list using a custom sorting + * function passed using gtk_recent_manager_set_sort_func(). + * + * Used to specify the sorting method to be applyed to the recently + * used resource list. + * + * Since: 2.10 + */ +typedef enum +{ + GTK_RECENT_SORT_NONE = 0, + GTK_RECENT_SORT_MRU, + GTK_RECENT_SORT_LRU, + GTK_RECENT_SORT_CUSTOM +} GtkRecentSortType; + +typedef gint (*GtkRecentSortFunc) (GtkRecentInfo *a, + GtkRecentInfo *b, + gpointer user_data); + + +typedef struct _GtkRecentChooser GtkRecentChooser; /* dummy */ +typedef struct _GtkRecentChooserIface GtkRecentChooserIface; + +/** + * GTK_RECENT_CHOOSER_ERROR: + * + * Used to get the #GError quark for #GtkRecentChooser errors. + * + * Since: 2.10 + */ +#define GTK_RECENT_CHOOSER_ERROR (gtk_recent_chooser_error_quark ()) + +/** + * GtkRecentChooserError: + * @GTK_RECENT_CHOOSER_ERROR_NOT_FOUND: Indicates that a file does not exist + * @GTK_RECENT_CHOOSER_ERROR_INVALID_URI: Indicates a malformed URI + * + * These identify the various errors that can occur while calling + * #GtkRecentChooser functions. + * + * Since: 2.10 + */ +typedef enum +{ + GTK_RECENT_CHOOSER_ERROR_NOT_FOUND, + GTK_RECENT_CHOOSER_ERROR_INVALID_URI +} GtkRecentChooserError; + +GQuark gtk_recent_chooser_error_quark (void); + + +struct _GtkRecentChooserIface +{ + GTypeInterface base_iface; + + /* + * Methods + */ + gboolean (* set_current_uri) (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); + gchar * (* get_current_uri) (GtkRecentChooser *chooser); + gboolean (* select_uri) (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); + void (* unselect_uri) (GtkRecentChooser *chooser, + const gchar *uri); + void (* select_all) (GtkRecentChooser *chooser); + void (* unselect_all) (GtkRecentChooser *chooser); + GList * (* get_items) (GtkRecentChooser *chooser); + GtkRecentManager *(* get_recent_manager) (GtkRecentChooser *chooser); + void (* add_filter) (GtkRecentChooser *chooser, + GtkRecentFilter *filter); + void (* remove_filter) (GtkRecentChooser *chooser, + GtkRecentFilter *filter); + GSList * (* list_filters) (GtkRecentChooser *chooser); + void (* set_sort_func) (GtkRecentChooser *chooser, + GtkRecentSortFunc sort_func, + gpointer sort_data, + GDestroyNotify data_destroy); + + /* + * Signals + */ + void (* item_activated) (GtkRecentChooser *chooser); + void (* selection_changed) (GtkRecentChooser *chooser); +}; + +GType gtk_recent_chooser_get_type (void) G_GNUC_CONST; + +/* + * Configuration + */ +void gtk_recent_chooser_set_show_private (GtkRecentChooser *chooser, + gboolean show_private); +gboolean gtk_recent_chooser_get_show_private (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_show_not_found (GtkRecentChooser *chooser, + gboolean show_not_found); +gboolean gtk_recent_chooser_get_show_not_found (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_select_multiple (GtkRecentChooser *chooser, + gboolean select_multiple); +gboolean gtk_recent_chooser_get_select_multiple (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_limit (GtkRecentChooser *chooser, + gint limit); +gint gtk_recent_chooser_get_limit (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_local_only (GtkRecentChooser *chooser, + gboolean local_only); +gboolean gtk_recent_chooser_get_local_only (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_show_tips (GtkRecentChooser *chooser, + gboolean show_tips); +gboolean gtk_recent_chooser_get_show_tips (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_show_icons (GtkRecentChooser *chooser, + gboolean show_icons); +gboolean gtk_recent_chooser_get_show_icons (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_sort_type (GtkRecentChooser *chooser, + GtkRecentSortType sort_type); +GtkRecentSortType gtk_recent_chooser_get_sort_type (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_sort_func (GtkRecentChooser *chooser, + GtkRecentSortFunc sort_func, + gpointer sort_data, + GDestroyNotify data_destroy); + +/* + * Items handling + */ +gboolean gtk_recent_chooser_set_current_uri (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); +gchar * gtk_recent_chooser_get_current_uri (GtkRecentChooser *chooser); +GtkRecentInfo *gtk_recent_chooser_get_current_item (GtkRecentChooser *chooser); +gboolean gtk_recent_chooser_select_uri (GtkRecentChooser *chooser, + const gchar *uri, + GError **error); +void gtk_recent_chooser_unselect_uri (GtkRecentChooser *chooser, + const gchar *uri); +void gtk_recent_chooser_select_all (GtkRecentChooser *chooser); +void gtk_recent_chooser_unselect_all (GtkRecentChooser *chooser); +GList * gtk_recent_chooser_get_items (GtkRecentChooser *chooser); +gchar ** gtk_recent_chooser_get_uris (GtkRecentChooser *chooser, + gsize *length); + +/* + * Filters + */ +void gtk_recent_chooser_add_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +void gtk_recent_chooser_remove_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +GSList * gtk_recent_chooser_list_filters (GtkRecentChooser *chooser); +void gtk_recent_chooser_set_filter (GtkRecentChooser *chooser, + GtkRecentFilter *filter); +GtkRecentFilter *gtk_recent_chooser_get_filter (GtkRecentChooser *chooser); + + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserdialog.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserdialog.h new file mode 100644 index 0000000..5d950b5 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserdialog.h @@ -0,0 +1,78 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooserdialog.h: Recent files selector dialog + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_CHOOSER_DIALOG_H__ +#define __GTK_RECENT_CHOOSER_DIALOG_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_DIALOG (gtk_recent_chooser_dialog_get_type ()) +#define GTK_RECENT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialog)) +#define GTK_IS_RECENT_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG)) +#define GTK_RECENT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialogClass)) +#define GTK_IS_RECENT_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_DIALOG)) +#define GTK_RECENT_CHOOSER_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_DIALOG, GtkRecentChooserDialogClass)) + +typedef struct _GtkRecentChooserDialog GtkRecentChooserDialog; +typedef struct _GtkRecentChooserDialogClass GtkRecentChooserDialogClass; + +typedef struct _GtkRecentChooserDialogPrivate GtkRecentChooserDialogPrivate; + + +struct _GtkRecentChooserDialog +{ + GtkDialog parent_instance; + + /*< private >*/ + GtkRecentChooserDialogPrivate *priv; +}; + +struct _GtkRecentChooserDialogClass +{ + GtkDialogClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_recent_chooser_dialog_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_recent_chooser_dialog_new (const gchar *title, + GtkWindow *parent, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; +GtkWidget *gtk_recent_chooser_dialog_new_for_manager (const gchar *title, + GtkWindow *parent, + GtkRecentManager *manager, + const gchar *first_button_text, + ...) G_GNUC_NULL_TERMINATED; + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_DIALOG_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchoosermenu.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchoosermenu.h new file mode 100644 index 0000000..b2a0277 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchoosermenu.h @@ -0,0 +1,72 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchoosermenu.h - Recently used items menu widget + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_CHOOSER_MENU_H__ +#define __GTK_RECENT_CHOOSER_MENU_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_MENU (gtk_recent_chooser_menu_get_type ()) +#define GTK_RECENT_CHOOSER_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenu)) +#define GTK_IS_RECENT_CHOOSER_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_MENU)) +#define GTK_RECENT_CHOOSER_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuClass)) +#define GTK_IS_RECENT_CHOOSER_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_MENU)) +#define GTK_RECENT_CHOOSER_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuClass)) + +typedef struct _GtkRecentChooserMenu GtkRecentChooserMenu; +typedef struct _GtkRecentChooserMenuClass GtkRecentChooserMenuClass; +typedef struct _GtkRecentChooserMenuPrivate GtkRecentChooserMenuPrivate; + +struct _GtkRecentChooserMenu +{ + GtkMenu parent_instance; + + /*< private >*/ + GtkRecentChooserMenuPrivate *priv; +}; + +struct _GtkRecentChooserMenuClass +{ + GtkMenuClass parent_class; + + /* padding for future expansion */ + void (* gtk_recent1) (void); + void (* gtk_recent2) (void); + void (* gtk_recent3) (void); + void (* gtk_recent4) (void); +}; + +GType gtk_recent_chooser_menu_get_type (void) G_GNUC_CONST; + +GtkWidget *gtk_recent_chooser_menu_new (void); +GtkWidget *gtk_recent_chooser_menu_new_for_manager (GtkRecentManager *manager); + +gboolean gtk_recent_chooser_menu_get_show_numbers (GtkRecentChooserMenu *menu); +void gtk_recent_chooser_menu_set_show_numbers (GtkRecentChooserMenu *menu, + gboolean show_numbers); + +G_END_DECLS + +#endif /* ! __GTK_RECENT_CHOOSER_MENU_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserwidget.h new file mode 100644 index 0000000..18a4042 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentchooserwidget.h @@ -0,0 +1,68 @@ +/* GTK - The GIMP Toolkit + * gtkrecentchooserwidget.h: embeddable recently used resources chooser widget + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_CHOOSER_WIDGET_H__ +#define __GTK_RECENT_CHOOSER_WIDGET_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_CHOOSER_WIDGET (gtk_recent_chooser_widget_get_type ()) +#define GTK_RECENT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidget)) +#define GTK_IS_RECENT_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET)) +#define GTK_RECENT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidgetClass)) +#define GTK_IS_RECENT_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_CHOOSER_WIDGET)) +#define GTK_RECENT_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_CHOOSER_WIDGET, GtkRecentChooserWidgetClass)) + +typedef struct _GtkRecentChooserWidget GtkRecentChooserWidget; +typedef struct _GtkRecentChooserWidgetClass GtkRecentChooserWidgetClass; + +typedef struct _GtkRecentChooserWidgetPrivate GtkRecentChooserWidgetPrivate; + +struct _GtkRecentChooserWidget +{ + GtkBox parent_instance; + + /*< private >*/ + GtkRecentChooserWidgetPrivate *priv; +}; + +struct _GtkRecentChooserWidgetClass +{ + GtkBoxClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_recent_chooser_widget_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_recent_chooser_widget_new (void); +GtkWidget *gtk_recent_chooser_widget_new_for_manager (GtkRecentManager *manager); + +G_END_DECLS + +#endif /* __GTK_RECENT_CHOOSER_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentfilter.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentfilter.h new file mode 100644 index 0000000..4f19c9b --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentfilter.h @@ -0,0 +1,125 @@ +/* GTK - The GIMP Toolkit + * gtkrecentfilter.h - Filter object for recently used resources + * Copyright (C) 2006, Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_FILTER_H__ +#define __GTK_RECENT_FILTER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_FILTER (gtk_recent_filter_get_type ()) +#define GTK_RECENT_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_FILTER, GtkRecentFilter)) +#define GTK_IS_RECENT_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_FILTER)) + +typedef struct _GtkRecentFilter GtkRecentFilter; +typedef struct _GtkRecentFilterInfo GtkRecentFilterInfo; + +/** + * GtkRecentFilterFlags: + * @GTK_RECENT_FILTER_URI: the URI of the file being tested + * @GTK_RECENT_FILTER_DISPLAY_NAME: the string that will be used to + * display the file in the recent chooser + * @GTK_RECENT_FILTER_MIME_TYPE: the mime type of the file + * @GTK_RECENT_FILTER_APPLICATION: the list of applications that have + * registered the file + * @GTK_RECENT_FILTER_GROUP: the groups to which the file belongs to + * @GTK_RECENT_FILTER_AGE: the number of days elapsed since the file + * has been registered + * + * These flags indicate what parts of a #GtkRecentFilterInfo struct + * are filled or need to be filled. + */ +typedef enum { + GTK_RECENT_FILTER_URI = 1 << 0, + GTK_RECENT_FILTER_DISPLAY_NAME = 1 << 1, + GTK_RECENT_FILTER_MIME_TYPE = 1 << 2, + GTK_RECENT_FILTER_APPLICATION = 1 << 3, + GTK_RECENT_FILTER_GROUP = 1 << 4, + GTK_RECENT_FILTER_AGE = 1 << 5 +} GtkRecentFilterFlags; + +/** + * GtkRecentFilterFunc: + * @filter_info: a #GtkRecentFilterInfo that is filled according + * to the @needed flags passed to gtk_recent_filter_add_custom() + * @user_data: user data passed to gtk_recent_filter_add_custom() + * + * The type of function that is used with custom filters, + * see gtk_recent_filter_add_custom(). + * + * Return value: %TRUE if the file should be displayed + */ +typedef gboolean (*GtkRecentFilterFunc) (const GtkRecentFilterInfo *filter_info, + gpointer user_data); + + +/** + * GtkRecentFilterInfo: + * + * A GtkRecentFilterInfo struct is used + * to pass information about the tested file to gtk_recent_filter_filter(). + */ +struct _GtkRecentFilterInfo +{ + GtkRecentFilterFlags contains; + + const gchar *uri; + const gchar *display_name; + const gchar *mime_type; + const gchar **applications; + const gchar **groups; + + gint age; +}; + +GType gtk_recent_filter_get_type (void) G_GNUC_CONST; + +GtkRecentFilter * gtk_recent_filter_new (void); +void gtk_recent_filter_set_name (GtkRecentFilter *filter, + const gchar *name); +const gchar * gtk_recent_filter_get_name (GtkRecentFilter *filter); + +void gtk_recent_filter_add_mime_type (GtkRecentFilter *filter, + const gchar *mime_type); +void gtk_recent_filter_add_pattern (GtkRecentFilter *filter, + const gchar *pattern); +void gtk_recent_filter_add_pixbuf_formats (GtkRecentFilter *filter); +void gtk_recent_filter_add_application (GtkRecentFilter *filter, + const gchar *application); +void gtk_recent_filter_add_group (GtkRecentFilter *filter, + const gchar *group); +void gtk_recent_filter_add_age (GtkRecentFilter *filter, + gint days); +void gtk_recent_filter_add_custom (GtkRecentFilter *filter, + GtkRecentFilterFlags needed, + GtkRecentFilterFunc func, + gpointer data, + GDestroyNotify data_destroy); + +GtkRecentFilterFlags gtk_recent_filter_get_needed (GtkRecentFilter *filter); +gboolean gtk_recent_filter_filter (GtkRecentFilter *filter, + const GtkRecentFilterInfo *filter_info); + +G_END_DECLS + +#endif /* ! __GTK_RECENT_FILTER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentmanager.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentmanager.h new file mode 100644 index 0000000..893a835 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkrecentmanager.h @@ -0,0 +1,234 @@ +/* GTK - The GIMP Toolkit + * gtkrecentmanager.h: a manager for the recently used resources + * + * Copyright (C) 2006 Emmanuele Bassi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_RECENT_MANAGER_H__ +#define __GTK_RECENT_MANAGER_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_RECENT_INFO (gtk_recent_info_get_type ()) + +#define GTK_TYPE_RECENT_MANAGER (gtk_recent_manager_get_type ()) +#define GTK_RECENT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManager)) +#define GTK_IS_RECENT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_MANAGER)) +#define GTK_RECENT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass)) +#define GTK_IS_RECENT_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_MANAGER)) +#define GTK_RECENT_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass)) + +typedef struct _GtkRecentInfo GtkRecentInfo; +typedef struct _GtkRecentData GtkRecentData; +typedef struct _GtkRecentManager GtkRecentManager; +typedef struct _GtkRecentManagerClass GtkRecentManagerClass; +typedef struct _GtkRecentManagerPrivate GtkRecentManagerPrivate; + +/** + * GtkRecentData: + * @display_name: a UTF-8 encoded string, containing the name of the recently + * used resource to be displayed, or %NULL; + * @description: a UTF-8 encoded string, containing a short description of + * the resource, or %NULL; + * @mime_type: the MIME type of the resource; + * @app_name: the name of the application that is registering this recently + * used resource; + * @app_exec: command line used to launch this resource; may contain the + * "%f" and "%u" escape characters which will be expanded + * to the resource file path and URI respectively when the command line + * is retrieved; + * @groups: a vector of strings containing groups names; + * @is_private: whether this resource should be displayed only by the + * applications that have registered it or not. + * + * Meta-data to be passed to gtk_recent_manager_add_full() when + * registering a recently used resource. + **/ +struct _GtkRecentData +{ + gchar *display_name; + gchar *description; + + gchar *mime_type; + + gchar *app_name; + gchar *app_exec; + + gchar **groups; + + gboolean is_private; +}; + +/** + * GtkRecentManager: + * + * #GtkRecentManager contains only private data + * and should be accessed using the provided API. + * + * Since: 2.10 + */ +struct _GtkRecentManager +{ + /*< private >*/ + GObject parent_instance; + + GtkRecentManagerPrivate *priv; +}; + +/** + * GtkRecentManagerClass: + * + * #GtkRecentManagerClass contains only private data. + * + * Since: 2.10 + */ +struct _GtkRecentManagerClass +{ + /*< private >*/ + GObjectClass parent_class; + + void (*changed) (GtkRecentManager *manager); + + /* padding for future expansion */ + void (*_gtk_recent1) (void); + void (*_gtk_recent2) (void); + void (*_gtk_recent3) (void); + void (*_gtk_recent4) (void); +}; + +/** + * GtkRecentManagerError: + * @GTK_RECENT_MANAGER_ERROR_NOT_FOUND: the URI specified does not exists in + * the recently used resources list. + * @GTK_RECENT_MANAGER_ERROR_INVALID_URI: the URI specified is not valid. + * @GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING: the supplied string is not + * UTF-8 encoded. + * @GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED: no application has registered + * the specified item. + * @GTK_RECENT_MANAGER_ERROR_READ: failure while reading the recently used + * resources file. + * @GTK_RECENT_MANAGER_ERROR_WRITE: failure while writing the recently used + * resources file. + * @GTK_RECENT_MANAGER_ERROR_UNKNOWN: unspecified error. + * + * Error codes for #GtkRecentManager operations + * + * Since: 2.10 + */ +typedef enum +{ + GTK_RECENT_MANAGER_ERROR_NOT_FOUND, + GTK_RECENT_MANAGER_ERROR_INVALID_URI, + GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING, + GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED, + GTK_RECENT_MANAGER_ERROR_READ, + GTK_RECENT_MANAGER_ERROR_WRITE, + GTK_RECENT_MANAGER_ERROR_UNKNOWN +} GtkRecentManagerError; + +/** + * GTK_RECENT_MANAGER_ERROR: + * + * The #GError domain for #GtkRecentManager errors. + * + * Since: 2.10 + */ +#define GTK_RECENT_MANAGER_ERROR (gtk_recent_manager_error_quark ()) +GQuark gtk_recent_manager_error_quark (void); + + +GType gtk_recent_manager_get_type (void) G_GNUC_CONST; + +GtkRecentManager *gtk_recent_manager_new (void); +GtkRecentManager *gtk_recent_manager_get_default (void); + +gboolean gtk_recent_manager_add_item (GtkRecentManager *manager, + const gchar *uri); +gboolean gtk_recent_manager_add_full (GtkRecentManager *manager, + const gchar *uri, + const GtkRecentData *recent_data); +gboolean gtk_recent_manager_remove_item (GtkRecentManager *manager, + const gchar *uri, + GError **error); +GtkRecentInfo * gtk_recent_manager_lookup_item (GtkRecentManager *manager, + const gchar *uri, + GError **error); +gboolean gtk_recent_manager_has_item (GtkRecentManager *manager, + const gchar *uri); +gboolean gtk_recent_manager_move_item (GtkRecentManager *manager, + const gchar *uri, + const gchar *new_uri, + GError **error); +GList * gtk_recent_manager_get_items (GtkRecentManager *manager); +gint gtk_recent_manager_purge_items (GtkRecentManager *manager, + GError **error); + + +GType gtk_recent_info_get_type (void) G_GNUC_CONST; + +GtkRecentInfo * gtk_recent_info_ref (GtkRecentInfo *info); +void gtk_recent_info_unref (GtkRecentInfo *info); + +const gchar * gtk_recent_info_get_uri (GtkRecentInfo *info); +const gchar * gtk_recent_info_get_display_name (GtkRecentInfo *info); +const gchar * gtk_recent_info_get_description (GtkRecentInfo *info); +const gchar * gtk_recent_info_get_mime_type (GtkRecentInfo *info); +time_t gtk_recent_info_get_added (GtkRecentInfo *info); +time_t gtk_recent_info_get_modified (GtkRecentInfo *info); +time_t gtk_recent_info_get_visited (GtkRecentInfo *info); +gboolean gtk_recent_info_get_private_hint (GtkRecentInfo *info); +gboolean gtk_recent_info_get_application_info (GtkRecentInfo *info, + const gchar *app_name, + const gchar **app_exec, + guint *count, + time_t *time_); +GAppInfo * gtk_recent_info_create_app_info (GtkRecentInfo *info, + const gchar *app_name, + GError **error); +gchar ** gtk_recent_info_get_applications (GtkRecentInfo *info, + gsize *length) G_GNUC_MALLOC; +gchar * gtk_recent_info_last_application (GtkRecentInfo *info) G_GNUC_MALLOC; +gboolean gtk_recent_info_has_application (GtkRecentInfo *info, + const gchar *app_name); +gchar ** gtk_recent_info_get_groups (GtkRecentInfo *info, + gsize *length) G_GNUC_MALLOC; +gboolean gtk_recent_info_has_group (GtkRecentInfo *info, + const gchar *group_name); +GdkPixbuf * gtk_recent_info_get_icon (GtkRecentInfo *info, + gint size); +GIcon * gtk_recent_info_get_gicon (GtkRecentInfo *info); +gchar * gtk_recent_info_get_short_name (GtkRecentInfo *info) G_GNUC_MALLOC; +gchar * gtk_recent_info_get_uri_display (GtkRecentInfo *info) G_GNUC_MALLOC; +gint gtk_recent_info_get_age (GtkRecentInfo *info); +gboolean gtk_recent_info_is_local (GtkRecentInfo *info); +gboolean gtk_recent_info_exists (GtkRecentInfo *info); +gboolean gtk_recent_info_match (GtkRecentInfo *info_a, + GtkRecentInfo *info_b); + +/* private */ +void _gtk_recent_manager_sync (void); + +G_END_DECLS + +#endif /* __GTK_RECENT_MANAGER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkscale.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkscale.h new file mode 100644 index 0000000..51202e3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkscale.h @@ -0,0 +1,114 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SCALE_H__ +#define __GTK_SCALE_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_SCALE (gtk_scale_get_type ()) +#define GTK_SCALE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCALE, GtkScale)) +#define GTK_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE, GtkScaleClass)) +#define GTK_IS_SCALE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCALE)) +#define GTK_IS_SCALE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE)) +#define GTK_SCALE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCALE, GtkScaleClass)) + + +typedef struct _GtkScale GtkScale; +typedef struct _GtkScalePrivate GtkScalePrivate; +typedef struct _GtkScaleClass GtkScaleClass; + +struct _GtkScale +{ + GtkRange range; + + /*< private >*/ + GtkScalePrivate *priv; +}; + +struct _GtkScaleClass +{ + GtkRangeClass parent_class; + + gchar* (* format_value) (GtkScale *scale, + gdouble value); + + void (* draw_value) (GtkScale *scale); + + void (* get_layout_offsets) (GtkScale *scale, + gint *x, + gint *y); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_scale_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_scale_new (GtkOrientation orientation, + GtkAdjustment *adjustment); +GtkWidget * gtk_scale_new_with_range (GtkOrientation orientation, + gdouble min, + gdouble max, + gdouble step); +void gtk_scale_set_digits (GtkScale *scale, + gint digits); +gint gtk_scale_get_digits (GtkScale *scale); +void gtk_scale_set_draw_value (GtkScale *scale, + gboolean draw_value); +gboolean gtk_scale_get_draw_value (GtkScale *scale); +GDK_AVAILABLE_IN_3_4 +void gtk_scale_set_has_origin (GtkScale *scale, + gboolean has_origin); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_scale_get_has_origin (GtkScale *scale); +void gtk_scale_set_value_pos (GtkScale *scale, + GtkPositionType pos); +GtkPositionType gtk_scale_get_value_pos (GtkScale *scale); + +PangoLayout * gtk_scale_get_layout (GtkScale *scale); +void gtk_scale_get_layout_offsets (GtkScale *scale, + gint *x, + gint *y); + +void gtk_scale_add_mark (GtkScale *scale, + gdouble value, + GtkPositionType position, + const gchar *markup); +void gtk_scale_clear_marks (GtkScale *scale); + + +G_END_DECLS + +#endif /* __GTK_SCALE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkscalebutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkscalebutton.h new file mode 100644 index 0000000..4ba4dc9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkscalebutton.h @@ -0,0 +1,99 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2005 Ronald S. Bultje + * Copyright (C) 2006, 2007 Christian Persch + * Copyright (C) 2006 Jan Arne Petersen + * Copyright (C) 2007 Red Hat, Inc. + * + * Authors: + * - Ronald S. Bultje + * - Bastien Nocera + * - Jan Arne Petersen + * - Christian Persch + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 2007. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SCALE_BUTTON_H__ +#define __GTK_SCALE_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SCALE_BUTTON (gtk_scale_button_get_type ()) +#define GTK_SCALE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCALE_BUTTON, GtkScaleButton)) +#define GTK_SCALE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE_BUTTON, GtkScaleButtonClass)) +#define GTK_IS_SCALE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCALE_BUTTON)) +#define GTK_IS_SCALE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE_BUTTON)) +#define GTK_SCALE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCALE_BUTTON, GtkScaleButtonClass)) + +typedef struct _GtkScaleButton GtkScaleButton; +typedef struct _GtkScaleButtonClass GtkScaleButtonClass; +typedef struct _GtkScaleButtonPrivate GtkScaleButtonPrivate; + +struct _GtkScaleButton +{ + GtkButton parent; + + /*< private >*/ + GtkScaleButtonPrivate *priv; +}; + +struct _GtkScaleButtonClass +{ + GtkButtonClass parent_class; + + /* signals */ + void (* value_changed) (GtkScaleButton *button, + gdouble value); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_scale_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_scale_button_new (GtkIconSize size, + gdouble min, + gdouble max, + gdouble step, + const gchar **icons); +void gtk_scale_button_set_icons (GtkScaleButton *button, + const gchar **icons); +gdouble gtk_scale_button_get_value (GtkScaleButton *button); +void gtk_scale_button_set_value (GtkScaleButton *button, + gdouble value); +GtkAdjustment * gtk_scale_button_get_adjustment (GtkScaleButton *button); +void gtk_scale_button_set_adjustment (GtkScaleButton *button, + GtkAdjustment *adjustment); +GtkWidget * gtk_scale_button_get_plus_button (GtkScaleButton *button); +GtkWidget * gtk_scale_button_get_minus_button (GtkScaleButton *button); +GtkWidget * gtk_scale_button_get_popup (GtkScaleButton *button); + +G_END_DECLS + +#endif /* __GTK_SCALE_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollable.h new file mode 100644 index 0000000..ba68e90 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollable.h @@ -0,0 +1,60 @@ +/* gtkscrollable.h + * Copyright (C) 2008 Tadej Borovšak + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SCROLLABLE_H__ +#define __GTK_SCROLLABLE_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SCROLLABLE (gtk_scrollable_get_type ()) +#define GTK_SCROLLABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLABLE, GtkScrollable)) +#define GTK_IS_SCROLLABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLABLE)) +#define GTK_SCROLLABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_SCROLLABLE, GtkScrollableInterface)) + +typedef struct _GtkScrollable GtkScrollable; /* Dummy */ +typedef struct _GtkScrollableInterface GtkScrollableInterface; + +struct _GtkScrollableInterface +{ + GTypeInterface base_iface; +}; + +/* Public API */ +GType gtk_scrollable_get_type (void) G_GNUC_CONST; +GtkAdjustment *gtk_scrollable_get_hadjustment (GtkScrollable *scrollable); +void gtk_scrollable_set_hadjustment (GtkScrollable *scrollable, + GtkAdjustment *hadjustment); +GtkAdjustment *gtk_scrollable_get_vadjustment (GtkScrollable *scrollable); +void gtk_scrollable_set_vadjustment (GtkScrollable *scrollable, + GtkAdjustment *vadjustment); +GtkScrollablePolicy gtk_scrollable_get_hscroll_policy (GtkScrollable *scrollable); +void gtk_scrollable_set_hscroll_policy (GtkScrollable *scrollable, + GtkScrollablePolicy policy); +GtkScrollablePolicy gtk_scrollable_get_vscroll_policy (GtkScrollable *scrollable); +void gtk_scrollable_set_vscroll_policy (GtkScrollable *scrollable, + GtkScrollablePolicy policy); + +G_END_DECLS + +#endif /* __GTK_SCROLLABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollbar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollbar.h new file mode 100644 index 0000000..51fee71 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrollbar.h @@ -0,0 +1,72 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SCROLLBAR_H__ +#define __GTK_SCROLLBAR_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_SCROLLBAR (gtk_scrollbar_get_type ()) +#define GTK_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbar)) +#define GTK_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) +#define GTK_IS_SCROLLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLBAR)) +#define GTK_IS_SCROLLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLBAR)) +#define GTK_SCROLLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLBAR, GtkScrollbarClass)) + + +typedef struct _GtkScrollbar GtkScrollbar; +typedef struct _GtkScrollbarClass GtkScrollbarClass; + +struct _GtkScrollbar +{ + GtkRange range; +}; + +struct _GtkScrollbarClass +{ + GtkRangeClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_scrollbar_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_scrollbar_new (GtkOrientation orientation, + GtkAdjustment *adjustment); + +G_END_DECLS + +#endif /* __GTK_SCROLLBAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkscrolledwindow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrolledwindow.h new file mode 100644 index 0000000..780f198 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkscrolledwindow.h @@ -0,0 +1,136 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SCROLLED_WINDOW_H__ +#define __GTK_SCROLLED_WINDOW_H__ + +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_SCROLLED_WINDOW (gtk_scrolled_window_get_type ()) +#define GTK_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindow)) +#define GTK_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) +#define GTK_IS_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCROLLED_WINDOW)) +#define GTK_IS_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCROLLED_WINDOW)) +#define GTK_SCROLLED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCROLLED_WINDOW, GtkScrolledWindowClass)) + + +typedef struct _GtkScrolledWindow GtkScrolledWindow; +typedef struct _GtkScrolledWindowPrivate GtkScrolledWindowPrivate; +typedef struct _GtkScrolledWindowClass GtkScrolledWindowClass; + +struct _GtkScrolledWindow +{ + GtkBin container; + + GtkScrolledWindowPrivate *priv; +}; + +struct _GtkScrolledWindowClass +{ + GtkBinClass parent_class; + + gint scrollbar_spacing; + + /* Action signals for keybindings. Do not connect to these signals + */ + + /* Unfortunately, GtkScrollType is deficient in that there is + * no horizontal/vertical variants for GTK_SCROLL_START/END, + * so we have to add an additional boolean flag. + */ + gboolean (*scroll_child) (GtkScrolledWindow *scrolled_window, + GtkScrollType scroll, + gboolean horizontal); + + void (* move_focus_out) (GtkScrolledWindow *scrolled_window, + GtkDirectionType direction); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_scrolled_window_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); +void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window, + GtkAdjustment *hadjustment); +void gtk_scrolled_window_set_vadjustment (GtkScrolledWindow *scrolled_window, + GtkAdjustment *vadjustment); +GtkAdjustment* gtk_scrolled_window_get_hadjustment (GtkScrolledWindow *scrolled_window); +GtkAdjustment* gtk_scrolled_window_get_vadjustment (GtkScrolledWindow *scrolled_window); +GtkWidget* gtk_scrolled_window_get_hscrollbar (GtkScrolledWindow *scrolled_window); +GtkWidget* gtk_scrolled_window_get_vscrollbar (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_policy (GtkScrolledWindow *scrolled_window, + GtkPolicyType hscrollbar_policy, + GtkPolicyType vscrollbar_policy); +void gtk_scrolled_window_get_policy (GtkScrolledWindow *scrolled_window, + GtkPolicyType *hscrollbar_policy, + GtkPolicyType *vscrollbar_policy); +void gtk_scrolled_window_set_placement (GtkScrolledWindow *scrolled_window, + GtkCornerType window_placement); +void gtk_scrolled_window_unset_placement (GtkScrolledWindow *scrolled_window); + +GtkCornerType gtk_scrolled_window_get_placement (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_shadow_type (GtkScrolledWindow *scrolled_window, + GtkShadowType type); +GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window, + GtkWidget *child); + +gint gtk_scrolled_window_get_min_content_width (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_min_content_width (GtkScrolledWindow *scrolled_window, + gint width); +gint gtk_scrolled_window_get_min_content_height (GtkScrolledWindow *scrolled_window); +void gtk_scrolled_window_set_min_content_height (GtkScrolledWindow *scrolled_window, + gint height); +GDK_AVAILABLE_IN_3_4 +void gtk_scrolled_window_set_kinetic_scrolling (GtkScrolledWindow *scrolled_window, + gboolean kinetic_scrolling); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_scrolled_window_get_kinetic_scrolling (GtkScrolledWindow *scrolled_window); + +GDK_AVAILABLE_IN_3_4 +void gtk_scrolled_window_set_capture_button_press (GtkScrolledWindow *scrolled_window, + gboolean capture_button_press); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_scrolled_window_get_capture_button_press (GtkScrolledWindow *scrolled_window); + +gint _gtk_scrolled_window_get_scrollbar_spacing (GtkScrolledWindow *scrolled_window); + + +G_END_DECLS + + +#endif /* __GTK_SCROLLED_WINDOW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkselection.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkselection.h new file mode 100644 index 0000000..402a0dc --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkselection.h @@ -0,0 +1,192 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SELECTION_H__ +#define __GTK_SELECTION_H__ + +#include +#include + +G_BEGIN_DECLS + +/** + * GtkTargetList: + * + * A #GtkTargetList structure is a reference counted list + * of #GtkTargetPair. It is used to represent the same + * information as a table of #GtkTargetEntry, but in + * an efficient form. This structure should be treated as + * opaque. + */ +typedef struct _GtkTargetList GtkTargetList; +typedef struct _GtkTargetEntry GtkTargetEntry; + +#define GTK_TYPE_SELECTION_DATA (gtk_selection_data_get_type ()) +#define GTK_TYPE_TARGET_LIST (gtk_target_list_get_type ()) + +/** + * GtkTargetEntry: + * @target: a string representation of the target type + * @flags: #GtkTargetFlags for DND + * @info: an application-assigned integer ID which will + * get passed as a parater to e.g the #GtkWiget::selection-get + * signal. It allows the application to identify the target + * type without extensive string compares. + * + * A #GtkTargetEntry structure represents a single type of + * data than can be supplied for by a widget for a selection + * or for supplied or received during drag-and-drop. + */ +struct _GtkTargetEntry +{ + gchar *target; + guint flags; + guint info; +}; + +GType gtk_target_list_get_type (void) G_GNUC_CONST; +GtkTargetList *gtk_target_list_new (const GtkTargetEntry *targets, + guint ntargets); +GtkTargetList *gtk_target_list_ref (GtkTargetList *list); +void gtk_target_list_unref (GtkTargetList *list); +void gtk_target_list_add (GtkTargetList *list, + GdkAtom target, + guint flags, + guint info); +void gtk_target_list_add_text_targets (GtkTargetList *list, + guint info); +void gtk_target_list_add_rich_text_targets (GtkTargetList *list, + guint info, + gboolean deserializable, + GtkTextBuffer *buffer); +void gtk_target_list_add_image_targets (GtkTargetList *list, + guint info, + gboolean writable); +void gtk_target_list_add_uri_targets (GtkTargetList *list, + guint info); +void gtk_target_list_add_table (GtkTargetList *list, + const GtkTargetEntry *targets, + guint ntargets); +void gtk_target_list_remove (GtkTargetList *list, + GdkAtom target); +gboolean gtk_target_list_find (GtkTargetList *list, + GdkAtom target, + guint *info); + +GtkTargetEntry * gtk_target_table_new_from_list (GtkTargetList *list, + gint *n_targets); +void gtk_target_table_free (GtkTargetEntry *targets, + gint n_targets); + +gboolean gtk_selection_owner_set (GtkWidget *widget, + GdkAtom selection, + guint32 time_); +gboolean gtk_selection_owner_set_for_display (GdkDisplay *display, + GtkWidget *widget, + GdkAtom selection, + guint32 time_); + +void gtk_selection_add_target (GtkWidget *widget, + GdkAtom selection, + GdkAtom target, + guint info); +void gtk_selection_add_targets (GtkWidget *widget, + GdkAtom selection, + const GtkTargetEntry *targets, + guint ntargets); +void gtk_selection_clear_targets (GtkWidget *widget, + GdkAtom selection); +gboolean gtk_selection_convert (GtkWidget *widget, + GdkAtom selection, + GdkAtom target, + guint32 time_); +void gtk_selection_remove_all (GtkWidget *widget); + +GdkAtom gtk_selection_data_get_selection (const GtkSelectionData *selection_data); +GdkAtom gtk_selection_data_get_target (const GtkSelectionData *selection_data); +GdkAtom gtk_selection_data_get_data_type (const GtkSelectionData *selection_data); +gint gtk_selection_data_get_format (const GtkSelectionData *selection_data); +const guchar *gtk_selection_data_get_data (const GtkSelectionData *selection_data); +gint gtk_selection_data_get_length (const GtkSelectionData *selection_data); +const guchar *gtk_selection_data_get_data_with_length + (const GtkSelectionData *selection_data, + gint *length); + +GdkDisplay *gtk_selection_data_get_display (const GtkSelectionData *selection_data); + +void gtk_selection_data_set (GtkSelectionData *selection_data, + GdkAtom type, + gint format, + const guchar *data, + gint length); +gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data, + const gchar *str, + gint len); +guchar * gtk_selection_data_get_text (const GtkSelectionData *selection_data); +gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data, + GdkPixbuf *pixbuf); +GdkPixbuf *gtk_selection_data_get_pixbuf (const GtkSelectionData *selection_data); +gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data, + gchar **uris); +gchar **gtk_selection_data_get_uris (const GtkSelectionData *selection_data); + +gboolean gtk_selection_data_get_targets (const GtkSelectionData *selection_data, + GdkAtom **targets, + gint *n_atoms); +gboolean gtk_selection_data_targets_include_text (const GtkSelectionData *selection_data); +gboolean gtk_selection_data_targets_include_rich_text (const GtkSelectionData *selection_data, + GtkTextBuffer *buffer); +gboolean gtk_selection_data_targets_include_image (const GtkSelectionData *selection_data, + gboolean writable); +gboolean gtk_selection_data_targets_include_uri (const GtkSelectionData *selection_data); +gboolean gtk_targets_include_text (GdkAtom *targets, + gint n_targets); +gboolean gtk_targets_include_rich_text (GdkAtom *targets, + gint n_targets, + GtkTextBuffer *buffer); +gboolean gtk_targets_include_image (GdkAtom *targets, + gint n_targets, + gboolean writable); +gboolean gtk_targets_include_uri (GdkAtom *targets, + gint n_targets); + + +GType gtk_selection_data_get_type (void) G_GNUC_CONST; +GtkSelectionData *gtk_selection_data_copy (const GtkSelectionData *data); +void gtk_selection_data_free (GtkSelectionData *data); + +GType gtk_target_entry_get_type (void) G_GNUC_CONST; +GtkTargetEntry *gtk_target_entry_new (const gchar *target, + guint flags, + guint info); +GtkTargetEntry *gtk_target_entry_copy (GtkTargetEntry *data); +void gtk_target_entry_free (GtkTargetEntry *data); + +G_END_DECLS + +#endif /* __GTK_SELECTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkseparator.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparator.h new file mode 100644 index 0000000..dacb6c4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparator.h @@ -0,0 +1,75 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SEPARATOR_H__ +#define __GTK_SEPARATOR_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR (gtk_separator_get_type ()) +#define GTK_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR, GtkSeparator)) +#define GTK_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) +#define GTK_IS_SEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR)) +#define GTK_IS_SEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR)) +#define GTK_SEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) + + +typedef struct _GtkSeparator GtkSeparator; +typedef struct _GtkSeparatorPrivate GtkSeparatorPrivate; +typedef struct _GtkSeparatorClass GtkSeparatorClass; + +struct _GtkSeparator +{ + GtkWidget widget; + + GtkSeparatorPrivate *priv; +}; + +struct _GtkSeparatorClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_separator_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_separator_new (GtkOrientation orientation); + + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatormenuitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatormenuitem.h new file mode 100644 index 0000000..f475a79 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatormenuitem.h @@ -0,0 +1,72 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SEPARATOR_MENU_ITEM_H__ +#define __GTK_SEPARATOR_MENU_ITEM_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR_MENU_ITEM (gtk_separator_menu_item_get_type ()) +#define GTK_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItem)) +#define GTK_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) +#define GTK_IS_SEPARATOR_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM)) +#define GTK_IS_SEPARATOR_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_MENU_ITEM)) +#define GTK_SEPARATOR_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR_MENU_ITEM, GtkSeparatorMenuItemClass)) + + +typedef struct _GtkSeparatorMenuItem GtkSeparatorMenuItem; +typedef struct _GtkSeparatorMenuItemClass GtkSeparatorMenuItemClass; + +struct _GtkSeparatorMenuItem +{ + GtkMenuItem menu_item; +}; + +struct _GtkSeparatorMenuItemClass +{ + GtkMenuItemClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_separator_menu_item_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_separator_menu_item_new (void); + + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_MENU_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatortoolitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatortoolitem.h new file mode 100644 index 0000000..2e57141 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkseparatortoolitem.h @@ -0,0 +1,70 @@ +/* gtktoggletoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SEPARATOR_TOOL_ITEM_H__ +#define __GTK_SEPARATOR_TOOL_ITEM_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SEPARATOR_TOOL_ITEM (gtk_separator_tool_item_get_type ()) +#define GTK_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItem)) +#define GTK_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) +#define GTK_IS_SEPARATOR_TOOL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM)) +#define GTK_IS_SEPARATOR_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR_TOOL_ITEM)) +#define GTK_SEPARATOR_TOOL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemClass)) + +typedef struct _GtkSeparatorToolItem GtkSeparatorToolItem; +typedef struct _GtkSeparatorToolItemClass GtkSeparatorToolItemClass; +typedef struct _GtkSeparatorToolItemPrivate GtkSeparatorToolItemPrivate; + +struct _GtkSeparatorToolItem +{ + GtkToolItem parent; + + /*< private >*/ + GtkSeparatorToolItemPrivate *priv; +}; + +struct _GtkSeparatorToolItemClass +{ + GtkToolItemClass parent_class; + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_separator_tool_item_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_separator_tool_item_new (void); + +gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item); +void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item, + gboolean draw); + +G_END_DECLS + +#endif /* __GTK_SEPARATOR_TOOL_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtksettings.h b/gtk+-mingw/include/gtk-3.0/gtk/gtksettings.h new file mode 100644 index 0000000..4a33093 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtksettings.h @@ -0,0 +1,127 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SETTINGS_H__ +#define __GTK_SETTINGS_H__ + +#include +#include + +G_BEGIN_DECLS + + +/* -- type macros --- */ +#define GTK_TYPE_SETTINGS (gtk_settings_get_type ()) +#define GTK_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SETTINGS, GtkSettings)) +#define GTK_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SETTINGS, GtkSettingsClass)) +#define GTK_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SETTINGS)) +#define GTK_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SETTINGS)) +#define GTK_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SETTINGS, GtkSettingsClass)) + + +/* --- typedefs --- */ +typedef struct _GtkSettingsPrivate GtkSettingsPrivate; +typedef struct _GtkSettingsClass GtkSettingsClass; +typedef struct _GtkSettingsValue GtkSettingsValue; + + +/* --- structures --- */ +struct _GtkSettings +{ + GObject parent_instance; + + /*< private >*/ + GtkSettingsPrivate *priv; +}; + +struct _GtkSettingsClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +struct _GtkSettingsValue +{ + /* origin should be something like "filename:linenumber" for rc files, + * or e.g. "XProperty" for other sources + */ + gchar *origin; + + /* valid types are LONG, DOUBLE and STRING corresponding to the token parsed, + * or a GSTRING holding an unparsed statement + */ + GValue value; +}; + + +/* --- functions --- */ +GType gtk_settings_get_type (void) G_GNUC_CONST; +#ifndef GDK_MULTIHEAD_SAFE +GtkSettings* gtk_settings_get_default (void); +#endif +GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen); + +void gtk_settings_install_property (GParamSpec *pspec); +void gtk_settings_install_property_parser (GParamSpec *pspec, + GtkRcPropertyParser parser); + +/* --- precoded parsing functions --- */ +gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); +gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, + const GString *gstring, + GValue *property_value); + +void gtk_settings_set_property_value (GtkSettings *settings, + const gchar *name, + const GtkSettingsValue *svalue); +void gtk_settings_set_string_property (GtkSettings *settings, + const gchar *name, + const gchar *v_string, + const gchar *origin); +void gtk_settings_set_long_property (GtkSettings *settings, + const gchar *name, + glong v_long, + const gchar *origin); +void gtk_settings_set_double_property (GtkSettings *settings, + const gchar *name, + gdouble v_double, + const gchar *origin); + + +G_END_DECLS + +#endif /* __GTK_SETTINGS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkshow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkshow.h new file mode 100644 index 0000000..b52f2c6 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkshow.h @@ -0,0 +1,37 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 2008 Jaap Haitsma + * + * All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SHOW_H__ +#define __GTK_SHOW_H__ + +G_BEGIN_DECLS + +gboolean gtk_show_uri (GdkScreen *screen, + const gchar *uri, + guint32 timestamp, + GError **error); + +G_END_DECLS + +#endif /* __GTK_SHOW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtksizegroup.h b/gtk+-mingw/include/gtk-3.0/gtk/gtksizegroup.h new file mode 100644 index 0000000..7af1338 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtksizegroup.h @@ -0,0 +1,95 @@ +/* GTK - The GIMP Toolkit + * gtksizegroup.h: + * Copyright (C) 2000 Red Hat Software + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SIZE_GROUP_H__ +#define __GTK_SIZE_GROUP_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SIZE_GROUP (gtk_size_group_get_type ()) +#define GTK_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroup)) +#define GTK_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) +#define GTK_IS_SIZE_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SIZE_GROUP)) +#define GTK_IS_SIZE_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SIZE_GROUP)) +#define GTK_SIZE_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SIZE_GROUP, GtkSizeGroupClass)) + + +typedef struct _GtkSizeGroup GtkSizeGroup; +typedef struct _GtkSizeGroupPrivate GtkSizeGroupPrivate; +typedef struct _GtkSizeGroupClass GtkSizeGroupClass; + +struct _GtkSizeGroup +{ + GObject parent_instance; + + /*< private >*/ + GtkSizeGroupPrivate *priv; +}; + +struct _GtkSizeGroupClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkSizeGroupMode: + * @GTK_SIZE_GROUP_NONE: group has no effect + * @GTK_SIZE_GROUP_HORIZONTAL: group affects horizontal requisition + * @GTK_SIZE_GROUP_VERTICAL: group affects vertical requisition + * @GTK_SIZE_GROUP_BOTH: group affects both horizontal and vertical requisition + * + * The mode of the size group determines the directions in which the size + * group affects the requested sizes of its component widgets. + **/ +typedef enum { + GTK_SIZE_GROUP_NONE, + GTK_SIZE_GROUP_HORIZONTAL, + GTK_SIZE_GROUP_VERTICAL, + GTK_SIZE_GROUP_BOTH +} GtkSizeGroupMode; + +GType gtk_size_group_get_type (void) G_GNUC_CONST; + +GtkSizeGroup * gtk_size_group_new (GtkSizeGroupMode mode); +void gtk_size_group_set_mode (GtkSizeGroup *size_group, + GtkSizeGroupMode mode); +GtkSizeGroupMode gtk_size_group_get_mode (GtkSizeGroup *size_group); +void gtk_size_group_set_ignore_hidden (GtkSizeGroup *size_group, + gboolean ignore_hidden); +gboolean gtk_size_group_get_ignore_hidden (GtkSizeGroup *size_group); +void gtk_size_group_add_widget (GtkSizeGroup *size_group, + GtkWidget *widget); +void gtk_size_group_remove_widget (GtkSizeGroup *size_group, + GtkWidget *widget); +GSList * gtk_size_group_get_widgets (GtkSizeGroup *size_group); + +G_END_DECLS + +#endif /* __GTK_SIZE_GROUP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtksizerequest.h b/gtk+-mingw/include/gtk-3.0/gtk/gtksizerequest.h new file mode 100644 index 0000000..3e22f96 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtksizerequest.h @@ -0,0 +1,57 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2007-2010 Openismus GmbH + * + * Authors: + * Mathias Hasselmann + * Tristan Van Berkom + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_SIZE_REQUEST_H__ +#define __GTK_SIZE_REQUEST_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _GtkRequestedSize GtkRequestedSize; + +/** + * GtkRequestedSize: + * @data: A client pointer + * @minimum_size: The minimum size needed for allocation in a given orientation + * @natural_size: The natural size for allocation in a given orientation + * + * Represents a request of a screen object in a given orientation. These + * are primarily used in container implementations when allocating a natural + * size for children calling. See gtk_distribute_natural_allocation(). + */ +struct _GtkRequestedSize +{ + gpointer data; + gint minimum_size; + gint natural_size; +}; + + +/* General convenience function to aid in allocating natural sizes */ +gint gtk_distribute_natural_allocation (gint extra_space, + guint n_requested_sizes, + GtkRequestedSize *sizes); + + +G_END_DECLS + +#endif /* __GTK_SIZE_REQUEST_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtksocket.h b/gtk+-mingw/include/gtk-3.0/gtk/gtksocket.h new file mode 100644 index 0000000..b5ae4e9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtksocket.h @@ -0,0 +1,84 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTKX_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SOCKET_H__ +#define __GTK_SOCKET_H__ + +#include + +#ifdef GDK_WINDOWING_X11 + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SOCKET (gtk_socket_get_type ()) +#define GTK_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOCKET, GtkSocket)) +#define GTK_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOCKET, GtkSocketClass)) +#define GTK_IS_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOCKET)) +#define GTK_IS_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOCKET)) +#define GTK_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOCKET, GtkSocketClass)) + + +typedef struct _GtkSocket GtkSocket; +typedef struct _GtkSocketClass GtkSocketClass; +typedef struct _GtkSocketPrivate GtkSocketPrivate; + +struct _GtkSocket +{ + GtkContainer container; + + GtkSocketPrivate *priv; +}; + +struct _GtkSocketClass +{ + GtkContainerClass parent_class; + + void (*plug_added) (GtkSocket *socket_); + gboolean (*plug_removed) (GtkSocket *socket_); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_socket_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_socket_new (void); +void gtk_socket_add_id (GtkSocket *socket_, + Window window); +Window gtk_socket_get_id (GtkSocket *socket_); +GdkWindow *gtk_socket_get_plug_window (GtkSocket *socket_); + +G_END_DECLS + +#endif /* GDK_WINDOWING_X11 */ + +#endif /* __GTK_SOCKET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkspinbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkspinbutton.h new file mode 100644 index 0000000..362c4d5 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkspinbutton.h @@ -0,0 +1,213 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * GtkSpinButton widget for GTK+ + * Copyright (C) 1998 Lars Hamann and Stefan Jeske + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SPIN_BUTTON_H__ +#define __GTK_SPIN_BUTTON_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ()) +#define GTK_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) +#define GTK_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) +#define GTK_IS_SPIN_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON)) +#define GTK_IS_SPIN_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON)) +#define GTK_SPIN_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) + +/** + * GTK_INPUT_ERROR: + * + * Constant to return from a signal handler for the #GtkSpinButton::input + * signal in case of conversion failure. + */ +#define GTK_INPUT_ERROR -1 + +/** + * GtkSpinButtonUpdatePolicy: + * @GTK_UPDATE_ALWAYS: When refreshing your #GtkSpinButton, the value is + * always displayed + * @GTK_UPDATE_IF_VALID: When refreshing your #GtkSpinButton, the value is + * only displayed if it is valid within the bounds of the spin button's + * adjustment + * + * The spin button update policy determines whether the spin button displays + * values even if they are outside the bounds of its adjustment. + * See gtk_spin_button_set_update_policy(). + */ +typedef enum +{ + GTK_UPDATE_ALWAYS, + GTK_UPDATE_IF_VALID +} GtkSpinButtonUpdatePolicy; + +/** + * GtkSpinType: + * @GTK_SPIN_STEP_FORWARD: Increment by the adjustments step increment. + * @GTK_SPIN_STEP_BACKWARD: Decrement by the adjustments step increment. + * @GTK_SPIN_PAGE_FORWARD: Increment by the adjustments page increment. + * @GTK_SPIN_PAGE_BACKWARD: Decrement by the adjustments page increment. + * @GTK_SPIN_HOME: Go to the adjustments lower bound. + * @GTK_SPIN_END: Go to the adjustments upper bound. + * @GTK_SPIN_USER_DEFINED: Change by a specified amount. + * + * The values of the GtkSpinType enumeration are used to specify the + * change to make in gtk_spin_button_spin(). + */ +typedef enum +{ + GTK_SPIN_STEP_FORWARD, + GTK_SPIN_STEP_BACKWARD, + GTK_SPIN_PAGE_FORWARD, + GTK_SPIN_PAGE_BACKWARD, + GTK_SPIN_HOME, + GTK_SPIN_END, + GTK_SPIN_USER_DEFINED +} GtkSpinType; + + +typedef struct _GtkSpinButton GtkSpinButton; +typedef struct _GtkSpinButtonPrivate GtkSpinButtonPrivate; +typedef struct _GtkSpinButtonClass GtkSpinButtonClass; + +/** + * GtkSpinButton: + * + * The #GtkSpinButton struct contains only private data and should + * not be directly modified. + */ +struct _GtkSpinButton +{ + GtkEntry entry; + + /*< private >*/ + GtkSpinButtonPrivate *priv; +}; + +struct _GtkSpinButtonClass +{ + GtkEntryClass parent_class; + + gint (*input) (GtkSpinButton *spin_button, + gdouble *new_value); + gint (*output) (GtkSpinButton *spin_button); + void (*value_changed) (GtkSpinButton *spin_button); + + /* Action signals for keybindings, do not connect to these */ + void (*change_value) (GtkSpinButton *spin_button, + GtkScrollType scroll); + + void (*wrapped) (GtkSpinButton *spin_button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_spin_button_get_type (void) G_GNUC_CONST; + +void gtk_spin_button_configure (GtkSpinButton *spin_button, + GtkAdjustment *adjustment, + gdouble climb_rate, + guint digits); + +GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment, + gdouble climb_rate, + guint digits); + +GtkWidget* gtk_spin_button_new_with_range (gdouble min, + gdouble max, + gdouble step); + +void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, + GtkAdjustment *adjustment); + +GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button); + +void gtk_spin_button_set_digits (GtkSpinButton *spin_button, + guint digits); +guint gtk_spin_button_get_digits (GtkSpinButton *spin_button); + +void gtk_spin_button_set_increments (GtkSpinButton *spin_button, + gdouble step, + gdouble page); +void gtk_spin_button_get_increments (GtkSpinButton *spin_button, + gdouble *step, + gdouble *page); + +void gtk_spin_button_set_range (GtkSpinButton *spin_button, + gdouble min, + gdouble max); +void gtk_spin_button_get_range (GtkSpinButton *spin_button, + gdouble *min, + gdouble *max); + +gdouble gtk_spin_button_get_value (GtkSpinButton *spin_button); + +gint gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button); + +void gtk_spin_button_set_value (GtkSpinButton *spin_button, + gdouble value); + +void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, + GtkSpinButtonUpdatePolicy policy); +GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy (GtkSpinButton *spin_button); + +void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, + gboolean numeric); +gboolean gtk_spin_button_get_numeric (GtkSpinButton *spin_button); + +void gtk_spin_button_spin (GtkSpinButton *spin_button, + GtkSpinType direction, + gdouble increment); + +void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, + gboolean wrap); +gboolean gtk_spin_button_get_wrap (GtkSpinButton *spin_button); + +void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button, + gboolean snap_to_ticks); +gboolean gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button); +void gtk_spin_button_update (GtkSpinButton *spin_button); + +/* private */ +void _gtk_spin_button_get_panels (GtkSpinButton *spin_button, + GdkWindow **down_panel, + GdkWindow **up_panel); + +G_END_DECLS + +#endif /* __GTK_SPIN_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkspinner.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkspinner.h new file mode 100644 index 0000000..1d57bf9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkspinner.h @@ -0,0 +1,71 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2007 John Stowers, Neil Jagdish Patel. + * Copyright (C) 2009 Bastien Nocera, David Zeuthen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Code adapted from egg-spinner + * by Christian Hergert + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SPINNER_H__ +#define __GTK_SPINNER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SPINNER (gtk_spinner_get_type ()) +#define GTK_SPINNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPINNER, GtkSpinner)) +#define GTK_SPINNER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_SPINNER, GtkSpinnerClass)) +#define GTK_IS_SPINNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPINNER)) +#define GTK_IS_SPINNER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), GTK_TYPE_SPINNER)) +#define GTK_SPINNER_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPINNER, GtkSpinnerClass)) + +typedef struct _GtkSpinner GtkSpinner; +typedef struct _GtkSpinnerClass GtkSpinnerClass; +typedef struct _GtkSpinnerPrivate GtkSpinnerPrivate; + +struct _GtkSpinner +{ + GtkWidget parent; + + /*< private >*/ + GtkSpinnerPrivate *priv; +}; + +struct _GtkSpinnerClass +{ + GtkWidgetClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_spinner_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_spinner_new (void); +void gtk_spinner_start (GtkSpinner *spinner); +void gtk_spinner_stop (GtkSpinner *spinner); + +G_END_DECLS + +#endif /* __GTK_SPINNER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusbar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusbar.h new file mode 100644 index 0000000..adcbb2d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusbar.h @@ -0,0 +1,101 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * GtkStatusbar Copyright (C) 1998 Shawn T. Amundson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STATUSBAR_H__ +#define __GTK_STATUSBAR_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_STATUSBAR (gtk_statusbar_get_type ()) +#define GTK_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATUSBAR, GtkStatusbar)) +#define GTK_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) +#define GTK_IS_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATUSBAR)) +#define GTK_IS_STATUSBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STATUSBAR)) +#define GTK_STATUSBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STATUSBAR, GtkStatusbarClass)) + + +typedef struct _GtkStatusbar GtkStatusbar; +typedef struct _GtkStatusbarPrivate GtkStatusbarPrivate; +typedef struct _GtkStatusbarClass GtkStatusbarClass; + +struct _GtkStatusbar +{ + GtkBox parent_widget; + + /*< private >*/ + GtkStatusbarPrivate *priv; +}; + +struct _GtkStatusbarClass +{ + GtkBoxClass parent_class; + + gpointer reserved; + + void (*text_pushed) (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); + void (*text_popped) (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_statusbar_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_statusbar_new (void); +/* If you don't want to use contexts, 0 is a predefined global + * context_id you can pass to push/pop/remove + */ +guint gtk_statusbar_get_context_id (GtkStatusbar *statusbar, + const gchar *context_description); +/* Returns message_id used for gtk_statusbar_remove */ +guint gtk_statusbar_push (GtkStatusbar *statusbar, + guint context_id, + const gchar *text); +void gtk_statusbar_pop (GtkStatusbar *statusbar, + guint context_id); +void gtk_statusbar_remove (GtkStatusbar *statusbar, + guint context_id, + guint message_id); +void gtk_statusbar_remove_all (GtkStatusbar *statusbar, + guint context_id); + +GtkWidget* gtk_statusbar_get_message_area (GtkStatusbar *statusbar); + +G_END_DECLS + +#endif /* __GTK_STATUSBAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusicon.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusicon.h new file mode 100644 index 0000000..e819aa7 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstatusicon.h @@ -0,0 +1,147 @@ +/* gtkstatusicon.h: + * + * Copyright (C) 2003 Sun Microsystems, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: + * Mark McLoughlin + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STATUS_ICON_H__ +#define __GTK_STATUS_ICON_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_STATUS_ICON (gtk_status_icon_get_type ()) +#define GTK_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STATUS_ICON, GtkStatusIcon)) +#define GTK_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_STATUS_ICON, GtkStatusIconClass)) +#define GTK_IS_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STATUS_ICON)) +#define GTK_IS_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_STATUS_ICON)) +#define GTK_STATUS_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STATUS_ICON, GtkStatusIconClass)) + +typedef struct _GtkStatusIcon GtkStatusIcon; +typedef struct _GtkStatusIconClass GtkStatusIconClass; +typedef struct _GtkStatusIconPrivate GtkStatusIconPrivate; + +struct _GtkStatusIcon +{ + GObject parent_instance; + + GtkStatusIconPrivate *priv; +}; + +struct _GtkStatusIconClass +{ + GObjectClass parent_class; + + void (* activate) (GtkStatusIcon *status_icon); + void (* popup_menu) (GtkStatusIcon *status_icon, + guint button, + guint32 activate_time); + gboolean (* size_changed) (GtkStatusIcon *status_icon, + gint size); + gboolean (* button_press_event) (GtkStatusIcon *status_icon, + GdkEventButton *event); + gboolean (* button_release_event) (GtkStatusIcon *status_icon, + GdkEventButton *event); + gboolean (* scroll_event) (GtkStatusIcon *status_icon, + GdkEventScroll *event); + gboolean (* query_tooltip) (GtkStatusIcon *status_icon, + gint x, + gint y, + gboolean keyboard_mode, + GtkTooltip *tooltip); + + void (*__gtk_reserved1); + void (*__gtk_reserved2); + void (*__gtk_reserved3); + void (*__gtk_reserved4); +}; + +GType gtk_status_icon_get_type (void) G_GNUC_CONST; + +GtkStatusIcon *gtk_status_icon_new (void); +GtkStatusIcon *gtk_status_icon_new_from_pixbuf (GdkPixbuf *pixbuf); +GtkStatusIcon *gtk_status_icon_new_from_file (const gchar *filename); +GtkStatusIcon *gtk_status_icon_new_from_stock (const gchar *stock_id); +GtkStatusIcon *gtk_status_icon_new_from_icon_name (const gchar *icon_name); +GtkStatusIcon *gtk_status_icon_new_from_gicon (GIcon *icon); + +void gtk_status_icon_set_from_pixbuf (GtkStatusIcon *status_icon, + GdkPixbuf *pixbuf); +void gtk_status_icon_set_from_file (GtkStatusIcon *status_icon, + const gchar *filename); +void gtk_status_icon_set_from_stock (GtkStatusIcon *status_icon, + const gchar *stock_id); +void gtk_status_icon_set_from_icon_name (GtkStatusIcon *status_icon, + const gchar *icon_name); +void gtk_status_icon_set_from_gicon (GtkStatusIcon *status_icon, + GIcon *icon); + +GtkImageType gtk_status_icon_get_storage_type (GtkStatusIcon *status_icon); + +GdkPixbuf *gtk_status_icon_get_pixbuf (GtkStatusIcon *status_icon); +const gchar * gtk_status_icon_get_stock (GtkStatusIcon *status_icon); +const gchar * gtk_status_icon_get_icon_name (GtkStatusIcon *status_icon); +GIcon *gtk_status_icon_get_gicon (GtkStatusIcon *status_icon); + +gint gtk_status_icon_get_size (GtkStatusIcon *status_icon); + +void gtk_status_icon_set_screen (GtkStatusIcon *status_icon, + GdkScreen *screen); +GdkScreen *gtk_status_icon_get_screen (GtkStatusIcon *status_icon); + +void gtk_status_icon_set_has_tooltip (GtkStatusIcon *status_icon, + gboolean has_tooltip); +void gtk_status_icon_set_tooltip_text (GtkStatusIcon *status_icon, + const gchar *text); +void gtk_status_icon_set_tooltip_markup (GtkStatusIcon *status_icon, + const gchar *markup); +void gtk_status_icon_set_title (GtkStatusIcon *status_icon, + const gchar *title); +const gchar * gtk_status_icon_get_title (GtkStatusIcon *status_icon); +void gtk_status_icon_set_name (GtkStatusIcon *status_icon, + const gchar *name); +void gtk_status_icon_set_visible (GtkStatusIcon *status_icon, + gboolean visible); +gboolean gtk_status_icon_get_visible (GtkStatusIcon *status_icon); + +gboolean gtk_status_icon_is_embedded (GtkStatusIcon *status_icon); + +void gtk_status_icon_position_menu (GtkMenu *menu, + gint *x, + gint *y, + gboolean *push_in, + gpointer user_data); +gboolean gtk_status_icon_get_geometry (GtkStatusIcon *status_icon, + GdkScreen **screen, + GdkRectangle *area, + GtkOrientation *orientation); +gboolean gtk_status_icon_get_has_tooltip (GtkStatusIcon *status_icon); +gchar *gtk_status_icon_get_tooltip_text (GtkStatusIcon *status_icon); +gchar *gtk_status_icon_get_tooltip_markup (GtkStatusIcon *status_icon); + +guint32 gtk_status_icon_get_x11_window_id (GtkStatusIcon *status_icon); + +G_END_DECLS + +#endif /* __GTK_STATUS_ICON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstock.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstock.h new file mode 100644 index 0000000..ff40979 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstock.h @@ -0,0 +1,1029 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STOCK_H__ +#define __GTK_STOCK_H__ + + +#include + +G_BEGIN_DECLS + +/* + * GtkTranslateFunc: + * @path: The id of the message. In #GtkActionGroup this will be a label + * or tooltip from a #GtkActionEntry. + * @func_data: user data passed in when registering the function + * + * The function used to translate messages in e.g. #GtkIconFactory + * and #GtkActionGroup. + * + * Returns: the translated message + */ +typedef gchar * (*GtkTranslateFunc) (const gchar *path, + gpointer func_data); + +typedef struct _GtkStockItem GtkStockItem; + +struct _GtkStockItem +{ + gchar *stock_id; + gchar *label; + GdkModifierType modifier; + guint keyval; + gchar *translation_domain; +}; + +void gtk_stock_add (const GtkStockItem *items, + guint n_items); +void gtk_stock_add_static (const GtkStockItem *items, + guint n_items); +gboolean gtk_stock_lookup (const gchar *stock_id, + GtkStockItem *item); + +/* Should free the list (and free each string in it also). + * This function is only useful for GUI builders and such. + */ +GSList* gtk_stock_list_ids (void); + +GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item); +void gtk_stock_item_free (GtkStockItem *item); + +void gtk_stock_set_translate_func (const gchar *domain, + GtkTranslateFunc func, + gpointer data, + GDestroyNotify notify); + +/* Stock IDs (not all are stock items; some are images only) */ +/** + * GTK_STOCK_ABOUT: + * + * The "About" item. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_ABOUT "gtk-about" + +/** + * GTK_STOCK_ADD: + * + * The "Add" item. + * + */ +#define GTK_STOCK_ADD "gtk-add" + +/** + * GTK_STOCK_APPLY: + * + * The "Apply" item. + * + */ +#define GTK_STOCK_APPLY "gtk-apply" + +/** + * GTK_STOCK_BOLD: + * + * The "Bold" item. + * + */ +#define GTK_STOCK_BOLD "gtk-bold" + +/** + * GTK_STOCK_CANCEL: + * + * The "Cancel" item. + * + */ +#define GTK_STOCK_CANCEL "gtk-cancel" + +/** + * GTK_STOCK_CAPS_LOCK_WARNING: + * + * The "Caps Lock Warning" icon. + * + * + * Since: 2.16 + */ +#define GTK_STOCK_CAPS_LOCK_WARNING "gtk-caps-lock-warning" + +/** + * GTK_STOCK_CDROM: + * + * The "CD-Rom" item. + * + */ +#define GTK_STOCK_CDROM "gtk-cdrom" + +/** + * GTK_STOCK_CLEAR: + * + * The "Clear" item. + * + */ +#define GTK_STOCK_CLEAR "gtk-clear" + +/** + * GTK_STOCK_CLOSE: + * + * The "Close" item. + * + */ +#define GTK_STOCK_CLOSE "gtk-close" + +/** + * GTK_STOCK_COLOR_PICKER: + * + * The "Color Picker" item. + * + * + * Since: 2.2 + */ +#define GTK_STOCK_COLOR_PICKER "gtk-color-picker" + +/** + * GTK_STOCK_CONNECT: + * + * The "Connect" icon. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_CONNECT "gtk-connect" + +/** + * GTK_STOCK_CONVERT: + * + * The "Convert" item. + * + */ +#define GTK_STOCK_CONVERT "gtk-convert" + +/** + * GTK_STOCK_COPY: + * + * The "Copy" item. + * + */ +#define GTK_STOCK_COPY "gtk-copy" + +/** + * GTK_STOCK_CUT: + * + * The "Cut" item. + * + */ +#define GTK_STOCK_CUT "gtk-cut" + +/** + * GTK_STOCK_DELETE: + * + * The "Delete" item. + * + */ +#define GTK_STOCK_DELETE "gtk-delete" + +/** + * GTK_STOCK_DIALOG_AUTHENTICATION: + * + * The "Authentication" item. + * + * + * Since: 2.4 + */ +#define GTK_STOCK_DIALOG_AUTHENTICATION "gtk-dialog-authentication" + +/** + * GTK_STOCK_DIALOG_INFO: + * + * The "Information" item. + * + */ +#define GTK_STOCK_DIALOG_INFO "gtk-dialog-info" + +/** + * GTK_STOCK_DIALOG_WARNING: + * + * The "Warning" item. + * + */ +#define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning" + +/** + * GTK_STOCK_DIALOG_ERROR: + * + * The "Error" item. + * + */ +#define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error" + +/** + * GTK_STOCK_DIALOG_QUESTION: + * + * The "Question" item. + * + */ +#define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question" + +/** + * GTK_STOCK_DIRECTORY: + * + * The "Directory" icon. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_DIRECTORY "gtk-directory" + +/** + * GTK_STOCK_DISCARD: + * + * The "Discard" item. + * + * Since: 2.12 + */ +#define GTK_STOCK_DISCARD "gtk-discard" + +/** + * GTK_STOCK_DISCONNECT: + * + * The "Disconnect" icon. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_DISCONNECT "gtk-disconnect" + +/** + * GTK_STOCK_DND: + * + * The "Drag-And-Drop" icon. + * + */ +#define GTK_STOCK_DND "gtk-dnd" + +/** + * GTK_STOCK_DND_MULTIPLE: + * + * The "Drag-And-Drop multiple" icon. + * + */ +#define GTK_STOCK_DND_MULTIPLE "gtk-dnd-multiple" + +/** + * GTK_STOCK_EDIT: + * + * The "Edit" item. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_EDIT "gtk-edit" + +/** + * GTK_STOCK_EXECUTE: + * + * The "Execute" item. + * + */ +#define GTK_STOCK_EXECUTE "gtk-execute" + +/** + * GTK_STOCK_FILE: + * + * The "File" item. + * + * + * Since 3.0, this item has a label, before it only had an icon. + * + * Since: 2.6 + */ +#define GTK_STOCK_FILE "gtk-file" + +/** + * GTK_STOCK_FIND: + * + * The "Find" item. + * + */ +#define GTK_STOCK_FIND "gtk-find" + +/** + * GTK_STOCK_FIND_AND_REPLACE: + * + * The "Find and Replace" item. + * + */ +#define GTK_STOCK_FIND_AND_REPLACE "gtk-find-and-replace" + +/** + * GTK_STOCK_FLOPPY: + * + * The "Floppy" item. + * + */ +#define GTK_STOCK_FLOPPY "gtk-floppy" + +/** + * GTK_STOCK_FULLSCREEN: + * + * The "Fullscreen" item. + * + * + * Since: 2.8 + */ +#define GTK_STOCK_FULLSCREEN "gtk-fullscreen" + +/** + * GTK_STOCK_GOTO_BOTTOM: + * + * The "Bottom" item. + * + */ +#define GTK_STOCK_GOTO_BOTTOM "gtk-goto-bottom" + +/** + * GTK_STOCK_GOTO_FIRST: + * + * The "First" item. + * + * RTL variant + * + */ +#define GTK_STOCK_GOTO_FIRST "gtk-goto-first" + +/** + * GTK_STOCK_GOTO_LAST: + * + * The "Last" item. + * + * RTL variant + * + */ +#define GTK_STOCK_GOTO_LAST "gtk-goto-last" + +/** + * GTK_STOCK_GOTO_TOP: + * + * The "Top" item. + * + */ +#define GTK_STOCK_GOTO_TOP "gtk-goto-top" + +/** + * GTK_STOCK_GO_BACK: + * + * The "Back" item. + * + * RTL variant + * + */ +#define GTK_STOCK_GO_BACK "gtk-go-back" + +/** + * GTK_STOCK_GO_DOWN: + * + * The "Down" item. + * + */ +#define GTK_STOCK_GO_DOWN "gtk-go-down" + +/** + * GTK_STOCK_GO_FORWARD: + * + * The "Forward" item. + * + * RTL variant + * + */ +#define GTK_STOCK_GO_FORWARD "gtk-go-forward" + +/** + * GTK_STOCK_GO_UP: + * + * The "Up" item. + * + */ +#define GTK_STOCK_GO_UP "gtk-go-up" + +/** + * GTK_STOCK_HARDDISK: + * + * The "Harddisk" item. + * + * + * Since: 2.4 + */ +#define GTK_STOCK_HARDDISK "gtk-harddisk" + +/** + * GTK_STOCK_HELP: + * + * The "Help" item. + * + */ +#define GTK_STOCK_HELP "gtk-help" + +/** + * GTK_STOCK_HOME: + * + * The "Home" item. + * + */ +#define GTK_STOCK_HOME "gtk-home" + +/** + * GTK_STOCK_INDEX: + * + * The "Index" item. + * + */ +#define GTK_STOCK_INDEX "gtk-index" + +/** + * GTK_STOCK_INDENT: + * + * The "Indent" item. + * + * RTL variant + * + * + * Since: 2.4 + */ +#define GTK_STOCK_INDENT "gtk-indent" + +/** + * GTK_STOCK_INFO: + * + * The "Info" item. + * + * + * Since: 2.8 + */ +#define GTK_STOCK_INFO "gtk-info" + +/** + * GTK_STOCK_ITALIC: + * + * The "Italic" item. + * + */ +#define GTK_STOCK_ITALIC "gtk-italic" + +/** + * GTK_STOCK_JUMP_TO: + * + * The "Jump to" item. + * + * RTL-variant + * + */ +#define GTK_STOCK_JUMP_TO "gtk-jump-to" + +/** + * GTK_STOCK_JUSTIFY_CENTER: + * + * The "Center" item. + * + */ +#define GTK_STOCK_JUSTIFY_CENTER "gtk-justify-center" + +/** + * GTK_STOCK_JUSTIFY_FILL: + * + * The "Fill" item. + * + */ +#define GTK_STOCK_JUSTIFY_FILL "gtk-justify-fill" + +/** + * GTK_STOCK_JUSTIFY_LEFT: + * + * The "Left" item. + * + */ +#define GTK_STOCK_JUSTIFY_LEFT "gtk-justify-left" + +/** + * GTK_STOCK_JUSTIFY_RIGHT: + * + * The "Right" item. + * + */ +#define GTK_STOCK_JUSTIFY_RIGHT "gtk-justify-right" + +/** + * GTK_STOCK_LEAVE_FULLSCREEN: + * + * The "Leave Fullscreen" item. + * + * + * Since: 2.8 + */ +#define GTK_STOCK_LEAVE_FULLSCREEN "gtk-leave-fullscreen" + +/** + * GTK_STOCK_MISSING_IMAGE: + * + * The "Missing image" icon. + * + */ +#define GTK_STOCK_MISSING_IMAGE "gtk-missing-image" + +/** + * GTK_STOCK_MEDIA_FORWARD: + * + * The "Media Forward" item. + * + * RTL variant + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_FORWARD "gtk-media-forward" + +/** + * GTK_STOCK_MEDIA_NEXT: + * + * The "Media Next" item. + * + * RTL variant + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_NEXT "gtk-media-next" + +/** + * GTK_STOCK_MEDIA_PAUSE: + * + * The "Media Pause" item. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_PAUSE "gtk-media-pause" + +/** + * GTK_STOCK_MEDIA_PLAY: + * + * The "Media Play" item. + * + * RTL variant + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_PLAY "gtk-media-play" + +/** + * GTK_STOCK_MEDIA_PREVIOUS: + * + * The "Media Previous" item. + * + * RTL variant + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_PREVIOUS "gtk-media-previous" + +/** + * GTK_STOCK_MEDIA_RECORD: + * + * The "Media Record" item. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_RECORD "gtk-media-record" + +/** + * GTK_STOCK_MEDIA_REWIND: + * + * The "Media Rewind" item. + * + * RTL variant + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_REWIND "gtk-media-rewind" + +/** + * GTK_STOCK_MEDIA_STOP: + * + * The "Media Stop" item. + * + * + * Since: 2.6 + */ +#define GTK_STOCK_MEDIA_STOP "gtk-media-stop" + +/** + * GTK_STOCK_NETWORK: + * + * The "Network" item. + * + * + * Since: 2.4 + */ +#define GTK_STOCK_NETWORK "gtk-network" + +/** + * GTK_STOCK_NEW: + * + * The "New" item. + * + */ +#define GTK_STOCK_NEW "gtk-new" + +/** + * GTK_STOCK_NO: + * + * The "No" item. + * + */ +#define GTK_STOCK_NO "gtk-no" + +/** + * GTK_STOCK_OK: + * + * The "OK" item. + * + */ +#define GTK_STOCK_OK "gtk-ok" + +/** + * GTK_STOCK_OPEN: + * + * The "Open" item. + * + */ +#define GTK_STOCK_OPEN "gtk-open" + +/** + * GTK_STOCK_ORIENTATION_PORTRAIT: + * + * The "Portrait Orientation" item. + * + * + * Since: 2.10 + */ +#define GTK_STOCK_ORIENTATION_PORTRAIT "gtk-orientation-portrait" + +/** + * GTK_STOCK_ORIENTATION_LANDSCAPE: + * + * The "Landscape Orientation" item. + * + * + * Since: 2.10 + */ +#define GTK_STOCK_ORIENTATION_LANDSCAPE "gtk-orientation-landscape" + +/** + * GTK_STOCK_ORIENTATION_REVERSE_LANDSCAPE: + * + * The "Reverse Landscape Orientation" item. + * + * + * Since: 2.10 + */ +#define GTK_STOCK_ORIENTATION_REVERSE_LANDSCAPE "gtk-orientation-reverse-landscape" + +/** + * GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT: + * + * The "Reverse Portrait Orientation" item. + * + * + * Since: 2.10 + */ +#define GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT "gtk-orientation-reverse-portrait" + +/** + * GTK_STOCK_PAGE_SETUP: + * + * The "Page Setup" item. + * + * + * Since: 2.14 + */ +#define GTK_STOCK_PAGE_SETUP "gtk-page-setup" + +/** + * GTK_STOCK_PASTE: + * + * The "Paste" item. + * + */ +#define GTK_STOCK_PASTE "gtk-paste" + +/** + * GTK_STOCK_PREFERENCES: + * + * The "Preferences" item. + * + */ +#define GTK_STOCK_PREFERENCES "gtk-preferences" + +/** + * GTK_STOCK_PRINT: + * + * The "Print" item. + * + */ +#define GTK_STOCK_PRINT "gtk-print" + +/** + * GTK_STOCK_PRINT_ERROR: + * + * The "Print Error" icon. + * + * + * Since: 2.14 + */ +#define GTK_STOCK_PRINT_ERROR "gtk-print-error" + +/** + * GTK_STOCK_PRINT_PAUSED: + * + * The "Print Paused" icon. + * + * + * Since: 2.14 + */ +#define GTK_STOCK_PRINT_PAUSED "gtk-print-paused" + +/** + * GTK_STOCK_PRINT_PREVIEW: + * + * The "Print Preview" item. + * + */ +#define GTK_STOCK_PRINT_PREVIEW "gtk-print-preview" + +/** + * GTK_STOCK_PRINT_REPORT: + * + * The "Print Report" icon. + * + * + * Since: 2.14 + */ +#define GTK_STOCK_PRINT_REPORT "gtk-print-report" + + +/** + * GTK_STOCK_PRINT_WARNING: + * + * The "Print Warning" icon. + * + * + * Since: 2.14 + */ +#define GTK_STOCK_PRINT_WARNING "gtk-print-warning" + +/** + * GTK_STOCK_PROPERTIES: + * + * The "Properties" item. + * + */ +#define GTK_STOCK_PROPERTIES "gtk-properties" + +/** + * GTK_STOCK_QUIT: + * + * The "Quit" item. + * + */ +#define GTK_STOCK_QUIT "gtk-quit" + +/** + * GTK_STOCK_REDO: + * + * The "Redo" item. + * + * RTL variant + * + */ +#define GTK_STOCK_REDO "gtk-redo" + +/** + * GTK_STOCK_REFRESH: + * + * The "Refresh" item. + * + */ +#define GTK_STOCK_REFRESH "gtk-refresh" + +/** + * GTK_STOCK_REMOVE: + * + * The "Remove" item. + * + */ +#define GTK_STOCK_REMOVE "gtk-remove" + +/** + * GTK_STOCK_REVERT_TO_SAVED: + * + * The "Revert" item. + * + * RTL variant + * + */ +#define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved" + +/** + * GTK_STOCK_SAVE: + * + * The "Save" item. + * + */ +#define GTK_STOCK_SAVE "gtk-save" + +/** + * GTK_STOCK_SAVE_AS: + * + * The "Save As" item. + * + */ +#define GTK_STOCK_SAVE_AS "gtk-save-as" + +/** + * GTK_STOCK_SELECT_ALL: + * + * The "Select All" item. + * + * + * Since: 2.10 + */ +#define GTK_STOCK_SELECT_ALL "gtk-select-all" + +/** + * GTK_STOCK_SELECT_COLOR: + * + * The "Color" item. + * + */ +#define GTK_STOCK_SELECT_COLOR "gtk-select-color" + +/** + * GTK_STOCK_SELECT_FONT: + * + * The "Font" item. + * + */ +#define GTK_STOCK_SELECT_FONT "gtk-select-font" + +/** + * GTK_STOCK_SORT_ASCENDING: + * + * The "Ascending" item. + * + */ +#define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending" + +/** + * GTK_STOCK_SORT_DESCENDING: + * + * The "Descending" item. + * + */ +#define GTK_STOCK_SORT_DESCENDING "gtk-sort-descending" + +/** + * GTK_STOCK_SPELL_CHECK: + * + * The "Spell Check" item. + * + */ +#define GTK_STOCK_SPELL_CHECK "gtk-spell-check" + +/** + * GTK_STOCK_STOP: + * + * The "Stop" item. + * + */ +#define GTK_STOCK_STOP "gtk-stop" + +/** + * GTK_STOCK_STRIKETHROUGH: + * + * The "Strikethrough" item. + * + */ +#define GTK_STOCK_STRIKETHROUGH "gtk-strikethrough" + +/** + * GTK_STOCK_UNDELETE: + * + * The "Undelete" item. + * + * RTL variant + * + */ +#define GTK_STOCK_UNDELETE "gtk-undelete" + +/** + * GTK_STOCK_UNDERLINE: + * + * The "Underline" item. + * + */ +#define GTK_STOCK_UNDERLINE "gtk-underline" + +/** + * GTK_STOCK_UNDO: + * + * The "Undo" item. + * + * RTL variant + * + */ +#define GTK_STOCK_UNDO "gtk-undo" + +/** + * GTK_STOCK_UNINDENT: + * + * The "Unindent" item. + * + * RTL variant + * + * + * Since: 2.4 + */ +#define GTK_STOCK_UNINDENT "gtk-unindent" + +/** + * GTK_STOCK_YES: + * + * The "Yes" item. + * + */ +#define GTK_STOCK_YES "gtk-yes" + +/** + * GTK_STOCK_ZOOM_100: + * + * The "Zoom 100%" item. + * + */ +#define GTK_STOCK_ZOOM_100 "gtk-zoom-100" + +/** + * GTK_STOCK_ZOOM_FIT: + * + * The "Zoom to Fit" item. + * + */ +#define GTK_STOCK_ZOOM_FIT "gtk-zoom-fit" + +/** + * GTK_STOCK_ZOOM_IN: + * + * The "Zoom In" item. + * + */ +#define GTK_STOCK_ZOOM_IN "gtk-zoom-in" + +/** + * GTK_STOCK_ZOOM_OUT: + * + * The "Zoom Out" item. + * + */ +#define GTK_STOCK_ZOOM_OUT "gtk-zoom-out" + +G_END_DECLS + +#endif /* __GTK_STOCK_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstylecontext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstylecontext.h new file mode 100644 index 0000000..4975862 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstylecontext.h @@ -0,0 +1,996 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STYLE_CONTEXT_H__ +#define __GTK_STYLE_CONTEXT_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_STYLE_CONTEXT (gtk_style_context_get_type ()) +#define GTK_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContext)) +#define GTK_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass)) +#define GTK_IS_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_CONTEXT)) +#define GTK_IS_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_CONTEXT)) +#define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass)) + +typedef struct _GtkStyleContextClass GtkStyleContextClass; +typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate; + +struct _GtkStyleContext +{ + GObject parent_object; + GtkStyleContextPrivate *priv; +}; + +struct _GtkStyleContextClass +{ + GObjectClass parent_class; + + void (* changed) (GtkStyleContext *context); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/* Default set of properties that GtkStyleContext may contain */ + +/** + * GTK_STYLE_PROPERTY_BACKGROUND_COLOR: + * + * A property holding the background color of rendered elements as a #GdkRGBA. + */ +#define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color" + +/** + * GTK_STYLE_PROPERTY_COLOR: + * + * A property holding the foreground color of rendered elements as a #GdkRGBA. + */ +#define GTK_STYLE_PROPERTY_COLOR "color" + +/** + * GTK_STYLE_PROPERTY_FONT: + * + * A property holding the font properties used when rendering text + * as a #PangoFontDescription. + */ +#define GTK_STYLE_PROPERTY_FONT "font" + +/** + * GTK_STYLE_PROPERTY_PADDING: + * + * A property holding the rendered element's padding as a #GtkBorder. The + * padding is defined as the spacing between the inner part of the element border + * and its child. It's the innermost spacing property of the padding/border/margin + * series. + */ +#define GTK_STYLE_PROPERTY_PADDING "padding" + +/** + * GTK_STYLE_PROPERTY_BORDER_WIDTH: + * + * A property holding the rendered element's border width in pixels as + * a #GtkBorder. The border is the intermediary spacing property of the + * padding/border/margin series. + * + * gtk_render_frame() uses this property to find out the frame line width, + * so #GtkWidgets rendering frames may need to add up this padding when + * requesting size + */ +#define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width" + +/** + * GTK_STYLE_PROPERTY_MARGIN: + * + * A property holding the rendered element's margin as a #GtkBorder. The + * margin is defined as the spacing between the border of the element + * and its surrounding elements. It is external to #GtkWidgets's + * size allocations, and the most external spacing property of the + * padding/border/margin series. + */ +#define GTK_STYLE_PROPERTY_MARGIN "margin" + +/** + * GTK_STYLE_PROPERTY_BORDER_RADIUS: + * + * A property holding the rendered element's border radius in pixels as a #gint. + */ +#define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius" + +/** + * GTK_STYLE_PROPERTY_BORDER_STYLE: + * + * A property holding the element's border style as a #GtkBorderStyle. + */ +#define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style" + +/** + * GTK_STYLE_PROPERTY_BORDER_COLOR: + * + * A property holding the element's border color as a #GdkRGBA. + */ +#define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color" + +/** + * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE: + * + * A property holding the element's background as a #cairo_pattern_t. + */ +#define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image" + +/* Predefined set of CSS classes */ + +/** + * GTK_STYLE_CLASS_CELL: + * + * A CSS class to match content rendered in cell views. + * + * This is used by cell renderers, e.g. in #GtkIconView + * and #GtkTreeView. + */ +#define GTK_STYLE_CLASS_CELL "cell" + +/** + * GTK_STYLE_CLASS_DIM_LABEL: + * + * A CSS class to match dimmed labels. + * + * This should be used for toning down right aligned labels as + * compared to the entry value. + */ +#define GTK_STYLE_CLASS_DIM_LABEL "dim-label" + +/** + * GTK_STYLE_CLASS_ENTRY: + * + * A CSS class to match text entries. + * + * This is used by #GtkEntry. + */ +#define GTK_STYLE_CLASS_ENTRY "entry" + +/** + * GTK_STYLE_CLASS_COMBOBOX_ENTRY: + * + * A CSS class to match combobox entries. + * + * This is used by #GtkComboBox. + */ +#define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry" + +/** + * GTK_STYLE_CLASS_BUTTON: + * + * A CSS class to match buttons. + * + * This is used by #GtkButton and its subclasses, as well + * as various other widget pieces that appear like buttons, + * e.g. the arrows in a #GtkCalendar. + */ +#define GTK_STYLE_CLASS_BUTTON "button" + +/** + * GTK_STYLE_CLASS_CALENDAR: + * + * A CSS class to match calendars. + * + * This is not used by GTK+ itself, currently. + */ +#define GTK_STYLE_CLASS_CALENDAR "calendar" + +/** + * GTK_STYLE_CLASS_SLIDER: + * + * A CSS class to match sliders. + * + * This is used by #GtkSwitch and #GtkRange and its subclasses. + */ +#define GTK_STYLE_CLASS_SLIDER "slider" + +/** + * GTK_STYLE_CLASS_BACKGROUND: + * + * A CSS class to match the window background. + */ +#define GTK_STYLE_CLASS_BACKGROUND "background" + +/** + * GTK_STYLE_CLASS_RUBBERBAND: + * + * A CSS class to match the rubberband selection rectangle. + * + * This is used in #GtkIconView and #GtkTreeView. + */ +#define GTK_STYLE_CLASS_RUBBERBAND "rubberband" + +/** + * GTK_STYLE_CLASS_TOOLTIP: + * + * A CSS class to match tooltip windows. + */ +#define GTK_STYLE_CLASS_TOOLTIP "tooltip" + +/** + * GTK_STYLE_CLASS_MENU: + * + * A CSS class to match popup menus. + * + * This is used in #GtkMenu. + */ +#define GTK_STYLE_CLASS_MENU "menu" + +/** + * GTK_STYLE_CLASS_MENUBAR: + * + * A CSS class to menubars. + * + * This is used in #GtkMenuBar. + */ +#define GTK_STYLE_CLASS_MENUBAR "menubar" + +/** + * GTK_STYLE_CLASS_MENUITEM: + * + * A CSS class to match menu items. + * + * This is used in #GtkMenuItem and its subclasses. + */ +#define GTK_STYLE_CLASS_MENUITEM "menuitem" + +/** + * GTK_STYLE_CLASS_TOOLBAR: + * + * A CSS class to match toolbars. + * + * This is used in #GtkToolbar. + */ +#define GTK_STYLE_CLASS_TOOLBAR "toolbar" + +/** + * GTK_STYLE_CLASS_PRIMARY_TOOLBAR: + * + * A CSS class to match primary toolbars. + * + * This should be used for the 'main' toolbar of an application, + * right below its menubar. + */ +#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar" + +/** + * GTK_STYLE_CLASS_INLINE_TOOLBAR: + * + * A CSS class to match inline toolbars. + * + * This should be used for toolbars that are used to hold + * actions below lists, as seen e.g. in the left pane of the + * file chooser. + */ +#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar" + +/** + * GTK_STYLE_CLASS_RADIO: + * + * A CSS class to match radio buttons. + * + * This is used in #GtkRadioButton, #GtkRadioMenuItem and + * #GtkCellRendererToggle. + */ +#define GTK_STYLE_CLASS_RADIO "radio" + +/** + * GTK_STYLE_CLASS_CHECK: + * + * A CSS class to match check boxes. + * + * This is used in #GtkCheckButton, #GtkCheckMenuItem and + * #GtkCellRendererToggle. + */ +#define GTK_STYLE_CLASS_CHECK "check" + +/** + * GTK_STYLE_CLASS_DEFAULT: + * + * A CSS class to match the default widget. + * + * This is used by #GtkButton. + */ +#define GTK_STYLE_CLASS_DEFAULT "default" + +/** + * GTK_STYLE_CLASS_TROUGH: + * + * A CSS class to match troughs, as in scrollbars and progressbars. + * + * This is used in #GtkRange and its subclasses, #GtkProgressBar + * and #GtkSwitch. + */ +#define GTK_STYLE_CLASS_TROUGH "trough" + +/** + * GTK_STYLE_CLASS_SCROLLBAR: + * + * A CSS class to match scrollbars. + */ +#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar" + +/** + * GTK_STYLE_CLASS_SCROLLBARS_JUNCTION: + * + * A CSS class to match the junction area between an horizontal + * and vertical scrollbar, when they're both shown. + * + * This is used in #GtkScrolledWindow. + */ +#define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction" + +/** + * GTK_STYLE_CLASS_SCALE: + * + * A CSS class to match scale widgets. + * + * This is used in #GtkScale. + */ +#define GTK_STYLE_CLASS_SCALE "scale" + +/** + * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE: + * + * A CSS class to match scale widgets with marks attached, + * all the marks are above for horizontal #GtkScale. + * left for vertical #GtkScale. + */ +#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above" + +/** + * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW: + * + * A CSS class to match scale widgets with marks attached, + * all the marks are below for horizontal #GtkScale, + * right for vertical #GtkScale. + */ +#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below" + +/** + * GTK_STYLE_CLASS_HEADER: + * + * A CSS class to match a header element. + * + * This is used for the header in #GtkCalendar. + */ +#define GTK_STYLE_CLASS_HEADER "header" + +/** + * GTK_STYLE_CLASS_ACCELERATOR: + * + * A CSS class to match an accelerator. + * + * This is used for the accelerator in #GtkAccelLabel. + */ +#define GTK_STYLE_CLASS_ACCELERATOR "accelerator" + +/** + * GTK_STYLE_CLASS_RAISED: + * + * A CSS class to match a raised control, such as a raised + * button on a toolbar. + * + * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR. + */ +#define GTK_STYLE_CLASS_RAISED "raised" + +/** + * GTK_STYLE_CLASS_LINKED: + * + * A CSS class to match a linked area, such as a box containing buttons + * belonging to the same control. + */ +#define GTK_STYLE_CLASS_LINKED "linked" + +/** + * GTK_STYLE_CLASS_GRIP: + * + * A CSS class defining a resize grip. + * + * This is used for the resize grip in #GtkWindow. + */ +#define GTK_STYLE_CLASS_GRIP "grip" + +/** + * GTK_STYLE_CLASS_DOCK: + * + * A CSS class defining a dock area. + * + * This is used by #GtkHandleBox. + */ +#define GTK_STYLE_CLASS_DOCK "dock" + +/** + * GTK_STYLE_CLASS_PROGRESSBAR: + * + * A CSS class to use when rendering activity as a progressbar. + * + * This is used in #GtkProgressBar and when drawing progress + * inside a #GtkEntry or in #GtkCellRendererProgress. + */ +#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar" + +/** + * GTK_STYLE_CLASS_SPINNER: + * + * A CSS class to use when rendering activity as a 'spinner'. + * + * This is used by #GtkSpinner and #GtkCellRendererSpinner. + */ +#define GTK_STYLE_CLASS_SPINNER "spinner" + +/** + * GTK_STYLE_CLASS_MARK: + * + * A CSS class defining marks in a widget, such as in scales. + * + * Used in #GtkScale. + */ +#define GTK_STYLE_CLASS_MARK "mark" + +/** + * GTK_STYLE_CLASS_EXPANDER: + * + * A CSS class defining an expander, such as those in treeviews. + * + * Used for drawing expanders in #GtkTreeView, GtkExpander and + * #GtkToolItemGroup. + */ +#define GTK_STYLE_CLASS_EXPANDER "expander" + +/** + * GTK_STYLE_CLASS_SPINBUTTON: + * + * A CSS class defining an spinbutton. + * + * This is used in #GtkSpinButton. + */ +#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton" + +/** + * GTK_STYLE_CLASS_NOTEBOOK: + * + * A CSS class defining a notebook. + * + * Used in #GtkNotebook. + */ +#define GTK_STYLE_CLASS_NOTEBOOK "notebook" + +/** + * GTK_STYLE_CLASS_VIEW: + * + * A CSS class defining a view, such as iconviews or treeviews. + * + * This is used in #GtkTreeView, #GtkIconView, #GtkTextView, + * as well as #GtkCalendar. + */ +#define GTK_STYLE_CLASS_VIEW "view" + +/** + * GTK_STYLE_CLASS_SIDEBAR: + * + * A CSS class defining a sidebar, such as the left side in + * a file chooser. + * + * This is used in #GtkFileChooser and in #GtkAssistant. + */ +#define GTK_STYLE_CLASS_SIDEBAR "sidebar" + +/** + * GTK_STYLE_CLASS_IMAGE: + * + * A CSS class defining an image, such as the icon in an entry. + * + * This is used when rendering icons in #GtkEntry. + */ +#define GTK_STYLE_CLASS_IMAGE "image" + +/** + * GTK_STYLE_CLASS_HIGHLIGHT: + * + * A CSS class defining a highlighted area, such as headings in + * assistants and calendars. + * + * This is used in #GtkAssistant and #GtkCalendar. + */ +#define GTK_STYLE_CLASS_HIGHLIGHT "highlight" + +/** + * GTK_STYLE_CLASS_FRAME: + * + * A CSS class defining a frame delimiting content, such as + * #GtkFrame or the scrolled window frame around the + * scrollable area. + * + * This is used in #GtkFrame and #GtkScrollbar. + */ +#define GTK_STYLE_CLASS_FRAME "frame" + +/** + * GTK_STYLE_CLASS_DND: + * + * A CSS class for a drag-and-drop indicator. + * + * This is used when drawing an outline around a potential + * drop target during DND. + */ +#define GTK_STYLE_CLASS_DND "dnd" + +/** + * GTK_STYLE_CLASS_PANE_SEPARATOR: + * + * A CSS class for a pane separator, such as those in #GtkPaned. + * + * Used in #GtkPaned. + */ +#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator" + +/** + * GTK_STYLE_CLASS_SEPARATOR: + * + * A CSS class for a separator. + * + * This is used in #GtkSeparator, #GtkSeparatorMenuItem, + * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView. + */ +#define GTK_STYLE_CLASS_SEPARATOR "separator" + +/** + * GTK_STYLE_CLASS_INFO: + * + * A CSS class for an area displaying an informational message, + * such as those in infobars. + * + * This is used by #GtkInfoBar. + */ +#define GTK_STYLE_CLASS_INFO "info" + +/** + * GTK_STYLE_CLASS_WARNING: + * + * A CSS class for an area displaying a warning message, + * such as those in infobars. + * + * This is used by #GtkInfoBar. + */ +#define GTK_STYLE_CLASS_WARNING "warning" + +/** + * GTK_STYLE_CLASS_QUESTION: + * + * A CSS class for an area displaying a question to the user, + * such as those in infobars. + * + * This is used by #GtkInfoBar. + */ +#define GTK_STYLE_CLASS_QUESTION "question" + +/** + * GTK_STYLE_CLASS_ERROR: + * + * A CSS class for an area displaying an error message, + * such as those in infobars. + * + * This is used by #GtkInfoBar. + */ +#define GTK_STYLE_CLASS_ERROR "error" + +/** + * GTK_STYLE_CLASS_HORIZONTAL: + * + * A CSS class for horizontally layered widgets. + * + * This is used by widgets implementing #GtkOrientable. + */ +#define GTK_STYLE_CLASS_HORIZONTAL "horizontal" + +/** + * GTK_STYLE_CLASS_VERTICAL: + * + * A CSS class for vertically layered widgets. + * + * This is used by widgets implementing #GtkOrientable. + */ +#define GTK_STYLE_CLASS_VERTICAL "vertical" + +/** + * GTK_STYLE_CLASS_TOP: + * + * A CSS class to indicate an area at the top of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_TOP "top" + +/** + * GTK_STYLE_CLASS_BOTTOM: + * + * A CSS class to indicate an area at the bottom of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_BOTTOM "bottom" + +/** + * GTK_STYLE_CLASS_LEFT: + * + * A CSS class to indicate an area at the left of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_LEFT "left" + +/** + * GTK_STYLE_CLASS_RIGHT: + * + * A CSS class to indicate an area at the right of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_RIGHT "right" + +/** + * GTK_STYLE_CLASS_PULSE: + * + * A CSS class to use when rendering a pulse in an indeterminate progress bar. + * + * This is used by #GtkProgressBar and #GtkEntry. + */ +#define GTK_STYLE_CLASS_PULSE "pulse" + +/** + * GTK_STYLE_CLASS_ARROW: + * + * A CSS class used when rendering an arrow element. + * + * Note that #gtk_render_arrow automatically adds this style class + * to the style context when rendering an arrow element. + */ +#define GTK_STYLE_CLASS_ARROW "arrow" + +/** + * GTK_STYLE_CLASS_OSD: + * + * A CSS class used when rendering an OSD (On Screen Display) element, + * on top of another container. + */ +#define GTK_STYLE_CLASS_OSD "osd" + +/* Predefined set of widget regions */ + +/** + * GTK_STYLE_REGION_ROW: + * + * A widget region name to define a treeview row. + */ +#define GTK_STYLE_REGION_ROW "row" + +/** + * GTK_STYLE_REGION_COLUMN: + * + * A widget region name to define a treeview column. + */ +#define GTK_STYLE_REGION_COLUMN "column" + +/** + * GTK_STYLE_REGION_COLUMN_HEADER: + * + * A widget region name to define a treeview column header. + */ +#define GTK_STYLE_REGION_COLUMN_HEADER "column-header" + +/** + * GTK_STYLE_REGION_TAB: + * + * A widget region name to define a notebook tab. + */ +#define GTK_STYLE_REGION_TAB "tab" + +GType gtk_style_context_get_type (void) G_GNUC_CONST; + +GtkStyleContext * gtk_style_context_new (void); + +void gtk_style_context_add_provider_for_screen (GdkScreen *screen, + GtkStyleProvider *provider, + guint priority); +void gtk_style_context_remove_provider_for_screen (GdkScreen *screen, + GtkStyleProvider *provider); + +void gtk_style_context_add_provider (GtkStyleContext *context, + GtkStyleProvider *provider, + guint priority); + +void gtk_style_context_remove_provider (GtkStyleContext *context, + GtkStyleProvider *provider); + +void gtk_style_context_save (GtkStyleContext *context); +void gtk_style_context_restore (GtkStyleContext *context); + +GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context, + const gchar *property); +void gtk_style_context_get_property (GtkStyleContext *context, + const gchar *property, + GtkStateFlags state, + GValue *value); +void gtk_style_context_get_valist (GtkStyleContext *context, + GtkStateFlags state, + va_list args); +void gtk_style_context_get (GtkStyleContext *context, + GtkStateFlags state, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_style_context_set_state (GtkStyleContext *context, + GtkStateFlags flags); +GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context); + +GDK_DEPRECATED_IN_3_6 +gboolean gtk_style_context_state_is_running (GtkStyleContext *context, + GtkStateType state, + gdouble *progress); + +void gtk_style_context_set_path (GtkStyleContext *context, + GtkWidgetPath *path); +const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context); +GDK_AVAILABLE_IN_3_4 +void gtk_style_context_set_parent (GtkStyleContext *context, + GtkStyleContext *parent); +GtkStyleContext *gtk_style_context_get_parent (GtkStyleContext *context); + +GList * gtk_style_context_list_classes (GtkStyleContext *context); + +void gtk_style_context_add_class (GtkStyleContext *context, + const gchar *class_name); +void gtk_style_context_remove_class (GtkStyleContext *context, + const gchar *class_name); +gboolean gtk_style_context_has_class (GtkStyleContext *context, + const gchar *class_name); + +GList * gtk_style_context_list_regions (GtkStyleContext *context); + +void gtk_style_context_add_region (GtkStyleContext *context, + const gchar *region_name, + GtkRegionFlags flags); +void gtk_style_context_remove_region (GtkStyleContext *context, + const gchar *region_name); +gboolean gtk_style_context_has_region (GtkStyleContext *context, + const gchar *region_name, + GtkRegionFlags *flags_return); + +void gtk_style_context_get_style_property (GtkStyleContext *context, + const gchar *property_name, + GValue *value); +void gtk_style_context_get_style_valist (GtkStyleContext *context, + va_list args); +void gtk_style_context_get_style (GtkStyleContext *context, + ...); + +GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context, + const gchar *stock_id); +GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set, + GtkStyleContext *context, + GtkIconSize size); + +void gtk_style_context_set_screen (GtkStyleContext *context, + GdkScreen *screen); +GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context); + +void gtk_style_context_set_direction (GtkStyleContext *context, + GtkTextDirection direction); +GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context); + +void gtk_style_context_set_junction_sides (GtkStyleContext *context, + GtkJunctionSides sides); +GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context); + +gboolean gtk_style_context_lookup_color (GtkStyleContext *context, + const gchar *color_name, + GdkRGBA *color); + +GDK_DEPRECATED_IN_3_6 +void gtk_style_context_notify_state_change (GtkStyleContext *context, + GdkWindow *window, + gpointer region_id, + GtkStateType state, + gboolean state_value); +GDK_DEPRECATED_IN_3_6 +void gtk_style_context_cancel_animations (GtkStyleContext *context, + gpointer region_id); +GDK_DEPRECATED_IN_3_6 +void gtk_style_context_scroll_animations (GtkStyleContext *context, + GdkWindow *window, + gint dx, + gint dy); + +GDK_DEPRECATED_IN_3_6 +void gtk_style_context_push_animatable_region (GtkStyleContext *context, + gpointer region_id); +GDK_DEPRECATED_IN_3_6 +void gtk_style_context_pop_animatable_region (GtkStyleContext *context); + +/* Some helper functions to retrieve most common properties */ +void gtk_style_context_get_color (GtkStyleContext *context, + GtkStateFlags state, + GdkRGBA *color); +void gtk_style_context_get_background_color (GtkStyleContext *context, + GtkStateFlags state, + GdkRGBA *color); +void gtk_style_context_get_border_color (GtkStyleContext *context, + GtkStateFlags state, + GdkRGBA *color); +const PangoFontDescription * + gtk_style_context_get_font (GtkStyleContext *context, + GtkStateFlags state); +void gtk_style_context_get_border (GtkStyleContext *context, + GtkStateFlags state, + GtkBorder *border); +void gtk_style_context_get_padding (GtkStyleContext *context, + GtkStateFlags state, + GtkBorder *padding); +void gtk_style_context_get_margin (GtkStyleContext *context, + GtkStateFlags state, + GtkBorder *margin); + +void gtk_style_context_invalidate (GtkStyleContext *context); +void gtk_style_context_reset_widgets (GdkScreen *screen); + +void gtk_style_context_set_background (GtkStyleContext *context, + GdkWindow *window); + +/* Paint methods */ +void gtk_render_check (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_option (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_arrow (GtkStyleContext *context, + cairo_t *cr, + gdouble angle, + gdouble x, + gdouble y, + gdouble size); +void gtk_render_background (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_frame (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_expander (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_focus (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_layout (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + PangoLayout *layout); +void gtk_render_line (GtkStyleContext *context, + cairo_t *cr, + gdouble x0, + gdouble y0, + gdouble x1, + gdouble y1); +void gtk_render_slider (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkOrientation orientation); +void gtk_render_frame_gap (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side, + gdouble xy0_gap, + gdouble xy1_gap); +void gtk_render_extension (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side); +void gtk_render_handle (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +void gtk_render_activity (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); +GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context, + const GtkIconSource *source, + GtkIconSize size); +GDK_AVAILABLE_IN_3_2 +void gtk_render_icon (GtkStyleContext *context, + cairo_t *cr, + GdkPixbuf *pixbuf, + gdouble x, + gdouble y); +GDK_AVAILABLE_IN_3_4 +void gtk_render_insertion_cursor + (GtkStyleContext *context, + cairo_t *cr, + gdouble x, + gdouble y, + PangoLayout *layout, + int index, + PangoDirection direction); +GDK_DEPRECATED_IN_3_4 +void gtk_draw_insertion_cursor (GtkWidget *widget, + cairo_t *cr, + const GdkRectangle *location, + gboolean is_primary, + GtkTextDirection direction, + gboolean draw_arrow); + +/* Accessibility support */ +AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes, + GtkStyleContext *context, + GtkStateFlags flags); + +G_END_DECLS + +#endif /* __GTK_STYLE_CONTEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleproperties.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleproperties.h new file mode 100644 index 0000000..cf644d9 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleproperties.h @@ -0,0 +1,117 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STYLE_PROPERTIES_H__ +#define __GTK_STYLE_PROPERTIES_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_STYLE_PROPERTIES (gtk_style_properties_get_type ()) +#define GTK_STYLE_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROPERTIES, GtkStyleProperties)) +#define GTK_STYLE_PROPERTIES_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_STYLE_PROPERTIES, GtkStylePropertiesClass)) +#define GTK_IS_STYLE_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROPERTIES)) +#define GTK_IS_STYLE_PROPERTIES_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_PROPERTIES)) +#define GTK_STYLE_PROPERTIES_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_PROPERTIES, GtkStylePropertiesClass)) + +typedef struct _GtkStyleProperties GtkStyleProperties; +typedef struct _GtkStylePropertiesClass GtkStylePropertiesClass; +typedef struct _GtkStylePropertiesPrivate GtkStylePropertiesPrivate; + +typedef struct _GtkSymbolicColor GtkSymbolicColor; +typedef struct _GtkGradient GtkGradient; + +struct _GtkStyleProperties +{ + GObject parent_object; + GtkStylePropertiesPrivate *priv; +}; + +struct _GtkStylePropertiesClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +typedef gboolean (* GtkStylePropertyParser) (const gchar *string, + GValue *value, + GError **error); + +GType gtk_style_properties_get_type (void) G_GNUC_CONST; + +/* Next 2 are implemented in gtkcsscustomproperty.c */ +void gtk_style_properties_register_property (GtkStylePropertyParser parse_func, + GParamSpec *pspec); +gboolean gtk_style_properties_lookup_property (const gchar *property_name, + GtkStylePropertyParser *parse_func, + GParamSpec **pspec); + +GtkStyleProperties * gtk_style_properties_new (void); + +void gtk_style_properties_map_color (GtkStyleProperties *props, + const gchar *name, + GtkSymbolicColor *color); +GtkSymbolicColor * gtk_style_properties_lookup_color (GtkStyleProperties *props, + const gchar *name); + +void gtk_style_properties_set_property (GtkStyleProperties *props, + const gchar *property, + GtkStateFlags state, + const GValue *value); +void gtk_style_properties_set_valist (GtkStyleProperties *props, + GtkStateFlags state, + va_list args); +void gtk_style_properties_set (GtkStyleProperties *props, + GtkStateFlags state, + ...) G_GNUC_NULL_TERMINATED; + +gboolean gtk_style_properties_get_property (GtkStyleProperties *props, + const gchar *property, + GtkStateFlags state, + GValue *value); +void gtk_style_properties_get_valist (GtkStyleProperties *props, + GtkStateFlags state, + va_list args); +void gtk_style_properties_get (GtkStyleProperties *props, + GtkStateFlags state, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_style_properties_unset_property (GtkStyleProperties *props, + const gchar *property, + GtkStateFlags state); + +void gtk_style_properties_clear (GtkStyleProperties *props); + +void gtk_style_properties_merge (GtkStyleProperties *props, + const GtkStyleProperties *props_to_merge, + gboolean replace); + +G_END_DECLS + +#endif /* __GTK_STYLE_PROPERTIES_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleprovider.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleprovider.h new file mode 100644 index 0000000..62b3aeb --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkstyleprovider.h @@ -0,0 +1,126 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_STYLE_PROVIDER_H__ +#define __GTK_STYLE_PROVIDER_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_STYLE_PROVIDER (gtk_style_provider_get_type ()) +#define GTK_STYLE_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProvider)) +#define GTK_IS_STYLE_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROVIDER)) +#define GTK_STYLE_PROVIDER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProviderIface)) + +/** + * GTK_STYLE_PROVIDER_PRIORITY_FALLBACK: + * + * The priority used for default style information + * that is used in the absence of themes. + */ +#define GTK_STYLE_PROVIDER_PRIORITY_FALLBACK 1 + +/** + * GTK_STYLE_PROVIDER_PRIORITY_THEME: + * + * The priority used for style information provided + * by themes. + */ +#define GTK_STYLE_PROVIDER_PRIORITY_THEME 200 + +/** + * GTK_STYLE_PROVIDER_PRIORITY_SETTINGS: + * + * The priority used for style information provided + * via #GtkSettings. + * + * This priority is higher than #GTK_STYLE_PROVIDER_PRIORITY_THEME + * to let settings override themes. + */ +#define GTK_STYLE_PROVIDER_PRIORITY_SETTINGS 400 + +/** + * GTK_STYLE_PROVIDER_PRIORITY_APPLICATION: + * + * A priority that can be used when adding a #GtkStyleProvider + * for application-specific style information. + */ +#define GTK_STYLE_PROVIDER_PRIORITY_APPLICATION 600 + +/** + * GTK_STYLE_PROVIDER_PRIORITY_USER: + * + * The priority used for the style information from + * ~/.gtk-3.0.css. + * + * You should not use priorities higher than this, to + * give the user the last word. + */ +#define GTK_STYLE_PROVIDER_PRIORITY_USER 800 + +typedef struct _GtkStyleProviderIface GtkStyleProviderIface; +typedef struct _GtkStyleProvider GtkStyleProvider; /* dummy typedef */ + +/** + * GtkStyleProviderIface: + * @get_style: Gets a set of style information that applies to a widget path. + * @get_style_property: Gets the value of a widget style property that applies to a widget path. + * @get_icon_factory: Gets the icon factory that applies to a widget path. + */ +struct _GtkStyleProviderIface +{ + GTypeInterface g_iface; + + GtkStyleProperties * (* get_style) (GtkStyleProvider *provider, + GtkWidgetPath *path); + + gboolean (* get_style_property) (GtkStyleProvider *provider, + GtkWidgetPath *path, + GtkStateFlags state, + GParamSpec *pspec, + GValue *value); + + GtkIconFactory * (* get_icon_factory) (GtkStyleProvider *provider, + GtkWidgetPath *path); +}; + +GType gtk_style_provider_get_type (void) G_GNUC_CONST; + +GtkStyleProperties *gtk_style_provider_get_style (GtkStyleProvider *provider, + GtkWidgetPath *path); + +gboolean gtk_style_provider_get_style_property (GtkStyleProvider *provider, + GtkWidgetPath *path, + GtkStateFlags state, + GParamSpec *pspec, + GValue *value); + +GtkIconFactory * gtk_style_provider_get_icon_factory (GtkStyleProvider *provider, + GtkWidgetPath *path); + +G_END_DECLS + +#endif /* __GTK_STYLE_PROVIDER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkswitch.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkswitch.h new file mode 100644 index 0000000..d288cc2 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkswitch.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * + * Copyright (C) 2010 Intel Corporation + * Copyright (C) 2010 RedHat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Author: + * Emmanuele Bassi + * Matthias Clasen + * + * Based on similar code from Mx. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SWITCH_H__ +#define __GTK_SWITCH_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SWITCH (gtk_switch_get_type ()) +#define GTK_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SWITCH, GtkSwitch)) +#define GTK_IS_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SWITCH)) +#define GTK_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SWITCH, GtkSwitchClass)) +#define GTK_IS_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SWITCH)) +#define GTK_SWITCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SWITCH, GtkSwitchClass)) + +typedef struct _GtkSwitch GtkSwitch; +typedef struct _GtkSwitchPrivate GtkSwitchPrivate; +typedef struct _GtkSwitchClass GtkSwitchClass; + +/** + * GtkSwitch: + * + * The GtkSwitch structure contains private + * data and it should only be accessed using the provided API. + */ +struct _GtkSwitch +{ + /*< private >*/ + GtkWidget parent_instance; + + GtkSwitchPrivate *priv; +}; + +/** + * GtkSwitchClass: + * + * The GtkSwitchClass structure contains only + * private data. + */ +struct _GtkSwitchClass +{ + /*< private >*/ + GtkWidgetClass parent_class; + + void (* activate) (GtkSwitch *sw); + + void (* _switch_padding_1) (void); + void (* _switch_padding_2) (void); + void (* _switch_padding_3) (void); + void (* _switch_padding_4) (void); + void (* _switch_padding_5) (void); + void (* _switch_padding_6) (void); +}; + +GType gtk_switch_get_type (void) G_GNUC_CONST; + +GtkWidget * gtk_switch_new (void); + +void gtk_switch_set_active (GtkSwitch *sw, + gboolean is_active); +gboolean gtk_switch_get_active (GtkSwitch *sw); + +G_END_DECLS + +#endif /* __GTK_SWITCH_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtksymboliccolor.h b/gtk+-mingw/include/gtk-3.0/gtk/gtksymboliccolor.h new file mode 100644 index 0000000..ee0c55e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtksymboliccolor.h @@ -0,0 +1,57 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_SYMBOLIC_COLOR_H__ +#define __GTK_SYMBOLIC_COLOR_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_SYMBOLIC_COLOR (gtk_symbolic_color_get_type ()) + +GType gtk_symbolic_color_get_type (void) G_GNUC_CONST; + +GtkSymbolicColor * gtk_symbolic_color_new_literal (const GdkRGBA *color); +GtkSymbolicColor * gtk_symbolic_color_new_name (const gchar *name); +GtkSymbolicColor * gtk_symbolic_color_new_shade (GtkSymbolicColor *color, + gdouble factor); +GtkSymbolicColor * gtk_symbolic_color_new_alpha (GtkSymbolicColor *color, + gdouble factor); +GtkSymbolicColor * gtk_symbolic_color_new_mix (GtkSymbolicColor *color1, + GtkSymbolicColor *color2, + gdouble factor); +GtkSymbolicColor * gtk_symbolic_color_new_win32 (const gchar *theme_class, + gint id); + +GtkSymbolicColor * gtk_symbolic_color_ref (GtkSymbolicColor *color); +void gtk_symbolic_color_unref (GtkSymbolicColor *color); + +char * gtk_symbolic_color_to_string (GtkSymbolicColor *color); + +gboolean gtk_symbolic_color_resolve (GtkSymbolicColor *color, + GtkStyleProperties *props, + GdkRGBA *resolved_color); + +G_END_DECLS + +#endif /* __GTK_SYMBOLIC_COLOR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktestutils.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktestutils.h new file mode 100644 index 0000000..207fefd --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktestutils.h @@ -0,0 +1,72 @@ +/* Gtk+ testing utilities + * Copyright (C) 2007 Imendio AB + * Authors: Tim Janik + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEST_UTILS_H__ +#define __GTK_TEST_UTILS_H__ + +#include +#include + +G_BEGIN_DECLS + +/* --- Gtk+ Test Utility API --- */ +void gtk_test_init (int *argcp, + char ***argvp, + ...); +void gtk_test_register_all_types (void); +const GType* gtk_test_list_all_types (guint *n_types); +GtkWidget* gtk_test_find_widget (GtkWidget *widget, + const gchar *label_pattern, + GType widget_type); +GtkWidget* gtk_test_create_widget (GType widget_type, + const gchar *first_property_name, + ...); +GtkWidget* gtk_test_create_simple_window (const gchar *window_title, + const gchar *dialog_text); +GtkWidget* gtk_test_display_button_window (const gchar *window_title, + const gchar *dialog_text, + ...); /* NULL terminated list of (label, &int) pairs */ +void gtk_test_slider_set_perc (GtkWidget *widget, /* GtkRange-alike */ + double percentage); +double gtk_test_slider_get_value (GtkWidget *widget); +gboolean gtk_test_spin_button_click (GtkSpinButton *spinner, + guint button, + gboolean upwards); +gboolean gtk_test_widget_click (GtkWidget *widget, + guint button, + GdkModifierType modifiers); +gboolean gtk_test_widget_send_key (GtkWidget *widget, + guint keyval, + GdkModifierType modifiers); +/* operate on GtkEntry, GtkText, GtkTextView or GtkLabel */ +void gtk_test_text_set (GtkWidget *widget, + const gchar *string); +gchar* gtk_test_text_get (GtkWidget *widget); + +/* --- Gtk+ Test low-level API --- */ +GtkWidget* gtk_test_find_sibling (GtkWidget *base_widget, + GType widget_type); +GtkWidget* gtk_test_find_label (GtkWidget *widget, + const gchar *label_pattern); +G_END_DECLS + +#endif /* __GTK_TEST_UTILS_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextattributes.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextattributes.h new file mode 100644 index 0000000..d07a2ee --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextattributes.h @@ -0,0 +1,180 @@ +/* gtktexttag.c - text tag object + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_ATTRIBUTES_H__ +#define __GTK_TEXT_ATTRIBUTES_H__ + + +#include +#include + + +G_BEGIN_DECLS + +typedef struct _GtkTextAttributes GtkTextAttributes; + +#define GTK_TYPE_TEXT_ATTRIBUTES (gtk_text_attributes_get_type ()) + +typedef struct _GtkTextAppearance GtkTextAppearance; + +/** + * GtkTextAttributes: + * + * Using #GtkTextAttributes directly should rarely be necessary. + * It's primarily useful with gtk_text_iter_get_attributes(). + * As with most GTK+ structs, the fields in this struct should only + * be read, never modified directly. + */ +struct _GtkTextAppearance +{ + /*< public >*/ + GdkColor bg_color; + GdkColor fg_color; + + /* super/subscript rise, can be negative */ + gint rise; + + /*< public >*/ + guint underline : 4; /* PangoUnderline */ + guint strikethrough : 1; + + /* Whether to use background-related values; this is irrelevant for + * the values struct when in a tag, but is used for the composite + * values struct; it's true if any of the tags being composited + * had background stuff set. + */ + guint draw_bg : 1; + + /* These are only used when we are actually laying out and rendering + * a paragraph; not when a GtkTextAppearance is part of a + * GtkTextAttributes. + */ + guint inside_selection : 1; + guint is_text : 1; + + GdkRGBA *rgba[2]; + +#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__) + /* unusable, just for ABI compat */ + guint padding[2]; +#endif +}; + +struct _GtkTextAttributes +{ + /*< private >*/ + guint refcount; + + /*< public >*/ + GtkTextAppearance appearance; + + GtkJustification justification; + GtkTextDirection direction; + + /* Individual chunks of this can be set/unset as a group */ + PangoFontDescription *font; + + gdouble font_scale; + + gint left_margin; + gint right_margin; + gint indent; + + gint pixels_above_lines; + gint pixels_below_lines; + gint pixels_inside_wrap; + + PangoTabArray *tabs; + + GtkWrapMode wrap_mode; /* How to handle wrap-around for this tag. + * Must be GTK_WRAPMODE_CHAR, + * GTK_WRAPMODE_NONE, GTK_WRAPMODE_WORD + */ + + PangoLanguage *language; + + /*< private >*/ + GdkColor *pg_bg_color; + + /*< public >*/ + /* hide the text */ + guint invisible : 1; + + /* Background is fit to full line height rather than + * baseline +/- ascent/descent (font height) + */ + guint bg_full_height : 1; + + /* can edit this text */ + guint editable : 1; + + /*< private >*/ + GdkRGBA *pg_bg_rgba; + + guint padding[3]; +}; + +GtkTextAttributes* gtk_text_attributes_new (void); +GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src); +void gtk_text_attributes_copy_values (GtkTextAttributes *src, + GtkTextAttributes *dest); +void gtk_text_attributes_unref (GtkTextAttributes *values); +GtkTextAttributes *gtk_text_attributes_ref (GtkTextAttributes *values); + +GType gtk_text_attributes_get_type (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextbuffer.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextbuffer.h new file mode 100644 index 0000000..9255155 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextbuffer.h @@ -0,0 +1,408 @@ +/* GTK - The GIMP Toolkit + * gtktextbuffer.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_BUFFER_H__ +#define __GTK_TEXT_BUFFER_H__ + +#include +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +/* + * This is the PUBLIC representation of a text buffer. + * GtkTextBTree is the PRIVATE internal representation of it. + */ + +/* these values are used as "info" for the targets contained in the + * lists returned by gtk_text_buffer_get_copy,paste_target_list() + * + * the enum counts down from G_MAXUINT to avoid clashes with application + * added drag destinations which usually start at 0. + */ +typedef enum +{ + GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = - 1, + GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = - 2, + GTK_TEXT_BUFFER_TARGET_INFO_TEXT = - 3 +} GtkTextBufferTargetInfo; + +typedef struct _GtkTextBTree GtkTextBTree; + +#define GTK_TYPE_TEXT_BUFFER (gtk_text_buffer_get_type ()) +#define GTK_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBuffer)) +#define GTK_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) +#define GTK_IS_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_BUFFER)) +#define GTK_IS_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_BUFFER)) +#define GTK_TEXT_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass)) + +typedef struct _GtkTextBufferPrivate GtkTextBufferPrivate; +typedef struct _GtkTextBufferClass GtkTextBufferClass; + +struct _GtkTextBuffer +{ + GObject parent_instance; + + GtkTextBufferPrivate *priv; +}; + +struct _GtkTextBufferClass +{ + GObjectClass parent_class; + + void (* insert_text) (GtkTextBuffer *buffer, + GtkTextIter *pos, + const gchar *new_text, + gint new_text_length); + + void (* insert_pixbuf) (GtkTextBuffer *buffer, + GtkTextIter *iter, + GdkPixbuf *pixbuf); + + void (* insert_child_anchor) (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + + void (* delete_range) (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); + + /* Only for text/widgets/pixbuf changed, marks/tags don't cause this + * to be emitted + */ + void (* changed) (GtkTextBuffer *buffer); + + + /* New value for the modified flag */ + void (* modified_changed) (GtkTextBuffer *buffer); + + /* Mark moved or created */ + void (* mark_set) (GtkTextBuffer *buffer, + const GtkTextIter *location, + GtkTextMark *mark); + + void (* mark_deleted) (GtkTextBuffer *buffer, + GtkTextMark *mark); + + void (* apply_tag) (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); + + void (* remove_tag) (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); + + /* Called at the start and end of an atomic user action */ + void (* begin_user_action) (GtkTextBuffer *buffer); + void (* end_user_action) (GtkTextBuffer *buffer); + + void (* paste_done) (GtkTextBuffer *buffer, + GtkClipboard *clipboard); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_buffer_get_type (void) G_GNUC_CONST; + + + +/* table is NULL to create a new one */ +GtkTextBuffer *gtk_text_buffer_new (GtkTextTagTable *table); +gint gtk_text_buffer_get_line_count (GtkTextBuffer *buffer); +gint gtk_text_buffer_get_char_count (GtkTextBuffer *buffer); + + +GtkTextTagTable* gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer); + +/* Delete whole buffer, then insert */ +void gtk_text_buffer_set_text (GtkTextBuffer *buffer, + const gchar *text, + gint len); + +/* Insert into the buffer */ +void gtk_text_buffer_insert (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len); +void gtk_text_buffer_insert_at_cursor (GtkTextBuffer *buffer, + const gchar *text, + gint len); + +gboolean gtk_text_buffer_insert_interactive (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + gboolean default_editable); +gboolean gtk_text_buffer_insert_interactive_at_cursor (GtkTextBuffer *buffer, + const gchar *text, + gint len, + gboolean default_editable); + +void gtk_text_buffer_insert_range (GtkTextBuffer *buffer, + GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end); +gboolean gtk_text_buffer_insert_range_interactive (GtkTextBuffer *buffer, + GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean default_editable); + +void gtk_text_buffer_insert_with_tags (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + GtkTextTag *first_tag, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_text_buffer_insert_with_tags_by_name (GtkTextBuffer *buffer, + GtkTextIter *iter, + const gchar *text, + gint len, + const gchar *first_tag_name, + ...) G_GNUC_NULL_TERMINATED; + +/* Delete from the buffer */ +void gtk_text_buffer_delete (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +gboolean gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer, + GtkTextIter *start_iter, + GtkTextIter *end_iter, + gboolean default_editable); +gboolean gtk_text_buffer_backspace (GtkTextBuffer *buffer, + GtkTextIter *iter, + gboolean interactive, + gboolean default_editable); + +/* Obtain strings from the buffer */ +gchar *gtk_text_buffer_get_text (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean include_hidden_chars); + +gchar *gtk_text_buffer_get_slice (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gboolean include_hidden_chars); + +/* Insert a pixbuf */ +void gtk_text_buffer_insert_pixbuf (GtkTextBuffer *buffer, + GtkTextIter *iter, + GdkPixbuf *pixbuf); + +/* Insert a child anchor */ +void gtk_text_buffer_insert_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + +/* Convenience, create and insert a child anchor */ +GtkTextChildAnchor *gtk_text_buffer_create_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter); + +/* Mark manipulation */ +void gtk_text_buffer_add_mark (GtkTextBuffer *buffer, + GtkTextMark *mark, + const GtkTextIter *where); +GtkTextMark *gtk_text_buffer_create_mark (GtkTextBuffer *buffer, + const gchar *mark_name, + const GtkTextIter *where, + gboolean left_gravity); +void gtk_text_buffer_move_mark (GtkTextBuffer *buffer, + GtkTextMark *mark, + const GtkTextIter *where); +void gtk_text_buffer_delete_mark (GtkTextBuffer *buffer, + GtkTextMark *mark); +GtkTextMark* gtk_text_buffer_get_mark (GtkTextBuffer *buffer, + const gchar *name); + +void gtk_text_buffer_move_mark_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *where); +void gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer, + const gchar *name); + +GtkTextMark* gtk_text_buffer_get_insert (GtkTextBuffer *buffer); +GtkTextMark* gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer); + +/* efficiently move insert and selection_bound at the same time */ +void gtk_text_buffer_place_cursor (GtkTextBuffer *buffer, + const GtkTextIter *where); +void gtk_text_buffer_select_range (GtkTextBuffer *buffer, + const GtkTextIter *ins, + const GtkTextIter *bound); + + + +/* Tag manipulation */ +void gtk_text_buffer_apply_tag (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_tag (GtkTextBuffer *buffer, + GtkTextTag *tag, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_apply_tag_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_tag_by_name (GtkTextBuffer *buffer, + const gchar *name, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer, + const GtkTextIter *start, + const GtkTextIter *end); + + +/* You can either ignore the return value, or use it to + * set the attributes of the tag. tag_name can be NULL + */ +GtkTextTag *gtk_text_buffer_create_tag (GtkTextBuffer *buffer, + const gchar *tag_name, + const gchar *first_property_name, + ...); + +/* Obtain iterators pointed at various places, then you can move the + * iterator around using the GtkTextIter operators + */ +void gtk_text_buffer_get_iter_at_line_offset (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number, + gint char_offset); +void gtk_text_buffer_get_iter_at_line_index (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number, + gint byte_index); +void gtk_text_buffer_get_iter_at_offset (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint char_offset); +void gtk_text_buffer_get_iter_at_line (GtkTextBuffer *buffer, + GtkTextIter *iter, + gint line_number); +void gtk_text_buffer_get_start_iter (GtkTextBuffer *buffer, + GtkTextIter *iter); +void gtk_text_buffer_get_end_iter (GtkTextBuffer *buffer, + GtkTextIter *iter); +void gtk_text_buffer_get_bounds (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +void gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextMark *mark); + +void gtk_text_buffer_get_iter_at_child_anchor (GtkTextBuffer *buffer, + GtkTextIter *iter, + GtkTextChildAnchor *anchor); + +/* There's no get_first_iter because you just get the iter for + line or char 0 */ + +/* Used to keep track of whether the buffer needs saving; anytime the + buffer contents change, the modified flag is turned on. Whenever + you save, turn it off. Tags and marks do not affect the modified + flag, but if you would like them to you can connect a handler to + the tag/mark signals and call set_modified in your handler */ + +gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer); +void gtk_text_buffer_set_modified (GtkTextBuffer *buffer, + gboolean setting); + +gboolean gtk_text_buffer_get_has_selection (GtkTextBuffer *buffer); + +void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); +void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); + +void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard, + gboolean default_editable); +void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard); +void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer, + GtkClipboard *clipboard, + GtkTextIter *override_location, + gboolean default_editable); + +gboolean gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer, + GtkTextIter *start, + GtkTextIter *end); +gboolean gtk_text_buffer_delete_selection (GtkTextBuffer *buffer, + gboolean interactive, + gboolean default_editable); + +/* Called to specify atomic user actions, used to implement undo */ +void gtk_text_buffer_begin_user_action (GtkTextBuffer *buffer); +void gtk_text_buffer_end_user_action (GtkTextBuffer *buffer); + +GtkTargetList * gtk_text_buffer_get_copy_target_list (GtkTextBuffer *buffer); +GtkTargetList * gtk_text_buffer_get_paste_target_list (GtkTextBuffer *buffer); + +/* INTERNAL private stuff */ +void _gtk_text_buffer_spew (GtkTextBuffer *buffer); + +GtkTextBTree* _gtk_text_buffer_get_btree (GtkTextBuffer *buffer); + +const PangoLogAttr* _gtk_text_buffer_get_line_log_attrs (GtkTextBuffer *buffer, + const GtkTextIter *anywhere_in_line, + gint *char_len); + +void _gtk_text_buffer_notify_will_remove_tag (GtkTextBuffer *buffer, + GtkTextTag *tag); + +void _gtk_text_buffer_get_text_before (GtkTextBuffer *buffer, + AtkTextBoundary boundary_type, + GtkTextIter *position, + GtkTextIter *start, + GtkTextIter *end); +void _gtk_text_buffer_get_text_at (GtkTextBuffer *buffer, + AtkTextBoundary boundary_type, + GtkTextIter *position, + GtkTextIter *start, + GtkTextIter *end); +void _gtk_text_buffer_get_text_after (GtkTextBuffer *buffer, + AtkTextBoundary boundary_type, + GtkTextIter *position, + GtkTextIter *start, + GtkTextIter *end); + +G_END_DECLS + +#endif diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextbufferrichtext.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextbufferrichtext.h new file mode 100644 index 0000000..4dec3f3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextbufferrichtext.h @@ -0,0 +1,126 @@ +/* gtkrichtext.h + * + * Copyright (C) 2006 Imendio AB + * Contact: Michael Natterer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_BUFFER_RICH_TEXT_H__ +#define __GTK_TEXT_BUFFER_RICH_TEXT_H__ + +#include + +G_BEGIN_DECLS + +/** + * GtkTextBufferSerializeFunc: + * @register_buffer: the #GtkTextBuffer for which the format is registered + * @content_buffer: the #GtkTextBuffer to serialize + * @start: start of the block of text to serialize + * @end: end of the block of text to serialize + * @length: Return location for the length of the serialized data + * @user_data: user data that was specified when registering the format + * + * A function that is called to serialize the content of a text buffer. + * It must return the serialized form of the content. + * + * Returns: a newly-allocated array of guint8 which contains the serialized + * data, or %NULL if an error occurred + */ +typedef guint8 * (* GtkTextBufferSerializeFunc) (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + const GtkTextIter *start, + const GtkTextIter *end, + gsize *length, + gpointer user_data); + +/** + * GtkTextBufferDeserializeFunc: + * @register_buffer: the #GtkTextBuffer the format is registered with + * @content_buffer: the #GtkTextBuffer to deserialize into + * @iter: insertion point for the deserialized text + * @data: data to deserialize + * @length: length of %data + * @create_tags: %TRUE if deserializing may create tags + * @user_data: user data that was specified when registering the format + * @error: return location for a #GError + * + * A function that is called to deserialize rich text that has been + * serialized with gtk_text_buffer_serialize(), and insert it at @iter. + * + * Returns: %TRUE on success, %FALSE otherwise + */ +typedef gboolean (* GtkTextBufferDeserializeFunc) (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GtkTextIter *iter, + const guint8 *data, + gsize length, + gboolean create_tags, + gpointer user_data, + GError **error); + +GdkAtom gtk_text_buffer_register_serialize_format (GtkTextBuffer *buffer, + const gchar *mime_type, + GtkTextBufferSerializeFunc function, + gpointer user_data, + GDestroyNotify user_data_destroy); +GdkAtom gtk_text_buffer_register_serialize_tagset (GtkTextBuffer *buffer, + const gchar *tagset_name); + +GdkAtom gtk_text_buffer_register_deserialize_format (GtkTextBuffer *buffer, + const gchar *mime_type, + GtkTextBufferDeserializeFunc function, + gpointer user_data, + GDestroyNotify user_data_destroy); +GdkAtom gtk_text_buffer_register_deserialize_tagset (GtkTextBuffer *buffer, + const gchar *tagset_name); + +void gtk_text_buffer_unregister_serialize_format (GtkTextBuffer *buffer, + GdkAtom format); +void gtk_text_buffer_unregister_deserialize_format (GtkTextBuffer *buffer, + GdkAtom format); + +void gtk_text_buffer_deserialize_set_can_create_tags (GtkTextBuffer *buffer, + GdkAtom format, + gboolean can_create_tags); +gboolean gtk_text_buffer_deserialize_get_can_create_tags (GtkTextBuffer *buffer, + GdkAtom format); + +GdkAtom * gtk_text_buffer_get_serialize_formats (GtkTextBuffer *buffer, + gint *n_formats); +GdkAtom * gtk_text_buffer_get_deserialize_formats (GtkTextBuffer *buffer, + gint *n_formats); + +guint8 * gtk_text_buffer_serialize (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GdkAtom format, + const GtkTextIter *start, + const GtkTextIter *end, + gsize *length); +gboolean gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer, + GtkTextBuffer *content_buffer, + GdkAtom format, + GtkTextIter *iter, + const guint8 *data, + gsize length, + GError **error); + +G_END_DECLS + +#endif /* __GTK_TEXT_BUFFER_RICH_TEXT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextchild.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextchild.h new file mode 100644 index 0000000..6884432 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextchild.h @@ -0,0 +1,83 @@ +/* GTK - The GIMP Toolkit + * gtktextchild.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_CHILD_H__ +#define __GTK_TEXT_CHILD_H__ + +#include +#include + +G_BEGIN_DECLS + + +/** + * GtkTextChildAnchor: + * + * A #GtkTextChildAnchor is a spot in the buffer where child widgets can + * be "anchored" (inserted inline, as if they were characters). The anchor + * can have multiple widgets anchored, to allow for multiple views. + */ +typedef struct _GtkTextChildAnchor GtkTextChildAnchor; +typedef struct _GtkTextChildAnchorClass GtkTextChildAnchorClass; + +#define GTK_TYPE_TEXT_CHILD_ANCHOR (gtk_text_child_anchor_get_type ()) +#define GTK_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchor)) +#define GTK_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) +#define GTK_IS_TEXT_CHILD_ANCHOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_CHILD_ANCHOR)) +#define GTK_IS_TEXT_CHILD_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_CHILD_ANCHOR)) +#define GTK_TEXT_CHILD_ANCHOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_CHILD_ANCHOR, GtkTextChildAnchorClass)) + +struct _GtkTextChildAnchor +{ + GObject parent_instance; + + /*< private >*/ + gpointer segment; +}; + +struct _GtkTextChildAnchorClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_child_anchor_get_type (void) G_GNUC_CONST; + +GtkTextChildAnchor* gtk_text_child_anchor_new (void); + +GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor); +gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor); + +G_END_DECLS + +#endif diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextdisplay.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextdisplay.h new file mode 100644 index 0000000..3f130b4 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextdisplay.h @@ -0,0 +1,101 @@ +/* gtktextdisplay.c - display layed-out text + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk->Gtk port by Havoc Pennington + * + * This file can be used under your choice of two licenses, the LGPL + * and the original Tk license. + * + * LGPL: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Original Tk license: + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_DISPLAY_H__ +#define __GTK_TEXT_DISPLAY_H__ + +#include + +G_BEGIN_DECLS + +/* A semi-public header intended for use by code that also + * uses GtkTextLayout + */ + +/* The drawable should be pre-initialized to your preferred background. + * widget - Widget to grab some style info from + * cr - Context to render to, matrix set so that (0, 0) + * is the top left of the layout + * widgets - list of widgets that need exposing + */ +void gtk_text_layout_draw (GtkTextLayout *layout, + GtkWidget *widget, + cairo_t *cr, + GList **widgets); + + +G_END_DECLS + +#endif /* __GTK_TEXT_DISPLAY_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextiter.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextiter.h new file mode 100644 index 0000000..723ce52 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextiter.h @@ -0,0 +1,306 @@ +/* GTK - The GIMP Toolkit + * gtktextiter.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_ITER_H__ +#define __GTK_TEXT_ITER_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +typedef enum { + GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0, + GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1, + GTK_TEXT_SEARCH_CASE_INSENSITIVE = 1 << 2 + /* Possible future plans: SEARCH_REGEXP */ +} GtkTextSearchFlags; + +/* + * Iter: represents a location in the text. Becomes invalid if the + * characters/pixmaps/widgets (indexable objects) in the text buffer + * are changed. + */ + +typedef struct _GtkTextBuffer GtkTextBuffer; + +#define GTK_TYPE_TEXT_ITER (gtk_text_iter_get_type ()) + +struct _GtkTextIter { + /* GtkTextIter is an opaque datatype; ignore all these fields. + * Initialize the iter with gtk_text_buffer_get_iter_* + * functions + */ + /*< private >*/ + gpointer dummy1; + gpointer dummy2; + gint dummy3; + gint dummy4; + gint dummy5; + gint dummy6; + gint dummy7; + gint dummy8; + gpointer dummy9; + gpointer dummy10; + gint dummy11; + gint dummy12; + /* padding */ + gint dummy13; + gpointer dummy14; +}; + + +/* This is primarily intended for language bindings that want to avoid + a "buffer" argument to text insertions, deletions, etc. */ +GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter); + +/* + * Life cycle + */ + +GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter); +void gtk_text_iter_free (GtkTextIter *iter); +GDK_AVAILABLE_IN_3_2 +void gtk_text_iter_assign (GtkTextIter *iter, + const GtkTextIter *other); + +GType gtk_text_iter_get_type (void) G_GNUC_CONST; + +/* + * Convert to different kinds of index + */ + +gint gtk_text_iter_get_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_line (const GtkTextIter *iter); +gint gtk_text_iter_get_line_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_line_index (const GtkTextIter *iter); + +gint gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter); +gint gtk_text_iter_get_visible_line_index (const GtkTextIter *iter); + + +/* + * "Dereference" operators + */ +gunichar gtk_text_iter_get_char (const GtkTextIter *iter); + +/* includes the 0xFFFC char for pixmaps/widgets, so char offsets + * into the returned string map properly into buffer char offsets + */ +gchar *gtk_text_iter_get_slice (const GtkTextIter *start, + const GtkTextIter *end); + +/* includes only text, no 0xFFFC */ +gchar *gtk_text_iter_get_text (const GtkTextIter *start, + const GtkTextIter *end); +/* exclude invisible chars */ +gchar *gtk_text_iter_get_visible_slice (const GtkTextIter *start, + const GtkTextIter *end); +gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start, + const GtkTextIter *end); + +GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter); +GSList * gtk_text_iter_get_marks (const GtkTextIter *iter); + +GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter); + +/* Return list of tags toggled at this point (toggled_on determines + * whether the list is of on-toggles or off-toggles) + */ +GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter, + gboolean toggled_on); + +gboolean gtk_text_iter_begins_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_ends_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_toggles_tag (const GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_has_tag (const GtkTextIter *iter, + GtkTextTag *tag); +GSList *gtk_text_iter_get_tags (const GtkTextIter *iter); + +gboolean gtk_text_iter_editable (const GtkTextIter *iter, + gboolean default_setting); +gboolean gtk_text_iter_can_insert (const GtkTextIter *iter, + gboolean default_editability); + +gboolean gtk_text_iter_starts_word (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_word (const GtkTextIter *iter); +gboolean gtk_text_iter_inside_word (const GtkTextIter *iter); +gboolean gtk_text_iter_starts_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_inside_sentence (const GtkTextIter *iter); +gboolean gtk_text_iter_starts_line (const GtkTextIter *iter); +gboolean gtk_text_iter_ends_line (const GtkTextIter *iter); +gboolean gtk_text_iter_is_cursor_position (const GtkTextIter *iter); + +gint gtk_text_iter_get_chars_in_line (const GtkTextIter *iter); +gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter); + +gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter, + GtkTextAttributes *values); +PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter); +gboolean gtk_text_iter_is_end (const GtkTextIter *iter); +gboolean gtk_text_iter_is_start (const GtkTextIter *iter); + +/* + * Moving around the buffer + */ + +gboolean gtk_text_iter_forward_char (GtkTextIter *iter); +gboolean gtk_text_iter_backward_char (GtkTextIter *iter); +gboolean gtk_text_iter_forward_chars (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_chars (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_forward_line (GtkTextIter *iter); +gboolean gtk_text_iter_backward_line (GtkTextIter *iter); +gboolean gtk_text_iter_forward_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_forward_word_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_word_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, + gint count); +/* cursor positions are almost equivalent to chars, but not quite; + * in some languages, you can't put the cursor between certain + * chars. Also, you can't put the cursor between \r\n at the end + * of a line. + */ +gboolean gtk_text_iter_forward_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_backward_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, + gint count); + +gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter, + gint count); + +void gtk_text_iter_set_offset (GtkTextIter *iter, + gint char_offset); +void gtk_text_iter_set_line (GtkTextIter *iter, + gint line_number); +void gtk_text_iter_set_line_offset (GtkTextIter *iter, + gint char_on_line); +void gtk_text_iter_set_line_index (GtkTextIter *iter, + gint byte_on_line); +void gtk_text_iter_forward_to_end (GtkTextIter *iter); +gboolean gtk_text_iter_forward_to_line_end (GtkTextIter *iter); + +void gtk_text_iter_set_visible_line_offset (GtkTextIter *iter, + gint char_on_line); +void gtk_text_iter_set_visible_line_index (GtkTextIter *iter, + gint byte_on_line); + +/* returns TRUE if a toggle was found; NULL for the tag pointer + * means "any tag toggle", otherwise the next toggle of the + * specified tag is located. + */ +gboolean gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter, + GtkTextTag *tag); + +gboolean gtk_text_iter_backward_to_tag_toggle (GtkTextIter *iter, + GtkTextTag *tag); + +typedef gboolean (* GtkTextCharPredicate) (gunichar ch, gpointer user_data); + +gboolean gtk_text_iter_forward_find_char (GtkTextIter *iter, + GtkTextCharPredicate pred, + gpointer user_data, + const GtkTextIter *limit); +gboolean gtk_text_iter_backward_find_char (GtkTextIter *iter, + GtkTextCharPredicate pred, + gpointer user_data, + const GtkTextIter *limit); + +gboolean gtk_text_iter_forward_search (const GtkTextIter *iter, + const gchar *str, + GtkTextSearchFlags flags, + GtkTextIter *match_start, + GtkTextIter *match_end, + const GtkTextIter *limit); + +gboolean gtk_text_iter_backward_search (const GtkTextIter *iter, + const gchar *str, + GtkTextSearchFlags flags, + GtkTextIter *match_start, + GtkTextIter *match_end, + const GtkTextIter *limit); + +/* + * Comparisons + */ +gboolean gtk_text_iter_equal (const GtkTextIter *lhs, + const GtkTextIter *rhs); +gint gtk_text_iter_compare (const GtkTextIter *lhs, + const GtkTextIter *rhs); +gboolean gtk_text_iter_in_range (const GtkTextIter *iter, + const GtkTextIter *start, + const GtkTextIter *end); + +/* Put these two in ascending order */ +void gtk_text_iter_order (GtkTextIter *first, + GtkTextIter *second); + +G_END_DECLS + +#endif diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextlayout.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextlayout.h new file mode 100644 index 0000000..819aaf2 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextlayout.h @@ -0,0 +1,433 @@ +/* GTK - The GIMP Toolkit + * gtktextlayout.h + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk->Gtk port by Havoc Pennington + * Pango support by Owen Taylor + * + * This file can be used under your choice of two licenses, the LGPL + * and the original Tk license. + * + * LGPL: + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Original Tk license: + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TEXT_LAYOUT_H__ +#define __GTK_TEXT_LAYOUT_H__ + +/* This is a "semi-private" header; it is intended for + * use by the text widget, and the text canvas item, + * but that's all. We may have to install it so the + * canvas item can use it, but users are not supposed + * to use it. + */ +#ifndef GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API +#error "You are not supposed to be including this file; the equivalent public API is in gtktextview.h" +#endif + +#include + +G_BEGIN_DECLS + +/* forward declarations that have to be here to avoid including + * gtktextbtree.h + */ +typedef struct _GtkTextLine GtkTextLine; +typedef struct _GtkTextLineData GtkTextLineData; + +#define GTK_TYPE_TEXT_LAYOUT (gtk_text_layout_get_type ()) +#define GTK_TEXT_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_LAYOUT, GtkTextLayout)) +#define GTK_TEXT_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_LAYOUT, GtkTextLayoutClass)) +#define GTK_IS_TEXT_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_LAYOUT)) +#define GTK_IS_TEXT_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_LAYOUT)) +#define GTK_TEXT_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_LAYOUT, GtkTextLayoutClass)) + +typedef struct _GtkTextLayout GtkTextLayout; +typedef struct _GtkTextLayoutClass GtkTextLayoutClass; +typedef struct _GtkTextLineDisplay GtkTextLineDisplay; +typedef struct _GtkTextAttrAppearance GtkTextAttrAppearance; + +struct _GtkTextLayout +{ + GObject parent_instance; + + /* width of the display area on-screen, + * i.e. pixels we should wrap to fit inside. */ + gint screen_width; + + /* width/height of the total logical area being layed out */ + gint width; + gint height; + + /* Pixel offsets from the left and from the top to be used when we + * draw; these allow us to create left/top margins. We don't need + * anything special for bottom/right margins, because those don't + * affect drawing. + */ + /* gint left_edge; */ + /* gint top_edge; */ + + GtkTextBuffer *buffer; + + /* Default style used if no tags override it */ + GtkTextAttributes *default_style; + + /* Pango contexts used for creating layouts */ + PangoContext *ltr_context; + PangoContext *rtl_context; + + /* A cache of one style; this is used to ensure + * we don't constantly regenerate the style + * over long runs with the same style. */ + GtkTextAttributes *one_style_cache; + + /* A cache of one line display. Getting the same line + * many times in a row is the most common case. + */ + GtkTextLineDisplay *one_display_cache; + + /* Whether we are allowed to wrap right now */ + gint wrap_loop_count; + + /* Whether to show the insertion cursor */ + guint cursor_visible : 1; + + /* For what GtkTextDirection to draw cursor GTK_TEXT_DIR_NONE - + * means draw both cursors. + */ + guint cursor_direction : 2; + + /* The keyboard direction is used to default the alignment when + there are no strong characters. + */ + guint keyboard_direction : 2; + + /* The preedit string and attributes, if any */ + + gchar *preedit_string; + PangoAttrList *preedit_attrs; + gint preedit_len; + gint preedit_cursor; + + guint overwrite_mode : 1; +}; + +struct _GtkTextLayoutClass +{ + GObjectClass parent_class; + + /* Some portion of the layout was invalidated + */ + void (*invalidated) (GtkTextLayout *layout); + + /* A range of the layout changed appearance and possibly height + */ + void (*changed) (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); + GtkTextLineData* (*wrap) (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); /* may be NULL */ + void (*get_log_attrs) (GtkTextLayout *layout, + GtkTextLine *line, + PangoLogAttr **attrs, + gint *n_attrs); + void (*invalidate) (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); + void (*free_line_data) (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); + + void (*allocate_child) (GtkTextLayout *layout, + GtkWidget *child, + gint x, + gint y); + + void (*invalidate_cursors) (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); +}; + +struct _GtkTextAttrAppearance +{ + PangoAttribute attr; + GtkTextAppearance appearance; +}; + +struct _GtkTextLineDisplay +{ + PangoLayout *layout; + GArray *cursors; /* indexes of cursors in the PangoLayout */ + + GtkTextDirection direction; + + gint width; /* Width of layout */ + gint total_width; /* width - margins, if no width set on layout, if width set on layout, -1 */ + gint height; + /* Amount layout is shifted from left edge - this is the left margin + * plus any other factors, such as alignment or indentation. + */ + gint x_offset; + gint left_margin; + gint right_margin; + gint top_margin; + gint bottom_margin; + gint insert_index; /* Byte index of insert cursor within para or -1 */ + + GtkTextLine *line; + + GdkColor *pg_bg_color; + + GdkRectangle block_cursor; + guint cursors_invalid : 1; + guint has_block_cursor : 1; + guint cursor_at_line_end : 1; + guint size_only : 1; + + GdkRGBA *pg_bg_rgba; +}; + +#ifdef GTK_COMPILATION +extern G_GNUC_INTERNAL PangoAttrType gtk_text_attr_appearance_type; +#endif + +GType gtk_text_layout_get_type (void) G_GNUC_CONST; + +GtkTextLayout* gtk_text_layout_new (void); +void gtk_text_layout_set_buffer (GtkTextLayout *layout, + GtkTextBuffer *buffer); +GtkTextBuffer *gtk_text_layout_get_buffer (GtkTextLayout *layout); +void gtk_text_layout_set_default_style (GtkTextLayout *layout, + GtkTextAttributes *values); +void gtk_text_layout_set_contexts (GtkTextLayout *layout, + PangoContext *ltr_context, + PangoContext *rtl_context); +void gtk_text_layout_set_cursor_direction (GtkTextLayout *layout, + GtkTextDirection direction); +void gtk_text_layout_set_overwrite_mode (GtkTextLayout *layout, + gboolean overwrite); +void gtk_text_layout_set_keyboard_direction (GtkTextLayout *layout, + GtkTextDirection keyboard_dir); +void gtk_text_layout_default_style_changed (GtkTextLayout *layout); + +void gtk_text_layout_set_screen_width (GtkTextLayout *layout, + gint width); +void gtk_text_layout_set_preedit_string (GtkTextLayout *layout, + const gchar *preedit_string, + PangoAttrList *preedit_attrs, + gint cursor_pos); + +void gtk_text_layout_set_cursor_visible (GtkTextLayout *layout, + gboolean cursor_visible); +gboolean gtk_text_layout_get_cursor_visible (GtkTextLayout *layout); + +/* Getting the size or the lines potentially results in a call to + * recompute, which is pretty massively expensive. Thus it should + * basically only be done in an idle handler. + * + * Long-term, we would really like to be able to do these without + * a full recompute so they may get cheaper over time. + */ +void gtk_text_layout_get_size (GtkTextLayout *layout, + gint *width, + gint *height); +GSList* gtk_text_layout_get_lines (GtkTextLayout *layout, + /* [top_y, bottom_y) */ + gint top_y, + gint bottom_y, + gint *first_line_y); + +void gtk_text_layout_wrap_loop_start (GtkTextLayout *layout); +void gtk_text_layout_wrap_loop_end (GtkTextLayout *layout); + +GtkTextLineDisplay* gtk_text_layout_get_line_display (GtkTextLayout *layout, + GtkTextLine *line, + gboolean size_only); +void gtk_text_layout_free_line_display (GtkTextLayout *layout, + GtkTextLineDisplay *display); + +void gtk_text_layout_get_line_at_y (GtkTextLayout *layout, + GtkTextIter *target_iter, + gint y, + gint *line_top); +void gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout, + GtkTextIter *iter, + gint x, + gint y); +void gtk_text_layout_get_iter_at_position (GtkTextLayout *layout, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); +void gtk_text_layout_invalidate (GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_layout_invalidate_cursors(GtkTextLayout *layout, + const GtkTextIter *start, + const GtkTextIter *end); +void gtk_text_layout_free_line_data (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); + +gboolean gtk_text_layout_is_valid (GtkTextLayout *layout); +void gtk_text_layout_validate_yrange (GtkTextLayout *layout, + GtkTextIter *anchor_line, + gint y0_, + gint y1_); +void gtk_text_layout_validate (GtkTextLayout *layout, + gint max_pixels); + +/* This function should return the passed-in line data, + * OR remove the existing line data from the line, and + * return a NEW line data after adding it to the line. + * That is, invariant after calling the callback is that + * there should be exactly one line data for this view + * stored on the btree line. + */ +GtkTextLineData* gtk_text_layout_wrap (GtkTextLayout *layout, + GtkTextLine *line, + GtkTextLineData *line_data); /* may be NULL */ +void gtk_text_layout_changed (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); +void gtk_text_layout_cursors_changed (GtkTextLayout *layout, + gint y, + gint old_height, + gint new_height); +void gtk_text_layout_get_iter_location (GtkTextLayout *layout, + const GtkTextIter *iter, + GdkRectangle *rect); +void gtk_text_layout_get_line_yrange (GtkTextLayout *layout, + const GtkTextIter *iter, + gint *y, + gint *height); +void _gtk_text_layout_get_line_xrange (GtkTextLayout *layout, + const GtkTextIter *iter, + gint *x, + gint *width); +void gtk_text_layout_get_cursor_locations (GtkTextLayout *layout, + GtkTextIter *iter, + GdkRectangle *strong_pos, + GdkRectangle *weak_pos); +gboolean _gtk_text_layout_get_block_cursor (GtkTextLayout *layout, + GdkRectangle *pos); +gboolean gtk_text_layout_clamp_iter_to_vrange (GtkTextLayout *layout, + GtkTextIter *iter, + gint top, + gint bottom); + +gboolean gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout, + GtkTextIter *iter, + gint direction); +gboolean gtk_text_layout_move_iter_to_previous_line (GtkTextLayout *layout, + GtkTextIter *iter); +gboolean gtk_text_layout_move_iter_to_next_line (GtkTextLayout *layout, + GtkTextIter *iter); +void gtk_text_layout_move_iter_to_x (GtkTextLayout *layout, + GtkTextIter *iter, + gint x); +gboolean gtk_text_layout_move_iter_visually (GtkTextLayout *layout, + GtkTextIter *iter, + gint count); + +gboolean gtk_text_layout_iter_starts_line (GtkTextLayout *layout, + const GtkTextIter *iter); + +void gtk_text_layout_get_iter_at_line (GtkTextLayout *layout, + GtkTextIter *iter, + GtkTextLine *line, + gint byte_offset); + +/* Don't use these. Use gtk_text_view_add_child_at_anchor(). + * These functions are defined in gtktextchild.c, but here + * since they are semi-public and require GtkTextLayout to + * be declared. + */ +void gtk_text_child_anchor_register_child (GtkTextChildAnchor *anchor, + GtkWidget *child, + GtkTextLayout *layout); +void gtk_text_child_anchor_unregister_child (GtkTextChildAnchor *anchor, + GtkWidget *child); + +void gtk_text_child_anchor_queue_resize (GtkTextChildAnchor *anchor, + GtkTextLayout *layout); + +void gtk_text_anchored_child_set_layout (GtkWidget *child, + GtkTextLayout *layout); + +void gtk_text_layout_spew (GtkTextLayout *layout); + +G_END_DECLS + +#endif /* __GTK_TEXT_LAYOUT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextmark.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextmark.h new file mode 100644 index 0000000..3e45d3c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextmark.h @@ -0,0 +1,103 @@ +/* gtktextmark.h - mark segments + * + * Copyright (c) 1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_MARK_H__ +#define __GTK_TEXT_MARK_H__ + +G_BEGIN_DECLS + +typedef struct _GtkTextMark GtkTextMark; +typedef struct _GtkTextMarkClass GtkTextMarkClass; + +#define GTK_TYPE_TEXT_MARK (gtk_text_mark_get_type ()) +#define GTK_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_TEXT_MARK, GtkTextMark)) +#define GTK_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) +#define GTK_IS_TEXT_MARK(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_TEXT_MARK)) +#define GTK_IS_TEXT_MARK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_MARK)) +#define GTK_TEXT_MARK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_MARK, GtkTextMarkClass)) + +struct _GtkTextMark +{ + GObject parent_instance; + + /*< private >*/ + gpointer segment; +}; + +struct _GtkTextMarkClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_mark_get_type (void) G_GNUC_CONST; + +GtkTextMark *gtk_text_mark_new (const gchar *name, + gboolean left_gravity); +void gtk_text_mark_set_visible (GtkTextMark *mark, + gboolean setting); +gboolean gtk_text_mark_get_visible (GtkTextMark *mark); + +const gchar * gtk_text_mark_get_name (GtkTextMark *mark); +gboolean gtk_text_mark_get_deleted (GtkTextMark *mark); +GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); +gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark); + +G_END_DECLS + +#endif /* __GTK_TEXT_MARK_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktexttag.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktexttag.h new file mode 100644 index 0000000..1286b37 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktexttag.h @@ -0,0 +1,115 @@ +/* gtktexttag.c - text tag object + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_TAG_H__ +#define __GTK_TEXT_TAG_H__ + + +#include +#include + + +G_BEGIN_DECLS + +typedef struct _GtkTextIter GtkTextIter; +typedef struct _GtkTextTagTable GtkTextTagTable; + +#define GTK_TYPE_TEXT_TAG (gtk_text_tag_get_type ()) +#define GTK_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG, GtkTextTag)) +#define GTK_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) +#define GTK_IS_TEXT_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG)) +#define GTK_IS_TEXT_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG)) +#define GTK_TEXT_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG, GtkTextTagClass)) + +typedef struct _GtkTextTag GtkTextTag; +typedef struct _GtkTextTagPrivate GtkTextTagPrivate; +typedef struct _GtkTextTagClass GtkTextTagClass; + +struct _GtkTextTag +{ + GObject parent_instance; + + GtkTextTagPrivate *priv; +}; + +struct _GtkTextTagClass +{ + GObjectClass parent_class; + + gboolean (* event) (GtkTextTag *tag, + GObject *event_object, /* widget, canvas item, whatever */ + GdkEvent *event, /* the event itself */ + const GtkTextIter *iter); /* location of event in buffer */ + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_tag_get_type (void) G_GNUC_CONST; +GtkTextTag *gtk_text_tag_new (const gchar *name); +gint gtk_text_tag_get_priority (GtkTextTag *tag); +void gtk_text_tag_set_priority (GtkTextTag *tag, + gint priority); +gboolean gtk_text_tag_event (GtkTextTag *tag, + GObject *event_object, + GdkEvent *event, + const GtkTextIter *iter); + + +G_END_DECLS + +#endif + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktexttagtable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktexttagtable.h new file mode 100644 index 0000000..1ea04ee --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktexttagtable.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_TAG_TABLE_H__ +#define __GTK_TEXT_TAG_TABLE_H__ + +#include + +G_BEGIN_DECLS + +typedef void (* GtkTextTagTableForeach) (GtkTextTag *tag, gpointer data); + +#define GTK_TYPE_TEXT_TAG_TABLE (gtk_text_tag_table_get_type ()) +#define GTK_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTable)) +#define GTK_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) +#define GTK_IS_TEXT_TAG_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_TAG_TABLE)) +#define GTK_IS_TEXT_TAG_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_TAG_TABLE)) +#define GTK_TEXT_TAG_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_TAG_TABLE, GtkTextTagTableClass)) + +typedef struct _GtkTextTagTablePrivate GtkTextTagTablePrivate; +typedef struct _GtkTextTagTableClass GtkTextTagTableClass; + +struct _GtkTextTagTable +{ + GObject parent_instance; + + GtkTextTagTablePrivate *priv; +}; + +struct _GtkTextTagTableClass +{ + GObjectClass parent_class; + + void (* tag_changed) (GtkTextTagTable *table, GtkTextTag *tag, gboolean size_changed); + void (* tag_added) (GtkTextTagTable *table, GtkTextTag *tag); + void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_text_tag_table_get_type (void) G_GNUC_CONST; + +GtkTextTagTable *gtk_text_tag_table_new (void); +void gtk_text_tag_table_add (GtkTextTagTable *table, + GtkTextTag *tag); +void gtk_text_tag_table_remove (GtkTextTagTable *table, + GtkTextTag *tag); +GtkTextTag *gtk_text_tag_table_lookup (GtkTextTagTable *table, + const gchar *name); +void gtk_text_tag_table_foreach (GtkTextTagTable *table, + GtkTextTagTableForeach func, + gpointer data); +gint gtk_text_tag_table_get_size (GtkTextTagTable *table); + + +/* INTERNAL private stuff - not even exported from the library on + * many platforms + */ +void _gtk_text_tag_table_add_buffer (GtkTextTagTable *table, + gpointer buffer); +void _gtk_text_tag_table_remove_buffer (GtkTextTagTable *table, + gpointer buffer); + +G_END_DECLS + +#endif + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktextview.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktextview.h new file mode 100644 index 0000000..21667bb --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktextview.h @@ -0,0 +1,285 @@ +/* GTK - The GIMP Toolkit + * gtktextview.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TEXT_VIEW_H__ +#define __GTK_TEXT_VIEW_H__ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TEXT_VIEW (gtk_text_view_get_type ()) +#define GTK_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_VIEW, GtkTextView)) +#define GTK_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) +#define GTK_IS_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_VIEW)) +#define GTK_IS_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_VIEW)) +#define GTK_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_VIEW, GtkTextViewClass)) + +typedef enum +{ + GTK_TEXT_WINDOW_PRIVATE, + GTK_TEXT_WINDOW_WIDGET, + GTK_TEXT_WINDOW_TEXT, + GTK_TEXT_WINDOW_LEFT, + GTK_TEXT_WINDOW_RIGHT, + GTK_TEXT_WINDOW_TOP, + GTK_TEXT_WINDOW_BOTTOM +} GtkTextWindowType; + +/** + * GTK_TEXT_VIEW_PRIORITY_VALIDATE: + * + * The priority at which the text view validates onscreen lines + * in an idle job in the background. + */ +#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5) + +typedef struct _GtkTextView GtkTextView; +typedef struct _GtkTextViewPrivate GtkTextViewPrivate; +typedef struct _GtkTextViewClass GtkTextViewClass; + +struct _GtkTextView +{ + GtkContainer parent_instance; + + GtkTextViewPrivate *priv; +}; + +struct _GtkTextViewClass +{ + GtkContainerClass parent_class; + + void (* populate_popup) (GtkTextView *text_view, + GtkMenu *menu); + + /* These are all RUN_ACTION signals for keybindings */ + + /* move insertion point */ + void (* move_cursor) (GtkTextView *text_view, + GtkMovementStep step, + gint count, + gboolean extend_selection); + + /* move the "anchor" (what Emacs calls the mark) to the cursor position */ + void (* set_anchor) (GtkTextView *text_view); + + /* Edits */ + void (* insert_at_cursor) (GtkTextView *text_view, + const gchar *str); + void (* delete_from_cursor) (GtkTextView *text_view, + GtkDeleteType type, + gint count); + void (* backspace) (GtkTextView *text_view); + + /* cut copy paste */ + void (* cut_clipboard) (GtkTextView *text_view); + void (* copy_clipboard) (GtkTextView *text_view); + void (* paste_clipboard) (GtkTextView *text_view); + /* overwrite */ + void (* toggle_overwrite) (GtkTextView *text_view); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +GType gtk_text_view_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_text_view_new (void); +GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer); +void gtk_text_view_set_buffer (GtkTextView *text_view, + GtkTextBuffer *buffer); +GtkTextBuffer *gtk_text_view_get_buffer (GtkTextView *text_view); +gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view, + GtkTextIter *iter, + gdouble within_margin, + gboolean use_align, + gdouble xalign, + gdouble yalign); +void gtk_text_view_scroll_to_mark (GtkTextView *text_view, + GtkTextMark *mark, + gdouble within_margin, + gboolean use_align, + gdouble xalign, + gdouble yalign); +void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view, + GtkTextMark *mark); +gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view, + GtkTextMark *mark); +gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view); + +void gtk_text_view_get_visible_rect (GtkTextView *text_view, + GdkRectangle *visible_rect); +void gtk_text_view_set_cursor_visible (GtkTextView *text_view, + gboolean setting); +gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view); + +void gtk_text_view_get_cursor_locations (GtkTextView *text_view, + const GtkTextIter *iter, + GdkRectangle *strong, + GdkRectangle *weak); +void gtk_text_view_get_iter_location (GtkTextView *text_view, + const GtkTextIter *iter, + GdkRectangle *location); +void gtk_text_view_get_iter_at_location (GtkTextView *text_view, + GtkTextIter *iter, + gint x, + gint y); +void gtk_text_view_get_iter_at_position (GtkTextView *text_view, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); +void gtk_text_view_get_line_yrange (GtkTextView *text_view, + const GtkTextIter *iter, + gint *y, + gint *height); + +void gtk_text_view_get_line_at_y (GtkTextView *text_view, + GtkTextIter *target_iter, + gint y, + gint *line_top); + +void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, + GtkTextWindowType win, + gint buffer_x, + gint buffer_y, + gint *window_x, + gint *window_y); +void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, + GtkTextWindowType win, + gint window_x, + gint window_y, + gint *buffer_x, + gint *buffer_y); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) +GtkAdjustment* gtk_text_view_get_hadjustment (GtkTextView *text_view); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) +GtkAdjustment* gtk_text_view_get_vadjustment (GtkTextView *text_view); + +GdkWindow* gtk_text_view_get_window (GtkTextView *text_view, + GtkTextWindowType win); +GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view, + GdkWindow *window); + +void gtk_text_view_set_border_window_size (GtkTextView *text_view, + GtkTextWindowType type, + gint size); +gint gtk_text_view_get_border_window_size (GtkTextView *text_view, + GtkTextWindowType type); + +gboolean gtk_text_view_forward_display_line (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_backward_display_line (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view, + GtkTextIter *iter); +gboolean gtk_text_view_starts_display_line (GtkTextView *text_view, + const GtkTextIter *iter); +gboolean gtk_text_view_move_visually (GtkTextView *text_view, + GtkTextIter *iter, + gint count); + +gboolean gtk_text_view_im_context_filter_keypress (GtkTextView *text_view, + GdkEventKey *event); +void gtk_text_view_reset_im_context (GtkTextView *text_view); + +/* Adding child widgets */ +void gtk_text_view_add_child_at_anchor (GtkTextView *text_view, + GtkWidget *child, + GtkTextChildAnchor *anchor); + +void gtk_text_view_add_child_in_window (GtkTextView *text_view, + GtkWidget *child, + GtkTextWindowType which_window, + /* window coordinates */ + gint xpos, + gint ypos); + +void gtk_text_view_move_child (GtkTextView *text_view, + GtkWidget *child, + /* window coordinates */ + gint xpos, + gint ypos); + +/* Default style settings (fallbacks if no tag affects the property) */ + +void gtk_text_view_set_wrap_mode (GtkTextView *text_view, + GtkWrapMode wrap_mode); +GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view); +void gtk_text_view_set_editable (GtkTextView *text_view, + gboolean setting); +gboolean gtk_text_view_get_editable (GtkTextView *text_view); +void gtk_text_view_set_overwrite (GtkTextView *text_view, + gboolean overwrite); +gboolean gtk_text_view_get_overwrite (GtkTextView *text_view); +void gtk_text_view_set_accepts_tab (GtkTextView *text_view, + gboolean accepts_tab); +gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view); +void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view, + gint pixels_above_lines); +gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view); +void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view, + gint pixels_below_lines); +gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view); +void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view, + gint pixels_inside_wrap); +gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view); +void gtk_text_view_set_justification (GtkTextView *text_view, + GtkJustification justification); +GtkJustification gtk_text_view_get_justification (GtkTextView *text_view); +void gtk_text_view_set_left_margin (GtkTextView *text_view, + gint left_margin); +gint gtk_text_view_get_left_margin (GtkTextView *text_view); +void gtk_text_view_set_right_margin (GtkTextView *text_view, + gint right_margin); +gint gtk_text_view_get_right_margin (GtkTextView *text_view); +void gtk_text_view_set_indent (GtkTextView *text_view, + gint indent); +gint gtk_text_view_get_indent (GtkTextView *text_view); +void gtk_text_view_set_tabs (GtkTextView *text_view, + PangoTabArray *tabs); +PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view); + +/* note that the return value of this changes with the theme */ +GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view); + +G_END_DECLS + +#endif /* __GTK_TEXT_VIEW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkthemingengine.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkthemingengine.h new file mode 100644 index 0000000..8ea017d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkthemingengine.h @@ -0,0 +1,260 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_THEMING_ENGINE_H__ +#define __GTK_THEMING_ENGINE_H__ + +#include +#include + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_THEMING_ENGINE (gtk_theming_engine_get_type ()) +#define GTK_THEMING_ENGINE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_THEMING_ENGINE, GtkThemingEngine)) +#define GTK_THEMING_ENGINE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_THEMING_ENGINE, GtkThemingEngineClass)) +#define GTK_IS_THEMING_ENGINE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_THEMING_ENGINE)) +#define GTK_IS_THEMING_ENGINE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_THEMING_ENGINE)) +#define GTK_THEMING_ENGINE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_THEMING_ENGINE, GtkThemingEngineClass)) + +typedef struct _GtkThemingEngine GtkThemingEngine; +typedef struct GtkThemingEnginePrivate GtkThemingEnginePrivate; +typedef struct _GtkThemingEngineClass GtkThemingEngineClass; + +struct _GtkThemingEngine +{ + GObject parent_object; + GtkThemingEnginePrivate *priv; +}; + +/** + * GtkThemingEngineClass: + * @parent_class: The parent class. + * @render_line: Renders a line between two points. + * @render_background: Renders the background area of a widget region. + * @render_frame: Renders the frame around a widget area. + * @render_frame_gap: Renders the frame around a widget area with a gap in it. + * @render_extension: Renders a extension to a box, usually a notebook tab. + * @render_check: Renders a checkmark, as in #GtkCheckButton. + * @render_option: Renders an option, as in #GtkRadioButton. + * @render_arrow: Renders an arrow pointing to a certain direction. + * @render_expander: Renders an element what will expose/expand part of + * the UI, as in #GtkExpander. + * @render_focus: Renders the focus indicator. + * @render_layout: Renders a #PangoLayout + * @render_slider: Renders a slider control, as in #GtkScale. + * @render_handle: Renders a handle to drag UI elements, as in #GtkPaned. + * @render_activity: Renders an area displaying activity, such as in #GtkSpinner, + * or #GtkProgressBar. + * @render_icon_pixbuf: Renders an icon as a #GdkPixbuf. + * @render_icon: Renders an icon given as a #GdkPixbuf. + * + * Base class for theming engines. + */ +struct _GtkThemingEngineClass +{ + GObjectClass parent_class; + + void (* render_line) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x0, + gdouble y0, + gdouble x1, + gdouble y1); + void (* render_background) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_frame) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_frame_gap) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side, + gdouble xy0_gap, + gdouble xy1_gap); + void (* render_extension) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkPositionType gap_side); + void (* render_check) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_option) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_arrow) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble angle, + gdouble x, + gdouble y, + gdouble size); + void (* render_expander) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_focus) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_layout) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + PangoLayout *layout); + void (* render_slider) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkOrientation orientation); + void (* render_handle) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + void (* render_activity) (GtkThemingEngine *engine, + cairo_t *cr, + gdouble x, + gdouble y, + gdouble width, + gdouble height); + + GdkPixbuf * (* render_icon_pixbuf) (GtkThemingEngine *engine, + const GtkIconSource *source, + GtkIconSize size); + void (* render_icon) (GtkThemingEngine *engine, + cairo_t *cr, + GdkPixbuf *pixbuf, + gdouble x, + gdouble y); + + /*< private >*/ + gpointer padding[15]; +}; + +GType gtk_theming_engine_get_type (void) G_GNUC_CONST; + +/* function implemented in gtkcsscustomproperty.c */ +void gtk_theming_engine_register_property (const gchar *name_space, + GtkStylePropertyParser parse_func, + GParamSpec *pspec); + +void gtk_theming_engine_get_property (GtkThemingEngine *engine, + const gchar *property, + GtkStateFlags state, + GValue *value); +void gtk_theming_engine_get_valist (GtkThemingEngine *engine, + GtkStateFlags state, + va_list args); +void gtk_theming_engine_get (GtkThemingEngine *engine, + GtkStateFlags state, + ...) G_GNUC_NULL_TERMINATED; + +void gtk_theming_engine_get_style_property (GtkThemingEngine *engine, + const gchar *property_name, + GValue *value); +void gtk_theming_engine_get_style_valist (GtkThemingEngine *engine, + va_list args); +void gtk_theming_engine_get_style (GtkThemingEngine *engine, + ...); + +gboolean gtk_theming_engine_lookup_color (GtkThemingEngine *engine, + const gchar *color_name, + GdkRGBA *color); + +const GtkWidgetPath * gtk_theming_engine_get_path (GtkThemingEngine *engine); + +gboolean gtk_theming_engine_has_class (GtkThemingEngine *engine, + const gchar *style_class); +gboolean gtk_theming_engine_has_region (GtkThemingEngine *engine, + const gchar *style_region, + GtkRegionFlags *flags); + +GtkStateFlags gtk_theming_engine_get_state (GtkThemingEngine *engine); +GDK_DEPRECATED_IN_3_6 +gboolean gtk_theming_engine_state_is_running (GtkThemingEngine *engine, + GtkStateType state, + gdouble *progress); + +GtkTextDirection gtk_theming_engine_get_direction (GtkThemingEngine *engine); + +GtkJunctionSides gtk_theming_engine_get_junction_sides (GtkThemingEngine *engine); + +/* Helper functions */ +void gtk_theming_engine_get_color (GtkThemingEngine *engine, + GtkStateFlags state, + GdkRGBA *color); +void gtk_theming_engine_get_background_color (GtkThemingEngine *engine, + GtkStateFlags state, + GdkRGBA *color); +void gtk_theming_engine_get_border_color (GtkThemingEngine *engine, + GtkStateFlags state, + GdkRGBA *color); + +void gtk_theming_engine_get_border (GtkThemingEngine *engine, + GtkStateFlags state, + GtkBorder *border); +void gtk_theming_engine_get_padding (GtkThemingEngine *engine, + GtkStateFlags state, + GtkBorder *padding); +void gtk_theming_engine_get_margin (GtkThemingEngine *engine, + GtkStateFlags state, + GtkBorder *margin); + +const PangoFontDescription * gtk_theming_engine_get_font (GtkThemingEngine *engine, + GtkStateFlags state); + +GtkThemingEngine * gtk_theming_engine_load (const gchar *name); + +GdkScreen * gtk_theming_engine_get_screen (GtkThemingEngine *engine); + +G_END_DECLS + +#endif /* __GTK_THEMING_ENGINE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoggleaction.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoggleaction.h new file mode 100644 index 0000000..a9af96f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoggleaction.h @@ -0,0 +1,92 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Author: James Henstridge + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOGGLE_ACTION_H__ +#define __GTK_TOGGLE_ACTION_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_ACTION (gtk_toggle_action_get_type ()) +#define GTK_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleAction)) +#define GTK_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) +#define GTK_IS_TOGGLE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_ACTION)) +#define GTK_IS_TOGGLE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_ACTION)) +#define GTK_TOGGLE_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_ACTION, GtkToggleActionClass)) + +typedef struct _GtkToggleAction GtkToggleAction; +typedef struct _GtkToggleActionPrivate GtkToggleActionPrivate; +typedef struct _GtkToggleActionClass GtkToggleActionClass; + +struct _GtkToggleAction +{ + GtkAction parent; + + /*< private >*/ + GtkToggleActionPrivate *private_data; +}; + +struct _GtkToggleActionClass +{ + GtkActionClass parent_class; + + void (* toggled) (GtkToggleAction *action); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_toggle_action_get_type (void) G_GNUC_CONST; +GtkToggleAction *gtk_toggle_action_new (const gchar *name, + const gchar *label, + const gchar *tooltip, + const gchar *stock_id); +void gtk_toggle_action_toggled (GtkToggleAction *action); +void gtk_toggle_action_set_active (GtkToggleAction *action, + gboolean is_active); +gboolean gtk_toggle_action_get_active (GtkToggleAction *action); +void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action, + gboolean draw_as_radio); +gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action); + +/* private */ +void _gtk_toggle_action_set_active (GtkToggleAction *toggle_action, + gboolean is_active); + + +G_END_DECLS + +#endif /* __GTK_TOGGLE_ACTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktogglebutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktogglebutton.h new file mode 100644 index 0000000..3d6c516 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktogglebutton.h @@ -0,0 +1,93 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOGGLE_BUTTON_H__ +#define __GTK_TOGGLE_BUTTON_H__ + + +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_BUTTON (gtk_toggle_button_get_type ()) +#define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) +#define GTK_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) +#define GTK_IS_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_BUTTON)) +#define GTK_IS_TOGGLE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_BUTTON)) +#define GTK_TOGGLE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButtonClass)) + +typedef struct _GtkToggleButton GtkToggleButton; +typedef struct _GtkToggleButtonPrivate GtkToggleButtonPrivate; +typedef struct _GtkToggleButtonClass GtkToggleButtonClass; + +struct _GtkToggleButton +{ + /*< private >*/ + GtkButton button; + + GtkToggleButtonPrivate *priv; +}; + +struct _GtkToggleButtonClass +{ + GtkButtonClass parent_class; + + void (* toggled) (GtkToggleButton *toggle_button); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_toggle_button_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_toggle_button_new (void); +GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); +GtkWidget* gtk_toggle_button_new_with_mnemonic (const gchar *label); +void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button, + gboolean draw_indicator); +gboolean gtk_toggle_button_get_mode (GtkToggleButton *toggle_button); +void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, + gboolean is_active); +gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); +void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); +void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, + gboolean setting); +gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); + +void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button, + gboolean is_active); + + +G_END_DECLS + +#endif /* __GTK_TOGGLE_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoggletoolbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoggletoolbutton.h new file mode 100644 index 0000000..0ef029c --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoggletoolbutton.h @@ -0,0 +1,75 @@ +/* gtktoggletoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOGGLE_TOOL_BUTTON_H__ +#define __GTK_TOGGLE_TOOL_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOGGLE_TOOL_BUTTON (gtk_toggle_tool_button_get_type ()) +#define GTK_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButton)) +#define GTK_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) +#define GTK_IS_TOGGLE_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON)) +#define GTK_IS_TOGGLE_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOGGLE_TOOL_BUTTON)) +#define GTK_TOGGLE_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonClass)) + +typedef struct _GtkToggleToolButton GtkToggleToolButton; +typedef struct _GtkToggleToolButtonClass GtkToggleToolButtonClass; +typedef struct _GtkToggleToolButtonPrivate GtkToggleToolButtonPrivate; + +struct _GtkToggleToolButton +{ + GtkToolButton parent; + + /*< private >*/ + GtkToggleToolButtonPrivate *priv; +}; + +struct _GtkToggleToolButtonClass +{ + GtkToolButtonClass parent_class; + + /* signal */ + void (* toggled) (GtkToggleToolButton *button); + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_toggle_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_toggle_tool_button_new (void); +GtkToolItem *gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button, + gboolean is_active); +gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button); + +G_END_DECLS + +#endif /* __GTK_TOGGLE_TOOL_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbar.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbar.h new file mode 100644 index 0000000..ce5186a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbar.h @@ -0,0 +1,135 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * GtkToolbar copyright (C) Federico Mena + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOLBAR_H__ +#define __GTK_TOOLBAR_H__ + + +#include +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_TOOLBAR (gtk_toolbar_get_type ()) +#define GTK_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLBAR, GtkToolbar)) +#define GTK_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLBAR, GtkToolbarClass)) +#define GTK_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLBAR)) +#define GTK_IS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLBAR)) +#define GTK_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOLBAR, GtkToolbarClass)) + +typedef enum +{ + GTK_TOOLBAR_SPACE_EMPTY, + GTK_TOOLBAR_SPACE_LINE +} GtkToolbarSpaceStyle; + +typedef struct _GtkToolbar GtkToolbar; +typedef struct _GtkToolbarPrivate GtkToolbarPrivate; +typedef struct _GtkToolbarClass GtkToolbarClass; + +struct _GtkToolbar +{ + GtkContainer container; + + GtkToolbarPrivate *priv; +}; + +struct _GtkToolbarClass +{ + GtkContainerClass parent_class; + + /* signals */ + void (* orientation_changed) (GtkToolbar *toolbar, + GtkOrientation orientation); + void (* style_changed) (GtkToolbar *toolbar, + GtkToolbarStyle style); + gboolean (* popup_context_menu) (GtkToolbar *toolbar, + gint x, + gint y, + gint button_number); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_toolbar_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_toolbar_new (void); + +void gtk_toolbar_insert (GtkToolbar *toolbar, + GtkToolItem *item, + gint pos); + +gint gtk_toolbar_get_item_index (GtkToolbar *toolbar, + GtkToolItem *item); +gint gtk_toolbar_get_n_items (GtkToolbar *toolbar); +GtkToolItem * gtk_toolbar_get_nth_item (GtkToolbar *toolbar, + gint n); + +gboolean gtk_toolbar_get_show_arrow (GtkToolbar *toolbar); +void gtk_toolbar_set_show_arrow (GtkToolbar *toolbar, + gboolean show_arrow); + +GtkToolbarStyle gtk_toolbar_get_style (GtkToolbar *toolbar); +void gtk_toolbar_set_style (GtkToolbar *toolbar, + GtkToolbarStyle style); +void gtk_toolbar_unset_style (GtkToolbar *toolbar); + +GtkIconSize gtk_toolbar_get_icon_size (GtkToolbar *toolbar); +void gtk_toolbar_set_icon_size (GtkToolbar *toolbar, + GtkIconSize icon_size); +void gtk_toolbar_unset_icon_size (GtkToolbar *toolbar); + +GtkReliefStyle gtk_toolbar_get_relief_style (GtkToolbar *toolbar); +gint gtk_toolbar_get_drop_index (GtkToolbar *toolbar, + gint x, + gint y); +void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, + GtkToolItem *tool_item, + gint index_); + + +/* internal functions */ +gchar * _gtk_toolbar_elide_underscores (const gchar *original); +void _gtk_toolbar_paint_space_line (GtkWidget *widget, + GtkToolbar *toolbar, + cairo_t *cr); +gint _gtk_toolbar_get_default_space_size (void); + + +G_END_DECLS + +#endif /* __GTK_TOOLBAR_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbutton.h new file mode 100644 index 0000000..e9d3734 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolbutton.h @@ -0,0 +1,97 @@ +/* gtktoolbutton.h + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOL_BUTTON_H__ +#define __GTK_TOOL_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_BUTTON (gtk_tool_button_get_type ()) +#define GTK_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButton)) +#define GTK_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) +#define GTK_IS_TOOL_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_BUTTON)) +#define GTK_IS_TOOL_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_BUTTON)) +#define GTK_TOOL_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonClass)) + +typedef struct _GtkToolButton GtkToolButton; +typedef struct _GtkToolButtonClass GtkToolButtonClass; +typedef struct _GtkToolButtonPrivate GtkToolButtonPrivate; + +struct _GtkToolButton +{ + GtkToolItem parent; + + /*< private >*/ + GtkToolButtonPrivate *priv; +}; + +struct _GtkToolButtonClass +{ + GtkToolItemClass parent_class; + + GType button_type; + + /* signal */ + void (* clicked) (GtkToolButton *tool_item); + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_tool_button_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget, + const gchar *label); +GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id); + +void gtk_tool_button_set_label (GtkToolButton *button, + const gchar *label); +const gchar * gtk_tool_button_get_label (GtkToolButton *button); +void gtk_tool_button_set_use_underline (GtkToolButton *button, + gboolean use_underline); +gboolean gtk_tool_button_get_use_underline (GtkToolButton *button); +void gtk_tool_button_set_stock_id (GtkToolButton *button, + const gchar *stock_id); +const gchar * gtk_tool_button_get_stock_id (GtkToolButton *button); +void gtk_tool_button_set_icon_name (GtkToolButton *button, + const gchar *icon_name); +const gchar * gtk_tool_button_get_icon_name (GtkToolButton *button); +void gtk_tool_button_set_icon_widget (GtkToolButton *button, + GtkWidget *icon_widget); +GtkWidget * gtk_tool_button_get_icon_widget (GtkToolButton *button); +void gtk_tool_button_set_label_widget (GtkToolButton *button, + GtkWidget *label_widget); +GtkWidget * gtk_tool_button_get_label_widget (GtkToolButton *button); + + +/* internal function */ +GtkWidget *_gtk_tool_button_get_button (GtkToolButton *button); + +G_END_DECLS + +#endif /* __GTK_TOOL_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitem.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitem.h new file mode 100644 index 0000000..3a706b2 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitem.h @@ -0,0 +1,124 @@ +/* gtktoolitem.c + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOL_ITEM_H__ +#define __GTK_TOOL_ITEM_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_ITEM (gtk_tool_item_get_type ()) +#define GTK_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_TOOL_ITEM, GtkToolItem)) +#define GTK_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) +#define GTK_IS_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_TOOL_ITEM)) +#define GTK_IS_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_ITEM)) +#define GTK_TOOL_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GTK_TYPE_TOOL_ITEM, GtkToolItemClass)) + +typedef struct _GtkToolItem GtkToolItem; +typedef struct _GtkToolItemClass GtkToolItemClass; +typedef struct _GtkToolItemPrivate GtkToolItemPrivate; + +struct _GtkToolItem +{ + GtkBin parent; + + /*< private >*/ + GtkToolItemPrivate *priv; +}; + +struct _GtkToolItemClass +{ + GtkBinClass parent_class; + + /* signals */ + gboolean (* create_menu_proxy) (GtkToolItem *tool_item); + void (* toolbar_reconfigured) (GtkToolItem *tool_item); + + /* Padding for future expansion */ + void (* _gtk_reserved1) (void); + void (* _gtk_reserved2) (void); + void (* _gtk_reserved3) (void); + void (* _gtk_reserved4) (void); +}; + +GType gtk_tool_item_get_type (void) G_GNUC_CONST; +GtkToolItem *gtk_tool_item_new (void); + +void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item, + gboolean homogeneous); +gboolean gtk_tool_item_get_homogeneous (GtkToolItem *tool_item); + +void gtk_tool_item_set_expand (GtkToolItem *tool_item, + gboolean expand); +gboolean gtk_tool_item_get_expand (GtkToolItem *tool_item); +void gtk_tool_item_set_tooltip_text (GtkToolItem *tool_item, + const gchar *text); +void gtk_tool_item_set_tooltip_markup (GtkToolItem *tool_item, + const gchar *markup); + +void gtk_tool_item_set_use_drag_window (GtkToolItem *tool_item, + gboolean use_drag_window); +gboolean gtk_tool_item_get_use_drag_window (GtkToolItem *tool_item); + +void gtk_tool_item_set_visible_horizontal (GtkToolItem *tool_item, + gboolean visible_horizontal); +gboolean gtk_tool_item_get_visible_horizontal (GtkToolItem *tool_item); + +void gtk_tool_item_set_visible_vertical (GtkToolItem *tool_item, + gboolean visible_vertical); +gboolean gtk_tool_item_get_visible_vertical (GtkToolItem *tool_item); + +gboolean gtk_tool_item_get_is_important (GtkToolItem *tool_item); +void gtk_tool_item_set_is_important (GtkToolItem *tool_item, + gboolean is_important); + +PangoEllipsizeMode gtk_tool_item_get_ellipsize_mode (GtkToolItem *tool_item); +GtkIconSize gtk_tool_item_get_icon_size (GtkToolItem *tool_item); +GtkOrientation gtk_tool_item_get_orientation (GtkToolItem *tool_item); +GtkToolbarStyle gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item); +GtkReliefStyle gtk_tool_item_get_relief_style (GtkToolItem *tool_item); +gfloat gtk_tool_item_get_text_alignment (GtkToolItem *tool_item); +GtkOrientation gtk_tool_item_get_text_orientation (GtkToolItem *tool_item); +GtkSizeGroup * gtk_tool_item_get_text_size_group (GtkToolItem *tool_item); + +GtkWidget * gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item); +GtkWidget * gtk_tool_item_get_proxy_menu_item (GtkToolItem *tool_item, + const gchar *menu_item_id); +void gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, + const gchar *menu_item_id, + GtkWidget *menu_item); +void gtk_tool_item_rebuild_menu (GtkToolItem *tool_item); + +void gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item); + +/* private */ + +gboolean _gtk_tool_item_create_menu_proxy (GtkToolItem *tool_item); + +G_END_DECLS + +#endif /* __GTK_TOOL_ITEM_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitemgroup.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitemgroup.h new file mode 100644 index 0000000..350728e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolitemgroup.h @@ -0,0 +1,104 @@ +/* GtkToolPalette -- A tool palette with categories and DnD support + * Copyright (C) 2008 Openismus GmbH + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: + * Mathias Hasselmann + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOL_ITEM_GROUP_H__ +#define __GTK_TOOL_ITEM_GROUP_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_ITEM_GROUP (gtk_tool_item_group_get_type ()) +#define GTK_TOOL_ITEM_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroup)) +#define GTK_TOOL_ITEM_GROUP_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroupClass)) +#define GTK_IS_TOOL_ITEM_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_TOOL_ITEM_GROUP)) +#define GTK_IS_TOOL_ITEM_GROUP_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_TOOL_ITEM_GROUP)) +#define GTK_TOOL_ITEM_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOL_ITEM_GROUP, GtkToolItemGroupClass)) + +typedef struct _GtkToolItemGroup GtkToolItemGroup; +typedef struct _GtkToolItemGroupClass GtkToolItemGroupClass; +typedef struct _GtkToolItemGroupPrivate GtkToolItemGroupPrivate; + +/** + * GtkToolItemGroup: + * + * This should not be accessed directly. Use the accessor functions below. + */ +struct _GtkToolItemGroup +{ + GtkContainer parent_instance; + GtkToolItemGroupPrivate *priv; +}; + +struct _GtkToolItemGroupClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_tool_item_group_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tool_item_group_new (const gchar *label); + +void gtk_tool_item_group_set_label (GtkToolItemGroup *group, + const gchar *label); +void gtk_tool_item_group_set_label_widget (GtkToolItemGroup *group, + GtkWidget *label_widget); +void gtk_tool_item_group_set_collapsed (GtkToolItemGroup *group, + gboolean collapsed); +void gtk_tool_item_group_set_ellipsize (GtkToolItemGroup *group, + PangoEllipsizeMode ellipsize); +void gtk_tool_item_group_set_header_relief (GtkToolItemGroup *group, + GtkReliefStyle style); + +const gchar * gtk_tool_item_group_get_label (GtkToolItemGroup *group); +GtkWidget *gtk_tool_item_group_get_label_widget (GtkToolItemGroup *group); +gboolean gtk_tool_item_group_get_collapsed (GtkToolItemGroup *group); +PangoEllipsizeMode gtk_tool_item_group_get_ellipsize (GtkToolItemGroup *group); +GtkReliefStyle gtk_tool_item_group_get_header_relief (GtkToolItemGroup *group); + +void gtk_tool_item_group_insert (GtkToolItemGroup *group, + GtkToolItem *item, + gint position); +void gtk_tool_item_group_set_item_position (GtkToolItemGroup *group, + GtkToolItem *item, + gint position); +gint gtk_tool_item_group_get_item_position (GtkToolItemGroup *group, + GtkToolItem *item); + +guint gtk_tool_item_group_get_n_items (GtkToolItemGroup *group); +GtkToolItem* gtk_tool_item_group_get_nth_item (GtkToolItemGroup *group, + guint index); +GtkToolItem* gtk_tool_item_group_get_drop_item (GtkToolItemGroup *group, + gint x, + gint y); + +G_END_DECLS + +#endif /* __GTK_TOOL_ITEM_GROUP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolpalette.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolpalette.h new file mode 100644 index 0000000..88e2b01 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolpalette.h @@ -0,0 +1,140 @@ +/* GtkToolPalette -- A tool palette with categories and DnD support + * Copyright (C) 2008 Openismus GmbH + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Authors: + * Mathias Hasselmann + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOL_PALETTE_H__ +#define __GTK_TOOL_PALETTE_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_PALETTE (gtk_tool_palette_get_type ()) +#define GTK_TOOL_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GTK_TYPE_TOOL_PALETTE, GtkToolPalette)) +#define GTK_TOOL_PALETTE_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST (cls, GTK_TYPE_TOOL_PALETTE, GtkToolPaletteClass)) +#define GTK_IS_TOOL_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GTK_TYPE_TOOL_PALETTE)) +#define GTK_IS_TOOL_PALETTE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE (obj, GTK_TYPE_TOOL_PALETTE)) +#define GTK_TOOL_PALETTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TOOL_PALETTE, GtkToolPaletteClass)) + +typedef struct _GtkToolPalette GtkToolPalette; +typedef struct _GtkToolPaletteClass GtkToolPaletteClass; +typedef struct _GtkToolPalettePrivate GtkToolPalettePrivate; + +/** + * GtkToolPaletteDragTargets: + * @GTK_TOOL_PALETTE_DRAG_ITEMS: Support drag of items. + * @GTK_TOOL_PALETTE_DRAG_GROUPS: Support drag of groups. + * + * Flags used to specify the supported drag targets. + */ +typedef enum /*< flags >*/ +{ + GTK_TOOL_PALETTE_DRAG_ITEMS = (1 << 0), + GTK_TOOL_PALETTE_DRAG_GROUPS = (1 << 1) +} +GtkToolPaletteDragTargets; + +/** + * GtkToolPalette: + * + * This should not be accessed directly. Use the accessor functions below. + */ +struct _GtkToolPalette +{ + GtkContainer parent_instance; + GtkToolPalettePrivate *priv; +}; + +struct _GtkToolPaletteClass +{ + GtkContainerClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_tool_palette_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_tool_palette_new (void); + +void gtk_tool_palette_set_group_position (GtkToolPalette *palette, + GtkToolItemGroup *group, + gint position); +void gtk_tool_palette_set_exclusive (GtkToolPalette *palette, + GtkToolItemGroup *group, + gboolean exclusive); +void gtk_tool_palette_set_expand (GtkToolPalette *palette, + GtkToolItemGroup *group, + gboolean expand); + +gint gtk_tool_palette_get_group_position (GtkToolPalette *palette, + GtkToolItemGroup *group); +gboolean gtk_tool_palette_get_exclusive (GtkToolPalette *palette, + GtkToolItemGroup *group); +gboolean gtk_tool_palette_get_expand (GtkToolPalette *palette, + GtkToolItemGroup *group); + +void gtk_tool_palette_set_icon_size (GtkToolPalette *palette, + GtkIconSize icon_size); +void gtk_tool_palette_unset_icon_size (GtkToolPalette *palette); +void gtk_tool_palette_set_style (GtkToolPalette *palette, + GtkToolbarStyle style); +void gtk_tool_palette_unset_style (GtkToolPalette *palette); + +GtkIconSize gtk_tool_palette_get_icon_size (GtkToolPalette *palette); +GtkToolbarStyle gtk_tool_palette_get_style (GtkToolPalette *palette); + +GtkToolItem* gtk_tool_palette_get_drop_item (GtkToolPalette *palette, + gint x, + gint y); +GtkToolItemGroup* gtk_tool_palette_get_drop_group (GtkToolPalette *palette, + gint x, + gint y); +GtkWidget* gtk_tool_palette_get_drag_item (GtkToolPalette *palette, + const GtkSelectionData *selection); + +void gtk_tool_palette_set_drag_source (GtkToolPalette *palette, + GtkToolPaletteDragTargets targets); +void gtk_tool_palette_add_drag_dest (GtkToolPalette *palette, + GtkWidget *widget, + GtkDestDefaults flags, + GtkToolPaletteDragTargets targets, + GdkDragAction actions); + + +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) +GtkAdjustment* gtk_tool_palette_get_hadjustment (GtkToolPalette *palette); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) +GtkAdjustment* gtk_tool_palette_get_vadjustment (GtkToolPalette *palette); + +const GtkTargetEntry* gtk_tool_palette_get_drag_target_item (void) G_GNUC_CONST; +const GtkTargetEntry* gtk_tool_palette_get_drag_target_group (void) G_GNUC_CONST; + + +G_END_DECLS + +#endif /* __GTK_TOOL_PALETTE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktoolshell.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolshell.h new file mode 100644 index 0000000..effa171 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktoolshell.h @@ -0,0 +1,89 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2007 Openismus GmbH + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * Author: + * Mathias Hasselmann + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOL_SHELL_H__ +#define __GTK_TOOL_SHELL_H__ + + +#include +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOL_SHELL (gtk_tool_shell_get_type ()) +#define GTK_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShell)) +#define GTK_IS_TOOL_SHELL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOL_SHELL)) +#define GTK_TOOL_SHELL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TOOL_SHELL, GtkToolShellIface)) + +typedef struct _GtkToolShell GtkToolShell; /* dummy typedef */ +typedef struct _GtkToolShellIface GtkToolShellIface; + +/** + * GtkToolShellIface: + * @get_icon_size: mandatory implementation of gtk_tool_shell_get_icon_size(). + * @get_orientation: mandatory implementation of gtk_tool_shell_get_orientation(). + * @get_style: mandatory implementation of gtk_tool_shell_get_style(). + * @get_relief_style: optional implementation of gtk_tool_shell_get_relief_style(). + * @rebuild_menu: optional implementation of gtk_tool_shell_rebuild_menu(). + * @get_text_orientation: optional implementation of gtk_tool_shell_get_text_orientation(). + * @get_text_alignment: optional implementation of gtk_tool_shell_get_text_alignment(). + * @get_ellipsize_mode: optional implementation of gtk_tool_shell_get_ellipsize_mode(). + * @get_text_size_group: optional implementation of gtk_tool_shell_get_text_size_group(). + * + * Virtual function table for the #GtkToolShell interface. + */ +struct _GtkToolShellIface +{ + /*< private >*/ + GTypeInterface g_iface; + + /*< public >*/ + GtkIconSize (*get_icon_size) (GtkToolShell *shell); + GtkOrientation (*get_orientation) (GtkToolShell *shell); + GtkToolbarStyle (*get_style) (GtkToolShell *shell); + GtkReliefStyle (*get_relief_style) (GtkToolShell *shell); + void (*rebuild_menu) (GtkToolShell *shell); + GtkOrientation (*get_text_orientation) (GtkToolShell *shell); + gfloat (*get_text_alignment) (GtkToolShell *shell); + PangoEllipsizeMode (*get_ellipsize_mode) (GtkToolShell *shell); + GtkSizeGroup * (*get_text_size_group) (GtkToolShell *shell); +}; + +GType gtk_tool_shell_get_type (void) G_GNUC_CONST; + +GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell); +GtkOrientation gtk_tool_shell_get_orientation (GtkToolShell *shell); +GtkToolbarStyle gtk_tool_shell_get_style (GtkToolShell *shell); +GtkReliefStyle gtk_tool_shell_get_relief_style (GtkToolShell *shell); +void gtk_tool_shell_rebuild_menu (GtkToolShell *shell); +GtkOrientation gtk_tool_shell_get_text_orientation (GtkToolShell *shell); +gfloat gtk_tool_shell_get_text_alignment (GtkToolShell *shell); +PangoEllipsizeMode gtk_tool_shell_get_ellipsize_mode (GtkToolShell *shell); +GtkSizeGroup * gtk_tool_shell_get_text_size_group (GtkToolShell *shell); + +G_END_DECLS + +#endif /* __GTK_TOOL_SHELL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktooltip.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktooltip.h new file mode 100644 index 0000000..ab8f3eb --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktooltip.h @@ -0,0 +1,75 @@ +/* gtktooltip.h + * + * Copyright (C) 2006-2007 Imendio AB + * Contact: Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TOOLTIP_H__ +#define __GTK_TOOLTIP_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TOOLTIP (gtk_tooltip_get_type ()) +#define GTK_TOOLTIP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOOLTIP, GtkTooltip)) +#define GTK_IS_TOOLTIP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TOOLTIP)) + +GType gtk_tooltip_get_type (void); + +void gtk_tooltip_set_markup (GtkTooltip *tooltip, + const gchar *markup); +void gtk_tooltip_set_text (GtkTooltip *tooltip, + const gchar *text); +void gtk_tooltip_set_icon (GtkTooltip *tooltip, + GdkPixbuf *pixbuf); +void gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip, + const gchar *stock_id, + GtkIconSize size); +void gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip, + const gchar *icon_name, + GtkIconSize size); +void gtk_tooltip_set_icon_from_gicon (GtkTooltip *tooltip, + GIcon *gicon, + GtkIconSize size); +void gtk_tooltip_set_custom (GtkTooltip *tooltip, + GtkWidget *custom_widget); + +void gtk_tooltip_set_tip_area (GtkTooltip *tooltip, + const GdkRectangle *rect); + +void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display); + + +void _gtk_tooltip_focus_in (GtkWidget *widget); +void _gtk_tooltip_focus_out (GtkWidget *widget); +void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget); +void _gtk_tooltip_handle_event (GdkEvent *event); +void _gtk_tooltip_hide (GtkWidget *widget); + +GtkWidget * _gtk_widget_find_at_coords (GdkWindow *window, + gint window_x, + gint window_y, + gint *widget_x, + gint *widget_y); + +G_END_DECLS + +#endif /* __GTK_TOOLTIP_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreednd.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreednd.h new file mode 100644 index 0000000..98ba618 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreednd.h @@ -0,0 +1,123 @@ +/* gtktreednd.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_DND_H__ +#define __GTK_TREE_DND_H__ + +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_DRAG_SOURCE (gtk_tree_drag_source_get_type ()) +#define GTK_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSource)) +#define GTK_IS_TREE_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_SOURCE)) +#define GTK_TREE_DRAG_SOURCE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_SOURCE, GtkTreeDragSourceIface)) + +typedef struct _GtkTreeDragSource GtkTreeDragSource; /* Dummy typedef */ +typedef struct _GtkTreeDragSourceIface GtkTreeDragSourceIface; + +struct _GtkTreeDragSourceIface +{ + GTypeInterface g_iface; + + /* VTable - not signals */ + + gboolean (* row_draggable) (GtkTreeDragSource *drag_source, + GtkTreePath *path); + + gboolean (* drag_data_get) (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data); + + gboolean (* drag_data_delete) (GtkTreeDragSource *drag_source, + GtkTreePath *path); +}; + +GType gtk_tree_drag_source_get_type (void) G_GNUC_CONST; + +/* Returns whether the given row can be dragged */ +gboolean gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path); + +/* Deletes the given row, or returns FALSE if it can't */ +gboolean gtk_tree_drag_source_drag_data_delete (GtkTreeDragSource *drag_source, + GtkTreePath *path); + +/* Fills in selection_data with type selection_data->target based on + * the row denoted by path, returns TRUE if it does anything + */ +gboolean gtk_tree_drag_source_drag_data_get (GtkTreeDragSource *drag_source, + GtkTreePath *path, + GtkSelectionData *selection_data); + +#define GTK_TYPE_TREE_DRAG_DEST (gtk_tree_drag_dest_get_type ()) +#define GTK_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDest)) +#define GTK_IS_TREE_DRAG_DEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_DRAG_DEST)) +#define GTK_TREE_DRAG_DEST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_DRAG_DEST, GtkTreeDragDestIface)) + +typedef struct _GtkTreeDragDest GtkTreeDragDest; /* Dummy typedef */ +typedef struct _GtkTreeDragDestIface GtkTreeDragDestIface; + +struct _GtkTreeDragDestIface +{ + GTypeInterface g_iface; + + /* VTable - not signals */ + + gboolean (* drag_data_received) (GtkTreeDragDest *drag_dest, + GtkTreePath *dest, + GtkSelectionData *selection_data); + + gboolean (* row_drop_possible) (GtkTreeDragDest *drag_dest, + GtkTreePath *dest_path, + GtkSelectionData *selection_data); +}; + +GType gtk_tree_drag_dest_get_type (void) G_GNUC_CONST; + +/* Inserts a row before dest which contains data in selection_data, + * or returns FALSE if it can't + */ +gboolean gtk_tree_drag_dest_drag_data_received (GtkTreeDragDest *drag_dest, + GtkTreePath *dest, + GtkSelectionData *selection_data); + + +/* Returns TRUE if we can drop before path; path may not exist. */ +gboolean gtk_tree_drag_dest_row_drop_possible (GtkTreeDragDest *drag_dest, + GtkTreePath *dest_path, + GtkSelectionData *selection_data); + + +/* The selection data would normally have target type GTK_TREE_MODEL_ROW in this + * case. If the target is wrong these functions return FALSE. + */ +gboolean gtk_tree_set_row_drag_data (GtkSelectionData *selection_data, + GtkTreeModel *tree_model, + GtkTreePath *path); +gboolean gtk_tree_get_row_drag_data (GtkSelectionData *selection_data, + GtkTreeModel **tree_model, + GtkTreePath **path); + +G_END_DECLS + +#endif /* __GTK_TREE_DND_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodel.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodel.h new file mode 100644 index 0000000..ea81a21 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodel.h @@ -0,0 +1,302 @@ +/* gtktreemodel.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_MODEL_H__ +#define __GTK_TREE_MODEL_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL (gtk_tree_model_get_type ()) +#define GTK_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModel)) +#define GTK_IS_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL)) +#define GTK_TREE_MODEL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_MODEL, GtkTreeModelIface)) + +#define GTK_TYPE_TREE_ITER (gtk_tree_iter_get_type ()) +#define GTK_TYPE_TREE_PATH (gtk_tree_path_get_type ()) +#define GTK_TYPE_TREE_ROW_REFERENCE (gtk_tree_row_reference_get_type ()) + +typedef struct _GtkTreeIter GtkTreeIter; +typedef struct _GtkTreePath GtkTreePath; +typedef struct _GtkTreeRowReference GtkTreeRowReference; +typedef struct _GtkTreeModel GtkTreeModel; /* Dummy typedef */ +typedef struct _GtkTreeModelIface GtkTreeModelIface; + +/** + * GtkTreeModelForeachFunc: + * @model: the #GtkTreeModel being iterated + * @path: the current #GtkTreePath + * @iter: the current #GtkTreeIter + * @data: The user data passed to gtk_tree_model_foreach() + * + * Type of the callback passed to gtk_tree_model_foreach() to + * iterate over the rows in a tree model. + * + * Return value: %TRUE to stop iterating, %FALSE to continue + * + */ +typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); + +/** + * GtkTreeModelFlags: + * @GTK_TREE_MODEL_ITERS_PERSIST: iterators survive all signals + * emitted by the tree + * @GTK_TREE_MODEL_LIST_ONLY: the model is a list only, and never + * has children + * + * These flags indicate various properties of a #GtkTreeModel. + * + * They are returned by gtk_tree_model_get_flags(), and must be + * static for the lifetime of the object. A more complete description + * of #GTK_TREE_MODEL_ITERS_PERSIST can be found in the overview of + * this section. + */ +typedef enum +{ + GTK_TREE_MODEL_ITERS_PERSIST = 1 << 0, + GTK_TREE_MODEL_LIST_ONLY = 1 << 1 +} GtkTreeModelFlags; + +/** + * GtkTreeIter: + * @stamp: a unique stamp to catch invalid iterators + * @user_data: model-specific data + * @user_data2: model-specific data + * @user_data3: model-specific data + * + * The GtkTreeIter is the primary structure + * for accessing a #GtkTreeModel. Models are expected to put a unique + * integer in the stamp member, and put + * model-specific data in the three user_data + * members. + */ +struct _GtkTreeIter +{ + gint stamp; + gpointer user_data; + gpointer user_data2; + gpointer user_data3; +}; + +struct _GtkTreeModelIface +{ + GTypeInterface g_iface; + + /* Signals */ + void (* row_changed) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_inserted) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_has_child_toggled) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); + void (* row_deleted) (GtkTreeModel *tree_model, + GtkTreePath *path); + void (* rows_reordered) (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + + /* Virtual Table */ + GtkTreeModelFlags (* get_flags) (GtkTreeModel *tree_model); + + gint (* get_n_columns) (GtkTreeModel *tree_model); + GType (* get_column_type) (GtkTreeModel *tree_model, + gint index_); + gboolean (* get_iter) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path); + GtkTreePath *(* get_path) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + void (* get_value) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); + gboolean (* iter_next) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gboolean (* iter_previous) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gboolean (* iter_children) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent); + gboolean (* iter_has_child) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gint (* iter_n_children) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + gboolean (* iter_nth_child) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n); + gboolean (* iter_parent) (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child); + void (* ref_node) (GtkTreeModel *tree_model, + GtkTreeIter *iter); + void (* unref_node) (GtkTreeModel *tree_model, + GtkTreeIter *iter); +}; + + +/* GtkTreePath operations */ +GtkTreePath *gtk_tree_path_new (void); +GtkTreePath *gtk_tree_path_new_from_string (const gchar *path); +GtkTreePath *gtk_tree_path_new_from_indices (gint first_index, + ...); +gchar *gtk_tree_path_to_string (GtkTreePath *path); +GtkTreePath *gtk_tree_path_new_first (void); +void gtk_tree_path_append_index (GtkTreePath *path, + gint index_); +void gtk_tree_path_prepend_index (GtkTreePath *path, + gint index_); +gint gtk_tree_path_get_depth (GtkTreePath *path); +gint *gtk_tree_path_get_indices (GtkTreePath *path); + +gint *gtk_tree_path_get_indices_with_depth (GtkTreePath *path, + gint *depth); + +void gtk_tree_path_free (GtkTreePath *path); +GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path); +GType gtk_tree_path_get_type (void) G_GNUC_CONST; +gint gtk_tree_path_compare (const GtkTreePath *a, + const GtkTreePath *b); +void gtk_tree_path_next (GtkTreePath *path); +gboolean gtk_tree_path_prev (GtkTreePath *path); +gboolean gtk_tree_path_up (GtkTreePath *path); +void gtk_tree_path_down (GtkTreePath *path); + +gboolean gtk_tree_path_is_ancestor (GtkTreePath *path, + GtkTreePath *descendant); +gboolean gtk_tree_path_is_descendant (GtkTreePath *path, + GtkTreePath *ancestor); + +/* Row reference (an object that tracks model changes so it refers to the same + * row always; a path refers to a position, not a fixed row). You almost always + * want to call gtk_tree_row_reference_new. + */ + +GType gtk_tree_row_reference_get_type (void) G_GNUC_CONST; +GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model, + GtkTreePath *path); +GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy, + GtkTreeModel *model, + GtkTreePath *path); +GtkTreePath *gtk_tree_row_reference_get_path (GtkTreeRowReference *reference); +GtkTreeModel *gtk_tree_row_reference_get_model (GtkTreeRowReference *reference); +gboolean gtk_tree_row_reference_valid (GtkTreeRowReference *reference); +GtkTreeRowReference *gtk_tree_row_reference_copy (GtkTreeRowReference *reference); +void gtk_tree_row_reference_free (GtkTreeRowReference *reference); +/* These two functions are only needed if you created the row reference with a + * proxy object */ +void gtk_tree_row_reference_inserted (GObject *proxy, + GtkTreePath *path); +void gtk_tree_row_reference_deleted (GObject *proxy, + GtkTreePath *path); +void gtk_tree_row_reference_reordered (GObject *proxy, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + +/* GtkTreeIter operations */ +GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter); +void gtk_tree_iter_free (GtkTreeIter *iter); +GType gtk_tree_iter_get_type (void) G_GNUC_CONST; + +GType gtk_tree_model_get_type (void) G_GNUC_CONST; +GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model); +gint gtk_tree_model_get_n_columns (GtkTreeModel *tree_model); +GType gtk_tree_model_get_column_type (GtkTreeModel *tree_model, + gint index_); + + +/* Iterator movement */ +gboolean gtk_tree_model_get_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreePath *path); +gboolean gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model, + GtkTreeIter *iter, + const gchar *path_string); +gchar * gtk_tree_model_get_string_from_iter (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_get_iter_first (GtkTreeModel *tree_model, + GtkTreeIter *iter); +GtkTreePath * gtk_tree_model_get_path (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_get_value (GtkTreeModel *tree_model, + GtkTreeIter *iter, + gint column, + GValue *value); +gboolean gtk_tree_model_iter_previous (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_iter_next (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_iter_children (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent); +gboolean gtk_tree_model_iter_has_child (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gint gtk_tree_model_iter_n_children (GtkTreeModel *tree_model, + GtkTreeIter *iter); +gboolean gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint n); +gboolean gtk_tree_model_iter_parent (GtkTreeModel *tree_model, + GtkTreeIter *iter, + GtkTreeIter *child); +void gtk_tree_model_ref_node (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_unref_node (GtkTreeModel *tree_model, + GtkTreeIter *iter); +void gtk_tree_model_get (GtkTreeModel *tree_model, + GtkTreeIter *iter, + ...); +void gtk_tree_model_get_valist (GtkTreeModel *tree_model, + GtkTreeIter *iter, + va_list var_args); + + +void gtk_tree_model_foreach (GtkTreeModel *model, + GtkTreeModelForeachFunc func, + gpointer user_data); + +/* Signals */ +void gtk_tree_model_row_changed (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_inserted (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_has_child_toggled (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter); +void gtk_tree_model_row_deleted (GtkTreeModel *tree_model, + GtkTreePath *path); +void gtk_tree_model_rows_reordered (GtkTreeModel *tree_model, + GtkTreePath *path, + GtkTreeIter *iter, + gint *new_order); + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelfilter.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelfilter.h new file mode 100644 index 0000000..b3e0c00 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelfilter.h @@ -0,0 +1,144 @@ +/* gtktreemodelfilter.h + * Copyright (C) 2000,2001 Red Hat, Inc., Jonathan Blandford + * Copyright (C) 2001-2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_MODEL_FILTER_H__ +#define __GTK_TREE_MODEL_FILTER_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL_FILTER (gtk_tree_model_filter_get_type ()) +#define GTK_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilter)) +#define GTK_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) +#define GTK_IS_TREE_MODEL_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_FILTER)) +#define GTK_IS_TREE_MODEL_FILTER_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), GTK_TYPE_TREE_MODEL_FILTER)) +#define GTK_TREE_MODEL_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_FILTER, GtkTreeModelFilterClass)) + +/** + * GtkTreeModelFilterVisibleFunc: + * @model: the child model of the #GtkTreeModelFilter + * @iter: a #GtkTreeIter pointing to the row in @model whose visibility + * is determined + * @data: (closure): user data given to gtk_tree_model_filter_set_visible_func() + * + * A function which decides whether the row indicated by @iter is visible. + * + * Returns: Whether the row indicated by @iter is visible. + */ +typedef gboolean (* GtkTreeModelFilterVisibleFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data); + +/** + * GtkTreeModelFilterModifyFunc: + * @model: the #GtkTreeModelFilter + * @iter: a #GtkTreeIter pointing to the row whose display values are determined + * @value: A #GValue which is already initialized for with the correct type for + * the column @column. + * @column: the column whose display value is determined + * @data: (closure): user data given to gtk_tree_model_filter_set_modify_func() + * + * A function which calculates display values from raw values in the model. + * It must fill @value with the display value for the column @column in the + * row indicated by @iter. + * + * Since this function is called for each data access, it's not a + * particularly efficient operation. + */ + +typedef void (* GtkTreeModelFilterModifyFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + GValue *value, + gint column, + gpointer data); + +typedef struct _GtkTreeModelFilter GtkTreeModelFilter; +typedef struct _GtkTreeModelFilterClass GtkTreeModelFilterClass; +typedef struct _GtkTreeModelFilterPrivate GtkTreeModelFilterPrivate; + +struct _GtkTreeModelFilter +{ + GObject parent; + + /*< private >*/ + GtkTreeModelFilterPrivate *priv; +}; + +struct _GtkTreeModelFilterClass +{ + GObjectClass parent_class; + + gboolean (* visible) (GtkTreeModelFilter *self, + GtkTreeModel *child_model, + GtkTreeIter *iter); + void (* modify) (GtkTreeModelFilter *self, + GtkTreeModel *child_model, + GtkTreeIter *iter, + GValue *value, + gint column); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/* base */ +GType gtk_tree_model_filter_get_type (void) G_GNUC_CONST; +GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model, + GtkTreePath *root); +void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter, + GtkTreeModelFilterVisibleFunc func, + gpointer data, + GDestroyNotify destroy); +void gtk_tree_model_filter_set_modify_func (GtkTreeModelFilter *filter, + gint n_columns, + GType *types, + GtkTreeModelFilterModifyFunc func, + gpointer data, + GDestroyNotify destroy); +void gtk_tree_model_filter_set_visible_column (GtkTreeModelFilter *filter, + gint column); + +GtkTreeModel *gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter); + +/* conversion */ +gboolean gtk_tree_model_filter_convert_child_iter_to_iter (GtkTreeModelFilter *filter, + GtkTreeIter *filter_iter, + GtkTreeIter *child_iter); +void gtk_tree_model_filter_convert_iter_to_child_iter (GtkTreeModelFilter *filter, + GtkTreeIter *child_iter, + GtkTreeIter *filter_iter); +GtkTreePath *gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter, + GtkTreePath *child_path); +GtkTreePath *gtk_tree_model_filter_convert_path_to_child_path (GtkTreeModelFilter *filter, + GtkTreePath *filter_path); + +/* extras */ +void gtk_tree_model_filter_refilter (GtkTreeModelFilter *filter); +void gtk_tree_model_filter_clear_cache (GtkTreeModelFilter *filter); + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_FILTER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelsort.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelsort.h new file mode 100644 index 0000000..7ac5e55 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreemodelsort.h @@ -0,0 +1,84 @@ +/* gtktreemodelsort.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_MODEL_SORT_H__ +#define __GTK_TREE_MODEL_SORT_H__ + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_MODEL_SORT (gtk_tree_model_sort_get_type ()) +#define GTK_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSort)) +#define GTK_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) +#define GTK_IS_TREE_MODEL_SORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_MODEL_SORT)) +#define GTK_IS_TREE_MODEL_SORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_MODEL_SORT)) +#define GTK_TREE_MODEL_SORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_MODEL_SORT, GtkTreeModelSortClass)) + +typedef struct _GtkTreeModelSort GtkTreeModelSort; +typedef struct _GtkTreeModelSortClass GtkTreeModelSortClass; +typedef struct _GtkTreeModelSortPrivate GtkTreeModelSortPrivate; + +struct _GtkTreeModelSort +{ + GObject parent; + + /* < private > */ + GtkTreeModelSortPrivate *priv; +}; + +struct _GtkTreeModelSortClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_model_sort_get_type (void) G_GNUC_CONST; +GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model); + +GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model); +GtkTreePath *gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort, + GtkTreePath *child_path); +gboolean gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *sort_iter, + GtkTreeIter *child_iter); +GtkTreePath *gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort, + GtkTreePath *sorted_path); +void gtk_tree_model_sort_convert_iter_to_child_iter (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *child_iter, + GtkTreeIter *sorted_iter); +void gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort); +void gtk_tree_model_sort_clear_cache (GtkTreeModelSort *tree_model_sort); +gboolean gtk_tree_model_sort_iter_is_valid (GtkTreeModelSort *tree_model_sort, + GtkTreeIter *iter); + + +G_END_DECLS + +#endif /* __GTK_TREE_MODEL_SORT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreeselection.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeselection.h new file mode 100644 index 0000000..0b99f33 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeselection.h @@ -0,0 +1,146 @@ +/* gtktreeselection.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_SELECTION_H__ +#define __GTK_TREE_SELECTION_H__ + +#include + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_SELECTION (gtk_tree_selection_get_type ()) +#define GTK_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelection)) +#define GTK_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) +#define GTK_IS_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SELECTION)) +#define GTK_IS_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_SELECTION)) +#define GTK_TREE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass)) + +typedef struct _GtkTreeSelectionPrivate GtkTreeSelectionPrivate; + +/** + * GtkTreeSelectionFunc: + * @selection: A #GtkTreeSelection + * @model: A #GtkTreeModel being viewed + * @path: The #GtkTreePath of the row in question + * @path_currently_selected: %TRUE, if the path is currently selected + * @data: (closure): user data + * + * A function used by gtk_tree_selection_set_select_function() to filter + * whether or not a row may be selected. It is called whenever a row's + * state might change. A return value of %TRUE indicates to @selection + * that it is okay to change the selection. + * + * Returns: %TRUE, if the selection state of the row can be toggled + */ +typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection, + GtkTreeModel *model, + GtkTreePath *path, + gboolean path_currently_selected, + gpointer data); + +/** + * GtkTreeSelectionForeachFunc: + * @model: The #GtkTreeModel being viewed + * @path: The #GtkTreePath of a selected row + * @iter: A #GtkTreeIter pointing to a selected row + * @data: (closure): user data + * + * A function used by gtk_tree_selection_selected_foreach() to map all + * selected rows. It will be called on every selected row in the view. + */ +typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer data); + +struct _GtkTreeSelection +{ + /*< private >*/ + GObject parent; + + GtkTreeSelectionPrivate *priv; +}; + +struct _GtkTreeSelectionClass +{ + GObjectClass parent_class; + + void (* changed) (GtkTreeSelection *selection); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_selection_get_type (void) G_GNUC_CONST; + +void gtk_tree_selection_set_mode (GtkTreeSelection *selection, + GtkSelectionMode type); +GtkSelectionMode gtk_tree_selection_get_mode (GtkTreeSelection *selection); +void gtk_tree_selection_set_select_function (GtkTreeSelection *selection, + GtkTreeSelectionFunc func, + gpointer data, + GDestroyNotify destroy); +gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection); +GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection); + +GtkTreeSelectionFunc gtk_tree_selection_get_select_function (GtkTreeSelection *selection); + +/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set */ +/* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE */ +gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection, + GtkTreeModel **model, + GtkTreeIter *iter); +GList * gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection, + GtkTreeModel **model); +gint gtk_tree_selection_count_selected_rows (GtkTreeSelection *selection); +void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection, + GtkTreeSelectionForeachFunc func, + gpointer data); +void gtk_tree_selection_select_path (GtkTreeSelection *selection, + GtkTreePath *path); +void gtk_tree_selection_unselect_path (GtkTreeSelection *selection, + GtkTreePath *path); +void gtk_tree_selection_select_iter (GtkTreeSelection *selection, + GtkTreeIter *iter); +void gtk_tree_selection_unselect_iter (GtkTreeSelection *selection, + GtkTreeIter *iter); +gboolean gtk_tree_selection_path_is_selected (GtkTreeSelection *selection, + GtkTreePath *path); +gboolean gtk_tree_selection_iter_is_selected (GtkTreeSelection *selection, + GtkTreeIter *iter); +void gtk_tree_selection_select_all (GtkTreeSelection *selection); +void gtk_tree_selection_unselect_all (GtkTreeSelection *selection); +void gtk_tree_selection_select_range (GtkTreeSelection *selection, + GtkTreePath *start_path, + GtkTreePath *end_path); +void gtk_tree_selection_unselect_range (GtkTreeSelection *selection, + GtkTreePath *start_path, + GtkTreePath *end_path); + + +G_END_DECLS + +#endif /* __GTK_TREE_SELECTION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreesortable.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreesortable.h new file mode 100644 index 0000000..1d46388 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreesortable.h @@ -0,0 +1,123 @@ +/* gtktreesortable.h + * Copyright (C) 2001 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_SORTABLE_H__ +#define __GTK_TREE_SORTABLE_H__ + + +#include +#include + + +G_BEGIN_DECLS + +#define GTK_TYPE_TREE_SORTABLE (gtk_tree_sortable_get_type ()) +#define GTK_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortable)) +#define GTK_TREE_SORTABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) +#define GTK_IS_TREE_SORTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SORTABLE)) +#define GTK_TREE_SORTABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortableIface)) + +enum { + GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1, + GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2 +}; + +typedef struct _GtkTreeSortable GtkTreeSortable; /* Dummy typedef */ +typedef struct _GtkTreeSortableIface GtkTreeSortableIface; + +/** + * GtkTreeIterCompareFunc: + * @model: The #GtkTreeModel the comparison is within + * @a: A #GtkTreeIter in @model + * @b: Another #GtkTreeIter in @model + * @user_data: Data passed when the compare func is assigned e.g. by + * gtk_tree_sortable_set_sort_func() + * + * A GtkTreeIterCompareFunc should return a negative integer, zero, or a positive + * integer if @a sorts before @b, @a sorts with @b, or @a sorts after @b + * respectively. If two iters compare as equal, their order in the sorted model + * is undefined. In order to ensure that the #GtkTreeSortable behaves as + * expected, the GtkTreeIterCompareFunc must define a partial order on + * the model, i.e. it must be reflexive, antisymmetric and transitive. + * + * For example, if @model is a product catalogue, then a compare function + * for the "price" column could be one which returns + * price_of(@a) - price_of(@b). + * + * Returns: a negative integer, zero or a positive integer depending on whether + * @a sorts before, with or after @b + */ +typedef gint (* GtkTreeIterCompareFunc) (GtkTreeModel *model, + GtkTreeIter *a, + GtkTreeIter *b, + gpointer user_data); + + +struct _GtkTreeSortableIface +{ + GTypeInterface g_iface; + + /* signals */ + void (* sort_column_changed) (GtkTreeSortable *sortable); + + /* virtual table */ + gboolean (* get_sort_column_id) (GtkTreeSortable *sortable, + gint *sort_column_id, + GtkSortType *order); + void (* set_sort_column_id) (GtkTreeSortable *sortable, + gint sort_column_id, + GtkSortType order); + void (* set_sort_func) (GtkTreeSortable *sortable, + gint sort_column_id, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GDestroyNotify destroy); + void (* set_default_sort_func) (GtkTreeSortable *sortable, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GDestroyNotify destroy); + gboolean (* has_default_sort_func) (GtkTreeSortable *sortable); +}; + + +GType gtk_tree_sortable_get_type (void) G_GNUC_CONST; + +void gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable); +gboolean gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable, + gint *sort_column_id, + GtkSortType *order); +void gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable, + gint sort_column_id, + GtkSortType order); +void gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable, + gint sort_column_id, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GDestroyNotify destroy); +void gtk_tree_sortable_set_default_sort_func (GtkTreeSortable *sortable, + GtkTreeIterCompareFunc sort_func, + gpointer user_data, + GDestroyNotify destroy); +gboolean gtk_tree_sortable_has_default_sort_func (GtkTreeSortable *sortable); + +G_END_DECLS + +#endif /* __GTK_TREE_SORTABLE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreestore.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreestore.h new file mode 100644 index 0000000..9ea6d3a --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreestore.h @@ -0,0 +1,147 @@ +/* gtktreestore.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_STORE_H__ +#define __GTK_TREE_STORE_H__ + +#include +#include +#include +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_STORE (gtk_tree_store_get_type ()) +#define GTK_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_STORE, GtkTreeStore)) +#define GTK_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) +#define GTK_IS_TREE_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_STORE)) +#define GTK_IS_TREE_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_STORE)) +#define GTK_TREE_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_STORE, GtkTreeStoreClass)) + +typedef struct _GtkTreeStore GtkTreeStore; +typedef struct _GtkTreeStoreClass GtkTreeStoreClass; +typedef struct _GtkTreeStorePrivate GtkTreeStorePrivate; + +struct _GtkTreeStore +{ + GObject parent; + + GtkTreeStorePrivate *priv; +}; + +struct _GtkTreeStoreClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_tree_store_get_type (void) G_GNUC_CONST; +GtkTreeStore *gtk_tree_store_new (gint n_columns, + ...); +GtkTreeStore *gtk_tree_store_newv (gint n_columns, + GType *types); +void gtk_tree_store_set_column_types (GtkTreeStore *tree_store, + gint n_columns, + GType *types); + +/* NOTE: use gtk_tree_model_get to get values from a GtkTreeStore */ + +void gtk_tree_store_set_value (GtkTreeStore *tree_store, + GtkTreeIter *iter, + gint column, + GValue *value); +void gtk_tree_store_set (GtkTreeStore *tree_store, + GtkTreeIter *iter, + ...); +void gtk_tree_store_set_valuesv (GtkTreeStore *tree_store, + GtkTreeIter *iter, + gint *columns, + GValue *values, + gint n_values); +void gtk_tree_store_set_valist (GtkTreeStore *tree_store, + GtkTreeIter *iter, + va_list var_args); +gboolean gtk_tree_store_remove (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_insert (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position); +void gtk_tree_store_insert_before (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + GtkTreeIter *sibling); +void gtk_tree_store_insert_after (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + GtkTreeIter *sibling); +void gtk_tree_store_insert_with_values (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position, + ...); +void gtk_tree_store_insert_with_valuesv (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent, + gint position, + gint *columns, + GValue *values, + gint n_values); +void gtk_tree_store_prepend (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent); +void gtk_tree_store_append (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *parent); +gboolean gtk_tree_store_is_ancestor (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *descendant); +gint gtk_tree_store_iter_depth (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_clear (GtkTreeStore *tree_store); +gboolean gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store, + GtkTreeIter *iter); +void gtk_tree_store_reorder (GtkTreeStore *tree_store, + GtkTreeIter *parent, + gint *new_order); +void gtk_tree_store_swap (GtkTreeStore *tree_store, + GtkTreeIter *a, + GtkTreeIter *b); +void gtk_tree_store_move_before (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *position); +void gtk_tree_store_move_after (GtkTreeStore *tree_store, + GtkTreeIter *iter, + GtkTreeIter *position); + + +G_END_DECLS + + +#endif /* __GTK_TREE_STORE_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreeview.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeview.h new file mode 100644 index 0000000..8bab066 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeview.h @@ -0,0 +1,501 @@ +/* gtktreeview.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_VIEW_H__ +#define __GTK_TREE_VIEW_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +/** + * GtkTreeViewDropPosition: + * @GTK_TREE_VIEW_DROP_BEFORE: dropped row is inserted before + * @GTK_TREE_VIEW_DROP_AFTER: dropped row is inserted after + * @GTK_TREE_VIEW_DROP_INTO_OR_BEFORE: dropped row becomes a child or is inserted before + * @GTK_TREE_VIEW_DROP_INTO_OR_AFTER: dropped row becomes a child or is inserted after + * + * An enum for determining where a dropped row goes. + */ +typedef enum +{ + /* drop before/after this row */ + GTK_TREE_VIEW_DROP_BEFORE, + GTK_TREE_VIEW_DROP_AFTER, + /* drop as a child of this row (with fallback to before or after + * if into is not possible) + */ + GTK_TREE_VIEW_DROP_INTO_OR_BEFORE, + GTK_TREE_VIEW_DROP_INTO_OR_AFTER +} GtkTreeViewDropPosition; + +#define GTK_TYPE_TREE_VIEW (gtk_tree_view_get_type ()) +#define GTK_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW, GtkTreeView)) +#define GTK_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) +#define GTK_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW)) +#define GTK_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW)) +#define GTK_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW, GtkTreeViewClass)) + +typedef struct _GtkTreeView GtkTreeView; +typedef struct _GtkTreeViewClass GtkTreeViewClass; +typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate; +typedef struct _GtkTreeSelection GtkTreeSelection; +typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass; + +struct _GtkTreeView +{ + GtkContainer parent; + + /*< private >*/ + GtkTreeViewPrivate *priv; +}; + +struct _GtkTreeViewClass +{ + GtkContainerClass parent_class; + + void (* row_activated) (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column); + gboolean (* test_expand_row) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + gboolean (* test_collapse_row) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* row_expanded) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* row_collapsed) (GtkTreeView *tree_view, + GtkTreeIter *iter, + GtkTreePath *path); + void (* columns_changed) (GtkTreeView *tree_view); + void (* cursor_changed) (GtkTreeView *tree_view); + + /* Key Binding signals */ + gboolean (* move_cursor) (GtkTreeView *tree_view, + GtkMovementStep step, + gint count); + gboolean (* select_all) (GtkTreeView *tree_view); + gboolean (* unselect_all) (GtkTreeView *tree_view); + gboolean (* select_cursor_row) (GtkTreeView *tree_view, + gboolean start_editing); + gboolean (* toggle_cursor_row) (GtkTreeView *tree_view); + gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view, + gboolean logical, + gboolean expand, + gboolean open_all); + gboolean (* select_cursor_parent) (GtkTreeView *tree_view); + gboolean (* start_interactive_search) (GtkTreeView *tree_view); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); + void (*_gtk_reserved8) (void); +}; + +/** + * GtkTreeViewColumnDropFunc: + * @tree_view: A #GtkTreeView + * @column: The #GtkTreeViewColumn being dragged + * @prev_column: A #GtkTreeViewColumn on one side of @column + * @next_column: A #GtkTreeViewColumn on the other side of @column + * @data: (closure): user data + * + * Function type for determining whether @column can be dropped in a + * particular spot (as determined by @prev_column and @next_column). In + * left to right locales, @prev_column is on the left of the potential drop + * spot, and @next_column is on the right. In right to left mode, this is + * reversed. This function should return %TRUE if the spot is a valid drop + * spot. Please note that returning %TRUE does not actually indicate that + * the column drop was made, but is meant only to indicate a possible drop + * spot to the user. + * + * Returns: %TRUE, if @column can be dropped in this spot + */ +typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + GtkTreeViewColumn *prev_column, + GtkTreeViewColumn *next_column, + gpointer data); + +/** + * GtkTreeViewMappingFunc: + * @tree_view: A #GtkTreeView + * @path: The path that's expanded + * @user_data: user data + * + * Function used for gtk_tree_view_map_expanded_rows(). + */ +typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view, + GtkTreePath *path, + gpointer user_data); + +/** + * GtkTreeViewSearchEqualFunc: + * @model: the #GtkTreeModel being searched + * @column: the search column set by gtk_tree_view_set_search_column() + * @key: the key string to compare with + * @iter: a #GtkTreeIter pointing the row of @model that should be compared + * with @key. + * @search_data: (closure): user data from gtk_tree_view_set_search_equal_func() + * + * A function used for checking whether a row in @model matches + * a search key string entered by the user. Note the return value + * is reversed from what you would normally expect, though it + * has some similarity to strcmp() returning 0 for equal strings. + * + * Returns: %FALSE if the row matches, %TRUE otherwise. + */ +typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model, + gint column, + const gchar *key, + GtkTreeIter *iter, + gpointer search_data); + +/** + * GtkTreeViewRowSeparatorFunc: + * @model: the #GtkTreeModel + * @iter: a #GtkTreeIter pointing at a row in @model + * @data: (closure): user data + * + * Function type for determining whether the row pointed to by @iter should + * be rendered as a separator. A common way to implement this is to have a + * boolean column in the model, whose values the #GtkTreeViewRowSeparatorFunc + * returns. + * + * Returns: %TRUE if the row is a separator + */ +typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model, + GtkTreeIter *iter, + gpointer data); +typedef void (*GtkTreeViewSearchPositionFunc) (GtkTreeView *tree_view, + GtkWidget *search_dialog, + gpointer user_data); + + +/* Creators */ +GType gtk_tree_view_get_type (void) G_GNUC_CONST; +GtkWidget *gtk_tree_view_new (void); +GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model); + +/* Accessors */ +GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view); +void gtk_tree_view_set_model (GtkTreeView *tree_view, + GtkTreeModel *model); +GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) +GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment) +void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view, + GtkAdjustment *adjustment); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) +GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment) +void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view, + GtkAdjustment *adjustment); + + +gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view); +void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view, + gboolean headers_visible); +void gtk_tree_view_columns_autosize (GtkTreeView *tree_view); +gboolean gtk_tree_view_get_headers_clickable (GtkTreeView *tree_view); +void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view, + gboolean setting); +void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, + gboolean setting); +gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view); + +/* Column funtions */ +gint gtk_tree_view_append_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +gint gtk_tree_view_remove_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +gint gtk_tree_view_insert_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + gint position); +gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view, + gint position, + const gchar *title, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +gint gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view, + gint position, + const gchar *title, + GtkCellRenderer *cell, + GtkTreeCellDataFunc func, + gpointer data, + GDestroyNotify dnotify); + +GDK_AVAILABLE_IN_3_4 +guint gtk_tree_view_get_n_columns (GtkTreeView *tree_view); +GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view, + gint n); +GList *gtk_tree_view_get_columns (GtkTreeView *tree_view); +void gtk_tree_view_move_column_after (GtkTreeView *tree_view, + GtkTreeViewColumn *column, + GtkTreeViewColumn *base_column); +void gtk_tree_view_set_expander_column (GtkTreeView *tree_view, + GtkTreeViewColumn *column); +GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view); +void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view, + GtkTreeViewColumnDropFunc func, + gpointer user_data, + GDestroyNotify destroy); + +/* Actions */ +void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view, + gint tree_x, + gint tree_y); +void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + gboolean use_align, + gfloat row_align, + gfloat col_align); +void gtk_tree_view_row_activated (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column); +void gtk_tree_view_expand_all (GtkTreeView *tree_view); +void gtk_tree_view_collapse_all (GtkTreeView *tree_view); +void gtk_tree_view_expand_to_path (GtkTreeView *tree_view, + GtkTreePath *path); +gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view, + GtkTreePath *path, + gboolean open_all); +gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view, + GtkTreePath *path); +void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view, + GtkTreeViewMappingFunc func, + gpointer data); +gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view, + GtkTreePath *path); +void gtk_tree_view_set_reorderable (GtkTreeView *tree_view, + gboolean reorderable); +gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view); +void gtk_tree_view_set_cursor (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *focus_column, + gboolean start_editing); +void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *focus_column, + GtkCellRenderer *focus_cell, + gboolean start_editing); +void gtk_tree_view_get_cursor (GtkTreeView *tree_view, + GtkTreePath **path, + GtkTreeViewColumn **focus_column); + + +/* Layout information */ +GdkWindow *gtk_tree_view_get_bin_window (GtkTreeView *tree_view); +gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, + gint x, + gint y, + GtkTreePath **path, + GtkTreeViewColumn **column, + gint *cell_x, + gint *cell_y); +void gtk_tree_view_get_cell_area (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + GdkRectangle *rect); +void gtk_tree_view_get_background_area (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + GdkRectangle *rect); +void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view, + GdkRectangle *visible_rect); +gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view, + GtkTreePath **start_path, + GtkTreePath **end_path); +gboolean gtk_tree_view_is_blank_at_pos (GtkTreeView *tree_view, + gint x, + gint y, + GtkTreePath **path, + GtkTreeViewColumn **column, + gint *cell_x, + gint *cell_y); + +/* Drag-and-Drop support */ +void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view, + GdkModifierType start_button_mask, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view, + const GtkTargetEntry *targets, + gint n_targets, + GdkDragAction actions); +void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view); +void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view); + + +/* These are useful to implement your own custom stuff. */ +void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewDropPosition pos); +void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view, + GtkTreePath **path, + GtkTreeViewDropPosition *pos); +gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view, + gint drag_x, + gint drag_y, + GtkTreePath **path, + GtkTreeViewDropPosition *pos); +cairo_surface_t *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view, + GtkTreePath *path); + +/* Interactive search */ +void gtk_tree_view_set_enable_search (GtkTreeView *tree_view, + gboolean enable_search); +gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view); +gint gtk_tree_view_get_search_column (GtkTreeView *tree_view); +void gtk_tree_view_set_search_column (GtkTreeView *tree_view, + gint column); +GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view, + GtkTreeViewSearchEqualFunc search_equal_func, + gpointer search_user_data, + GDestroyNotify search_destroy); + +GtkEntry *gtk_tree_view_get_search_entry (GtkTreeView *tree_view); +void gtk_tree_view_set_search_entry (GtkTreeView *tree_view, + GtkEntry *entry); +GtkTreeViewSearchPositionFunc gtk_tree_view_get_search_position_func (GtkTreeView *tree_view); +void gtk_tree_view_set_search_position_func (GtkTreeView *tree_view, + GtkTreeViewSearchPositionFunc func, + gpointer data, + GDestroyNotify destroy); + +/* Convert between the different coordinate systems */ +void gtk_tree_view_convert_widget_to_tree_coords (GtkTreeView *tree_view, + gint wx, + gint wy, + gint *tx, + gint *ty); +void gtk_tree_view_convert_tree_to_widget_coords (GtkTreeView *tree_view, + gint tx, + gint ty, + gint *wx, + gint *wy); +void gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view, + gint wx, + gint wy, + gint *bx, + gint *by); +void gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view, + gint bx, + gint by, + gint *wx, + gint *wy); +void gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view, + gint tx, + gint ty, + gint *bx, + gint *by); +void gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view, + gint bx, + gint by, + gint *tx, + gint *ty); + +/* This function should really never be used. It is just for use by ATK. + */ +typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view, + GtkTreePath *path, + gint children, + gpointer user_data); +GDK_DEPRECATED_IN_3_4 +void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view, + GtkTreeDestroyCountFunc func, + gpointer data, + GDestroyNotify destroy); + +void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view, + gboolean enable); +gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view); +void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view, + gboolean hover); +gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view); +void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view, + gboolean expand); +gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view); +void gtk_tree_view_set_rubber_banding (GtkTreeView *tree_view, + gboolean enable); +gboolean gtk_tree_view_get_rubber_banding (GtkTreeView *tree_view); + +gboolean gtk_tree_view_is_rubber_banding_active (GtkTreeView *tree_view); + +GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view); +void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view, + GtkTreeViewRowSeparatorFunc func, + gpointer data, + GDestroyNotify destroy); + +GtkTreeViewGridLines gtk_tree_view_get_grid_lines (GtkTreeView *tree_view); +void gtk_tree_view_set_grid_lines (GtkTreeView *tree_view, + GtkTreeViewGridLines grid_lines); +gboolean gtk_tree_view_get_enable_tree_lines (GtkTreeView *tree_view); +void gtk_tree_view_set_enable_tree_lines (GtkTreeView *tree_view, + gboolean enabled); +void gtk_tree_view_set_show_expanders (GtkTreeView *tree_view, + gboolean enabled); +gboolean gtk_tree_view_get_show_expanders (GtkTreeView *tree_view); +void gtk_tree_view_set_level_indentation (GtkTreeView *tree_view, + gint indentation); +gint gtk_tree_view_get_level_indentation (GtkTreeView *tree_view); + +/* Convenience functions for setting tooltips */ +void gtk_tree_view_set_tooltip_row (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path); +void gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view, + GtkTooltip *tooltip, + GtkTreePath *path, + GtkTreeViewColumn *column, + GtkCellRenderer *cell); +gboolean gtk_tree_view_get_tooltip_context(GtkTreeView *tree_view, + gint *x, + gint *y, + gboolean keyboard_tip, + GtkTreeModel **model, + GtkTreePath **path, + GtkTreeIter *iter); +void gtk_tree_view_set_tooltip_column (GtkTreeView *tree_view, + gint column); +gint gtk_tree_view_get_tooltip_column (GtkTreeView *tree_view); + +G_END_DECLS + + +#endif /* __GTK_TREE_VIEW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktreeviewcolumn.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeviewcolumn.h new file mode 100644 index 0000000..9555ab2 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktreeviewcolumn.h @@ -0,0 +1,224 @@ +/* gtktreeviewcolumn.h + * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TREE_VIEW_COLUMN_H__ +#define __GTK_TREE_VIEW_COLUMN_H__ + +#include +#include +#include +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_TREE_VIEW_COLUMN (gtk_tree_view_column_get_type ()) +#define GTK_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumn)) +#define GTK_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) +#define GTK_IS_TREE_VIEW_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_VIEW_COLUMN)) +#define GTK_IS_TREE_VIEW_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_VIEW_COLUMN)) +#define GTK_TREE_VIEW_COLUMN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_VIEW_COLUMN, GtkTreeViewColumnClass)) + +typedef struct _GtkTreeViewColumn GtkTreeViewColumn; +typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass; +typedef struct _GtkTreeViewColumnPrivate GtkTreeViewColumnPrivate; + +/** + * GtkTreeViewColumnSizing: + * @GTK_TREE_VIEW_COLUMN_GROW_ONLY: Columns only get bigger in reaction to changes in the model + * @GTK_TREE_VIEW_COLUMN_AUTOSIZE: Columns resize to be the optimal size everytime the model changes. + * @GTK_TREE_VIEW_COLUMN_FIXED: Columns are a fixed numbers of pixels wide. + * + * The sizing method the column uses to determine its width. Please note + * that @GTK_TREE_VIEW_COLUMN_AUTOSIZE are inefficient for large views, and + * can make columns appear choppy. + */ +typedef enum +{ + GTK_TREE_VIEW_COLUMN_GROW_ONLY, + GTK_TREE_VIEW_COLUMN_AUTOSIZE, + GTK_TREE_VIEW_COLUMN_FIXED +} GtkTreeViewColumnSizing; + +/** + * GtkTreeCellDataFunc: + * @tree_column: A #GtkTreeColumn + * @cell: The #GtkCellRenderer that is being rendered by @tree_column + * @tree_model: The #GtkTreeModel being rendered + * @iter: A #GtkTreeIter of the current row rendered + * @data: user data + * + * A function to set the properties of a cell instead of just using the + * straight mapping between the cell and the model. This is useful for + * customizing the cell renderer. For example, a function might get an + * integer from the @tree_model, and render it to the "text" attribute of + * "cell" by converting it to its written equivilent. This is set by + * calling gtk_tree_view_column_set_cell_data_func() + */ +typedef void (* GtkTreeCellDataFunc) (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gpointer data); + + +struct _GtkTreeViewColumn +{ + GInitiallyUnowned parent_instance; + + GtkTreeViewColumnPrivate *priv; +}; + +struct _GtkTreeViewColumnClass +{ + GInitiallyUnownedClass parent_class; + + void (*clicked) (GtkTreeViewColumn *tree_column); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_tree_view_column_get_type (void) G_GNUC_CONST; +GtkTreeViewColumn *gtk_tree_view_column_new (void); +GtkTreeViewColumn *gtk_tree_view_column_new_with_area (GtkCellArea *area); +GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, + GtkCellRenderer *cell, + ...) G_GNUC_NULL_TERMINATED; +void gtk_tree_view_column_pack_start (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + gboolean expand); +void gtk_tree_view_column_pack_end (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell, + gboolean expand); +void gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_add_attribute (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + const gchar *attribute, + gint column); +void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + ...) G_GNUC_NULL_TERMINATED; +void gtk_tree_view_column_set_cell_data_func (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + GtkTreeCellDataFunc func, + gpointer func_data, + GDestroyNotify destroy); +void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer); +void gtk_tree_view_column_set_spacing (GtkTreeViewColumn *tree_column, + gint spacing); +gint gtk_tree_view_column_get_spacing (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_visible (GtkTreeViewColumn *tree_column, + gboolean visible); +gboolean gtk_tree_view_column_get_visible (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_resizable (GtkTreeViewColumn *tree_column, + gboolean resizable); +gboolean gtk_tree_view_column_get_resizable (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sizing (GtkTreeViewColumn *tree_column, + GtkTreeViewColumnSizing type); +GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing (GtkTreeViewColumn *tree_column); +GDK_AVAILABLE_IN_3_2 +gint gtk_tree_view_column_get_x_offset (GtkTreeViewColumn *tree_column); +gint gtk_tree_view_column_get_width (GtkTreeViewColumn *tree_column); +gint gtk_tree_view_column_get_fixed_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_fixed_width (GtkTreeViewColumn *tree_column, + gint fixed_width); +void gtk_tree_view_column_set_min_width (GtkTreeViewColumn *tree_column, + gint min_width); +gint gtk_tree_view_column_get_min_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_max_width (GtkTreeViewColumn *tree_column, + gint max_width); +gint gtk_tree_view_column_get_max_width (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_clicked (GtkTreeViewColumn *tree_column); + + + +/* Options for manipulating the column headers + */ +void gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column, + const gchar *title); +const gchar * gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_expand (GtkTreeViewColumn *tree_column, + gboolean expand); +gboolean gtk_tree_view_column_get_expand (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_clickable (GtkTreeViewColumn *tree_column, + gboolean clickable); +gboolean gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_widget (GtkTreeViewColumn *tree_column, + GtkWidget *widget); +GtkWidget *gtk_tree_view_column_get_widget (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_alignment (GtkTreeViewColumn *tree_column, + gfloat xalign); +gfloat gtk_tree_view_column_get_alignment (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_reorderable (GtkTreeViewColumn *tree_column, + gboolean reorderable); +gboolean gtk_tree_view_column_get_reorderable (GtkTreeViewColumn *tree_column); + + + +/* You probably only want to use gtk_tree_view_column_set_sort_column_id. The + * other sorting functions exist primarily to let others do their own custom sorting. + */ +void gtk_tree_view_column_set_sort_column_id (GtkTreeViewColumn *tree_column, + gint sort_column_id); +gint gtk_tree_view_column_get_sort_column_id (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sort_indicator (GtkTreeViewColumn *tree_column, + gboolean setting); +gboolean gtk_tree_view_column_get_sort_indicator (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_set_sort_order (GtkTreeViewColumn *tree_column, + GtkSortType order); +GtkSortType gtk_tree_view_column_get_sort_order (GtkTreeViewColumn *tree_column); + + +/* These functions are meant primarily for interaction between the GtkTreeView and the column. + */ +void gtk_tree_view_column_cell_set_cell_data (GtkTreeViewColumn *tree_column, + GtkTreeModel *tree_model, + GtkTreeIter *iter, + gboolean is_expander, + gboolean is_expanded); +void gtk_tree_view_column_cell_get_size (GtkTreeViewColumn *tree_column, + const GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); +gboolean gtk_tree_view_column_cell_is_visible (GtkTreeViewColumn *tree_column); +void gtk_tree_view_column_focus_cell (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell); +gboolean gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column, + GtkCellRenderer *cell_renderer, + gint *x_offset, + gint *width); +void gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column); +GtkWidget *gtk_tree_view_column_get_tree_view (GtkTreeViewColumn *tree_column); +GtkWidget *gtk_tree_view_column_get_button (GtkTreeViewColumn *tree_column); + + +G_END_DECLS + + +#endif /* __GTK_TREE_VIEW_COLUMN_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktypebuiltins.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktypebuiltins.h new file mode 100644 index 0000000..1db8ee0 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktypebuiltins.h @@ -0,0 +1,301 @@ + +/* Generated data (by glib-mkenums) */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TYPE_BUILTINS_H__ +#define __GTK_TYPE_BUILTINS_H__ + +#include + +G_BEGIN_DECLS + +/* enumerations from "gtkaboutdialog.h" */ +GType gtk_license_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_LICENSE (gtk_license_get_type ()) + +/* enumerations from "gtkaccelgroup.h" */ +GType gtk_accel_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ACCEL_FLAGS (gtk_accel_flags_get_type ()) + +/* enumerations from "gtkapplication.h" */ +GType gtk_application_inhibit_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_APPLICATION_INHIBIT_FLAGS (gtk_application_inhibit_flags_get_type ()) + +/* enumerations from "gtkassistant.h" */ +GType gtk_assistant_page_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ASSISTANT_PAGE_TYPE (gtk_assistant_page_type_get_type ()) + +/* enumerations from "gtkbuilder.h" */ +GType gtk_builder_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUILDER_ERROR (gtk_builder_error_get_type ()) + +/* enumerations from "gtkcalendar.h" */ +GType gtk_calendar_display_options_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CALENDAR_DISPLAY_OPTIONS (gtk_calendar_display_options_get_type ()) + +/* enumerations from "gtkcellrenderer.h" */ +GType gtk_cell_renderer_state_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_STATE (gtk_cell_renderer_state_get_type ()) +GType gtk_cell_renderer_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_MODE (gtk_cell_renderer_mode_get_type ()) + +/* enumerations from "gtkcellrendereraccel.h" */ +GType gtk_cell_renderer_accel_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CELL_RENDERER_ACCEL_MODE (gtk_cell_renderer_accel_mode_get_type ()) + +/* enumerations from "gtkcssprovider.h" */ +GType gtk_css_provider_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CSS_PROVIDER_ERROR (gtk_css_provider_error_get_type ()) + +/* enumerations from "gtkcsssection.h" */ +GType gtk_css_section_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CSS_SECTION_TYPE (gtk_css_section_type_get_type ()) + +/* enumerations from "gtkdebug.h" */ +GType gtk_debug_flag_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DEBUG_FLAG (gtk_debug_flag_get_type ()) + +/* enumerations from "gtkdialog.h" */ +GType gtk_dialog_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DIALOG_FLAGS (gtk_dialog_flags_get_type ()) +GType gtk_response_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RESPONSE_TYPE (gtk_response_type_get_type ()) + +/* enumerations from "gtkdnd.h" */ +GType gtk_dest_defaults_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DEST_DEFAULTS (gtk_dest_defaults_get_type ()) +GType gtk_target_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TARGET_FLAGS (gtk_target_flags_get_type ()) + +/* enumerations from "gtkentry.h" */ +GType gtk_entry_icon_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ENTRY_ICON_POSITION (gtk_entry_icon_position_get_type ()) + +/* enumerations from "gtkenums.h" */ +GType gtk_align_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ALIGN (gtk_align_get_type ()) +GType gtk_arrow_placement_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ARROW_PLACEMENT (gtk_arrow_placement_get_type ()) +GType gtk_arrow_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ARROW_TYPE (gtk_arrow_type_get_type ()) +GType gtk_attach_options_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ATTACH_OPTIONS (gtk_attach_options_get_type ()) +GType gtk_button_box_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUTTON_BOX_STYLE (gtk_button_box_style_get_type ()) +GType gtk_delete_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DELETE_TYPE (gtk_delete_type_get_type ()) +GType gtk_direction_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DIRECTION_TYPE (gtk_direction_type_get_type ()) +GType gtk_expander_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_EXPANDER_STYLE (gtk_expander_style_get_type ()) +GType gtk_icon_size_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_SIZE (gtk_icon_size_get_type ()) +GType gtk_sensitivity_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SENSITIVITY_TYPE (gtk_sensitivity_type_get_type ()) +GType gtk_text_direction_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_DIRECTION (gtk_text_direction_get_type ()) +GType gtk_justification_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_JUSTIFICATION (gtk_justification_get_type ()) +GType gtk_menu_direction_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MENU_DIRECTION_TYPE (gtk_menu_direction_type_get_type ()) +GType gtk_message_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MESSAGE_TYPE (gtk_message_type_get_type ()) +GType gtk_movement_step_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_MOVEMENT_STEP (gtk_movement_step_get_type ()) +GType gtk_scroll_step_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SCROLL_STEP (gtk_scroll_step_get_type ()) +GType gtk_orientation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ORIENTATION (gtk_orientation_get_type ()) +GType gtk_corner_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_CORNER_TYPE (gtk_corner_type_get_type ()) +GType gtk_pack_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PACK_TYPE (gtk_pack_type_get_type ()) +GType gtk_path_priority_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PATH_PRIORITY_TYPE (gtk_path_priority_type_get_type ()) +GType gtk_path_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PATH_TYPE (gtk_path_type_get_type ()) +GType gtk_policy_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_POLICY_TYPE (gtk_policy_type_get_type ()) +GType gtk_position_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_POSITION_TYPE (gtk_position_type_get_type ()) +GType gtk_relief_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RELIEF_STYLE (gtk_relief_style_get_type ()) +GType gtk_resize_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RESIZE_MODE (gtk_resize_mode_get_type ()) +GType gtk_scroll_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SCROLL_TYPE (gtk_scroll_type_get_type ()) +GType gtk_selection_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SELECTION_MODE (gtk_selection_mode_get_type ()) +GType gtk_shadow_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SHADOW_TYPE (gtk_shadow_type_get_type ()) +GType gtk_state_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_STATE_TYPE (gtk_state_type_get_type ()) +GType gtk_toolbar_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOLBAR_STYLE (gtk_toolbar_style_get_type ()) +GType gtk_window_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WINDOW_POSITION (gtk_window_position_get_type ()) +GType gtk_window_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WINDOW_TYPE (gtk_window_type_get_type ()) +GType gtk_wrap_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WRAP_MODE (gtk_wrap_mode_get_type ()) +GType gtk_sort_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SORT_TYPE (gtk_sort_type_get_type ()) +GType gtk_im_preedit_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IM_PREEDIT_STYLE (gtk_im_preedit_style_get_type ()) +GType gtk_im_status_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IM_STATUS_STYLE (gtk_im_status_style_get_type ()) +GType gtk_pack_direction_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PACK_DIRECTION (gtk_pack_direction_get_type ()) +GType gtk_print_pages_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_PAGES (gtk_print_pages_get_type ()) +GType gtk_page_set_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PAGE_SET (gtk_page_set_get_type ()) +GType gtk_number_up_layout_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_NUMBER_UP_LAYOUT (gtk_number_up_layout_get_type ()) +GType gtk_page_orientation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PAGE_ORIENTATION (gtk_page_orientation_get_type ()) +GType gtk_print_quality_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_QUALITY (gtk_print_quality_get_type ()) +GType gtk_print_duplex_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_DUPLEX (gtk_print_duplex_get_type ()) +GType gtk_unit_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_UNIT (gtk_unit_get_type ()) +GType gtk_tree_view_grid_lines_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_GRID_LINES (gtk_tree_view_grid_lines_get_type ()) +GType gtk_drag_result_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_DRAG_RESULT (gtk_drag_result_get_type ()) +GType gtk_size_request_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SIZE_REQUEST_MODE (gtk_size_request_mode_get_type ()) +GType gtk_scrollable_policy_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SCROLLABLE_POLICY (gtk_scrollable_policy_get_type ()) +GType gtk_state_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_STATE_FLAGS (gtk_state_flags_get_type ()) +GType gtk_region_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_REGION_FLAGS (gtk_region_flags_get_type ()) +GType gtk_junction_sides_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_JUNCTION_SIDES (gtk_junction_sides_get_type ()) +GType gtk_border_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BORDER_STYLE (gtk_border_style_get_type ()) + +/* enumerations from "gtkfilechooser.h" */ +GType gtk_file_chooser_action_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_ACTION (gtk_file_chooser_action_get_type ()) +GType gtk_file_chooser_confirmation_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_CONFIRMATION (gtk_file_chooser_confirmation_get_type ()) +GType gtk_file_chooser_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_CHOOSER_ERROR (gtk_file_chooser_error_get_type ()) + +/* enumerations from "gtkfilefilter.h" */ +GType gtk_file_filter_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_FILE_FILTER_FLAGS (gtk_file_filter_flags_get_type ()) + +/* enumerations from "gtkicontheme.h" */ +GType gtk_icon_lookup_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_LOOKUP_FLAGS (gtk_icon_lookup_flags_get_type ()) +GType gtk_icon_theme_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_THEME_ERROR (gtk_icon_theme_error_get_type ()) + +/* enumerations from "gtkiconview.h" */ +GType gtk_icon_view_drop_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_ICON_VIEW_DROP_POSITION (gtk_icon_view_drop_position_get_type ()) + +/* enumerations from "gtkimage.h" */ +GType gtk_image_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_IMAGE_TYPE (gtk_image_type_get_type ()) + +/* enumerations from "gtkmessagedialog.h" */ +GType gtk_buttons_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_BUTTONS_TYPE (gtk_buttons_type_get_type ()) + +/* enumerations from "gtknotebook.h" */ +GType gtk_notebook_tab_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_NOTEBOOK_TAB (gtk_notebook_tab_get_type ()) + +/* enumerations from "gtkprintoperation.h" */ +GType gtk_print_status_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_STATUS (gtk_print_status_get_type ()) +GType gtk_print_operation_result_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_OPERATION_RESULT (gtk_print_operation_result_get_type ()) +GType gtk_print_operation_action_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_OPERATION_ACTION (gtk_print_operation_action_get_type ()) +GType gtk_print_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_PRINT_ERROR (gtk_print_error_get_type ()) + +/* enumerations from "gtkrecentchooser.h" */ +GType gtk_recent_sort_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_SORT_TYPE (gtk_recent_sort_type_get_type ()) +GType gtk_recent_chooser_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_CHOOSER_ERROR (gtk_recent_chooser_error_get_type ()) + +/* enumerations from "gtkrecentfilter.h" */ +GType gtk_recent_filter_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_FILTER_FLAGS (gtk_recent_filter_flags_get_type ()) + +/* enumerations from "gtkrecentmanager.h" */ +GType gtk_recent_manager_error_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RECENT_MANAGER_ERROR (gtk_recent_manager_error_get_type ()) + +/* enumerations from "gtksizegroup.h" */ +GType gtk_size_group_mode_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SIZE_GROUP_MODE (gtk_size_group_mode_get_type ()) + +/* enumerations from "gtkspinbutton.h" */ +GType gtk_spin_button_update_policy_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY (gtk_spin_button_update_policy_get_type ()) +GType gtk_spin_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_SPIN_TYPE (gtk_spin_type_get_type ()) + +/* enumerations from "gtktextbuffer.h" */ +GType gtk_text_buffer_target_info_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_BUFFER_TARGET_INFO (gtk_text_buffer_target_info_get_type ()) + +/* enumerations from "gtktextiter.h" */ +GType gtk_text_search_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_SEARCH_FLAGS (gtk_text_search_flags_get_type ()) + +/* enumerations from "gtktextview.h" */ +GType gtk_text_window_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TEXT_WINDOW_TYPE (gtk_text_window_type_get_type ()) + +/* enumerations from "gtktoolbar.h" */ +GType gtk_toolbar_space_style_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOLBAR_SPACE_STYLE (gtk_toolbar_space_style_get_type ()) + +/* enumerations from "gtktoolpalette.h" */ +GType gtk_tool_palette_drag_targets_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TOOL_PALETTE_DRAG_TARGETS (gtk_tool_palette_drag_targets_get_type ()) + +/* enumerations from "gtktreemodel.h" */ +GType gtk_tree_model_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_MODEL_FLAGS (gtk_tree_model_flags_get_type ()) + +/* enumerations from "gtktreeview.h" */ +GType gtk_tree_view_drop_position_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_DROP_POSITION (gtk_tree_view_drop_position_get_type ()) + +/* enumerations from "gtktreeviewcolumn.h" */ +GType gtk_tree_view_column_sizing_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_TREE_VIEW_COLUMN_SIZING (gtk_tree_view_column_sizing_get_type ()) + +/* enumerations from "gtkuimanager.h" */ +GType gtk_ui_manager_item_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_UI_MANAGER_ITEM_TYPE (gtk_ui_manager_item_type_get_type ()) + +/* enumerations from "gtkwidget.h" */ +GType gtk_widget_help_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_WIDGET_HELP_TYPE (gtk_widget_help_type_get_type ()) + +/* enumerations from "deprecated/gtkrc.h" */ +GType gtk_rc_flags_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RC_FLAGS (gtk_rc_flags_get_type ()) +GType gtk_rc_token_type_get_type (void) G_GNUC_CONST; +#define GTK_TYPE_RC_TOKEN_TYPE (gtk_rc_token_type_get_type ()) +G_END_DECLS + +#endif /* __GTK_TYPE_BUILTINS_H__ */ + +/* Generated data ends here */ + diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtktypes.h b/gtk+-mingw/include/gtk-3.0/gtk/gtktypes.h new file mode 100644 index 0000000..b3eade3 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtktypes.h @@ -0,0 +1,56 @@ +/* GDK - The GIMP Drawing Kit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_TYPES_H__ +#define __GTK_TYPES_H__ + +G_BEGIN_DECLS + +typedef struct _GtkAdjustment GtkAdjustment; +typedef struct _GtkClipboard GtkClipboard; +typedef struct _GtkIconSet GtkIconSet; +typedef struct _GtkIconSource GtkIconSource; +typedef struct _GtkRcStyle GtkRcStyle; +typedef struct _GtkRequisition GtkRequisition; +typedef struct _GtkSelectionData GtkSelectionData; +typedef struct _GtkSettings GtkSettings; +typedef struct _GtkStyle GtkStyle; +typedef struct _GtkStyleContext GtkStyleContext; +typedef struct _GtkTooltip GtkTooltip; +typedef struct _GtkWidget GtkWidget; +typedef struct _GtkWidgetPath GtkWidgetPath; +typedef struct _GtkWindow GtkWindow; + + +typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, + const GString *rc_string, + GValue *property_value); + +G_END_DECLS + +#endif /* __GTK_TYPES_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkuimanager.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkuimanager.h new file mode 100644 index 0000000..181cfa5 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkuimanager.h @@ -0,0 +1,171 @@ +/* + * GTK - The GIMP Toolkit + * Copyright (C) 1998, 1999 Red Hat, Inc. + * All rights reserved. + * + * This Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library. If not, see . + */ + +/* + * Author: James Henstridge + * + * Modified by the GTK+ Team and others 2003. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_UI_MANAGER_H__ +#define __GTK_UI_MANAGER_H__ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_UI_MANAGER (gtk_ui_manager_get_type ()) +#define GTK_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_UI_MANAGER, GtkUIManager)) +#define GTK_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) +#define GTK_IS_UI_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_UI_MANAGER)) +#define GTK_IS_UI_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_UI_MANAGER)) +#define GTK_UI_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_UI_MANAGER, GtkUIManagerClass)) + +typedef struct _GtkUIManager GtkUIManager; +typedef struct _GtkUIManagerClass GtkUIManagerClass; +typedef struct _GtkUIManagerPrivate GtkUIManagerPrivate; + + +struct _GtkUIManager { + GObject parent; + + /*< private >*/ + GtkUIManagerPrivate *private_data; +}; + +struct _GtkUIManagerClass { + GObjectClass parent_class; + + /* Signals */ + void (* add_widget) (GtkUIManager *manager, + GtkWidget *widget); + void (* actions_changed) (GtkUIManager *manager); + void (* connect_proxy) (GtkUIManager *manager, + GtkAction *action, + GtkWidget *proxy); + void (* disconnect_proxy) (GtkUIManager *manager, + GtkAction *action, + GtkWidget *proxy); + void (* pre_activate) (GtkUIManager *manager, + GtkAction *action); + void (* post_activate) (GtkUIManager *manager, + GtkAction *action); + + /* Virtual functions */ + GtkWidget * (* get_widget) (GtkUIManager *manager, + const gchar *path); + GtkAction * (* get_action) (GtkUIManager *manager, + const gchar *path); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +/** + * GtkUIManagerItemType: + * @GTK_UI_MANAGER_AUTO: Pick the type of the UI element according to context. + * @GTK_UI_MANAGER_MENUBAR: Create a menubar. + * @GTK_UI_MANAGER_MENU: Create a menu. + * @GTK_UI_MANAGER_TOOLBAR: Create a toolbar. + * @GTK_UI_MANAGER_PLACEHOLDER: Insert a placeholder. + * @GTK_UI_MANAGER_POPUP: Create a popup menu. + * @GTK_UI_MANAGER_MENUITEM: Create a menuitem. + * @GTK_UI_MANAGER_TOOLITEM: Create a toolitem. + * @GTK_UI_MANAGER_SEPARATOR: Create a separator. + * @GTK_UI_MANAGER_ACCELERATOR: Install an accelerator. + * @GTK_UI_MANAGER_POPUP_WITH_ACCELS: Same as %GTK_UI_MANAGER_POPUP, but the + * actions' accelerators are shown. + * + * These enumeration values are used by gtk_ui_manager_add_ui() to determine + * what UI element to create. + */ +typedef enum { + GTK_UI_MANAGER_AUTO = 0, + GTK_UI_MANAGER_MENUBAR = 1 << 0, + GTK_UI_MANAGER_MENU = 1 << 1, + GTK_UI_MANAGER_TOOLBAR = 1 << 2, + GTK_UI_MANAGER_PLACEHOLDER = 1 << 3, + GTK_UI_MANAGER_POPUP = 1 << 4, + GTK_UI_MANAGER_MENUITEM = 1 << 5, + GTK_UI_MANAGER_TOOLITEM = 1 << 6, + GTK_UI_MANAGER_SEPARATOR = 1 << 7, + GTK_UI_MANAGER_ACCELERATOR = 1 << 8, + GTK_UI_MANAGER_POPUP_WITH_ACCELS = 1 << 9 +} GtkUIManagerItemType; + +GType gtk_ui_manager_get_type (void) G_GNUC_CONST; +GtkUIManager *gtk_ui_manager_new (void); +GDK_DEPRECATED_IN_3_4 +void gtk_ui_manager_set_add_tearoffs (GtkUIManager *manager, + gboolean add_tearoffs); +GDK_DEPRECATED_IN_3_4 +gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *manager); + +void gtk_ui_manager_insert_action_group (GtkUIManager *manager, + GtkActionGroup *action_group, + gint pos); +void gtk_ui_manager_remove_action_group (GtkUIManager *manager, + GtkActionGroup *action_group); +GList *gtk_ui_manager_get_action_groups (GtkUIManager *manager); +GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *manager); +GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *manager, + const gchar *path); +GSList *gtk_ui_manager_get_toplevels (GtkUIManager *manager, + GtkUIManagerItemType types); +GtkAction *gtk_ui_manager_get_action (GtkUIManager *manager, + const gchar *path); +guint gtk_ui_manager_add_ui_from_string (GtkUIManager *manager, + const gchar *buffer, + gssize length, + GError **error); +guint gtk_ui_manager_add_ui_from_file (GtkUIManager *manager, + const gchar *filename, + GError **error); +guint gtk_ui_manager_add_ui_from_resource(GtkUIManager *manager, + const gchar *resource_path, + GError **error); +void gtk_ui_manager_add_ui (GtkUIManager *manager, + guint merge_id, + const gchar *path, + const gchar *name, + const gchar *action, + GtkUIManagerItemType type, + gboolean top); +void gtk_ui_manager_remove_ui (GtkUIManager *manager, + guint merge_id); +gchar *gtk_ui_manager_get_ui (GtkUIManager *manager); +void gtk_ui_manager_ensure_update (GtkUIManager *manager); +guint gtk_ui_manager_new_merge_id (GtkUIManager *manager); + +G_END_DECLS + +#endif /* __GTK_UI_MANAGER_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkversion.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkversion.h new file mode 100644 index 0000000..3570c7f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkversion.h @@ -0,0 +1,102 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +/** + * SECTION:gtkfeatures + * @Short_description: Variables and functions to check the GTK+ version + * @Title: Version Information + * + * GTK+ provides version information, primarily useful in configure checks + * for builds that have a configure script. Applications will not typically + * use the features described here. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VERSION_H__ +#define __GTK_VERSION_H__ + +/** + * GTK_MAJOR_VERSION: + * + * Like gtk_get_major_version(), but from the headers used at + * application compile time, rather than from the library linked + * against at application run time. + */ +#define GTK_MAJOR_VERSION (3) + +/** + * GTK_MINOR_VERSION: + * + * Like gtk_get_minor_version(), but from the headers used at + * application compile time, rather than from the library linked + * against at application run time. + */ +#define GTK_MINOR_VERSION (5) + +/** + * GTK_MICRO_VERSION: + * + * Like gtk_get_micro_version(), but from the headers used at + * application compile time, rather than from the library linked + * against at application run time. + */ +#define GTK_MICRO_VERSION (4) + +/** + * GTK_BINARY_AGE: + * + * Like gtk_get_binary_age(), but from the headers used at + * application compile time, rather than from the library linked + * against at application run time. + */ +#define GTK_BINARY_AGE (504) + +/** + * GTK_INTERFACE_AGE: + * + * Like gtk_get_interface_age(), but from the headers used at + * application compile time, rather than from the library linked + * against at application run time. + */ +#define GTK_INTERFACE_AGE (0) + +/** + * GTK_CHECK_VERSION: + * @major: major version (e.g. 1 for version 1.2.5) + * @minor: minor version (e.g. 2 for version 1.2.5) + * @micro: micro version (e.g. 5 for version 1.2.5) + * + * Returns %TRUE if the version of the GTK+ header files + * is the same as or newer than the passed-in version. + */ +#define GTK_CHECK_VERSION(major,minor,micro) \ + (GTK_MAJOR_VERSION > (major) || \ + (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION > (minor)) || \ + (GTK_MAJOR_VERSION == (major) && GTK_MINOR_VERSION == (minor) && \ + GTK_MICRO_VERSION >= (micro))) + +#endif /* __GTK_VERSION_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkviewport.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkviewport.h new file mode 100644 index 0000000..68aaa85 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkviewport.h @@ -0,0 +1,96 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VIEWPORT_H__ +#define __GTK_VIEWPORT_H__ + + +#include + + +G_BEGIN_DECLS + + +#define GTK_TYPE_VIEWPORT (gtk_viewport_get_type ()) +#define GTK_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VIEWPORT, GtkViewport)) +#define GTK_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VIEWPORT, GtkViewportClass)) +#define GTK_IS_VIEWPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VIEWPORT)) +#define GTK_IS_VIEWPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VIEWPORT)) +#define GTK_VIEWPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VIEWPORT, GtkViewportClass)) + + +typedef struct _GtkViewport GtkViewport; +typedef struct _GtkViewportPrivate GtkViewportPrivate; +typedef struct _GtkViewportClass GtkViewportClass; + +struct _GtkViewport +{ + GtkBin bin; + + /*< private >*/ + GtkViewportPrivate *priv; +}; + +struct _GtkViewportClass +{ + GtkBinClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + + +GType gtk_viewport_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment, + GtkAdjustment *vadjustment); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) +GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) +GtkAdjustment* gtk_viewport_get_vadjustment (GtkViewport *viewport); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment) +void gtk_viewport_set_hadjustment (GtkViewport *viewport, + GtkAdjustment *adjustment); +GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment) +void gtk_viewport_set_vadjustment (GtkViewport *viewport, + GtkAdjustment *adjustment); + +void gtk_viewport_set_shadow_type (GtkViewport *viewport, + GtkShadowType type); +GtkShadowType gtk_viewport_get_shadow_type (GtkViewport *viewport); +GdkWindow* gtk_viewport_get_bin_window (GtkViewport *viewport); +GdkWindow* gtk_viewport_get_view_window (GtkViewport *viewport); + + +G_END_DECLS + + +#endif /* __GTK_VIEWPORT_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkvolumebutton.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkvolumebutton.h new file mode 100644 index 0000000..6c4cc21 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkvolumebutton.h @@ -0,0 +1,70 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2007 Red Hat, Inc. + * + * Authors: + * - Bastien Nocera + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 2007. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_VOLUME_BUTTON_H__ +#define __GTK_VOLUME_BUTTON_H__ + +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_VOLUME_BUTTON (gtk_volume_button_get_type ()) +#define GTK_VOLUME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VOLUME_BUTTON, GtkVolumeButton)) +#define GTK_VOLUME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VOLUME_BUTTON, GtkVolumeButtonClass)) +#define GTK_IS_VOLUME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VOLUME_BUTTON)) +#define GTK_IS_VOLUME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VOLUME_BUTTON)) +#define GTK_VOLUME_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VOLUME_BUTTON, GtkVolumeButtonClass)) + +typedef struct _GtkVolumeButton GtkVolumeButton; +typedef struct _GtkVolumeButtonClass GtkVolumeButtonClass; + +struct _GtkVolumeButton +{ + GtkScaleButton parent; +}; + +struct _GtkVolumeButtonClass +{ + GtkScaleButtonClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_volume_button_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_volume_button_new (void); + +G_END_DECLS + +#endif /* __GTK_VOLUME_BUTTON_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkwidget.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkwidget.h new file mode 100644 index 0000000..5a4ac4f --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkwidget.h @@ -0,0 +1,892 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_WIDGET_H__ +#define __GTK_WIDGET_H__ + +#include +#include +#include +#include +#include + +G_BEGIN_DECLS + +/* Kinds of widget-specific help */ +typedef enum +{ + GTK_WIDGET_HELP_TOOLTIP, + GTK_WIDGET_HELP_WHATS_THIS +} GtkWidgetHelpType; + +/* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer. + * Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET. + */ +#define GTK_TYPE_WIDGET (gtk_widget_get_type ()) +#define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget)) +#define GTK_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass)) +#define GTK_IS_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_TYPE ((widget), GTK_TYPE_WIDGET)) +#define GTK_IS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET)) +#define GTK_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WIDGET, GtkWidgetClass)) + +#define GTK_TYPE_REQUISITION (gtk_requisition_get_type ()) + +typedef struct _GtkWidgetPrivate GtkWidgetPrivate; +typedef struct _GtkWidgetClass GtkWidgetClass; +typedef struct _GtkWidgetClassPrivate GtkWidgetClassPrivate; +typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo; + +/** + * GtkAllocation: + * @x: the X position of the widget's area relative to its parents allocation. + * @y: the Y position of the widget's area relative to its parents allocation. + * @width: the width of the widget's allocated area. + * @height: the height of the widget's allocated area. + * + * A GtkAllocation of a widget represents region + * which has been allocated to the widget by its parent. It is a subregion + * of its parents allocation. See for + * more information. + */ +typedef GdkRectangle GtkAllocation; + +/** + * GtkCallback: + * @widget: the widget to operate on + * @data: user-supplied data + * + * The type of the callback functions used for e.g. iterating over + * the children of a container, see gtk_container_foreach(). + */ +typedef void (*GtkCallback) (GtkWidget *widget, + gpointer data); + +/** + * GtkRequisition: + * @width: the widget's desired width + * @height: the widget's desired height + * + * A GtkRequisition represents the desired size of a widget. See + * for more information. + */ +struct _GtkRequisition +{ + gint width; + gint height; +}; + +/* The widget is the base of the tree for displayable objects. + * (A displayable object is one which takes up some amount + * of screen real estate). It provides a common base and interface + * which actual widgets must adhere to. + */ +struct _GtkWidget +{ + GInitiallyUnowned parent_instance; + + GtkWidgetPrivate *priv; +}; + +/** + * GtkWidgetClass: + * @parent_class: The object class structure needs to be the first + * element in the widget class structure in order for the class mechanism + * to work correctly. This allows a GtkWidgetClass pointer to be cast to + * a GObjectClass pointer. + * @activate_signal: The signal to emit when a widget of this class is + * activated, gtk_widget_activate() handles the emission. + * Implementation of this signal is optional. + * @get_request_mode: This allows a widget to tell its parent container whether + * it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or + * %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode. + * %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have + * #GtkWidgetClass.get_preferred_width() called and then + * #GtkWidgetClass.get_preferred_height_for_width(). + * %GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or + * width-for-height geometry management for a said widget and is the + * default return. + * It's important to note (as described below) that any widget + * which trades height-for-width or width-for-height must respond properly + * to both of the virtual methods #GtkWidgetClass.get_preferred_height_for_width() + * and #GtkWidgetClass.get_preferred_width_for_height() since it might be + * queried in either #GtkSizeRequestMode by its parent container. + * @get_preferred_height: This is called by containers to obtain the minimum + * and natural height of a widget. A widget that does not actually trade + * any height for width or width for height only has to implement these + * two virtual methods (#GtkWidgetClass.get_preferred_width() and + * #GtkWidgetClass.get_preferred_height()). + * @get_preferred_width_for_height: This is analogous to + * #GtkWidgetClass.get_preferred_height_for_width() except that it + * operates in the oposite orientation. It's rare that a widget actually + * does %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT requests but this can happen + * when, for example, a widget or container gets additional columns to + * compensate for a smaller allocated height. + * @get_preferred_width: This is called by containers to obtain the minimum + * and natural width of a widget. A widget will never be allocated a width + * less than its minimum and will only ever be allocated a width greater + * than the natural width once all of the said widget's siblings have + * received their natural widths. + * Furthermore, a widget will only ever be allocated a width greater than + * its natural width if it was configured to receive extra expand space + * from its parent container. + * @get_preferred_height_for_width: This is similar to + * #GtkWidgetClass.get_preferred_height() except that it is passed a + * contextual width to request height for. By implementing this virtual + * method it is possible for a #GtkLabel to tell its parent how much height + * would be required if the label were to be allocated a said width. + * @adjust_size_request: Convert an initial size request from a widget's + * #GtkSizeRequest virtual method implementations into a size request to + * be used by parent containers in laying out the widget. + * adjust_size_request adjusts from a child widget's + * original request to what a parent container should + * use for layout. The @for_size argument will be -1 if the request should + * not be for a particular size in the opposing orientation, i.e. if the + * request is not height-for-width or width-for-height. If @for_size is + * greater than -1, it is the proposed allocation in the opposing + * orientation that we need the request for. Implementations of + * adjust_size_request should chain up to the default implementation, + * which applies #GtkWidget's margin properties and imposes any values + * from gtk_widget_set_size_request(). Chaining up should be last, + * after your subclass adjusts the request, so + * #GtkWidget can apply constraints and add the margin properly. + * @adjust_size_allocation: Convert an initial size allocation assigned + * by a #GtkContainer using gtk_widget_size_allocate(), into an actual + * size allocation to be used by the widget. adjust_size_allocation + * adjusts to a child widget's actual allocation + * from what a parent container computed for the + * child. The adjusted allocation must be entirely within the original + * allocation. In any custom implementation, chain up to the default + * #GtkWidget implementation of this method, which applies the margin + * and alignment properties of #GtkWidget. Chain up + * before performing your own adjustments so your + * own adjustments remove more allocation after the #GtkWidget base + * class has already removed margin and alignment. The natural size + * passed in should be adjusted in the same way as the allocated size, + * which allows adjustments to perform alignments or other changes + * based on natural size. + */ +struct _GtkWidgetClass +{ + GInitiallyUnownedClass parent_class; + + /*< public >*/ + + guint activate_signal; + + /* seldomly overidden */ + void (*dispatch_child_properties_changed) (GtkWidget *widget, + guint n_pspecs, + GParamSpec **pspecs); + + /* basics */ + void (* destroy) (GtkWidget *widget); + void (* show) (GtkWidget *widget); + void (* show_all) (GtkWidget *widget); + void (* hide) (GtkWidget *widget); + void (* map) (GtkWidget *widget); + void (* unmap) (GtkWidget *widget); + void (* realize) (GtkWidget *widget); + void (* unrealize) (GtkWidget *widget); + void (* size_allocate) (GtkWidget *widget, + GtkAllocation *allocation); + void (* state_changed) (GtkWidget *widget, + GtkStateType previous_state); + void (* state_flags_changed) (GtkWidget *widget, + GtkStateFlags previous_state_flags); + void (* parent_set) (GtkWidget *widget, + GtkWidget *previous_parent); + void (* hierarchy_changed) (GtkWidget *widget, + GtkWidget *previous_toplevel); + void (* style_set) (GtkWidget *widget, + GtkStyle *previous_style); + void (* direction_changed) (GtkWidget *widget, + GtkTextDirection previous_direction); + void (* grab_notify) (GtkWidget *widget, + gboolean was_grabbed); + void (* child_notify) (GtkWidget *widget, + GParamSpec *pspec); + gboolean (* draw) (GtkWidget *widget, + cairo_t *cr); + + /* size requests */ + GtkSizeRequestMode (* get_request_mode) (GtkWidget *widget); + + void (* get_preferred_height) (GtkWidget *widget, + gint *minimum_height, + gint *natural_height); + void (* get_preferred_width_for_height) (GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); + void (* get_preferred_width) (GtkWidget *widget, + gint *minimum_width, + gint *natural_width); + void (* get_preferred_height_for_width) (GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); + + /* Mnemonics */ + gboolean (* mnemonic_activate) (GtkWidget *widget, + gboolean group_cycling); + + /* explicit focus */ + void (* grab_focus) (GtkWidget *widget); + gboolean (* focus) (GtkWidget *widget, + GtkDirectionType direction); + + /* keyboard navigation */ + void (* move_focus) (GtkWidget *widget, + GtkDirectionType direction); + gboolean (* keynav_failed) (GtkWidget *widget, + GtkDirectionType direction); + + /* events */ + gboolean (* event) (GtkWidget *widget, + GdkEvent *event); + gboolean (* button_press_event) (GtkWidget *widget, + GdkEventButton *event); + gboolean (* button_release_event) (GtkWidget *widget, + GdkEventButton *event); + gboolean (* scroll_event) (GtkWidget *widget, + GdkEventScroll *event); + gboolean (* motion_notify_event) (GtkWidget *widget, + GdkEventMotion *event); + gboolean (* delete_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* destroy_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* key_press_event) (GtkWidget *widget, + GdkEventKey *event); + gboolean (* key_release_event) (GtkWidget *widget, + GdkEventKey *event); + gboolean (* enter_notify_event) (GtkWidget *widget, + GdkEventCrossing *event); + gboolean (* leave_notify_event) (GtkWidget *widget, + GdkEventCrossing *event); + gboolean (* configure_event) (GtkWidget *widget, + GdkEventConfigure *event); + gboolean (* focus_in_event) (GtkWidget *widget, + GdkEventFocus *event); + gboolean (* focus_out_event) (GtkWidget *widget, + GdkEventFocus *event); + gboolean (* map_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* unmap_event) (GtkWidget *widget, + GdkEventAny *event); + gboolean (* property_notify_event) (GtkWidget *widget, + GdkEventProperty *event); + gboolean (* selection_clear_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* selection_request_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* selection_notify_event) (GtkWidget *widget, + GdkEventSelection *event); + gboolean (* proximity_in_event) (GtkWidget *widget, + GdkEventProximity *event); + gboolean (* proximity_out_event) (GtkWidget *widget, + GdkEventProximity *event); + gboolean (* visibility_notify_event) (GtkWidget *widget, + GdkEventVisibility *event); + gboolean (* window_state_event) (GtkWidget *widget, + GdkEventWindowState *event); + gboolean (* damage_event) (GtkWidget *widget, + GdkEventExpose *event); + gboolean (* grab_broken_event) (GtkWidget *widget, + GdkEventGrabBroken *event); + + /* selection */ + void (* selection_get) (GtkWidget *widget, + GtkSelectionData *selection_data, + guint info, + guint time_); + void (* selection_received) (GtkWidget *widget, + GtkSelectionData *selection_data, + guint time_); + + /* Source side drag signals */ + void (* drag_begin) (GtkWidget *widget, + GdkDragContext *context); + void (* drag_end) (GtkWidget *widget, + GdkDragContext *context); + void (* drag_data_get) (GtkWidget *widget, + GdkDragContext *context, + GtkSelectionData *selection_data, + guint info, + guint time_); + void (* drag_data_delete) (GtkWidget *widget, + GdkDragContext *context); + + /* Target side drag signals */ + void (* drag_leave) (GtkWidget *widget, + GdkDragContext *context, + guint time_); + gboolean (* drag_motion) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time_); + gboolean (* drag_drop) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + guint time_); + void (* drag_data_received) (GtkWidget *widget, + GdkDragContext *context, + gint x, + gint y, + GtkSelectionData *selection_data, + guint info, + guint time_); + gboolean (* drag_failed) (GtkWidget *widget, + GdkDragContext *context, + GtkDragResult result); + + /* Signals used only for keybindings */ + gboolean (* popup_menu) (GtkWidget *widget); + + /* If a widget has multiple tooltips/whatsthis, it should show the + * one for the current focus location, or if that doesn't make + * sense, should cycle through them showing each tip alongside + * whatever piece of the widget it applies to. + */ + gboolean (* show_help) (GtkWidget *widget, + GtkWidgetHelpType help_type); + + /* accessibility support + */ + AtkObject * (* get_accessible) (GtkWidget *widget); + + void (* screen_changed) (GtkWidget *widget, + GdkScreen *previous_screen); + gboolean (* can_activate_accel) (GtkWidget *widget, + guint signal_id); + + + void (* composited_changed) (GtkWidget *widget); + + gboolean (* query_tooltip) (GtkWidget *widget, + gint x, + gint y, + gboolean keyboard_tooltip, + GtkTooltip *tooltip); + + void (* compute_expand) (GtkWidget *widget, + gboolean *hexpand_p, + gboolean *vexpand_p); + + void (* adjust_size_request) (GtkWidget *widget, + GtkOrientation orientation, + gint *minimum_size, + gint *natural_size); + void (* adjust_size_allocation) (GtkWidget *widget, + GtkOrientation orientation, + gint *minimum_size, + gint *natural_size, + gint *allocated_pos, + gint *allocated_size); + + void (* style_updated) (GtkWidget *widget); + + gboolean (* touch_event) (GtkWidget *widget, + GdkEventTouch *event); + + /*< private >*/ + + GtkWidgetClassPrivate *priv; + + /* Padding for future expansion */ + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); + void (*_gtk_reserved5) (void); + void (*_gtk_reserved6) (void); + void (*_gtk_reserved7) (void); +}; + +struct _GtkWidgetAuxInfo +{ + gint width; + gint height; + + guint halign : 4; + guint valign : 4; + + GtkBorder margin; +}; + +GType gtk_widget_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_widget_new (GType type, + const gchar *first_property_name, + ...); +void gtk_widget_destroy (GtkWidget *widget); +void gtk_widget_destroyed (GtkWidget *widget, + GtkWidget **widget_pointer); +void gtk_widget_unparent (GtkWidget *widget); +void gtk_widget_show (GtkWidget *widget); +void gtk_widget_hide (GtkWidget *widget); +void gtk_widget_show_now (GtkWidget *widget); +void gtk_widget_show_all (GtkWidget *widget); +void gtk_widget_set_no_show_all (GtkWidget *widget, + gboolean no_show_all); +gboolean gtk_widget_get_no_show_all (GtkWidget *widget); +void gtk_widget_map (GtkWidget *widget); +void gtk_widget_unmap (GtkWidget *widget); +void gtk_widget_realize (GtkWidget *widget); +void gtk_widget_unrealize (GtkWidget *widget); + +void gtk_widget_draw (GtkWidget *widget, + cairo_t *cr); +/* Queuing draws */ +void gtk_widget_queue_draw (GtkWidget *widget); +void gtk_widget_queue_draw_area (GtkWidget *widget, + gint x, + gint y, + gint width, + gint height); +void gtk_widget_queue_draw_region (GtkWidget *widget, + const cairo_region_t*region); +void gtk_widget_queue_resize (GtkWidget *widget); +void gtk_widget_queue_resize_no_redraw (GtkWidget *widget); +GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size) +void gtk_widget_size_request (GtkWidget *widget, + GtkRequisition *requisition); +void gtk_widget_size_allocate (GtkWidget *widget, + GtkAllocation *allocation); + +GtkSizeRequestMode gtk_widget_get_request_mode (GtkWidget *widget); +void gtk_widget_get_preferred_width (GtkWidget *widget, + gint *minimum_width, + gint *natural_width); +void gtk_widget_get_preferred_height_for_width (GtkWidget *widget, + gint width, + gint *minimum_height, + gint *natural_height); +void gtk_widget_get_preferred_height (GtkWidget *widget, + gint *minimum_height, + gint *natural_height); +void gtk_widget_get_preferred_width_for_height (GtkWidget *widget, + gint height, + gint *minimum_width, + gint *natural_width); +void gtk_widget_get_preferred_size (GtkWidget *widget, + GtkRequisition *minimum_size, + GtkRequisition *natural_size); + +GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size) +void gtk_widget_get_child_requisition (GtkWidget *widget, + GtkRequisition *requisition); +void gtk_widget_add_accelerator (GtkWidget *widget, + const gchar *accel_signal, + GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods, + GtkAccelFlags accel_flags); +gboolean gtk_widget_remove_accelerator (GtkWidget *widget, + GtkAccelGroup *accel_group, + guint accel_key, + GdkModifierType accel_mods); +void gtk_widget_set_accel_path (GtkWidget *widget, + const gchar *accel_path, + GtkAccelGroup *accel_group); +GList* gtk_widget_list_accel_closures (GtkWidget *widget); +gboolean gtk_widget_can_activate_accel (GtkWidget *widget, + guint signal_id); +gboolean gtk_widget_mnemonic_activate (GtkWidget *widget, + gboolean group_cycling); +gboolean gtk_widget_event (GtkWidget *widget, + GdkEvent *event); +gint gtk_widget_send_expose (GtkWidget *widget, + GdkEvent *event); +gboolean gtk_widget_send_focus_change (GtkWidget *widget, + GdkEvent *event); + +gboolean gtk_widget_activate (GtkWidget *widget); + +void gtk_widget_reparent (GtkWidget *widget, + GtkWidget *new_parent); +gboolean gtk_widget_intersect (GtkWidget *widget, + const GdkRectangle *area, + GdkRectangle *intersection); +cairo_region_t *gtk_widget_region_intersect (GtkWidget *widget, + const cairo_region_t *region); + +void gtk_widget_freeze_child_notify (GtkWidget *widget); +void gtk_widget_child_notify (GtkWidget *widget, + const gchar *child_property); +void gtk_widget_thaw_child_notify (GtkWidget *widget); + +void gtk_widget_set_can_focus (GtkWidget *widget, + gboolean can_focus); +gboolean gtk_widget_get_can_focus (GtkWidget *widget); +gboolean gtk_widget_has_focus (GtkWidget *widget); +gboolean gtk_widget_is_focus (GtkWidget *widget); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_widget_has_visible_focus (GtkWidget *widget); +void gtk_widget_grab_focus (GtkWidget *widget); + +void gtk_widget_set_can_default (GtkWidget *widget, + gboolean can_default); +gboolean gtk_widget_get_can_default (GtkWidget *widget); +gboolean gtk_widget_has_default (GtkWidget *widget); +void gtk_widget_grab_default (GtkWidget *widget); + +void gtk_widget_set_receives_default (GtkWidget *widget, + gboolean receives_default); +gboolean gtk_widget_get_receives_default (GtkWidget *widget); + +gboolean gtk_widget_has_grab (GtkWidget *widget); + +gboolean gtk_widget_device_is_shadowed (GtkWidget *widget, + GdkDevice *device); + + +void gtk_widget_set_name (GtkWidget *widget, + const gchar *name); +const gchar * gtk_widget_get_name (GtkWidget *widget); + +void gtk_widget_set_state (GtkWidget *widget, + GtkStateType state); +GtkStateType gtk_widget_get_state (GtkWidget *widget); + +void gtk_widget_set_state_flags (GtkWidget *widget, + GtkStateFlags flags, + gboolean clear); +void gtk_widget_unset_state_flags (GtkWidget *widget, + GtkStateFlags flags); +GtkStateFlags gtk_widget_get_state_flags (GtkWidget *widget); + +void gtk_widget_set_sensitive (GtkWidget *widget, + gboolean sensitive); +gboolean gtk_widget_get_sensitive (GtkWidget *widget); +gboolean gtk_widget_is_sensitive (GtkWidget *widget); + +void gtk_widget_set_visible (GtkWidget *widget, + gboolean visible); +gboolean gtk_widget_get_visible (GtkWidget *widget); + +void gtk_widget_set_has_window (GtkWidget *widget, + gboolean has_window); +gboolean gtk_widget_get_has_window (GtkWidget *widget); + +gboolean gtk_widget_is_toplevel (GtkWidget *widget); +gboolean gtk_widget_is_drawable (GtkWidget *widget); +void gtk_widget_set_realized (GtkWidget *widget, + gboolean realized); +gboolean gtk_widget_get_realized (GtkWidget *widget); +void gtk_widget_set_mapped (GtkWidget *widget, + gboolean mapped); +gboolean gtk_widget_get_mapped (GtkWidget *widget); + +void gtk_widget_set_app_paintable (GtkWidget *widget, + gboolean app_paintable); +gboolean gtk_widget_get_app_paintable (GtkWidget *widget); + +void gtk_widget_set_double_buffered (GtkWidget *widget, + gboolean double_buffered); +gboolean gtk_widget_get_double_buffered (GtkWidget *widget); + +void gtk_widget_set_redraw_on_allocate (GtkWidget *widget, + gboolean redraw_on_allocate); + +void gtk_widget_set_parent (GtkWidget *widget, + GtkWidget *parent); +GtkWidget * gtk_widget_get_parent (GtkWidget *widget); + +void gtk_widget_set_parent_window (GtkWidget *widget, + GdkWindow *parent_window); +GdkWindow * gtk_widget_get_parent_window (GtkWidget *widget); + +void gtk_widget_set_child_visible (GtkWidget *widget, + gboolean is_visible); +gboolean gtk_widget_get_child_visible (GtkWidget *widget); + +void gtk_widget_set_window (GtkWidget *widget, + GdkWindow *window); +GdkWindow * gtk_widget_get_window (GtkWidget *widget); + +int gtk_widget_get_allocated_width (GtkWidget *widget); +int gtk_widget_get_allocated_height (GtkWidget *widget); + +void gtk_widget_get_allocation (GtkWidget *widget, + GtkAllocation *allocation); +void gtk_widget_set_allocation (GtkWidget *widget, + const GtkAllocation *allocation); + +void gtk_widget_get_requisition (GtkWidget *widget, + GtkRequisition *requisition); + +gboolean gtk_widget_child_focus (GtkWidget *widget, + GtkDirectionType direction); +gboolean gtk_widget_keynav_failed (GtkWidget *widget, + GtkDirectionType direction); +void gtk_widget_error_bell (GtkWidget *widget); + +void gtk_widget_set_size_request (GtkWidget *widget, + gint width, + gint height); +void gtk_widget_get_size_request (GtkWidget *widget, + gint *width, + gint *height); +void gtk_widget_set_events (GtkWidget *widget, + gint events); +void gtk_widget_add_events (GtkWidget *widget, + gint events); +void gtk_widget_set_device_events (GtkWidget *widget, + GdkDevice *device, + GdkEventMask events); +void gtk_widget_add_device_events (GtkWidget *widget, + GdkDevice *device, + GdkEventMask events); + +void gtk_widget_set_device_enabled (GtkWidget *widget, + GdkDevice *device, + gboolean enabled); +gboolean gtk_widget_get_device_enabled (GtkWidget *widget, + GdkDevice *device); + +GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget); +GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget, + GType widget_type); +GdkVisual* gtk_widget_get_visual (GtkWidget *widget); +void gtk_widget_set_visual (GtkWidget *widget, + GdkVisual *visual); + +GdkScreen * gtk_widget_get_screen (GtkWidget *widget); +gboolean gtk_widget_has_screen (GtkWidget *widget); +GdkDisplay * gtk_widget_get_display (GtkWidget *widget); +GdkWindow * gtk_widget_get_root_window (GtkWidget *widget); +GtkSettings* gtk_widget_get_settings (GtkWidget *widget); +GtkClipboard *gtk_widget_get_clipboard (GtkWidget *widget, + GdkAtom selection); + + +/* Expand flags and related support */ +gboolean gtk_widget_get_hexpand (GtkWidget *widget); +void gtk_widget_set_hexpand (GtkWidget *widget, + gboolean expand); +gboolean gtk_widget_get_hexpand_set (GtkWidget *widget); +void gtk_widget_set_hexpand_set (GtkWidget *widget, + gboolean set); +gboolean gtk_widget_get_vexpand (GtkWidget *widget); +void gtk_widget_set_vexpand (GtkWidget *widget, + gboolean expand); +gboolean gtk_widget_get_vexpand_set (GtkWidget *widget); +void gtk_widget_set_vexpand_set (GtkWidget *widget, + gboolean set); +void gtk_widget_queue_compute_expand (GtkWidget *widget); +gboolean gtk_widget_compute_expand (GtkWidget *widget, + GtkOrientation orientation); + + +/* Multidevice support */ +gboolean gtk_widget_get_support_multidevice (GtkWidget *widget); +void gtk_widget_set_support_multidevice (GtkWidget *widget, + gboolean support_multidevice); + +/* Accessibility support */ +GDK_AVAILABLE_IN_3_2 +void gtk_widget_class_set_accessible_type (GtkWidgetClass *widget_class, + GType type); +GDK_AVAILABLE_IN_3_2 +void gtk_widget_class_set_accessible_role (GtkWidgetClass *widget_class, + AtkRole role); +AtkObject* gtk_widget_get_accessible (GtkWidget *widget); + + +/* Margin and alignment */ +GtkAlign gtk_widget_get_halign (GtkWidget *widget); +void gtk_widget_set_halign (GtkWidget *widget, + GtkAlign align); +GtkAlign gtk_widget_get_valign (GtkWidget *widget); +void gtk_widget_set_valign (GtkWidget *widget, + GtkAlign align); +gint gtk_widget_get_margin_left (GtkWidget *widget); +void gtk_widget_set_margin_left (GtkWidget *widget, + gint margin); +gint gtk_widget_get_margin_right (GtkWidget *widget); +void gtk_widget_set_margin_right (GtkWidget *widget, + gint margin); +gint gtk_widget_get_margin_top (GtkWidget *widget); +void gtk_widget_set_margin_top (GtkWidget *widget, + gint margin); +gint gtk_widget_get_margin_bottom (GtkWidget *widget); +void gtk_widget_set_margin_bottom (GtkWidget *widget, + gint margin); + + +gint gtk_widget_get_events (GtkWidget *widget); +GdkEventMask gtk_widget_get_device_events (GtkWidget *widget, + GdkDevice *device); +GDK_DEPRECATED_IN_3_0_FOR(gdk_window_get_device_position) +void gtk_widget_get_pointer (GtkWidget *widget, + gint *x, + gint *y); + +gboolean gtk_widget_is_ancestor (GtkWidget *widget, + GtkWidget *ancestor); + +gboolean gtk_widget_translate_coordinates (GtkWidget *src_widget, + GtkWidget *dest_widget, + gint src_x, + gint src_y, + gint *dest_x, + gint *dest_y); + +/* Hide widget and return TRUE. + */ +gboolean gtk_widget_hide_on_delete (GtkWidget *widget); + +/* Functions to override widget styling */ +void gtk_widget_override_color (GtkWidget *widget, + GtkStateFlags state, + const GdkRGBA *color); +void gtk_widget_override_background_color (GtkWidget *widget, + GtkStateFlags state, + const GdkRGBA *color); + +void gtk_widget_override_font (GtkWidget *widget, + const PangoFontDescription *font_desc); + +void gtk_widget_override_symbolic_color (GtkWidget *widget, + const gchar *name, + const GdkRGBA *color); +void gtk_widget_override_cursor (GtkWidget *widget, + const GdkRGBA *cursor, + const GdkRGBA *secondary_cursor); + +void gtk_widget_reset_style (GtkWidget *widget); + +PangoContext *gtk_widget_create_pango_context (GtkWidget *widget); +PangoContext *gtk_widget_get_pango_context (GtkWidget *widget); +PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget, + const gchar *text); + +GdkPixbuf *gtk_widget_render_icon_pixbuf (GtkWidget *widget, + const gchar *stock_id, + GtkIconSize size); + +/* handle composite names for GTK_COMPOSITE_CHILD widgets, + * the returned name is newly allocated. + */ +void gtk_widget_set_composite_name (GtkWidget *widget, + const gchar *name); +gchar* gtk_widget_get_composite_name (GtkWidget *widget); + +/* Push/pop pairs, to change default values upon a widget's creation. + * This will override the values that got set by the + * gtk_widget_set_default_* () functions. + */ +void gtk_widget_push_composite_child (void); +void gtk_widget_pop_composite_child (void); + +/* widget style properties + */ +void gtk_widget_class_install_style_property (GtkWidgetClass *klass, + GParamSpec *pspec); +void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, + GParamSpec *pspec, + GtkRcPropertyParser parser); +GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass, + const gchar *property_name); +GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, + guint *n_properties); +void gtk_widget_style_get_property (GtkWidget *widget, + const gchar *property_name, + GValue *value); +void gtk_widget_style_get_valist (GtkWidget *widget, + const gchar *first_property_name, + va_list var_args); +void gtk_widget_style_get (GtkWidget *widget, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; + +/* Functions for setting directionality for widgets */ + +void gtk_widget_set_direction (GtkWidget *widget, + GtkTextDirection dir); +GtkTextDirection gtk_widget_get_direction (GtkWidget *widget); + +void gtk_widget_set_default_direction (GtkTextDirection dir); +GtkTextDirection gtk_widget_get_default_direction (void); + +/* Compositing manager functionality */ +gboolean gtk_widget_is_composited (GtkWidget *widget); + +/* Counterpart to gdk_window_shape_combine_region. + */ +void gtk_widget_shape_combine_region (GtkWidget *widget, + cairo_region_t *region); +void gtk_widget_input_shape_combine_region (GtkWidget *widget, + cairo_region_t *region); + +GList* gtk_widget_list_mnemonic_labels (GtkWidget *widget); +void gtk_widget_add_mnemonic_label (GtkWidget *widget, + GtkWidget *label); +void gtk_widget_remove_mnemonic_label (GtkWidget *widget, + GtkWidget *label); + +void gtk_widget_set_tooltip_window (GtkWidget *widget, + GtkWindow *custom_window); +GtkWindow *gtk_widget_get_tooltip_window (GtkWidget *widget); +void gtk_widget_trigger_tooltip_query (GtkWidget *widget); +void gtk_widget_set_tooltip_text (GtkWidget *widget, + const gchar *text); +gchar * gtk_widget_get_tooltip_text (GtkWidget *widget); +void gtk_widget_set_tooltip_markup (GtkWidget *widget, + const gchar *markup); +gchar * gtk_widget_get_tooltip_markup (GtkWidget *widget); +void gtk_widget_set_has_tooltip (GtkWidget *widget, + gboolean has_tooltip); +gboolean gtk_widget_get_has_tooltip (GtkWidget *widget); + +gboolean gtk_cairo_should_draw_window (cairo_t *cr, + GdkWindow *window); +void gtk_cairo_transform_to_window (cairo_t *cr, + GtkWidget *widget, + GdkWindow *window); + +GType gtk_requisition_get_type (void) G_GNUC_CONST; +GtkRequisition *gtk_requisition_new (void) G_GNUC_MALLOC; +GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition); +void gtk_requisition_free (GtkRequisition *requisition); + +gboolean gtk_widget_in_destruction (GtkWidget *widget); + +GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); + +GtkWidgetPath * gtk_widget_get_path (GtkWidget *widget); + +GDK_AVAILABLE_IN_3_4 +GdkModifierType gtk_widget_get_modifier_mask (GtkWidget *widget, + GdkModifierIntent intent); + + +G_END_DECLS + +#endif /* __GTK_WIDGET_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkwidgetpath.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkwidgetpath.h new file mode 100644 index 0000000..4c2c674 --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkwidgetpath.h @@ -0,0 +1,132 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2010 Carlos Garnacho + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_WIDGET_PATH_H__ +#define __GTK_WIDGET_PATH_H__ + +#include +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_WIDGET_PATH (gtk_widget_path_get_type ()) + +GType gtk_widget_path_get_type (void) G_GNUC_CONST; +GtkWidgetPath * gtk_widget_path_new (void); + +GtkWidgetPath * gtk_widget_path_copy (const GtkWidgetPath *path); +GDK_AVAILABLE_IN_3_2 +GtkWidgetPath * gtk_widget_path_ref (GtkWidgetPath *path); +GDK_AVAILABLE_IN_3_2 +void gtk_widget_path_unref (GtkWidgetPath *path); +void gtk_widget_path_free (GtkWidgetPath *path); + +GDK_AVAILABLE_IN_3_2 +char * gtk_widget_path_to_string (const GtkWidgetPath *path); +gint gtk_widget_path_length (const GtkWidgetPath *path); + +gint gtk_widget_path_append_type (GtkWidgetPath *path, + GType type); +void gtk_widget_path_prepend_type (GtkWidgetPath *path, + GType type); +GDK_AVAILABLE_IN_3_2 +gint gtk_widget_path_append_with_siblings(GtkWidgetPath *path, + GtkWidgetPath *siblings, + guint sibling_index); +/* gtk_widget_path_append_for_widget() is declared in gtkwidget.c */ +GDK_AVAILABLE_IN_3_2 +gint gtk_widget_path_append_for_widget (GtkWidgetPath *path, + GtkWidget *widget); + +GType gtk_widget_path_iter_get_object_type (const GtkWidgetPath *path, + gint pos); +void gtk_widget_path_iter_set_object_type (GtkWidgetPath *path, + gint pos, + GType type); +const GtkWidgetPath * + gtk_widget_path_iter_get_siblings (const GtkWidgetPath *path, + gint pos); +guint gtk_widget_path_iter_get_sibling_index(const GtkWidgetPath *path, + gint pos); + +const gchar * gtk_widget_path_iter_get_name (const GtkWidgetPath *path, + gint pos); +void gtk_widget_path_iter_set_name (GtkWidgetPath *path, + gint pos, + const gchar *name); +gboolean gtk_widget_path_iter_has_name (const GtkWidgetPath *path, + gint pos, + const gchar *name); +gboolean gtk_widget_path_iter_has_qname (const GtkWidgetPath *path, + gint pos, + GQuark qname); + +void gtk_widget_path_iter_add_class (GtkWidgetPath *path, + gint pos, + const gchar *name); +void gtk_widget_path_iter_remove_class (GtkWidgetPath *path, + gint pos, + const gchar *name); +void gtk_widget_path_iter_clear_classes (GtkWidgetPath *path, + gint pos); +GSList * gtk_widget_path_iter_list_classes (const GtkWidgetPath *path, + gint pos); +gboolean gtk_widget_path_iter_has_class (const GtkWidgetPath *path, + gint pos, + const gchar *name); +gboolean gtk_widget_path_iter_has_qclass (const GtkWidgetPath *path, + gint pos, + GQuark qname); + +void gtk_widget_path_iter_add_region (GtkWidgetPath *path, + gint pos, + const gchar *name, + GtkRegionFlags flags); +void gtk_widget_path_iter_remove_region (GtkWidgetPath *path, + gint pos, + const gchar *name); +void gtk_widget_path_iter_clear_regions (GtkWidgetPath *path, + gint pos); + +GSList * gtk_widget_path_iter_list_regions (const GtkWidgetPath *path, + gint pos); + +gboolean gtk_widget_path_iter_has_region (const GtkWidgetPath *path, + gint pos, + const gchar *name, + GtkRegionFlags *flags); +gboolean gtk_widget_path_iter_has_qregion (const GtkWidgetPath *path, + gint pos, + GQuark qname, + GtkRegionFlags *flags); + +GType gtk_widget_path_get_object_type (const GtkWidgetPath *path); + +gboolean gtk_widget_path_is_type (const GtkWidgetPath *path, + GType type); +gboolean gtk_widget_path_has_parent (const GtkWidgetPath *path, + GType type); + +G_END_DECLS + +#endif /* __GTK_WIDGET_PATH_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkwindow.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkwindow.h new file mode 100644 index 0000000..0f8491e --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkwindow.h @@ -0,0 +1,351 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GTK_WINDOW_H__ +#define __GTK_WINDOW_H__ + + +#include +#include +#include + +G_BEGIN_DECLS + +#define GTK_TYPE_WINDOW (gtk_window_get_type ()) +#define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_WINDOW, GtkWindow)) +#define GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW, GtkWindowClass)) +#define GTK_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_WINDOW)) +#define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW)) +#define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW, GtkWindowClass)) + +typedef struct _GtkWindowPrivate GtkWindowPrivate; +typedef struct _GtkWindowClass GtkWindowClass; +typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo; +typedef struct _GtkWindowGroup GtkWindowGroup; +typedef struct _GtkWindowGroupClass GtkWindowGroupClass; +typedef struct _GtkWindowGroupPrivate GtkWindowGroupPrivate; + +struct _GtkWindow +{ + GtkBin bin; + + GtkWindowPrivate *priv; +}; + +struct _GtkWindowClass +{ + GtkBinClass parent_class; + + void (* set_focus) (GtkWindow *window, + GtkWidget *focus); + + /* G_SIGNAL_ACTION signals for keybindings */ + + void (* activate_focus) (GtkWindow *window); + void (* activate_default) (GtkWindow *window); + void (* keys_changed) (GtkWindow *window); + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +#define GTK_TYPE_WINDOW_GROUP (gtk_window_group_get_type ()) +#define GTK_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_WINDOW_GROUP, GtkWindowGroup)) +#define GTK_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) +#define GTK_IS_WINDOW_GROUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_WINDOW_GROUP)) +#define GTK_IS_WINDOW_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WINDOW_GROUP)) +#define GTK_WINDOW_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WINDOW_GROUP, GtkWindowGroupClass)) + +struct _GtkWindowGroup +{ + GObject parent_instance; + + GtkWindowGroupPrivate *priv; +}; + +struct _GtkWindowGroupClass +{ + GObjectClass parent_class; + + /* Padding for future expansion */ + void (*_gtk_reserved1) (void); + void (*_gtk_reserved2) (void); + void (*_gtk_reserved3) (void); + void (*_gtk_reserved4) (void); +}; + +GType gtk_window_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_window_new (GtkWindowType type); +void gtk_window_set_title (GtkWindow *window, + const gchar *title); +const gchar * gtk_window_get_title (GtkWindow *window); +void gtk_window_set_wmclass (GtkWindow *window, + const gchar *wmclass_name, + const gchar *wmclass_class); +void gtk_window_set_role (GtkWindow *window, + const gchar *role); +void gtk_window_set_startup_id (GtkWindow *window, + const gchar *startup_id); +const gchar * gtk_window_get_role (GtkWindow *window); +void gtk_window_add_accel_group (GtkWindow *window, + GtkAccelGroup *accel_group); +void gtk_window_remove_accel_group (GtkWindow *window, + GtkAccelGroup *accel_group); +void gtk_window_set_position (GtkWindow *window, + GtkWindowPosition position); +gboolean gtk_window_activate_focus (GtkWindow *window); +void gtk_window_set_focus (GtkWindow *window, + GtkWidget *focus); +GtkWidget *gtk_window_get_focus (GtkWindow *window); +void gtk_window_set_default (GtkWindow *window, + GtkWidget *default_widget); +GtkWidget *gtk_window_get_default_widget (GtkWindow *window); +gboolean gtk_window_activate_default (GtkWindow *window); + +void gtk_window_set_transient_for (GtkWindow *window, + GtkWindow *parent); +GtkWindow *gtk_window_get_transient_for (GtkWindow *window); +GDK_AVAILABLE_IN_3_4 +void gtk_window_set_attached_to (GtkWindow *window, + GtkWidget *attach_widget); +GDK_AVAILABLE_IN_3_4 +GtkWidget *gtk_window_get_attached_to (GtkWindow *window); +void gtk_window_set_opacity (GtkWindow *window, + gdouble opacity); +gdouble gtk_window_get_opacity (GtkWindow *window); +void gtk_window_set_type_hint (GtkWindow *window, + GdkWindowTypeHint hint); +GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window); +void gtk_window_set_skip_taskbar_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window); +void gtk_window_set_skip_pager_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_skip_pager_hint (GtkWindow *window); +void gtk_window_set_urgency_hint (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_urgency_hint (GtkWindow *window); +void gtk_window_set_accept_focus (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_accept_focus (GtkWindow *window); +void gtk_window_set_focus_on_map (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_focus_on_map (GtkWindow *window); +void gtk_window_set_destroy_with_parent (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_destroy_with_parent (GtkWindow *window); +GDK_AVAILABLE_IN_3_4 +void gtk_window_set_hide_titlebar_when_maximized (GtkWindow *window, + gboolean setting); +GDK_AVAILABLE_IN_3_4 +gboolean gtk_window_get_hide_titlebar_when_maximized (GtkWindow *window); +void gtk_window_set_mnemonics_visible (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_mnemonics_visible (GtkWindow *window); +GDK_AVAILABLE_IN_3_2 +void gtk_window_set_focus_visible (GtkWindow *window, + gboolean setting); +GDK_AVAILABLE_IN_3_2 +gboolean gtk_window_get_focus_visible (GtkWindow *window); + +void gtk_window_set_resizable (GtkWindow *window, + gboolean resizable); +gboolean gtk_window_get_resizable (GtkWindow *window); + +void gtk_window_set_gravity (GtkWindow *window, + GdkGravity gravity); +GdkGravity gtk_window_get_gravity (GtkWindow *window); + + +void gtk_window_set_geometry_hints (GtkWindow *window, + GtkWidget *geometry_widget, + GdkGeometry *geometry, + GdkWindowHints geom_mask); + +void gtk_window_set_screen (GtkWindow *window, + GdkScreen *screen); +GdkScreen* gtk_window_get_screen (GtkWindow *window); + +gboolean gtk_window_is_active (GtkWindow *window); +gboolean gtk_window_has_toplevel_focus (GtkWindow *window); + +void gtk_window_set_decorated (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_decorated (GtkWindow *window); +void gtk_window_set_deletable (GtkWindow *window, + gboolean setting); +gboolean gtk_window_get_deletable (GtkWindow *window); + +void gtk_window_set_icon_list (GtkWindow *window, + GList *list); +GList* gtk_window_get_icon_list (GtkWindow *window); +void gtk_window_set_icon (GtkWindow *window, + GdkPixbuf *icon); +void gtk_window_set_icon_name (GtkWindow *window, + const gchar *name); +gboolean gtk_window_set_icon_from_file (GtkWindow *window, + const gchar *filename, + GError **err); +GdkPixbuf* gtk_window_get_icon (GtkWindow *window); +const gchar * gtk_window_get_icon_name (GtkWindow *window); +void gtk_window_set_default_icon_list (GList *list); +GList* gtk_window_get_default_icon_list (void); +void gtk_window_set_default_icon (GdkPixbuf *icon); +void gtk_window_set_default_icon_name (const gchar *name); +const gchar * gtk_window_get_default_icon_name (void); +gboolean gtk_window_set_default_icon_from_file (const gchar *filename, + GError **err); + +void gtk_window_set_auto_startup_notification (gboolean setting); + +/* If window is set modal, input will be grabbed when show and released when hide */ +void gtk_window_set_modal (GtkWindow *window, + gboolean modal); +gboolean gtk_window_get_modal (GtkWindow *window); +GList* gtk_window_list_toplevels (void); +void gtk_window_set_has_user_ref_count (GtkWindow *window, + gboolean setting); + +void gtk_window_add_mnemonic (GtkWindow *window, + guint keyval, + GtkWidget *target); +void gtk_window_remove_mnemonic (GtkWindow *window, + guint keyval, + GtkWidget *target); +gboolean gtk_window_mnemonic_activate (GtkWindow *window, + guint keyval, + GdkModifierType modifier); +void gtk_window_set_mnemonic_modifier (GtkWindow *window, + GdkModifierType modifier); +GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window); + +gboolean gtk_window_activate_key (GtkWindow *window, + GdkEventKey *event); +gboolean gtk_window_propagate_key_event (GtkWindow *window, + GdkEventKey *event); + +void gtk_window_present (GtkWindow *window); +void gtk_window_present_with_time (GtkWindow *window, + guint32 timestamp); +void gtk_window_iconify (GtkWindow *window); +void gtk_window_deiconify (GtkWindow *window); +void gtk_window_stick (GtkWindow *window); +void gtk_window_unstick (GtkWindow *window); +void gtk_window_maximize (GtkWindow *window); +void gtk_window_unmaximize (GtkWindow *window); +void gtk_window_fullscreen (GtkWindow *window); +void gtk_window_unfullscreen (GtkWindow *window); +void gtk_window_set_keep_above (GtkWindow *window, gboolean setting); +void gtk_window_set_keep_below (GtkWindow *window, gboolean setting); + +void gtk_window_begin_resize_drag (GtkWindow *window, + GdkWindowEdge edge, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); +void gtk_window_begin_move_drag (GtkWindow *window, + gint button, + gint root_x, + gint root_y, + guint32 timestamp); + +/* Set initial default size of the window (does not constrain user + * resize operations) + */ +void gtk_window_set_default_size (GtkWindow *window, + gint width, + gint height); +void gtk_window_get_default_size (GtkWindow *window, + gint *width, + gint *height); +void gtk_window_resize (GtkWindow *window, + gint width, + gint height); +void gtk_window_get_size (GtkWindow *window, + gint *width, + gint *height); +void gtk_window_move (GtkWindow *window, + gint x, + gint y); +void gtk_window_get_position (GtkWindow *window, + gint *root_x, + gint *root_y); +gboolean gtk_window_parse_geometry (GtkWindow *window, + const gchar *geometry); + +void gtk_window_set_default_geometry (GtkWindow *window, + gint width, + gint height); +void gtk_window_resize_to_geometry (GtkWindow *window, + gint width, + gint height); + +GtkWindowGroup *gtk_window_get_group (GtkWindow *window); +gboolean gtk_window_has_group (GtkWindow *window); + +/* Ignore this unless you are writing a GUI builder */ +void gtk_window_reshow_with_initial_size (GtkWindow *window); + +GtkWindowType gtk_window_get_window_type (GtkWindow *window); + +/* Window groups + */ +GType gtk_window_group_get_type (void) G_GNUC_CONST; + +GtkWindowGroup * gtk_window_group_new (void); +void gtk_window_group_add_window (GtkWindowGroup *window_group, + GtkWindow *window); +void gtk_window_group_remove_window (GtkWindowGroup *window_group, + GtkWindow *window); +GList * gtk_window_group_list_windows (GtkWindowGroup *window_group); + +GtkWidget * gtk_window_group_get_current_grab (GtkWindowGroup *window_group); +GtkWidget * gtk_window_group_get_current_device_grab (GtkWindowGroup *window_group, + GdkDevice *device); + +GtkApplication *gtk_window_get_application (GtkWindow *window); +void gtk_window_set_application (GtkWindow *window, + GtkApplication *application); + + +/* Window grips + */ +void gtk_window_set_has_resize_grip (GtkWindow *window, + gboolean value); +gboolean gtk_window_get_has_resize_grip (GtkWindow *window); +gboolean gtk_window_resize_grip_is_visible (GtkWindow *window); +gboolean gtk_window_get_resize_grip_area (GtkWindow *window, + GdkRectangle *rect); + +G_END_DECLS + +#endif /* __GTK_WINDOW_H__ */ diff --git a/gtk+-mingw/include/gtk-3.0/gtk/gtkx.h b/gtk+-mingw/include/gtk-3.0/gtk/gtkx.h new file mode 100644 index 0000000..4033d5d --- /dev/null +++ b/gtk+-mingw/include/gtk-3.0/gtk/gtkx.h @@ -0,0 +1,28 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2011 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +#ifndef __GTK_X_H__ +#define __GTK_X_H__ + +#define __GTKX_H_INSIDE__ + +#include +#include + +#undef __GTKX_H_INSIDE__ + +#endif /* __GTK_X_H__ */ -- cgit v1.2.3