| 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
| 20 | * file for a list of people on the GTK+ Team. See the ChangeLog |
| 21 | * files for a list of changes. These files are distributed with |
| 22 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
| 23 | */ |
| 24 | |
| 25 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 26 | |
| 27 | #include "gtkpaned.h"cxx . . $ `<file>/gtk/gtkpaned.h`/ |
| 28 | |
| 29 | #include "gtkaccessiblerange.h"cxx . . $ `<file>/gtk/gtkaccessiblerange.h`/ |
| 30 | #include "gtkcssboxesprivate.h"cxx . . $ `<file>/gtk/gtkcssboxesprivate.h`/ |
| 31 | #include "gtkeventcontrollermotion.h"cxx . . $ `<file>/gtk/gtkeventcontrollermotion.h`/ |
| 32 | #include "gtkgesturepan.h"cxx . . $ `<file>/gtk/gtkgesturepan.h`/ |
| 33 | #include "gtkgesturesingle.h"cxx . . $ `<file>/gtk/gtkgesturesingle.h`/ |
| 34 | #include "gtkpanedhandleprivate.h"cxx . . $ `<file>/gtk/gtkpanedhandleprivate.h`/ |
| 35 | #include "gtkmarshalers.h"cxx . . $ `<file>/build/gtk/gtkmarshalers.h`/ |
| 36 | #include "gtkorientable.h"cxx . . $ `<file>/gtk/gtkorientable.h`/ |
| 37 | #include "gtkprivate.h"cxx . . $ `<file>/gtk/gtkprivate.h`/ |
| 38 | #include "gtktypebuiltins.h"cxx . . $ `<file>/build/gtk/gtktypebuiltins.h`/ |
| 39 | #include "gtkwidgetprivate.h"cxx . . $ `<file>/gtk/gtkwidgetprivate.h`/ |
| 40 | #include "gtkbuildable.h"cxx . . $ `<file>/gtk/gtkbuildable.h`/ |
| 41 | #include "gtkbuilderprivate.h"cxx . . $ `<file>/gtk/gtkbuilderprivate.h`/ |
| 42 | |
| 43 | #include <math.h> |
| 44 | |
| 45 | /** |
| 46 | * GtkPaned: |
| 47 | * |
| 48 | * Arranges its children in two panes, horizontally or vertically. |
| 49 | * |
| 50 | * <picture> |
| 51 | * <source srcset="panes-dark.png" media="(prefers-color-scheme: dark)"> |
| 52 | * <img alt="An example GtkPaned" src="panes.png"> |
| 53 | * </picture> |
| 54 | * |
| 55 | * The division between the two panes is adjustable by the user |
| 56 | * by dragging a handle. |
| 57 | * |
| 58 | * Child widgets are added to the panes of the widget with |
| 59 | * [[email protected]_start_child] and [[email protected]_end_child]. |
| 60 | * The division between the two children is set by default from the size |
| 61 | * requests of the children, but it can be adjusted by the user. |
| 62 | * |
| 63 | * A paned widget draws a separator between the two child widgets and a |
| 64 | * small handle that the user can drag to adjust the division. It does not |
| 65 | * draw any relief around the children or around the separator. (The space |
| 66 | * in which the separator is called the gutter.) Often, it is useful to put |
| 67 | * each child inside a [[email protected]] so that the gutter appears as a |
| 68 | * ridge. No separator is drawn if one of the children is missing. |
| 69 | * |
| 70 | * Each child has two options that can be set, "resize" and "shrink". If |
| 71 | * "resize" is true then, when the `GtkPaned` is resized, that child will |
| 72 | * expand or shrink along with the paned widget. If "shrink" is true, then |
| 73 | * that child can be made smaller than its requisition by the user. |
| 74 | * Setting "shrink" to false allows the application to set a minimum size. |
| 75 | * If "resize" is false for both children, then this is treated as if |
| 76 | * "resize" is true for both children. |
| 77 | * |
| 78 | * The application can set the position of the slider as if it were set |
| 79 | * by the user, by calling [[email protected]_position]. |
| 80 | * |
| 81 | * # Shortcuts and Gestures |
| 82 | * |
| 83 | * The following signals have default keybindings: |
| 84 | * |
| 85 | * - [[email protected]::accept-position] |
| 86 | * - [[email protected]::cancel-position] |
| 87 | * - [[email protected]::cycle-child-focus] |
| 88 | * - [[email protected]::cycle-handle-focus] |
| 89 | * - [[email protected]::move-handle] |
| 90 | * - [[email protected]::toggle-handle-focus] |
| 91 | * |
| 92 | * # CSS nodes |
| 93 | * |
| 94 | * ``` |
| 95 | * paned |
| 96 | * ├── <child> |
| 97 | * ├── separator[.wide] |
| 98 | * ╰── <child> |
| 99 | * ``` |
| 100 | * |
| 101 | * `GtkPaned` has a main CSS node with name paned, and a subnode for |
| 102 | * the separator with name separator. The subnode gets a .wide style |
| 103 | * class when the paned is supposed to be wide. |
| 104 | * |
| 105 | * In horizontal orientation, the nodes are arranged based on the text |
| 106 | * direction, so in left-to-right mode, :first-child will select the |
| 107 | * leftmost child, while it will select the rightmost child in |
| 108 | * RTL layouts. |
| 109 | * |
| 110 | * ## Creating a paned widget with minimum sizes. |
| 111 | * |
| 112 | * ```c |
| 113 | * GtkWidget *hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); |
| 114 | * GtkWidget *frame1 = gtk_frame_new (NULL); |
| 115 | * GtkWidget *frame2 = gtk_frame_new (NULL); |
| 116 | * |
| 117 | * gtk_widget_set_size_request (hpaned, 200, -1); |
| 118 | * |
| 119 | * gtk_paned_set_start_child (GTK_PANED (hpaned), frame1); |
| 120 | * gtk_paned_set_resize_start_child (GTK_PANED (hpaned), TRUE); |
| 121 | * gtk_paned_set_shrink_start_child (GTK_PANED (hpaned), FALSE); |
| 122 | * gtk_widget_set_size_request (frame1, 50, -1); |
| 123 | * |
| 124 | * gtk_paned_set_end_child (GTK_PANED (hpaned), frame2); |
| 125 | * gtk_paned_set_resize_end_child (GTK_PANED (hpaned), FALSE); |
| 126 | * gtk_paned_set_shrink_end_child (GTK_PANED (hpaned), FALSE); |
| 127 | * gtk_widget_set_size_request (frame2, 50, -1); |
| 128 | * ``` |
| 129 | */ |
| 130 | |
| 131 | #define HANDLE_EXTRA_SIZEcxx . . $ `gtk/gtkpaned.c:131:9`! 6 |
| 132 | |
| 133 | typedef struct _GtkPanedClasscxx . . $ _GtkPanedClass# GtkPanedClasscxx . . $ GtkPanedClass#; |
| 134 | |
| 135 | struct _GtkPanedcxx . . $ _GtkPaned# |
| 136 | { |
| 137 | GtkWidgetcxx . . $ GtkWidget# parent_instancecxx . . $ _GtkPaned#parent_instance.; |
| 138 | |
| 139 | GtkPanedcxx . . $ GtkPaned# *first_panedcxx . . $ _GtkPaned#first_paned.; |
| 140 | GtkWidgetcxx . . $ GtkWidget# *start_childcxx . . $ _GtkPaned#start_child.; |
| 141 | GtkWidgetcxx . . $ GtkWidget# *end_childcxx . . $ _GtkPaned#end_child.; |
| 142 | GtkWidgetcxx . . $ GtkWidget# *last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.; |
| 143 | GtkWidgetcxx . . $ GtkWidget# *last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.; |
| 144 | GtkWidgetcxx . . $ GtkWidget# *saved_focuscxx . . $ _GtkPaned#saved_focus.; |
| 145 | GtkOrientationcxx . . $ GtkOrientation# orientationcxx . . $ _GtkPaned#orientation.; |
| 146 | |
| 147 | GtkWidgetcxx . . $ GtkWidget# *handle_widgetcxx . . $ _GtkPaned#handle_widget.; |
| 148 | |
| 149 | GtkGesturecxx . . $ GtkGesture# *pan_gesturecxx . . $ _GtkPaned#pan_gesture.; /* Used for touch */ |
| 150 | GtkGesturecxx . . $ GtkGesture# *drag_gesturecxx . . $ _GtkPaned#drag_gesture.; /* Used for mice */ |
| 151 | |
| 152 | int start_child_sizecxx . . $ _GtkPaned#start_child_size.; |
| 153 | int drag_poscxx . . $ _GtkPaned#drag_pos.; |
| 154 | int last_allocationcxx . . $ _GtkPaned#last_allocation.; |
| 155 | int max_positioncxx . . $ _GtkPaned#max_position.; |
| 156 | int min_positioncxx . . $ _GtkPaned#min_position.; |
| 157 | int original_positioncxx . . $ _GtkPaned#original_position.; |
| 158 | |
| 159 | guintcxx . . $ guint# in_recursioncxx . . $ _GtkPaned#in_recursion. : 1; |
| 160 | guintcxx . . $ guint# resize_start_childcxx . . $ _GtkPaned#resize_start_child. : 1; |
| 161 | guintcxx . . $ guint# shrink_start_childcxx . . $ _GtkPaned#shrink_start_child. : 1; |
| 162 | guintcxx . . $ guint# resize_end_childcxx . . $ _GtkPaned#resize_end_child. : 1; |
| 163 | guintcxx . . $ guint# shrink_end_childcxx . . $ _GtkPaned#shrink_end_child. : 1; |
| 164 | guintcxx . . $ guint# position_setcxx . . $ _GtkPaned#position_set. : 1; |
| 165 | guintcxx . . $ guint# panningcxx . . $ _GtkPaned#panning. : 1; |
| 166 | }; |
| 167 | |
| 168 | struct _GtkPanedClasscxx . . $ _GtkPanedClass# |
| 169 | { |
| 170 | GtkWidgetClasscxx . . $ GtkWidgetClass# parent_classcxx . . $ _GtkPanedClass#parent_class.; |
| 171 | |
| 172 | gbooleancxx . . $ gboolean# (* cycle_child_focuscxx . . $ _GtkPanedClass#cycle_child_focus.) (GtkPanedcxx . . $ GtkPaned# *paned, |
| 173 | gbooleancxx . . $ gboolean# reverse); |
| 174 | gbooleancxx . . $ gboolean# (* toggle_handle_focuscxx . . $ _GtkPanedClass#toggle_handle_focus.) (GtkPanedcxx . . $ GtkPaned# *paned); |
| 175 | gbooleancxx . . $ gboolean# (* move_handlecxx . . $ _GtkPanedClass#move_handle.) (GtkPanedcxx . . $ GtkPaned# *paned, |
| 176 | GtkScrollTypecxx . . $ GtkScrollType# scroll); |
| 177 | gbooleancxx . . $ gboolean# (* cycle_handle_focuscxx . . $ _GtkPanedClass#cycle_handle_focus.) (GtkPanedcxx . . $ GtkPaned# *paned, |
| 178 | gbooleancxx . . $ gboolean# reverse); |
| 179 | gbooleancxx . . $ gboolean# (* accept_positioncxx . . $ _GtkPanedClass#accept_position.) (GtkPanedcxx . . $ GtkPaned# *paned); |
| 180 | gbooleancxx . . $ gboolean# (* cancel_positioncxx . . $ _GtkPanedClass#cancel_position.) (GtkPanedcxx . . $ GtkPaned# *paned); |
| 181 | }; |
| 182 | |
| 183 | enumcxx . . $ $anonymous_type_7ba3463500ac9404_0# { |
| 184 | PROP_0cxx . . $ PROP_0., |
| 185 | PROP_POSITIONcxx . . $ PROP_POSITION., |
| 186 | PROP_POSITION_SETcxx . . $ PROP_POSITION_SET., |
| 187 | PROP_MIN_POSITIONcxx . . $ PROP_MIN_POSITION., |
| 188 | PROP_MAX_POSITIONcxx . . $ PROP_MAX_POSITION., |
| 189 | PROP_WIDE_HANDLEcxx . . $ PROP_WIDE_HANDLE., |
| 190 | PROP_RESIZE_START_CHILDcxx . . $ PROP_RESIZE_START_CHILD., |
| 191 | PROP_RESIZE_END_CHILDcxx . . $ PROP_RESIZE_END_CHILD., |
| 192 | PROP_SHRINK_START_CHILDcxx . . $ PROP_SHRINK_START_CHILD., |
| 193 | PROP_SHRINK_END_CHILDcxx . . $ PROP_SHRINK_END_CHILD., |
| 194 | PROP_START_CHILDcxx . . $ PROP_START_CHILD., |
| 195 | PROP_END_CHILDcxx . . $ PROP_END_CHILD., |
| 196 | LAST_PROPcxx . . $ LAST_PROP., |
| 197 | |
| 198 | /* GtkOrientable */ |
| 199 | PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION., |
| 200 | }; |
| 201 | |
| 202 | enumcxx . . $ $anonymous_type_7ba3463500ac9404_1# { |
| 203 | CYCLE_CHILD_FOCUScxx . . $ CYCLE_CHILD_FOCUS., |
| 204 | TOGGLE_HANDLE_FOCUScxx . . $ TOGGLE_HANDLE_FOCUS., |
| 205 | MOVE_HANDLEcxx . . $ MOVE_HANDLE., |
| 206 | CYCLE_HANDLE_FOCUScxx . . $ CYCLE_HANDLE_FOCUS., |
| 207 | ACCEPT_POSITIONcxx . . $ ACCEPT_POSITION., |
| 208 | CANCEL_POSITIONcxx . . $ CANCEL_POSITION., |
| 209 | LAST_SIGNALcxx . . $ LAST_SIGNAL. |
| 210 | }; |
| 211 | |
| 212 | static void gtk_paned_set_propertycxx . . $ gtk_paned_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 213 | guintcxx . . $ guint# prop_id, |
| 214 | const GValuecxx . . $ GValue# *value, |
| 215 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 216 | static void gtk_paned_get_propertycxx . . $ gtk_paned_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 217 | guintcxx . . $ guint# prop_id, |
| 218 | GValuecxx . . $ GValue# *value, |
| 219 | GParamSpeccxx . . $ GParamSpec# *pspec); |
| 220 | static void gtk_paned_disposecxx . . $ gtk_paned_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object); |
| 221 | static void gtk_paned_measurecxx . . $ gtk_paned_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 222 | GtkOrientationcxx . . $ GtkOrientation# orientation, |
| 223 | int for_size, |
| 224 | int *minimum, |
| 225 | int *natural, |
| 226 | int *minimum_baseline, |
| 227 | int *natural_baseline); |
| 228 | static void gtk_paned_size_allocatecxx . . $ gtk_paned_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 229 | int width, |
| 230 | int height, |
| 231 | int baseline); |
| 232 | static void gtk_paned_unrealizecxx . . $ gtk_paned_unrealize(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget); |
| 233 | static void gtk_paned_css_changedcxx . . $ gtk_paned_css_changed(4442664c79e1955d). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 234 | GtkCssStyleChangecxx . . $ GtkCssStyleChange# *change); |
| 235 | static void gtk_paned_calc_positioncxx . . $ gtk_paned_calc_position(1c8ca54a21f237e7). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 236 | int allocation, |
| 237 | int start_child_req, |
| 238 | int end_child_req); |
| 239 | static void gtk_paned_set_focus_childcxx . . $ gtk_paned_set_focus_child(4f261c0971c30e7). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 240 | GtkWidgetcxx . . $ GtkWidget# *child); |
| 241 | static void gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 242 | GtkWidgetcxx . . $ GtkWidget# *widget); |
| 243 | static void gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 244 | GtkPanedcxx . . $ GtkPaned# *first_paned); |
| 245 | static void gtk_paned_set_last_start_child_focuscxx . . $ gtk_paned_set_last_start_child_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 246 | GtkWidgetcxx . . $ GtkWidget# *widget); |
| 247 | static void gtk_paned_set_last_end_child_focuscxx . . $ gtk_paned_set_last_end_child_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 248 | GtkWidgetcxx . . $ GtkWidget# *widget); |
| 249 | static gbooleancxx . . $ gboolean# gtk_paned_cycle_child_focuscxx . . $ gtk_paned_cycle_child_focus(ed5db63f8a5d3c2b). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 250 | gbooleancxx . . $ gboolean# reverse); |
| 251 | static gbooleancxx . . $ gboolean# gtk_paned_cycle_handle_focuscxx . . $ gtk_paned_cycle_handle_focus(ed5db63f8a5d3c2b). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 252 | gbooleancxx . . $ gboolean# reverse); |
| 253 | static gbooleancxx . . $ gboolean# gtk_paned_move_handlecxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 254 | GtkScrollTypecxx . . $ GtkScrollType# scroll); |
| 255 | static gbooleancxx . . $ gboolean# gtk_paned_accept_positioncxx . . $ gtk_paned_accept_position(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned); |
| 256 | static gbooleancxx . . $ gboolean# gtk_paned_cancel_positioncxx . . $ gtk_paned_cancel_position(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned); |
| 257 | static gbooleancxx . . $ gboolean# gtk_paned_toggle_handle_focuscxx . . $ gtk_paned_toggle_handle_focus(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned); |
| 258 | |
| 259 | static void update_dragcxx . . $ update_drag(eef0ac5c92519d5f). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 260 | int xpos, |
| 261 | int ypos); |
| 262 | |
| 263 | static void gtk_paned_buildable_iface_initcxx . . $ gtk_paned_buildable_iface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface); |
| 264 | |
| 265 | static void gtk_paned_accessible_range_initcxx . . $ gtk_paned_accessible_range_init(2b4b6e552ddf3056). (GtkAccessibleRangeInterfacecxx . . $ GtkAccessibleRangeInterface# *iface); |
| 266 | |
| 267 | G_DEFINE_TYPE_WITH_CODEcxx . . $ `<external>/9567554376676449156/gtype.h:1850:9`! (GtkPaned, gtk_paned, GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!, |
| 268 | G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_ORIENTABLEcxx . . $ `gtk/gtkorientable.h:32:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 269 | G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_ACCESSIBLE_RANGEcxx . . $ `gtk/gtkaccessiblerange.h:16:9`!, |
| 270 | gtk_paned_accessible_range_init) |
| 271 | G_IMPLEMENT_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:2115:9`! (GTK_TYPE_BUILDABLEcxx . . $ `gtk/gtkbuildable.h:29:9`!, |
| 272 | gtk_paned_buildable_iface_init)) |
| 273 | |
| 274 | static guintcxx . . $ guint# signalscxx . . $ signals.[LAST_SIGNALcxx . . $ LAST_SIGNAL.] = { 0 }; |
| 275 | static GParamSpeccxx . . $ GParamSpec# *paned_propscxx . . $ paned_props.[LAST_PROPcxx . . $ LAST_PROP.] = { NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, }; |
| 276 | |
| 277 | static void |
| 278 | add_tab_bindingscxx . . $ add_tab_bindings(fde23ce956381954). (GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class, |
| 279 | GdkModifierTypecxx . . $ GdkModifierType# modifiers) |
| 280 | { |
| 281 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 282 | GDK_KEY_Tabcxx . . $ `gdk/gdkkeysyms.h:33:9`!, modifiers, |
| 283 | "toggle-handle-focus", |
| 284 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 285 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 286 | GDK_KEY_KP_Tabcxx . . $ `gdk/gdkkeysyms.h:93:9`!, modifiers, |
| 287 | "toggle-handle-focus", |
| 288 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 289 | } |
| 290 | |
| 291 | static void |
| 292 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class, |
| 293 | guintcxx . . $ guint# keyval, |
| 294 | GdkModifierTypecxx . . $ GdkModifierType# mask, |
| 295 | GtkScrollTypecxx . . $ GtkScrollType# scroll) |
| 296 | { |
| 297 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 298 | keyval, mask, |
| 299 | "move-handle", |
| 300 | "(i)", scroll); |
| 301 | } |
| 302 | |
| 303 | static void |
| 304 | get_handle_areacxx . . $ get_handle_area(7e0a3ba4845eb34d). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 305 | graphene_rect_tcxx . . $ graphene_rect_t# *area) |
| 306 | { |
| 307 | int extra = 0; |
| 308 | |
| 309 | if (!gtk_widget_compute_boundscxx . . $ gtk_widget_compute_bounds(167d30efbd6565d7). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), area)) |
| 310 | return; |
| 311 | |
| 312 | if (!gtk_paned_get_wide_handlecxx . . $ gtk_paned_get_wide_handle(5d2e638fa260c3bb). (paned)) |
| 313 | extra = HANDLE_EXTRA_SIZEcxx . . $ `gtk/gtkpaned.c:131:9`!; |
| 314 | |
| 315 | graphene_rect_insetcxx . . $ graphene_rect_inset(7d26846cadfcd06e). (area, - extra, - extra); |
| 316 | } |
| 317 | |
| 318 | static void |
| 319 | gtk_paned_compute_expandcxx . . $ gtk_paned_compute_expand(327d22ad06f230a). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 320 | gbooleancxx . . $ gboolean# *hexpand, |
| 321 | gbooleancxx . . $ gboolean# *vexpand) |
| 322 | { |
| 323 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 324 | gbooleancxx . . $ gboolean# h = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 325 | gbooleancxx . . $ gboolean# v = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 326 | |
| 327 | if (paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 328 | { |
| 329 | h = h || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (paned->start_childcxx . . $ _GtkPaned#start_child., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.); |
| 330 | v = v || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (paned->start_childcxx . . $ _GtkPaned#start_child., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.); |
| 331 | } |
| 332 | |
| 333 | if (paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 334 | { |
| 335 | h = h || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (paned->end_childcxx . . $ _GtkPaned#end_child., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.); |
| 336 | v = v || gtk_widget_compute_expandcxx . . $ gtk_widget_compute_expand(4898acbd212220bc). (paned->end_childcxx . . $ _GtkPaned#end_child., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL.); |
| 337 | } |
| 338 | |
| 339 | *hexpand = h; |
| 340 | *vexpand = v; |
| 341 | } |
| 342 | |
| 343 | static GtkSizeRequestModecxx . . $ GtkSizeRequestMode# |
| 344 | gtk_paned_get_request_modecxx . . $ gtk_paned_get_request_mode(2c9e09fe52fe0412). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 345 | { |
| 346 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 347 | int wfh = 0, hfw = 0; |
| 348 | |
| 349 | if (paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 350 | { |
| 351 | switch (gtk_widget_get_request_modecxx . . $ gtk_widget_get_request_mode(2c9e09fe52fe0412). (paned->start_childcxx . . $ _GtkPaned#start_child.)) |
| 352 | { |
| 353 | case GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.: |
| 354 | hfw++; |
| 355 | break; |
| 356 | case GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHTcxx . . $ GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT.: |
| 357 | wfh++; |
| 358 | break; |
| 359 | case GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.: |
| 360 | default: |
| 361 | break; |
| 362 | } |
| 363 | } |
| 364 | if (paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 365 | { |
| 366 | switch (gtk_widget_get_request_modecxx . . $ gtk_widget_get_request_mode(2c9e09fe52fe0412). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 367 | { |
| 368 | case GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.: |
| 369 | hfw++; |
| 370 | break; |
| 371 | case GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHTcxx . . $ GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT.: |
| 372 | wfh++; |
| 373 | break; |
| 374 | case GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.: |
| 375 | default: |
| 376 | break; |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | if (hfw == 0 && wfh == 0) |
| 381 | return GTK_SIZE_REQUEST_CONSTANT_SIZEcxx . . $ GTK_SIZE_REQUEST_CONSTANT_SIZE.; |
| 382 | else |
| 383 | return wfh > hfw ? |
| 384 | GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHTcxx . . $ GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT. : |
| 385 | GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTHcxx . . $ GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH.; |
| 386 | } |
| 387 | |
| 388 | static void |
| 389 | gtk_paned_set_orientationcxx . . $ gtk_paned_set_orientation(113820e6e5a139e0). (GtkPanedcxx . . $ GtkPaned# *self, |
| 390 | GtkOrientationcxx . . $ GtkOrientation# orientation) |
| 391 | { |
| 392 | if (self->orientationcxx . . $ _GtkPaned#orientation. != orientation) |
| 393 | { |
| 394 | static const char *cursor_name[2] = { |
| 395 | "col-resize", |
| 396 | "row-resize", |
| 397 | }; |
| 398 | |
| 399 | self->orientationcxx . . $ _GtkPaned#orientation. = orientation; |
| 400 | |
| 401 | gtk_widget_update_orientationcxx . . $ gtk_widget_update_orientation(478f3fd33c1887f0). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self), self->orientationcxx . . $ _GtkPaned#orientation.); |
| 402 | gtk_widget_set_cursor_from_namecxx . . $ gtk_widget_set_cursor_from_name(3e0616a87a6c51e5). (self->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 403 | cursor_name[orientation]); |
| 404 | gtk_gesture_pan_set_orientationcxx . . $ gtk_gesture_pan_set_orientation(679373e29d9886d). (GTK_GESTURE_PANcxx . . $ `gtk/gtkgesturepan.h:31:9`! (self->pan_gesture), |
| 405 | orientation); |
| 406 | |
| 407 | gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (self)); |
| 408 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (self), "orientation"); |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | static void |
| 413 | gtk_paned_class_initcxx . . $ gtk_paned_class_init(c9a62fda86827147). (GtkPanedClasscxx . . $ GtkPanedClass# *class) |
| 414 | { |
| 415 | GObjectClasscxx . . $ GObjectClass# *object_class = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (class); |
| 416 | GtkWidgetClasscxx . . $ GtkWidgetClass# *widget_class = GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (class); |
| 417 | |
| 418 | object_class->set_propertycxx . . $ _GObjectClass#set_property. = gtk_paned_set_propertycxx . . $ gtk_paned_set_property(d7c4bb29f36c0dc4).; |
| 419 | object_class->get_propertycxx . . $ _GObjectClass#get_property. = gtk_paned_get_propertycxx . . $ gtk_paned_get_property(cee2c52f22407c66).; |
| 420 | object_class->disposecxx . . $ _GObjectClass#dispose. = gtk_paned_disposecxx . . $ gtk_paned_dispose(6087475fa43034d3).; |
| 421 | |
| 422 | widget_class->measurecxx . . $ _GtkWidgetClass#measure. = gtk_paned_measurecxx . . $ gtk_paned_measure(d91afbd837fc0c19).; |
| 423 | widget_class->size_allocatecxx . . $ _GtkWidgetClass#size_allocate. = gtk_paned_size_allocatecxx . . $ gtk_paned_size_allocate(598a503332136822).; |
| 424 | widget_class->unrealizecxx . . $ _GtkWidgetClass#unrealize. = gtk_paned_unrealizecxx . . $ gtk_paned_unrealize(d7cf858254b37903).; |
| 425 | widget_class->focuscxx . . $ _GtkWidgetClass#focus. = gtk_widget_focus_childcxx . . $ gtk_widget_focus_child(8bb1c65c821a69cd).; |
| 426 | widget_class->set_focus_childcxx . . $ _GtkWidgetClass#set_focus_child. = gtk_paned_set_focus_childcxx . . $ gtk_paned_set_focus_child(4f261c0971c30e7).; |
| 427 | widget_class->css_changedcxx . . $ _GtkWidgetClass#css_changed. = gtk_paned_css_changedcxx . . $ gtk_paned_css_changed(4442664c79e1955d).; |
| 428 | widget_class->get_request_modecxx . . $ _GtkWidgetClass#get_request_mode. = gtk_paned_get_request_modecxx . . $ gtk_paned_get_request_mode(2c9e09fe52fe0412).; |
| 429 | widget_class->compute_expandcxx . . $ _GtkWidgetClass#compute_expand. = gtk_paned_compute_expandcxx . . $ gtk_paned_compute_expand(327d22ad06f230a).; |
| 430 | |
| 431 | class->cycle_child_focuscxx . . $ _GtkPanedClass#cycle_child_focus. = gtk_paned_cycle_child_focuscxx . . $ gtk_paned_cycle_child_focus(ed5db63f8a5d3c2b).; |
| 432 | class->toggle_handle_focuscxx . . $ _GtkPanedClass#toggle_handle_focus. = gtk_paned_toggle_handle_focuscxx . . $ gtk_paned_toggle_handle_focus(5d2e638fa260c3bb).; |
| 433 | class->move_handlecxx . . $ _GtkPanedClass#move_handle. = gtk_paned_move_handlecxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).; |
| 434 | class->cycle_handle_focuscxx . . $ _GtkPanedClass#cycle_handle_focus. = gtk_paned_cycle_handle_focuscxx . . $ gtk_paned_cycle_handle_focus(ed5db63f8a5d3c2b).; |
| 435 | class->accept_positioncxx . . $ _GtkPanedClass#accept_position. = gtk_paned_accept_positioncxx . . $ gtk_paned_accept_position(5d2e638fa260c3bb).; |
| 436 | class->cancel_positioncxx . . $ _GtkPanedClass#cancel_position. = gtk_paned_cancel_positioncxx . . $ gtk_paned_cancel_position(5d2e638fa260c3bb).; |
| 437 | |
| 438 | /** |
| 439 | * GtkPaned:position: |
| 440 | * |
| 441 | * Position of the separator in pixels, from the left/top. |
| 442 | */ |
| 443 | paned_propscxx . . $ paned_props.[PROP_POSITIONcxx . . $ PROP_POSITION.] = |
| 444 | g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("position", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 445 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 0, |
| 446 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 447 | |
| 448 | /** |
| 449 | * GtkPaned:position-set: |
| 450 | * |
| 451 | * Whether the [[email protected]:position] property has been set. |
| 452 | */ |
| 453 | paned_propscxx . . $ paned_props.[PROP_POSITION_SETcxx . . $ PROP_POSITION_SET.] = |
| 454 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("position-set", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 455 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 456 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 457 | |
| 458 | /** |
| 459 | * GtkPaned:min-position: |
| 460 | * |
| 461 | * The smallest possible value for the [[email protected]:position] |
| 462 | * property. |
| 463 | * |
| 464 | * This property is derived from the size and shrinkability |
| 465 | * of the widget's children. |
| 466 | */ |
| 467 | paned_propscxx . . $ paned_props.[PROP_MIN_POSITIONcxx . . $ PROP_MIN_POSITION.] = |
| 468 | g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("min-position", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 469 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, 0, |
| 470 | GTK_PARAM_READABLEcxx . . $ `gtk/gtkprivate.h:42:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 471 | |
| 472 | /** |
| 473 | * GtkPaned:max-position: |
| 474 | * |
| 475 | * The largest possible value for the [[email protected]:position] |
| 476 | * property. |
| 477 | * |
| 478 | * This property is derived from the size and shrinkability |
| 479 | * of the widget's children. |
| 480 | */ |
| 481 | paned_propscxx . . $ paned_props.[PROP_MAX_POSITIONcxx . . $ PROP_MAX_POSITION.] = |
| 482 | g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e). ("max-position", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 483 | 0, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!, |
| 484 | GTK_PARAM_READABLEcxx . . $ `gtk/gtkprivate.h:42:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 485 | |
| 486 | /** |
| 487 | * GtkPaned:wide-handle: |
| 488 | * |
| 489 | * Whether the `GtkPaned` should provide a stronger visual separation. |
| 490 | * |
| 491 | * For example, this could be set when a paned contains two |
| 492 | * [[email protected]]s, whose tab rows would otherwise merge visually. |
| 493 | */ |
| 494 | paned_propscxx . . $ paned_props.[PROP_WIDE_HANDLEcxx . . $ PROP_WIDE_HANDLE.] = |
| 495 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("wide-handle", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 496 | FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, |
| 497 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 498 | |
| 499 | /** |
| 500 | * GtkPaned:resize-start-child: |
| 501 | * |
| 502 | * Determines whether the first child expands and shrinks |
| 503 | * along with the paned widget. |
| 504 | */ |
| 505 | paned_propscxx . . $ paned_props.[PROP_RESIZE_START_CHILDcxx . . $ PROP_RESIZE_START_CHILD.] = |
| 506 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("resize-start-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 507 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 508 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 509 | |
| 510 | /** |
| 511 | * GtkPaned:resize-end-child: |
| 512 | * |
| 513 | * Determines whether the second child expands and shrinks |
| 514 | * along with the paned widget. |
| 515 | */ |
| 516 | paned_propscxx . . $ paned_props.[PROP_RESIZE_END_CHILDcxx . . $ PROP_RESIZE_END_CHILD.] = |
| 517 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("resize-end-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 518 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 519 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 520 | |
| 521 | /** |
| 522 | * GtkPaned:shrink-start-child: |
| 523 | * |
| 524 | * Determines whether the first child can be made smaller |
| 525 | * than its requisition. |
| 526 | */ |
| 527 | paned_propscxx . . $ paned_props.[PROP_SHRINK_START_CHILDcxx . . $ PROP_SHRINK_START_CHILD.] = |
| 528 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("shrink-start-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 529 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 530 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 531 | |
| 532 | /** |
| 533 | * GtkPaned:shrink-end-child: |
| 534 | * |
| 535 | * Determines whether the second child can be made smaller |
| 536 | * than its requisition. |
| 537 | */ |
| 538 | paned_propscxx . . $ paned_props.[PROP_SHRINK_END_CHILDcxx . . $ PROP_SHRINK_END_CHILD.] = |
| 539 | g_param_spec_booleancxx . . $ g_param_spec_boolean(315d86b79c0116e0). ("shrink-end-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 540 | TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 541 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 542 | |
| 543 | /** |
| 544 | * GtkPaned:start-child: |
| 545 | * |
| 546 | * The first child. |
| 547 | */ |
| 548 | paned_propscxx . . $ paned_props.[PROP_START_CHILDcxx . . $ PROP_START_CHILD.] = |
| 549 | g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("start-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 550 | GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!, |
| 551 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 552 | |
| 553 | /** |
| 554 | * GtkPaned:end-child: |
| 555 | * |
| 556 | * The second child. |
| 557 | */ |
| 558 | paned_propscxx . . $ paned_props.[PROP_END_CHILDcxx . . $ PROP_END_CHILD.] = |
| 559 | g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127). ("end-child", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 560 | GTK_TYPE_WIDGETcxx . . $ `gtk/gtkwidget.h:43:9`!, |
| 561 | GTK_PARAM_READWRITEcxx . . $ `gtk/gtkprivate.h:44:9`!|G_PARAM_EXPLICIT_NOTIFYcxx . . $ G_PARAM_EXPLICIT_NOTIFY.); |
| 562 | |
| 563 | g_object_class_install_propertiescxx . . $ g_object_class_install_properties(569d03e6a4088541). (object_class, LAST_PROPcxx . . $ LAST_PROP., paned_propscxx . . $ paned_props.); |
| 564 | g_object_class_override_propertycxx . . $ g_object_class_override_property(3aa56717d1bf1f20). (object_class, PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION., "orientation"); |
| 565 | |
| 566 | /** |
| 567 | * GtkPaned::cycle-child-focus: |
| 568 | * @widget: the object that received the signal |
| 569 | * @reversed: whether cycling backward or forward |
| 570 | * |
| 571 | * Emitted to cycle the focus between the children of the paned. |
| 572 | * |
| 573 | * This is a [keybinding signal](class.SignalAction.html). |
| 574 | * |
| 575 | * The default binding is <kbd>F6</kbd>. |
| 576 | * |
| 577 | * Returns: whether the behavior was cycled |
| 578 | */ |
| 579 | signalscxx . . $ signals. [CYCLE_CHILD_FOCUScxx . . $ CYCLE_CHILD_FOCUS.] = |
| 580 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("cycle-child-focus"), |
| 581 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 582 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 583 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, cycle_child_focus), |
| 584 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 585 | _gtk_marshal_BOOLEAN__BOOLEANcxx . . $ _gtk_marshal_BOOLEAN__BOOLEAN(cba270afb0f82555)., |
| 586 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 1, |
| 587 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!); |
| 588 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[CYCLE_CHILD_FOCUScxx . . $ CYCLE_CHILD_FOCUS.], |
| 589 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 590 | _gtk_marshal_BOOLEAN__BOOLEANvcxx . . $ _gtk_marshal_BOOLEAN__BOOLEANv(d309f4be92d1737c).); |
| 591 | |
| 592 | /** |
| 593 | * GtkPaned::toggle-handle-focus: |
| 594 | * @widget: the object that received the signal |
| 595 | * |
| 596 | * Emitted to accept the current position of the handle and then |
| 597 | * move focus to the next widget in the focus chain. |
| 598 | * |
| 599 | * This is a [keybinding signal](class.SignalAction.html). |
| 600 | * |
| 601 | * The default binding is <kbd>Tab</kbd>. |
| 602 | * |
| 603 | * Return: whether handle focus was toggled |
| 604 | */ |
| 605 | signalscxx . . $ signals. [TOGGLE_HANDLE_FOCUScxx . . $ TOGGLE_HANDLE_FOCUS.] = |
| 606 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("toggle-handle-focus"), |
| 607 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 608 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 609 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, toggle_handle_focus), |
| 610 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 611 | _gtk_marshal_BOOLEAN__VOIDcxx . . $ _gtk_marshal_BOOLEAN__VOID(cba270afb0f82555)., |
| 612 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 0); |
| 613 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[TOGGLE_HANDLE_FOCUScxx . . $ TOGGLE_HANDLE_FOCUS.], |
| 614 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 615 | _gtk_marshal_BOOLEAN__VOIDvcxx . . $ _gtk_marshal_BOOLEAN__VOIDv(d309f4be92d1737c).); |
| 616 | |
| 617 | /** |
| 618 | * GtkPaned::move-handle: |
| 619 | * @widget: the object that received the signal |
| 620 | * @scroll_type: a `GtkScrollType` |
| 621 | * |
| 622 | * Emitted to move the handle with key bindings. |
| 623 | * |
| 624 | * This is a [keybinding signal](class.SignalAction.html). |
| 625 | * |
| 626 | * The default bindings for this signal are |
| 627 | * <kbd>Ctrl</kbd>+<kbd>←</kbd>, <kbd>←</kbd>, |
| 628 | * <kbd>Ctrl</kbd>+<kbd>→</kbd>, <kbd>→</kbd>, |
| 629 | * <kbd>Ctrl</kbd>+<kbd>↑</kbd>, <kbd>↑</kbd>, |
| 630 | * <kbd>Ctrl</kbd>+<kbd>↓</kbd>, <kbd>↓</kbd>, |
| 631 | * <kbd>PgUp</kbd>, <kbd>PgDn</kbd>, <kbd>Home</kbd>, <kbd>End</kbd>. |
| 632 | * |
| 633 | * Returns: whether the handle was moved |
| 634 | */ |
| 635 | signalscxx . . $ signals.[MOVE_HANDLEcxx . . $ MOVE_HANDLE.] = |
| 636 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("move-handle"), |
| 637 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 638 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 639 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, move_handle), |
| 640 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 641 | _gtk_marshal_BOOLEAN__ENUMcxx . . $ _gtk_marshal_BOOLEAN__ENUM(cba270afb0f82555)., |
| 642 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 1, |
| 643 | GTK_TYPE_SCROLL_TYPEcxx . . $ `build/gtk/gtktypebuiltins.h:158:9`!); |
| 644 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[MOVE_HANDLEcxx . . $ MOVE_HANDLE.], |
| 645 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 646 | _gtk_marshal_BOOLEAN__ENUMvcxx . . $ _gtk_marshal_BOOLEAN__ENUMv(d309f4be92d1737c).); |
| 647 | |
| 648 | /** |
| 649 | * GtkPaned::cycle-handle-focus: |
| 650 | * @widget: the object that received the signal |
| 651 | * @reversed: whether cycling backward or forward |
| 652 | * |
| 653 | * Emitted to cycle whether the paned should grab focus to allow |
| 654 | * the user to change position of the handle by using key bindings. |
| 655 | * |
| 656 | * This is a [keybinding signal](class.SignalAction.html). |
| 657 | * |
| 658 | * The default binding for this signal is <kbd>F8</kbd>. |
| 659 | * |
| 660 | * Returns: whether the behavior was cycled |
| 661 | */ |
| 662 | signalscxx . . $ signals. [CYCLE_HANDLE_FOCUScxx . . $ CYCLE_HANDLE_FOCUS.] = |
| 663 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("cycle-handle-focus"), |
| 664 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 665 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 666 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, cycle_handle_focus), |
| 667 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 668 | _gtk_marshal_BOOLEAN__BOOLEANcxx . . $ _gtk_marshal_BOOLEAN__BOOLEAN(cba270afb0f82555)., |
| 669 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 1, |
| 670 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!); |
| 671 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[CYCLE_HANDLE_FOCUScxx . . $ CYCLE_HANDLE_FOCUS.], |
| 672 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 673 | _gtk_marshal_BOOLEAN__BOOLEANvcxx . . $ _gtk_marshal_BOOLEAN__BOOLEANv(d309f4be92d1737c).); |
| 674 | |
| 675 | /** |
| 676 | * GtkPaned::accept-position: |
| 677 | * @widget: the object that received the signal |
| 678 | * |
| 679 | * Emitted to accept the current position of the handle when |
| 680 | * moving it using key bindings. |
| 681 | * |
| 682 | * This is a [keybinding signal](class.SignalAction.html). |
| 683 | * |
| 684 | * The default binding for this signal is <kbd>Return</kbd> or |
| 685 | * <kbd>Space</kbd>. |
| 686 | * |
| 687 | * Returns: whether the position was accepted |
| 688 | */ |
| 689 | signalscxx . . $ signals. [ACCEPT_POSITIONcxx . . $ ACCEPT_POSITION.] = |
| 690 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("accept-position"), |
| 691 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 692 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 693 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, accept_position), |
| 694 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 695 | _gtk_marshal_BOOLEAN__VOIDcxx . . $ _gtk_marshal_BOOLEAN__VOID(cba270afb0f82555)., |
| 696 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 0); |
| 697 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[ACCEPT_POSITIONcxx . . $ ACCEPT_POSITION.], |
| 698 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 699 | _gtk_marshal_BOOLEAN__VOIDvcxx . . $ _gtk_marshal_BOOLEAN__VOIDv(d309f4be92d1737c).); |
| 700 | |
| 701 | /** |
| 702 | * GtkPaned::cancel-position: |
| 703 | * @widget: the object that received the signal |
| 704 | * |
| 705 | * Emitted to cancel moving the position of the handle using key |
| 706 | * bindings. |
| 707 | * |
| 708 | * The position of the handle will be reset to the value prior to |
| 709 | * moving it. |
| 710 | * |
| 711 | * This is a [keybinding signal](class.SignalAction.html). |
| 712 | * |
| 713 | * The default binding for this signal is <kbd>Escape</kbd>. |
| 714 | * |
| 715 | * Returns: whether the position was canceled |
| 716 | */ |
| 717 | signalscxx . . $ signals. [CANCEL_POSITIONcxx . . $ CANCEL_POSITION.] = |
| 718 | g_signal_newcxx . . $ g_signal_new(b0aa5e8090fb95c0). (I_cxx . . $ `gdk/gdkprivate.h:35:9`!("cancel-position"), |
| 719 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 720 | G_SIGNAL_RUN_LASTcxx . . $ G_SIGNAL_RUN_LAST. | G_SIGNAL_ACTIONcxx . . $ G_SIGNAL_ACTION., |
| 721 | G_STRUCT_OFFSETcxx . . $ `<external>/12741050725406041920/gmacros.h:1005:9`! (GtkPanedClass, cancel_position), |
| 722 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 723 | _gtk_marshal_BOOLEAN__VOIDcxx . . $ _gtk_marshal_BOOLEAN__VOID(cba270afb0f82555)., |
| 724 | G_TYPE_BOOLEANcxx . . $ `<external>/9567554376676449156/gtype.h:99:9`!, 0); |
| 725 | g_signal_set_va_marshallercxx . . $ g_signal_set_va_marshaller(4fd870c04a9d6fe7). (signalscxx . . $ signals.[CANCEL_POSITIONcxx . . $ CANCEL_POSITION.], |
| 726 | G_TYPE_FROM_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:657:9`! (object_class), |
| 727 | _gtk_marshal_BOOLEAN__VOIDvcxx . . $ _gtk_marshal_BOOLEAN__VOIDv(d309f4be92d1737c).); |
| 728 | |
| 729 | /* F6 and friends */ |
| 730 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 731 | GDK_KEY_F6cxx . . $ `gdk/gdkkeysyms.h:134:9`!, 0, |
| 732 | "cycle-child-focus", |
| 733 | "(b)", FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 734 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 735 | GDK_KEY_F6cxx . . $ `gdk/gdkkeysyms.h:134:9`!, GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK., |
| 736 | "cycle-child-focus", |
| 737 | "(b)", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 738 | |
| 739 | /* F8 and friends */ |
| 740 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 741 | GDK_KEY_F8cxx . . $ `gdk/gdkkeysyms.h:136:9`!, 0, |
| 742 | "cycle-handle-focus", |
| 743 | "(b)", FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 744 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 745 | GDK_KEY_F8cxx . . $ `gdk/gdkkeysyms.h:136:9`!, GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK., |
| 746 | "cycle-handle-focus", |
| 747 | "(b)", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 748 | |
| 749 | add_tab_bindingscxx . . $ add_tab_bindings(fde23ce956381954). (widget_class, 0); |
| 750 | add_tab_bindingscxx . . $ add_tab_bindings(fde23ce956381954). (widget_class, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK.); |
| 751 | add_tab_bindingscxx . . $ add_tab_bindings(fde23ce956381954). (widget_class, GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK.); |
| 752 | add_tab_bindingscxx . . $ add_tab_bindings(fde23ce956381954). (widget_class, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK. | GDK_SHIFT_MASKcxx . . $ GDK_SHIFT_MASK.); |
| 753 | |
| 754 | /* accept and cancel positions */ |
| 755 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 756 | GDK_KEY_Escapecxx . . $ `gdk/gdkkeysyms.h:40:9`!, 0, |
| 757 | "cancel-position", |
| 758 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 759 | |
| 760 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 761 | GDK_KEY_Returncxx . . $ `gdk/gdkkeysyms.h:36:9`!, 0, |
| 762 | "accept-position", |
| 763 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 764 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 765 | GDK_KEY_ISO_Entercxx . . $ `gdk/gdkkeysyms.h:242:9`!, 0, |
| 766 | "accept-position", |
| 767 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 768 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 769 | GDK_KEY_KP_Entercxx . . $ `gdk/gdkkeysyms.h:94:9`!, 0, |
| 770 | "accept-position", |
| 771 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 772 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 773 | GDK_KEY_spacecxx . . $ `gdk/gdkkeysyms.h:380:9`!, 0, |
| 774 | "accept-position", |
| 775 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 776 | gtk_widget_class_add_binding_signalcxx . . $ gtk_widget_class_add_binding_signal(ec56357b390cb2a6). (widget_class, |
| 777 | GDK_KEY_KP_Spacecxx . . $ `gdk/gdkkeysyms.h:92:9`!, 0, |
| 778 | "accept-position", |
| 779 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 780 | |
| 781 | /* move handle */ |
| 782 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Leftcxx . . $ `gdk/gdkkeysyms.h:68:9`!, 0, GTK_SCROLL_STEP_LEFTcxx . . $ GTK_SCROLL_STEP_LEFT.); |
| 783 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Leftcxx . . $ `gdk/gdkkeysyms.h:100:9`!, 0, GTK_SCROLL_STEP_LEFTcxx . . $ GTK_SCROLL_STEP_LEFT.); |
| 784 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Leftcxx . . $ `gdk/gdkkeysyms.h:68:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_LEFTcxx . . $ GTK_SCROLL_PAGE_LEFT.); |
| 785 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Leftcxx . . $ `gdk/gdkkeysyms.h:100:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_LEFTcxx . . $ GTK_SCROLL_PAGE_LEFT.); |
| 786 | |
| 787 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Rightcxx . . $ `gdk/gdkkeysyms.h:70:9`!, 0, GTK_SCROLL_STEP_RIGHTcxx . . $ GTK_SCROLL_STEP_RIGHT.); |
| 788 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Rightcxx . . $ `gdk/gdkkeysyms.h:70:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_RIGHTcxx . . $ GTK_SCROLL_PAGE_RIGHT.); |
| 789 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Rightcxx . . $ `gdk/gdkkeysyms.h:102:9`!, 0, GTK_SCROLL_STEP_RIGHTcxx . . $ GTK_SCROLL_STEP_RIGHT.); |
| 790 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Rightcxx . . $ `gdk/gdkkeysyms.h:102:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_RIGHTcxx . . $ GTK_SCROLL_PAGE_RIGHT.); |
| 791 | |
| 792 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Upcxx . . $ `gdk/gdkkeysyms.h:69:9`!, 0, GTK_SCROLL_STEP_UPcxx . . $ GTK_SCROLL_STEP_UP.); |
| 793 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Upcxx . . $ `gdk/gdkkeysyms.h:69:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_UPcxx . . $ GTK_SCROLL_PAGE_UP.); |
| 794 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Upcxx . . $ `gdk/gdkkeysyms.h:101:9`!, 0, GTK_SCROLL_STEP_UPcxx . . $ GTK_SCROLL_STEP_UP.); |
| 795 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Upcxx . . $ `gdk/gdkkeysyms.h:101:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_UPcxx . . $ GTK_SCROLL_PAGE_UP.); |
| 796 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Page_Upcxx . . $ `gdk/gdkkeysyms.h:73:9`!, 0, GTK_SCROLL_PAGE_UPcxx . . $ GTK_SCROLL_PAGE_UP.); |
| 797 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Page_Upcxx . . $ `gdk/gdkkeysyms.h:105:9`!, 0, GTK_SCROLL_PAGE_UPcxx . . $ GTK_SCROLL_PAGE_UP.); |
| 798 | |
| 799 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Downcxx . . $ `gdk/gdkkeysyms.h:71:9`!, 0, GTK_SCROLL_STEP_DOWNcxx . . $ GTK_SCROLL_STEP_DOWN.); |
| 800 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Downcxx . . $ `gdk/gdkkeysyms.h:71:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_DOWNcxx . . $ GTK_SCROLL_PAGE_DOWN.); |
| 801 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Downcxx . . $ `gdk/gdkkeysyms.h:103:9`!, 0, GTK_SCROLL_STEP_DOWNcxx . . $ GTK_SCROLL_STEP_DOWN.); |
| 802 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Downcxx . . $ `gdk/gdkkeysyms.h:103:9`!, GDK_CONTROL_MASKcxx . . $ GDK_CONTROL_MASK., GTK_SCROLL_PAGE_DOWNcxx . . $ GTK_SCROLL_PAGE_DOWN.); |
| 803 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Page_Downcxx . . $ `gdk/gdkkeysyms.h:75:9`!, 0, GTK_SCROLL_PAGE_RIGHTcxx . . $ GTK_SCROLL_PAGE_RIGHT.); |
| 804 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Page_Downcxx . . $ `gdk/gdkkeysyms.h:107:9`!, 0, GTK_SCROLL_PAGE_RIGHTcxx . . $ GTK_SCROLL_PAGE_RIGHT.); |
| 805 | |
| 806 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Homecxx . . $ `gdk/gdkkeysyms.h:67:9`!, 0, GTK_SCROLL_STARTcxx . . $ GTK_SCROLL_START.); |
| 807 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Homecxx . . $ `gdk/gdkkeysyms.h:99:9`!, 0, GTK_SCROLL_STARTcxx . . $ GTK_SCROLL_START.); |
| 808 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_Endcxx . . $ `gdk/gdkkeysyms.h:76:9`!, 0, GTK_SCROLL_ENDcxx . . $ GTK_SCROLL_END.); |
| 809 | add_move_bindingcxx . . $ add_move_binding(3553ab53dbb4867b). (widget_class, GDK_KEY_KP_Endcxx . . $ `gdk/gdkkeysyms.h:108:9`!, 0, GTK_SCROLL_ENDcxx . . $ GTK_SCROLL_END.); |
| 810 | |
| 811 | gtk_widget_class_set_css_namecxx . . $ gtk_widget_class_set_css_name(6333614c746ab65a). (widget_class, I_cxx . . $ `gdk/gdkprivate.h:35:9`!("paned")); |
| 812 | } |
| 813 | |
| 814 | static GtkBuildableIfacecxx . . $ GtkBuildableIface# *parent_buildable_ifacecxx . . $ parent_buildable_iface.; |
| 815 | |
| 816 | static void |
| 817 | gtk_paned_buildable_add_childcxx . . $ gtk_paned_buildable_add_child(784606fbae7a2cc). (GtkBuildablecxx . . $ GtkBuildable# *buildable, |
| 818 | GtkBuildercxx . . $ GtkBuilder# *builder, |
| 819 | GObjectcxx . . $ GObject# *child, |
| 820 | const char *type) |
| 821 | { |
| 822 | GtkPanedcxx . . $ GtkPaned# *self = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (buildable); |
| 823 | |
| 824 | if (g_strcmp0cxx . . $ g_strcmp0(5ae29d726ae57f88). (type, "start") == 0) |
| 825 | { |
| 826 | gtk_buildable_child_deprecation_warningcxx . . $ gtk_buildable_child_deprecation_warning(f47ca88812b837c7). (buildable, builder, "start", "start-child"); |
| 827 | gtk_paned_set_start_childcxx . . $ gtk_paned_set_start_child(45f261f20196c2b6). (self, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child)); |
| 828 | gtk_paned_set_resize_start_childcxx . . $ gtk_paned_set_resize_start_child(319472a0d7b2f19e). (self, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 829 | gtk_paned_set_shrink_start_childcxx . . $ gtk_paned_set_shrink_start_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 830 | } |
| 831 | else if (g_strcmp0cxx . . $ g_strcmp0(5ae29d726ae57f88). (type, "end") == 0) |
| 832 | { |
| 833 | gtk_buildable_child_deprecation_warningcxx . . $ gtk_buildable_child_deprecation_warning(f47ca88812b837c7). (buildable, builder, "end", "end-child"); |
| 834 | gtk_paned_set_end_childcxx . . $ gtk_paned_set_end_child(45f261f20196c2b6). (self, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child)); |
| 835 | gtk_paned_set_resize_end_childcxx . . $ gtk_paned_set_resize_end_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 836 | gtk_paned_set_shrink_end_childcxx . . $ gtk_paned_set_shrink_end_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 837 | } |
| 838 | else if (type == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! && GTK_IS_WIDGETcxx . . $ `gtk/gtkwidget.h:46:9`! (child)) |
| 839 | { |
| 840 | gtk_buildable_child_deprecation_warningcxx . . $ gtk_buildable_child_deprecation_warning(f47ca88812b837c7). (buildable, builder, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, "start-child or end-child"); |
| 841 | if (self->start_childcxx . . $ _GtkPaned#start_child. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 842 | { |
| 843 | gtk_paned_set_start_childcxx . . $ gtk_paned_set_start_child(45f261f20196c2b6). (self, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child)); |
| 844 | gtk_paned_set_resize_start_childcxx . . $ gtk_paned_set_resize_start_child(319472a0d7b2f19e). (self, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 845 | gtk_paned_set_shrink_start_childcxx . . $ gtk_paned_set_shrink_start_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 846 | } |
| 847 | else if (self->end_childcxx . . $ _GtkPaned#end_child. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 848 | { |
| 849 | gtk_paned_set_end_childcxx . . $ gtk_paned_set_end_child(45f261f20196c2b6). (self, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (child)); |
| 850 | gtk_paned_set_resize_end_childcxx . . $ gtk_paned_set_resize_end_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 851 | gtk_paned_set_shrink_end_childcxx . . $ gtk_paned_set_shrink_end_child(319472a0d7b2f19e). (self, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 852 | } |
| 853 | else |
| 854 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("GtkPaned only accepts two widgets as children"); |
| 855 | } |
| 856 | else |
| 857 | parent_buildable_ifacecxx . . $ parent_buildable_iface.->add_childcxx . . $ _GtkBuildableIface#add_child. (buildable, builder, child, type); |
| 858 | } |
| 859 | |
| 860 | static void |
| 861 | gtk_paned_buildable_iface_initcxx . . $ gtk_paned_buildable_iface_init(c5db55232772c4cd). (GtkBuildableIfacecxx . . $ GtkBuildableIface# *iface) |
| 862 | { |
| 863 | parent_buildable_ifacecxx . . $ parent_buildable_iface. = g_type_interface_peek_parentcxx . . $ g_type_interface_peek_parent(9f162e79bfc6c74). (iface); |
| 864 | iface->add_childcxx . . $ _GtkBuildableIface#add_child. = gtk_paned_buildable_add_childcxx . . $ gtk_paned_buildable_add_child(784606fbae7a2cc).; |
| 865 | } |
| 866 | |
| 867 | static gbooleancxx . . $ gboolean# |
| 868 | accessible_range_set_current_valuecxx . . $ accessible_range_set_current_value(d0ebe009bb033383). (GtkAccessibleRangecxx . . $ GtkAccessibleRange# *accessible_range, |
| 869 | double value) |
| 870 | { |
| 871 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (accessible_range), (int) value + 0.5); |
| 872 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 873 | } |
| 874 | |
| 875 | static void |
| 876 | gtk_paned_accessible_range_initcxx . . $ gtk_paned_accessible_range_init(2b4b6e552ddf3056). (GtkAccessibleRangeInterfacecxx . . $ GtkAccessibleRangeInterface# *iface) |
| 877 | { |
| 878 | iface->set_current_valuecxx . . $ _GtkAccessibleRangeInterface#set_current_value. = accessible_range_set_current_valuecxx . . $ accessible_range_set_current_value(d0ebe009bb033383).; |
| 879 | } |
| 880 | |
| 881 | static gbooleancxx . . $ gboolean# |
| 882 | initiates_touch_dragcxx . . $ initiates_touch_drag(c97521616ba4e6aa). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 883 | double start_x, |
| 884 | double start_y) |
| 885 | { |
| 886 | int handle_size, handle_pos, drag_pos; |
| 887 | graphene_rect_tcxx . . $ graphene_rect_t# handle_area; |
| 888 | |
| 889 | #define TOUCH_EXTRA_AREA_WIDTHcxx . . $ `gtk/gtkpaned.c:889:9`! 50 |
| 890 | get_handle_areacxx . . $ get_handle_area(7e0a3ba4845eb34d). (paned, &handle_area); |
| 891 | |
| 892 | if (paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.) |
| 893 | { |
| 894 | handle_pos = handle_area.origincxx . . $ _graphene_rect_t#origin..xcxx . . $ _graphene_point_t#x.; |
| 895 | drag_pos = start_x; |
| 896 | handle_size = handle_area.sizecxx . . $ _graphene_rect_t#size..widthcxx . . $ _graphene_size_t#width.; |
| 897 | } |
| 898 | else |
| 899 | { |
| 900 | handle_pos = handle_area.origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y.; |
| 901 | drag_pos = start_y; |
| 902 | handle_size = handle_area.sizecxx . . $ _graphene_rect_t#size..heightcxx . . $ _graphene_size_t#height.; |
| 903 | } |
| 904 | |
| 905 | if (drag_pos < handle_pos - TOUCH_EXTRA_AREA_WIDTHcxx . . $ `gtk/gtkpaned.c:889:9`! || |
| 906 | drag_pos > handle_pos + handle_size + TOUCH_EXTRA_AREA_WIDTHcxx . . $ `gtk/gtkpaned.c:889:9`!) |
| 907 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 908 | |
| 909 | #undef TOUCH_EXTRA_AREA_WIDTHcxx . . $ `gtk/gtkpaned.c:889:9`! |
| 910 | |
| 911 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 912 | } |
| 913 | |
| 914 | static void |
| 915 | gesture_drag_begin_cbcxx . . $ gesture_drag_begin_cb(c9f0fda25f810cf7). (GtkGestureDragcxx . . $ GtkGestureDrag# *gesture, |
| 916 | double start_x, |
| 917 | double start_y, |
| 918 | GtkPanedcxx . . $ GtkPaned# *paned) |
| 919 | { |
| 920 | GdkEventSequencecxx . . $ GdkEventSequence# *sequence; |
| 921 | graphene_rect_tcxx . . $ graphene_rect_t# handle_area; |
| 922 | GdkEventcxx . . $ GdkEvent# *event; |
| 923 | GdkDevicecxx . . $ GdkDevice# *device; |
| 924 | gbooleancxx . . $ gboolean# is_touch; |
| 925 | |
| 926 | /* Only drag the handle when it's visible */ |
| 927 | if (!gtk_widget_get_child_visiblecxx . . $ gtk_widget_get_child_visible(9247ef2dc26c5426). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget.)) |
| 928 | { |
| 929 | gtk_gesture_set_statecxx . . $ gtk_gesture_set_state(e8b82f7bdf7c1c23). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), |
| 930 | GTK_EVENT_SEQUENCE_DENIEDcxx . . $ GTK_EVENT_SEQUENCE_DENIED.); |
| 931 | return; |
| 932 | } |
| 933 | |
| 934 | sequence = gtk_gesture_single_get_current_sequencecxx . . $ gtk_gesture_single_get_current_sequence(eacc6d2458a1513d). (GTK_GESTURE_SINGLEcxx . . $ `gtk/gtkgesturesingle.h:32:9`! (gesture)); |
| 935 | event = gtk_gesture_get_last_eventcxx . . $ gtk_gesture_get_last_event(bb392b7a95f5154a). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), sequence); |
| 936 | device = gdk_event_get_devicecxx . . $ gdk_event_get_device(34b68624c462eb2f). (event); |
| 937 | paned->panningcxx . . $ _GtkPaned#panning. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 938 | |
| 939 | is_touch = (gdk_event_get_event_typecxx . . $ gdk_event_get_event_type(af0289f7121992bc). (event) == GDK_TOUCH_BEGINcxx . . $ GDK_TOUCH_BEGIN. || |
| 940 | gdk_device_get_sourcecxx . . $ gdk_device_get_source(6e76c929deca7d75). (device) == GDK_SOURCE_TOUCHSCREENcxx . . $ GDK_SOURCE_TOUCHSCREEN.); |
| 941 | |
| 942 | get_handle_areacxx . . $ get_handle_area(7e0a3ba4845eb34d). (paned, &handle_area); |
| 943 | |
| 944 | if ((is_touch && GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture) == paned->drag_gesturecxx . . $ _GtkPaned#drag_gesture.) || |
| 945 | (!is_touch && GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture) == paned->pan_gesturecxx . . $ _GtkPaned#pan_gesture.)) |
| 946 | { |
| 947 | gtk_gesture_set_statecxx . . $ gtk_gesture_set_state(e8b82f7bdf7c1c23). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), |
| 948 | GTK_EVENT_SEQUENCE_DENIEDcxx . . $ GTK_EVENT_SEQUENCE_DENIED.); |
| 949 | return; |
| 950 | } |
| 951 | |
| 952 | if (graphene_rect_contains_pointcxx . . $ graphene_rect_contains_point(809d75f4d0ad4aeb). (&handle_area, &(graphene_point_tcxx . . $ graphene_point_t#){start_x, start_y}) || |
| 953 | (is_touch && initiates_touch_dragcxx . . $ initiates_touch_drag(c97521616ba4e6aa). (paned, start_x, start_y))) |
| 954 | { |
| 955 | if (paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.) |
| 956 | paned->drag_poscxx . . $ _GtkPaned#drag_pos. = start_x - handle_area.origincxx . . $ _graphene_rect_t#origin..xcxx . . $ _graphene_point_t#x.; |
| 957 | else |
| 958 | paned->drag_poscxx . . $ _GtkPaned#drag_pos. = start_y - handle_area.origincxx . . $ _graphene_rect_t#origin..ycxx . . $ _graphene_point_t#y.; |
| 959 | |
| 960 | if (!gtk_paned_get_wide_handlecxx . . $ gtk_paned_get_wide_handle(5d2e638fa260c3bb). (paned)) |
| 961 | paned->drag_poscxx . . $ _GtkPaned#drag_pos. -= HANDLE_EXTRA_SIZEcxx . . $ `gtk/gtkpaned.c:131:9`!; |
| 962 | |
| 963 | paned->panningcxx . . $ _GtkPaned#panning. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 964 | |
| 965 | gtk_gesture_set_statecxx . . $ gtk_gesture_set_state(e8b82f7bdf7c1c23). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), |
| 966 | GTK_EVENT_SEQUENCE_CLAIMEDcxx . . $ GTK_EVENT_SEQUENCE_CLAIMED.); |
| 967 | } |
| 968 | else |
| 969 | { |
| 970 | gtk_gesture_set_statecxx . . $ gtk_gesture_set_state(e8b82f7bdf7c1c23). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), |
| 971 | GTK_EVENT_SEQUENCE_DENIEDcxx . . $ GTK_EVENT_SEQUENCE_DENIED.); |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | static void |
| 976 | gesture_drag_update_cbcxx . . $ gesture_drag_update_cb(c9f0fda25f810cf7). (GtkGestureDragcxx . . $ GtkGestureDrag# *gesture, |
| 977 | double offset_x, |
| 978 | double offset_y, |
| 979 | GtkPanedcxx . . $ GtkPaned# *paned) |
| 980 | { |
| 981 | double start_x, start_y; |
| 982 | |
| 983 | gtk_gesture_drag_get_start_pointcxx . . $ gtk_gesture_drag_get_start_point(6882bde6afecff9c). (GTK_GESTURE_DRAGcxx . . $ `gtk/gtkgesturedrag.h:31:9`! (gesture), |
| 984 | &start_x, &start_y); |
| 985 | update_dragcxx . . $ update_drag(eef0ac5c92519d5f). (paned, start_x + offset_x, start_y + offset_y); |
| 986 | } |
| 987 | |
| 988 | static void |
| 989 | gesture_drag_end_cbcxx . . $ gesture_drag_end_cb(c9f0fda25f810cf7). (GtkGestureDragcxx . . $ GtkGestureDrag# *gesture, |
| 990 | double offset_x, |
| 991 | double offset_y, |
| 992 | GtkPanedcxx . . $ GtkPaned# *paned) |
| 993 | { |
| 994 | if (!paned->panningcxx . . $ _GtkPaned#panning.) |
| 995 | gtk_gesture_set_statecxx . . $ gtk_gesture_set_state(e8b82f7bdf7c1c23). (GTK_GESTUREcxx . . $ `gtk/gtkgesture.h:32:9`! (gesture), GTK_EVENT_SEQUENCE_DENIEDcxx . . $ GTK_EVENT_SEQUENCE_DENIED.); |
| 996 | |
| 997 | paned->panningcxx . . $ _GtkPaned#panning. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 998 | } |
| 999 | |
| 1000 | static void |
| 1001 | gtk_paned_set_propertycxx . . $ gtk_paned_set_property(d7c4bb29f36c0dc4). (GObjectcxx . . $ GObject# *object, |
| 1002 | guintcxx . . $ guint# prop_id, |
| 1003 | const GValuecxx . . $ GValue# *value, |
| 1004 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 1005 | { |
| 1006 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (object); |
| 1007 | |
| 1008 | switch (prop_id) |
| 1009 | { |
| 1010 | case PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION.: |
| 1011 | gtk_paned_set_orientationcxx . . $ gtk_paned_set_orientation(113820e6e5a139e0). (paned, g_value_get_enumcxx . . $ g_value_get_enum(f890c5c75ead5b21). (value)); |
| 1012 | break; |
| 1013 | case PROP_POSITIONcxx . . $ PROP_POSITION.: |
| 1014 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (paned, g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21). (value)); |
| 1015 | break; |
| 1016 | case PROP_POSITION_SETcxx . . $ PROP_POSITION_SET.: |
| 1017 | if (paned->position_setcxx . . $ _GtkPaned#position_set. != g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)) |
| 1018 | { |
| 1019 | paned->position_setcxx . . $ _GtkPaned#position_set. = g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value); |
| 1020 | gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 1021 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (object, pspec); |
| 1022 | } |
| 1023 | break; |
| 1024 | case PROP_WIDE_HANDLEcxx . . $ PROP_WIDE_HANDLE.: |
| 1025 | gtk_paned_set_wide_handlecxx . . $ gtk_paned_set_wide_handle(319472a0d7b2f19e). (paned, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)); |
| 1026 | break; |
| 1027 | case PROP_RESIZE_START_CHILDcxx . . $ PROP_RESIZE_START_CHILD.: |
| 1028 | gtk_paned_set_resize_start_childcxx . . $ gtk_paned_set_resize_start_child(319472a0d7b2f19e). (paned, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)); |
| 1029 | break; |
| 1030 | case PROP_RESIZE_END_CHILDcxx . . $ PROP_RESIZE_END_CHILD.: |
| 1031 | gtk_paned_set_resize_end_childcxx . . $ gtk_paned_set_resize_end_child(319472a0d7b2f19e). (paned, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)); |
| 1032 | break; |
| 1033 | case PROP_SHRINK_START_CHILDcxx . . $ PROP_SHRINK_START_CHILD.: |
| 1034 | gtk_paned_set_shrink_start_childcxx . . $ gtk_paned_set_shrink_start_child(319472a0d7b2f19e). (paned, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)); |
| 1035 | break; |
| 1036 | case PROP_SHRINK_END_CHILDcxx . . $ PROP_SHRINK_END_CHILD.: |
| 1037 | gtk_paned_set_shrink_end_childcxx . . $ gtk_paned_set_shrink_end_child(319472a0d7b2f19e). (paned, g_value_get_booleancxx . . $ g_value_get_boolean(f890c5c75ead5b21). (value)); |
| 1038 | break; |
| 1039 | case PROP_START_CHILDcxx . . $ PROP_START_CHILD.: |
| 1040 | gtk_paned_set_start_childcxx . . $ gtk_paned_set_start_child(45f261f20196c2b6). (paned, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value)); |
| 1041 | break; |
| 1042 | case PROP_END_CHILDcxx . . $ PROP_END_CHILD.: |
| 1043 | gtk_paned_set_end_childcxx . . $ gtk_paned_set_end_child(45f261f20196c2b6). (paned, g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce). (value)); |
| 1044 | break; |
| 1045 | default: |
| 1046 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 1047 | break; |
| 1048 | } |
| 1049 | } |
| 1050 | |
| 1051 | static void |
| 1052 | gtk_paned_get_propertycxx . . $ gtk_paned_get_property(cee2c52f22407c66). (GObjectcxx . . $ GObject# *object, |
| 1053 | guintcxx . . $ guint# prop_id, |
| 1054 | GValuecxx . . $ GValue# *value, |
| 1055 | GParamSpeccxx . . $ GParamSpec# *pspec) |
| 1056 | { |
| 1057 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (object); |
| 1058 | |
| 1059 | switch (prop_id) |
| 1060 | { |
| 1061 | case PROP_ORIENTATIONcxx . . $ PROP_ORIENTATION.: |
| 1062 | g_value_set_enumcxx . . $ g_value_set_enum(b698c61e8e30c4ea). (value, paned->orientationcxx . . $ _GtkPaned#orientation.); |
| 1063 | break; |
| 1064 | case PROP_POSITIONcxx . . $ PROP_POSITION.: |
| 1065 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.); |
| 1066 | break; |
| 1067 | case PROP_POSITION_SETcxx . . $ PROP_POSITION_SET.: |
| 1068 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, paned->position_setcxx . . $ _GtkPaned#position_set.); |
| 1069 | break; |
| 1070 | case PROP_MIN_POSITIONcxx . . $ PROP_MIN_POSITION.: |
| 1071 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, paned->min_positioncxx . . $ _GtkPaned#min_position.); |
| 1072 | break; |
| 1073 | case PROP_MAX_POSITIONcxx . . $ PROP_MAX_POSITION.: |
| 1074 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea). (value, paned->max_positioncxx . . $ _GtkPaned#max_position.); |
| 1075 | break; |
| 1076 | case PROP_WIDE_HANDLEcxx . . $ PROP_WIDE_HANDLE.: |
| 1077 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, gtk_paned_get_wide_handlecxx . . $ gtk_paned_get_wide_handle(5d2e638fa260c3bb). (paned)); |
| 1078 | break; |
| 1079 | case PROP_RESIZE_START_CHILDcxx . . $ PROP_RESIZE_START_CHILD.: |
| 1080 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child.); |
| 1081 | break; |
| 1082 | case PROP_RESIZE_END_CHILDcxx . . $ PROP_RESIZE_END_CHILD.: |
| 1083 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.); |
| 1084 | break; |
| 1085 | case PROP_SHRINK_START_CHILDcxx . . $ PROP_SHRINK_START_CHILD.: |
| 1086 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child.); |
| 1087 | break; |
| 1088 | case PROP_SHRINK_END_CHILDcxx . . $ PROP_SHRINK_END_CHILD.: |
| 1089 | g_value_set_booleancxx . . $ g_value_set_boolean(b698c61e8e30c4ea). (value, paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child.); |
| 1090 | break; |
| 1091 | case PROP_START_CHILDcxx . . $ PROP_START_CHILD.: |
| 1092 | g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, gtk_paned_get_start_childcxx . . $ gtk_paned_get_start_child(86a8a248504665fa). (paned)); |
| 1093 | break; |
| 1094 | case PROP_END_CHILDcxx . . $ PROP_END_CHILD.: |
| 1095 | g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f). (value, gtk_paned_get_end_childcxx . . $ gtk_paned_get_end_child(86a8a248504665fa). (paned)); |
| 1096 | break; |
| 1097 | default: |
| 1098 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`! (object, prop_id, pspec); |
| 1099 | break; |
| 1100 | } |
| 1101 | } |
| 1102 | |
| 1103 | static void |
| 1104 | gtk_paned_disposecxx . . $ gtk_paned_dispose(6087475fa43034d3). (GObjectcxx . . $ GObject# *object) |
| 1105 | { |
| 1106 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (object); |
| 1107 | |
| 1108 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1109 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1110 | |
| 1111 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&paned->start_child, gtk_widget_unparent); |
| 1112 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&paned->end_child, gtk_widget_unparent); |
| 1113 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&paned->handle_widget, gtk_widget_unparent); |
| 1114 | |
| 1115 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`! (gtk_paned_parent_class)->disposecxx . . $ _GObjectClass#dispose. (object); |
| 1116 | } |
| 1117 | |
| 1118 | static void |
| 1119 | gtk_paned_compute_positioncxx . . $ gtk_paned_compute_position(37bae60ac81b2470). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1120 | int allocation, |
| 1121 | int start_child_req, |
| 1122 | int end_child_req, |
| 1123 | int *min_pos, |
| 1124 | int *max_pos, |
| 1125 | int *out_pos) |
| 1126 | { |
| 1127 | int min, max, pos; |
| 1128 | |
| 1129 | min = paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child. ? 0 : start_child_req; |
| 1130 | |
| 1131 | max = allocation; |
| 1132 | if (!paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child.) |
| 1133 | max = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, max - end_child_req); |
| 1134 | max = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (min, max); |
| 1135 | |
| 1136 | if (!paned->position_setcxx . . $ _GtkPaned#position_set.) |
| 1137 | { |
| 1138 | if (paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. && !paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.) |
| 1139 | pos = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (0, allocation - end_child_req); |
| 1140 | else if (!paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. && paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.) |
| 1141 | pos = start_child_req; |
| 1142 | else if (start_child_req + end_child_req != 0) |
| 1143 | pos = allocation * ((double)start_child_req / (start_child_req + end_child_req)) + 0.5; |
| 1144 | else |
| 1145 | pos = allocation * 0.5 + 0.5; |
| 1146 | } |
| 1147 | else |
| 1148 | { |
| 1149 | /* If the position was set before the initial allocation. |
| 1150 | * (paned->last_allocation <= 0) just clamp it and leave it. |
| 1151 | */ |
| 1152 | if (paned->last_allocationcxx . . $ _GtkPaned#last_allocation. > 0) |
| 1153 | { |
| 1154 | if (paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. && !paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.) |
| 1155 | pos = paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. + allocation - paned->last_allocationcxx . . $ _GtkPaned#last_allocation.; |
| 1156 | else if (!(!paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. && paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.)) |
| 1157 | pos = allocation * ((double) paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. / (paned->last_allocationcxx . . $ _GtkPaned#last_allocation.)) + 0.5; |
| 1158 | else |
| 1159 | pos = paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.; |
| 1160 | } |
| 1161 | else |
| 1162 | pos = paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.; |
| 1163 | } |
| 1164 | |
| 1165 | pos = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (pos, min, max); |
| 1166 | |
| 1167 | if (min_pos) |
| 1168 | *min_pos = min; |
| 1169 | if (max_pos) |
| 1170 | *max_pos = max; |
| 1171 | if (out_pos) |
| 1172 | *out_pos = pos; |
| 1173 | } |
| 1174 | |
| 1175 | static void |
| 1176 | gtk_paned_get_preferred_size_for_orientationcxx . . $ gtk_paned_get_preferred_size_for_orientation(91cbffb773163e88). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1177 | int size, |
| 1178 | int *minimum, |
| 1179 | int *natural) |
| 1180 | { |
| 1181 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 1182 | int child_min, child_nat; |
| 1183 | |
| 1184 | *minimum = *natural = 0; |
| 1185 | |
| 1186 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.)) |
| 1187 | { |
| 1188 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->start_childcxx . . $ _GtkPaned#start_child., paned->orientationcxx . . $ _GtkPaned#orientation., size, &child_min, &child_nat, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1189 | if (paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child.) |
| 1190 | *minimum = 0; |
| 1191 | else |
| 1192 | *minimum = child_min; |
| 1193 | *natural = child_nat; |
| 1194 | } |
| 1195 | |
| 1196 | if (paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1197 | { |
| 1198 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->end_childcxx . . $ _GtkPaned#end_child., paned->orientationcxx . . $ _GtkPaned#orientation., size, &child_min, &child_nat, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1199 | |
| 1200 | if (!paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child.) |
| 1201 | *minimum += child_min; |
| 1202 | *natural += child_nat; |
| 1203 | } |
| 1204 | |
| 1205 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.) && |
| 1206 | paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1207 | { |
| 1208 | int handle_size; |
| 1209 | |
| 1210 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 1211 | paned->orientationcxx . . $ _GtkPaned#orientation., |
| 1212 | -1, |
| 1213 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &handle_size, |
| 1214 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1215 | |
| 1216 | *minimum += handle_size; |
| 1217 | *natural += handle_size; |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | static void |
| 1222 | gtk_paned_get_preferred_size_for_opposite_orientationcxx . . $ gtk_paned_get_preferred_size_for_opposite_orientation(91cbffb773163e88). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1223 | int size, |
| 1224 | int *minimum, |
| 1225 | int *natural) |
| 1226 | { |
| 1227 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 1228 | int for_start_child, for_end_child, for_handle; |
| 1229 | int child_min, child_nat; |
| 1230 | |
| 1231 | if (size > -1 && |
| 1232 | paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.) && |
| 1233 | paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1234 | { |
| 1235 | int start_child_req, end_child_req; |
| 1236 | |
| 1237 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 1238 | paned->orientationcxx . . $ _GtkPaned#orientation., |
| 1239 | -1, |
| 1240 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &for_handle, |
| 1241 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1242 | |
| 1243 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->start_childcxx . . $ _GtkPaned#start_child., paned->orientationcxx . . $ _GtkPaned#orientation., -1, &start_child_req, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1244 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->end_childcxx . . $ _GtkPaned#end_child., paned->orientationcxx . . $ _GtkPaned#orientation., -1, &end_child_req, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1245 | |
| 1246 | gtk_paned_compute_positioncxx . . $ gtk_paned_compute_position(37bae60ac81b2470). (paned, |
| 1247 | size - for_handle, start_child_req, end_child_req, |
| 1248 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &for_start_child); |
| 1249 | |
| 1250 | for_end_child = size - for_start_child - for_handle; |
| 1251 | |
| 1252 | if (paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child.) |
| 1253 | for_start_child = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (start_child_req, for_start_child); |
| 1254 | if (paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child.) |
| 1255 | for_end_child = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (end_child_req, for_end_child); |
| 1256 | } |
| 1257 | else |
| 1258 | { |
| 1259 | for_start_child = size; |
| 1260 | for_end_child = size; |
| 1261 | for_handle = -1; |
| 1262 | } |
| 1263 | |
| 1264 | *minimum = *natural = 0; |
| 1265 | |
| 1266 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.)) |
| 1267 | { |
| 1268 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->start_childcxx . . $ _GtkPaned#start_child., |
| 1269 | OPPOSITE_ORIENTATIONcxx . . $ `gtk/gtkprivate.h:46:9`! (paned->orientation), |
| 1270 | for_start_child, |
| 1271 | &child_min, &child_nat, |
| 1272 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1273 | |
| 1274 | *minimum = child_min; |
| 1275 | *natural = child_nat; |
| 1276 | } |
| 1277 | |
| 1278 | if (paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1279 | { |
| 1280 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->end_childcxx . . $ _GtkPaned#end_child., |
| 1281 | OPPOSITE_ORIENTATIONcxx . . $ `gtk/gtkprivate.h:46:9`! (paned->orientation), |
| 1282 | for_end_child, |
| 1283 | &child_min, &child_nat, |
| 1284 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1285 | |
| 1286 | *minimum = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*minimum, child_min); |
| 1287 | *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, child_nat); |
| 1288 | } |
| 1289 | |
| 1290 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.) && |
| 1291 | paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1292 | { |
| 1293 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 1294 | OPPOSITE_ORIENTATIONcxx . . $ `gtk/gtkprivate.h:46:9`! (paned->orientation), |
| 1295 | for_handle, |
| 1296 | &child_min, &child_nat, |
| 1297 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1298 | |
| 1299 | *minimum = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*minimum, child_min); |
| 1300 | *natural = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (*natural, child_nat); |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | static void |
| 1305 | gtk_paned_measurecxx . . $ gtk_paned_measure(d91afbd837fc0c19). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1306 | GtkOrientationcxx . . $ GtkOrientation# orientation, |
| 1307 | int for_size, |
| 1308 | int *minimum, |
| 1309 | int *natural, |
| 1310 | int *minimum_baseline, |
| 1311 | int *natural_baseline) |
| 1312 | { |
| 1313 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 1314 | |
| 1315 | if (orientation == paned->orientationcxx . . $ _GtkPaned#orientation.) |
| 1316 | gtk_paned_get_preferred_size_for_orientationcxx . . $ gtk_paned_get_preferred_size_for_orientation(91cbffb773163e88). (widget, for_size, minimum, natural); |
| 1317 | else |
| 1318 | gtk_paned_get_preferred_size_for_opposite_orientationcxx . . $ gtk_paned_get_preferred_size_for_opposite_orientation(91cbffb773163e88). (widget, for_size, minimum, natural); |
| 1319 | } |
| 1320 | |
| 1321 | static void |
| 1322 | flip_childcxx . . $ flip_child(4a5d2a302e05be6). (int width, |
| 1323 | GtkAllocationcxx . . $ GtkAllocation# *child_pos) |
| 1324 | { |
| 1325 | child_pos->xcxx . . $ _cairo_rectangle_int#x. = width - child_pos->xcxx . . $ _cairo_rectangle_int#x. - child_pos->widthcxx . . $ _cairo_rectangle_int#width.; |
| 1326 | } |
| 1327 | |
| 1328 | static void |
| 1329 | gtk_paned_size_allocatecxx . . $ gtk_paned_size_allocate(598a503332136822). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1330 | int width, |
| 1331 | int height, |
| 1332 | int baseline) |
| 1333 | { |
| 1334 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 1335 | |
| 1336 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.) && |
| 1337 | paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1338 | { |
| 1339 | GtkAllocationcxx . . $ GtkAllocation# start_child_allocation; |
| 1340 | GtkAllocationcxx . . $ GtkAllocation# end_child_allocation; |
| 1341 | GtkAllocationcxx . . $ GtkAllocation# handle_allocation; |
| 1342 | int handle_size; |
| 1343 | |
| 1344 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 1345 | paned->orientationcxx . . $ _GtkPaned#orientation., |
| 1346 | -1, |
| 1347 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &handle_size, |
| 1348 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1349 | |
| 1350 | if (paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.) |
| 1351 | { |
| 1352 | int start_child_width, end_child_width; |
| 1353 | |
| 1354 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->start_childcxx . . $ _GtkPaned#start_child., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., |
| 1355 | height, |
| 1356 | &start_child_width, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1357 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->end_childcxx . . $ _GtkPaned#end_child., GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., |
| 1358 | height, |
| 1359 | &end_child_width, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1360 | |
| 1361 | gtk_paned_calc_positioncxx . . $ gtk_paned_calc_position(1c8ca54a21f237e7). (paned, |
| 1362 | MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, width - handle_size), |
| 1363 | start_child_width, |
| 1364 | end_child_width); |
| 1365 | |
| 1366 | handle_allocation = (GdkRectanglecxx . . $ GdkRectangle#){ |
| 1367 | paned->start_child_sizecxx . . $ _GtkPaned#start_child_size., |
| 1368 | 0, |
| 1369 | handle_size, |
| 1370 | height |
| 1371 | }; |
| 1372 | |
| 1373 | start_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = end_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = height; |
| 1374 | start_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, paned->start_child_size); |
| 1375 | start_child_allocation.xcxx . . $ _cairo_rectangle_int#x. = 0; |
| 1376 | start_child_allocation.ycxx . . $ _cairo_rectangle_int#y. = end_child_allocation.ycxx . . $ _cairo_rectangle_int#y. = 0; |
| 1377 | |
| 1378 | end_child_allocation.xcxx . . $ _cairo_rectangle_int#x. = start_child_allocation.xcxx . . $ _cairo_rectangle_int#x. + paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. + handle_size; |
| 1379 | end_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, width - paned->start_child_size - handle_size); |
| 1380 | |
| 1381 | if (gtk_widget_get_directioncxx . . $ gtk_widget_get_direction(a6537c3bfdacec30). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (widget)) == GTK_TEXT_DIR_RTLcxx . . $ GTK_TEXT_DIR_RTL.) |
| 1382 | { |
| 1383 | flip_childcxx . . $ flip_child(4a5d2a302e05be6). (width, &(end_child_allocation)); |
| 1384 | flip_childcxx . . $ flip_child(4a5d2a302e05be6). (width, &(start_child_allocation)); |
| 1385 | flip_childcxx . . $ flip_child(4a5d2a302e05be6). (width, &(handle_allocation)); |
| 1386 | } |
| 1387 | |
| 1388 | if (start_child_width > start_child_allocation.widthcxx . . $ _cairo_rectangle_int#width.) |
| 1389 | { |
| 1390 | if (gtk_widget_get_directioncxx . . $ gtk_widget_get_direction(a6537c3bfdacec30). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (widget)) == GTK_TEXT_DIR_LTRcxx . . $ GTK_TEXT_DIR_LTR.) |
| 1391 | start_child_allocation.xcxx . . $ _cairo_rectangle_int#x. -= start_child_width - start_child_allocation.widthcxx . . $ _cairo_rectangle_int#width.; |
| 1392 | start_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = start_child_width; |
| 1393 | } |
| 1394 | |
| 1395 | if (end_child_width > end_child_allocation.widthcxx . . $ _cairo_rectangle_int#width.) |
| 1396 | { |
| 1397 | if (gtk_widget_get_directioncxx . . $ gtk_widget_get_direction(a6537c3bfdacec30). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (widget)) == GTK_TEXT_DIR_RTLcxx . . $ GTK_TEXT_DIR_RTL.) |
| 1398 | end_child_allocation.xcxx . . $ _cairo_rectangle_int#x. -= end_child_width - end_child_allocation.widthcxx . . $ _cairo_rectangle_int#width.; |
| 1399 | end_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = end_child_width; |
| 1400 | } |
| 1401 | } |
| 1402 | else |
| 1403 | { |
| 1404 | int start_child_height, end_child_height; |
| 1405 | |
| 1406 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->start_childcxx . . $ _GtkPaned#start_child., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., |
| 1407 | width, |
| 1408 | &start_child_height, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1409 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->end_childcxx . . $ _GtkPaned#end_child., GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., |
| 1410 | width, |
| 1411 | &end_child_height, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1412 | |
| 1413 | gtk_paned_calc_positioncxx . . $ gtk_paned_calc_position(1c8ca54a21f237e7). (paned, |
| 1414 | MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, height - handle_size), |
| 1415 | start_child_height, |
| 1416 | end_child_height); |
| 1417 | |
| 1418 | handle_allocation = (GdkRectanglecxx . . $ GdkRectangle#){ |
| 1419 | 0, |
| 1420 | paned->start_child_sizecxx . . $ _GtkPaned#start_child_size., |
| 1421 | width, |
| 1422 | handle_size, |
| 1423 | }; |
| 1424 | |
| 1425 | start_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = end_child_allocation.widthcxx . . $ _cairo_rectangle_int#width. = width; |
| 1426 | start_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, paned->start_child_size); |
| 1427 | start_child_allocation.xcxx . . $ _cairo_rectangle_int#x. = end_child_allocation.xcxx . . $ _cairo_rectangle_int#x. = 0; |
| 1428 | start_child_allocation.ycxx . . $ _cairo_rectangle_int#y. = 0; |
| 1429 | |
| 1430 | end_child_allocation.ycxx . . $ _cairo_rectangle_int#y. = start_child_allocation.ycxx . . $ _cairo_rectangle_int#y. + paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. + handle_size; |
| 1431 | end_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = MAXcxx . . $ `<external>/12741050725406041920/gmacros.h:975:9`! (1, height - end_child_allocation.y); |
| 1432 | |
| 1433 | if (start_child_height > start_child_allocation.heightcxx . . $ _cairo_rectangle_int#height.) |
| 1434 | { |
| 1435 | start_child_allocation.ycxx . . $ _cairo_rectangle_int#y. -= start_child_height - start_child_allocation.heightcxx . . $ _cairo_rectangle_int#height.; |
| 1436 | start_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = start_child_height; |
| 1437 | } |
| 1438 | |
| 1439 | if (end_child_height > end_child_allocation.heightcxx . . $ _cairo_rectangle_int#height.) |
| 1440 | end_child_allocation.heightcxx . . $ _cairo_rectangle_int#height. = end_child_height; |
| 1441 | } |
| 1442 | |
| 1443 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1444 | |
| 1445 | gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., &handle_allocation, -1); |
| 1446 | gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (paned->start_childcxx . . $ _GtkPaned#start_child., &start_child_allocation, -1); |
| 1447 | gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (paned->end_childcxx . . $ _GtkPaned#end_child., &end_child_allocation, -1); |
| 1448 | } |
| 1449 | else |
| 1450 | { |
| 1451 | if (paned->start_childcxx . . $ _GtkPaned#start_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->start_childcxx . . $ _GtkPaned#start_child.)) |
| 1452 | { |
| 1453 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->start_childcxx . . $ _GtkPaned#start_child., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1454 | |
| 1455 | gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (paned->start_childcxx . . $ _GtkPaned#start_child., |
| 1456 | &(GtkAllocationcxx . . $ GtkAllocation#) {0, 0, width, height}, -1); |
| 1457 | } |
| 1458 | else if (paned->end_childcxx . . $ _GtkPaned#end_child. && gtk_widget_get_visiblecxx . . $ gtk_widget_get_visible(9247ef2dc26c5426). (paned->end_childcxx . . $ _GtkPaned#end_child.)) |
| 1459 | { |
| 1460 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->end_childcxx . . $ _GtkPaned#end_child., TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1461 | |
| 1462 | gtk_widget_size_allocatecxx . . $ gtk_widget_size_allocate(6dbef67925be57e3). (paned->end_childcxx . . $ _GtkPaned#end_child., |
| 1463 | &(GtkAllocationcxx . . $ GtkAllocation#) {0, 0, width, height}, -1); |
| 1464 | |
| 1465 | } |
| 1466 | |
| 1467 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1468 | } |
| 1469 | |
| 1470 | gtk_accessible_update_propertycxx . . $ gtk_accessible_update_property(7f02be67e42032aa). (GTK_ACCESSIBLEcxx . . $ GTK_ACCESSIBLE(4ecffd44f086533a). (paned), |
| 1471 | GTK_ACCESSIBLE_PROPERTY_VALUE_MINcxx . . $ GTK_ACCESSIBLE_PROPERTY_VALUE_MIN., 0.0, |
| 1472 | GTK_ACCESSIBLE_PROPERTY_VALUE_MAXcxx . . $ GTK_ACCESSIBLE_PROPERTY_VALUE_MAX., |
| 1473 | (double) (paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL. ? width : height), |
| 1474 | GTK_ACCESSIBLE_PROPERTY_VALUE_NOWcxx . . $ GTK_ACCESSIBLE_PROPERTY_VALUE_NOW., |
| 1475 | (double) paned->start_child_sizecxx . . $ _GtkPaned#start_child_size., |
| 1476 | -1); |
| 1477 | } |
| 1478 | |
| 1479 | |
| 1480 | static void |
| 1481 | gtk_paned_unrealizecxx . . $ gtk_paned_unrealize(d7cf858254b37903). (GtkWidgetcxx . . $ GtkWidget# *widget) |
| 1482 | { |
| 1483 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 1484 | |
| 1485 | gtk_paned_set_last_start_child_focuscxx . . $ gtk_paned_set_last_start_child_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1486 | gtk_paned_set_last_end_child_focuscxx . . $ gtk_paned_set_last_end_child_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1487 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1488 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1489 | |
| 1490 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_paned_parent_class)->unrealizecxx . . $ _GtkWidgetClass#unrealize. (widget); |
| 1491 | } |
| 1492 | |
| 1493 | static void |
| 1494 | connect_drag_gesture_signalscxx . . $ connect_drag_gesture_signals(1cdc984b6a5e8682). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1495 | GtkGesturecxx . . $ GtkGesture# *gesture) |
| 1496 | { |
| 1497 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "drag-begin", |
| 1498 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gesture_drag_begin_cb), paned); |
| 1499 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "drag-update", |
| 1500 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gesture_drag_update_cb), paned); |
| 1501 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (gesture, "drag-end", |
| 1502 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (gesture_drag_end_cb), paned); |
| 1503 | } |
| 1504 | |
| 1505 | static void |
| 1506 | gtk_paned_initcxx . . $ gtk_paned_init(cff98fb849b3b4d7). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1507 | { |
| 1508 | GtkGesturecxx . . $ GtkGesture# *gesture; |
| 1509 | |
| 1510 | gtk_widget_set_focusablecxx . . $ gtk_widget_set_focusable(81f145f668a0074f). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1511 | gtk_widget_set_overflowcxx . . $ gtk_widget_set_overflow(2238e5c1f303423). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), GTK_OVERFLOW_HIDDENcxx . . $ GTK_OVERFLOW_HIDDEN.); |
| 1512 | |
| 1513 | paned->orientationcxx . . $ _GtkPaned#orientation. = GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.; |
| 1514 | |
| 1515 | paned->start_childcxx . . $ _GtkPaned#start_child. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1516 | paned->end_childcxx . . $ _GtkPaned#end_child. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1517 | |
| 1518 | paned->position_setcxx . . $ _GtkPaned#position_set. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1519 | paned->last_allocationcxx . . $ _GtkPaned#last_allocation. = -1; |
| 1520 | |
| 1521 | paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1522 | paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 1523 | paned->in_recursioncxx . . $ _GtkPaned#in_recursion. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1524 | paned->original_positioncxx . . $ _GtkPaned#original_position. = -1; |
| 1525 | paned->max_positioncxx . . $ _GtkPaned#max_position. = G_MAXINTcxx . . $ `<external>/10505296616216143549/glibconfig.h:39:9`!; |
| 1526 | paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1527 | paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1528 | paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1529 | paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1530 | |
| 1531 | gtk_widget_update_orientationcxx . . $ gtk_widget_update_orientation(478f3fd33c1887f0). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), paned->orientationcxx . . $ _GtkPaned#orientation.); |
| 1532 | |
| 1533 | /* Touch gesture */ |
| 1534 | gesture = gtk_gesture_pan_newcxx . . $ gtk_gesture_pan_new(5225b77ef64a9ee9). (GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.); |
| 1535 | connect_drag_gesture_signalscxx . . $ connect_drag_gesture_signals(1cdc984b6a5e8682). (paned, gesture); |
| 1536 | gtk_gesture_single_set_touch_onlycxx . . $ gtk_gesture_single_set_touch_only(724cedb1e56be9d7). (GTK_GESTURE_SINGLEcxx . . $ `gtk/gtkgesturesingle.h:32:9`! (gesture), TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 1537 | gtk_event_controller_set_propagation_phasecxx . . $ gtk_event_controller_set_propagation_phase(c64e5c05e4165a3c). (GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture), |
| 1538 | GTK_PHASE_CAPTUREcxx . . $ GTK_PHASE_CAPTURE.); |
| 1539 | gtk_widget_add_controllercxx . . $ gtk_widget_add_controller(6d1262f1b7c2f702). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture)); |
| 1540 | paned->pan_gesturecxx . . $ _GtkPaned#pan_gesture. = gesture; |
| 1541 | |
| 1542 | /* Pointer gesture */ |
| 1543 | gesture = gtk_gesture_drag_newcxx . . $ gtk_gesture_drag_new(5d22ad75f7119eec). (); |
| 1544 | gtk_event_controller_set_propagation_phasecxx . . $ gtk_event_controller_set_propagation_phase(c64e5c05e4165a3c). (GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture), |
| 1545 | GTK_PHASE_CAPTUREcxx . . $ GTK_PHASE_CAPTURE.); |
| 1546 | connect_drag_gesture_signalscxx . . $ connect_drag_gesture_signals(1cdc984b6a5e8682). (paned, gesture); |
| 1547 | gtk_widget_add_controllercxx . . $ gtk_widget_add_controller(6d1262f1b7c2f702). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), GTK_EVENT_CONTROLLERcxx . . $ `gtk/gtkeventcontroller.h:35:9`! (gesture)); |
| 1548 | paned->drag_gesturecxx . . $ _GtkPaned#drag_gesture. = gesture; |
| 1549 | |
| 1550 | paned->handle_widgetcxx . . $ _GtkPaned#handle_widget. = gtk_paned_handle_newcxx . . $ gtk_paned_handle_new(2369ce5e9f2c7dfd). (); |
| 1551 | gtk_widget_set_parentcxx . . $ gtk_widget_set_parent(4f261c0971c30e7). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 1552 | gtk_widget_set_cursor_from_namecxx . . $ gtk_widget_set_cursor_from_name(3e0616a87a6c51e5). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., "col-resize"); |
| 1553 | } |
| 1554 | |
| 1555 | static gbooleancxx . . $ gboolean# |
| 1556 | is_rtlcxx . . $ is_rtl(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1557 | { |
| 1558 | return paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL. && |
| 1559 | gtk_widget_get_directioncxx . . $ gtk_widget_get_direction(a6537c3bfdacec30). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)) == GTK_TEXT_DIR_RTLcxx . . $ GTK_TEXT_DIR_RTL.; |
| 1560 | } |
| 1561 | |
| 1562 | static void |
| 1563 | update_dragcxx . . $ update_drag(eef0ac5c92519d5f). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1564 | int xpos, |
| 1565 | int ypos) |
| 1566 | { |
| 1567 | int pos; |
| 1568 | int handle_size; |
| 1569 | int size; |
| 1570 | |
| 1571 | if (paned->orientationcxx . . $ _GtkPaned#orientation. == GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL.) |
| 1572 | pos = xpos; |
| 1573 | else |
| 1574 | pos = ypos; |
| 1575 | |
| 1576 | pos -= paned->drag_poscxx . . $ _GtkPaned#drag_pos.; |
| 1577 | |
| 1578 | if (is_rtlcxx . . $ is_rtl(5d2e638fa260c3bb). (paned)) |
| 1579 | { |
| 1580 | gtk_widget_measurecxx . . $ gtk_widget_measure(d91afbd837fc0c19). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., |
| 1581 | GTK_ORIENTATION_HORIZONTALcxx . . $ GTK_ORIENTATION_HORIZONTAL., |
| 1582 | -1, |
| 1583 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, &handle_size, |
| 1584 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1585 | |
| 1586 | size = gtk_widget_get_widthcxx . . $ gtk_widget_get_width(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)) - pos - handle_size; |
| 1587 | } |
| 1588 | else |
| 1589 | { |
| 1590 | size = pos; |
| 1591 | } |
| 1592 | |
| 1593 | size = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (size, paned->min_position, paned->max_position); |
| 1594 | |
| 1595 | if (size != paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.) |
| 1596 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (paned, size); |
| 1597 | } |
| 1598 | |
| 1599 | static void |
| 1600 | gtk_paned_css_changedcxx . . $ gtk_paned_css_changed(4442664c79e1955d). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 1601 | GtkCssStyleChangecxx . . $ GtkCssStyleChange# *change) |
| 1602 | { |
| 1603 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_paned_parent_class)->css_changedcxx . . $ _GtkWidgetClass#css_changed. (widget, change); |
| 1604 | |
| 1605 | if (change == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || |
| 1606 | gtk_css_style_change_affectscxx . . $ gtk_css_style_change_affects(dd611ee2c95fff96). (change, GTK_CSS_AFFECTS_ICON_SIZEcxx . . $ GTK_CSS_AFFECTS_ICON_SIZE.)) |
| 1607 | { |
| 1608 | gtk_widget_queue_resizecxx . . $ gtk_widget_queue_resize(d7cf858254b37903). (widget); |
| 1609 | } |
| 1610 | else if (gtk_css_style_change_affectscxx . . $ gtk_css_style_change_affects(dd611ee2c95fff96). (change, GTK_CSS_AFFECTS_ICON_TEXTUREcxx . . $ GTK_CSS_AFFECTS_ICON_TEXTURE. | |
| 1611 | GTK_CSS_AFFECTS_ICON_REDRAWcxx . . $ GTK_CSS_AFFECTS_ICON_REDRAW.)) |
| 1612 | { |
| 1613 | gtk_widget_queue_drawcxx . . $ gtk_widget_queue_draw(d7cf858254b37903). (widget); |
| 1614 | } |
| 1615 | } |
| 1616 | |
| 1617 | /** |
| 1618 | * gtk_paned_new: |
| 1619 | * @orientation: the paned’s orientation. |
| 1620 | * |
| 1621 | * Creates a new `GtkPaned` widget. |
| 1622 | * |
| 1623 | * Returns: the newly created paned widget |
| 1624 | */ |
| 1625 | GtkWidgetcxx . . $ GtkWidget# * |
| 1626 | gtk_paned_newcxx . . $ gtk_paned_new(a67c098c83382a30). (GtkOrientationcxx . . $ GtkOrientation# orientation) |
| 1627 | { |
| 1628 | return g_object_newcxx . . $ g_object_new(8485fe61b4be4c78). (GTK_TYPE_PANEDcxx . . $ `gtk/gtkpaned.h:35:9`!, |
| 1629 | "orientation", orientation, |
| 1630 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1631 | } |
| 1632 | |
| 1633 | /** |
| 1634 | * gtk_paned_set_start_child: |
| 1635 | * @paned: a `GtkPaned` |
| 1636 | * @child: (nullable): the widget to add |
| 1637 | * |
| 1638 | * Sets the start child of @paned to @child. |
| 1639 | * |
| 1640 | * If @child is `NULL`, the existing child will be removed. |
| 1641 | */ |
| 1642 | void |
| 1643 | gtk_paned_set_start_childcxx . . $ gtk_paned_set_start_child(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1644 | GtkWidgetcxx . . $ GtkWidget# *child) |
| 1645 | { |
| 1646 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1647 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (child == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || paned->start_child == child || gtk_widget_get_parent (child) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1648 | |
| 1649 | if (paned->start_childcxx . . $ _GtkPaned#start_child. == child) |
| 1650 | return; |
| 1651 | |
| 1652 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&paned->start_child, gtk_widget_unparent); |
| 1653 | |
| 1654 | if (child) |
| 1655 | { |
| 1656 | paned->start_childcxx . . $ _GtkPaned#start_child. = child; |
| 1657 | gtk_widget_insert_beforecxx . . $ gtk_widget_insert_before(72c16b162d9e96e5). (child, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), paned->handle_widgetcxx . . $ _GtkPaned#handle_widget.); |
| 1658 | } |
| 1659 | |
| 1660 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "start-child"); |
| 1661 | } |
| 1662 | |
| 1663 | /** |
| 1664 | * gtk_paned_get_start_child: |
| 1665 | * @paned: a `GtkPaned` |
| 1666 | * |
| 1667 | * Retrieves the start child of the given `GtkPaned`. |
| 1668 | * |
| 1669 | * Returns: (transfer none) (nullable): the start child widget |
| 1670 | */ |
| 1671 | GtkWidgetcxx . . $ GtkWidget# * |
| 1672 | gtk_paned_get_start_childcxx . . $ gtk_paned_get_start_child(86a8a248504665fa). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1673 | { |
| 1674 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1675 | |
| 1676 | return paned->start_childcxx . . $ _GtkPaned#start_child.; |
| 1677 | } |
| 1678 | |
| 1679 | /** |
| 1680 | * gtk_paned_set_resize_start_child: |
| 1681 | * @paned: a `GtkPaned` |
| 1682 | * @resize: true to let the start child be resized |
| 1683 | * |
| 1684 | * Sets whether the [[email protected]:start-child] can be resized. |
| 1685 | */ |
| 1686 | void |
| 1687 | gtk_paned_set_resize_start_childcxx . . $ gtk_paned_set_resize_start_child(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1688 | gbooleancxx . . $ gboolean# resize) |
| 1689 | { |
| 1690 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1691 | |
| 1692 | if (paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. == resize) |
| 1693 | return; |
| 1694 | |
| 1695 | paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child. = resize; |
| 1696 | |
| 1697 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "resize-start-child"); |
| 1698 | } |
| 1699 | |
| 1700 | /** |
| 1701 | * gtk_paned_get_resize_start_child: |
| 1702 | * @paned: a `GtkPaned` |
| 1703 | * |
| 1704 | * Returns whether the [[email protected]:start-child] can be resized. |
| 1705 | * |
| 1706 | * Returns: true if the start child is resizable |
| 1707 | */ |
| 1708 | gbooleancxx . . $ gboolean# |
| 1709 | gtk_paned_get_resize_start_childcxx . . $ gtk_paned_get_resize_start_child(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1710 | { |
| 1711 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1712 | |
| 1713 | return paned->resize_start_childcxx . . $ _GtkPaned#resize_start_child.; |
| 1714 | } |
| 1715 | |
| 1716 | /** |
| 1717 | * gtk_paned_set_shrink_start_child: |
| 1718 | * @paned: a `GtkPaned` |
| 1719 | * @resize: true to let the start child be shrunk |
| 1720 | * |
| 1721 | * Sets whether the [[email protected]:start-child] can shrink. |
| 1722 | */ |
| 1723 | void |
| 1724 | gtk_paned_set_shrink_start_childcxx . . $ gtk_paned_set_shrink_start_child(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1725 | gbooleancxx . . $ gboolean# shrink) |
| 1726 | { |
| 1727 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1728 | |
| 1729 | if (paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child. == shrink) |
| 1730 | return; |
| 1731 | |
| 1732 | paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child. = shrink; |
| 1733 | |
| 1734 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "shrink-start-child"); |
| 1735 | } |
| 1736 | |
| 1737 | /** |
| 1738 | * gtk_paned_get_shrink_start_child: |
| 1739 | * @paned: a `GtkPaned` |
| 1740 | * |
| 1741 | * Returns whether the [[email protected]:start-child] can shrink. |
| 1742 | * |
| 1743 | * Returns: true if the start child is shrinkable |
| 1744 | */ |
| 1745 | gbooleancxx . . $ gboolean# |
| 1746 | gtk_paned_get_shrink_start_childcxx . . $ gtk_paned_get_shrink_start_child(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1747 | { |
| 1748 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1749 | |
| 1750 | return paned->shrink_start_childcxx . . $ _GtkPaned#shrink_start_child.; |
| 1751 | } |
| 1752 | |
| 1753 | /** |
| 1754 | * gtk_paned_set_end_child: |
| 1755 | * @paned: a `GtkPaned` |
| 1756 | * @child: (nullable): the widget to add |
| 1757 | * |
| 1758 | * Sets the end child of @paned to @child. |
| 1759 | * |
| 1760 | * If @child is `NULL`, the existing child will be removed. |
| 1761 | */ |
| 1762 | void |
| 1763 | gtk_paned_set_end_childcxx . . $ gtk_paned_set_end_child(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1764 | GtkWidgetcxx . . $ GtkWidget# *child) |
| 1765 | { |
| 1766 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1767 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (child == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! || paned->end_child == child || gtk_widget_get_parent (child) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1768 | |
| 1769 | if (paned->end_childcxx . . $ _GtkPaned#end_child. == child) |
| 1770 | return; |
| 1771 | |
| 1772 | g_clear_pointercxx . . $ `<external>/1123956534522462559/gmem.h:135:9`! (&paned->end_child, gtk_widget_unparent); |
| 1773 | |
| 1774 | if (child) |
| 1775 | { |
| 1776 | paned->end_childcxx . . $ _GtkPaned#end_child. = child; |
| 1777 | gtk_widget_insert_aftercxx . . $ gtk_widget_insert_after(72c16b162d9e96e5). (child, GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), paned->handle_widgetcxx . . $ _GtkPaned#handle_widget.); |
| 1778 | } |
| 1779 | |
| 1780 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "end-child"); |
| 1781 | } |
| 1782 | |
| 1783 | /** |
| 1784 | * gtk_paned_get_end_child: |
| 1785 | * @paned: a `GtkPaned` |
| 1786 | * |
| 1787 | * Retrieves the end child of the given `GtkPaned`. |
| 1788 | * |
| 1789 | * Returns: (transfer none) (nullable): the end child widget |
| 1790 | */ |
| 1791 | GtkWidgetcxx . . $ GtkWidget# * |
| 1792 | gtk_paned_get_end_childcxx . . $ gtk_paned_get_end_child(86a8a248504665fa). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1793 | { |
| 1794 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 1795 | |
| 1796 | return paned->end_childcxx . . $ _GtkPaned#end_child.; |
| 1797 | } |
| 1798 | |
| 1799 | /** |
| 1800 | * gtk_paned_set_resize_end_child: |
| 1801 | * @paned: a `GtkPaned` |
| 1802 | * @resize: true to let the end child be resized |
| 1803 | * |
| 1804 | * Sets whether the [[email protected]:end-child] can be resized. |
| 1805 | */ |
| 1806 | void |
| 1807 | gtk_paned_set_resize_end_childcxx . . $ gtk_paned_set_resize_end_child(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1808 | gbooleancxx . . $ gboolean# resize) |
| 1809 | { |
| 1810 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1811 | |
| 1812 | if (paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child. == resize) |
| 1813 | return; |
| 1814 | |
| 1815 | paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child. = resize; |
| 1816 | |
| 1817 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "resize-end-child"); |
| 1818 | } |
| 1819 | |
| 1820 | /** |
| 1821 | * gtk_paned_get_resize_end_child: |
| 1822 | * @paned: a `GtkPaned` |
| 1823 | * |
| 1824 | * Returns whether the [[email protected]:end-child] can be resized. |
| 1825 | * |
| 1826 | * Returns: true if the end child is resizable |
| 1827 | */ |
| 1828 | gbooleancxx . . $ gboolean# |
| 1829 | gtk_paned_get_resize_end_childcxx . . $ gtk_paned_get_resize_end_child(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1830 | { |
| 1831 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1832 | |
| 1833 | return paned->resize_end_childcxx . . $ _GtkPaned#resize_end_child.; |
| 1834 | } |
| 1835 | |
| 1836 | /** |
| 1837 | * gtk_paned_set_shrink_end_child: |
| 1838 | * @paned: a `GtkPaned` |
| 1839 | * @resize: true to let the end child be shrunk |
| 1840 | * |
| 1841 | * Sets whether the [[email protected]:end-child] can shrink. |
| 1842 | */ |
| 1843 | void |
| 1844 | gtk_paned_set_shrink_end_childcxx . . $ gtk_paned_set_shrink_end_child(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1845 | gbooleancxx . . $ gboolean# shrink) |
| 1846 | { |
| 1847 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1848 | |
| 1849 | if (paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child. == shrink) |
| 1850 | return; |
| 1851 | |
| 1852 | paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child. = shrink; |
| 1853 | |
| 1854 | g_object_notifycxx . . $ g_object_notify(174c9e6df5777c4e). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), "shrink-end-child"); |
| 1855 | } |
| 1856 | |
| 1857 | /** |
| 1858 | * gtk_paned_get_shrink_end_child: |
| 1859 | * @paned: a `GtkPaned` |
| 1860 | * |
| 1861 | * Returns whether the [[email protected]:end-child] can shrink. |
| 1862 | * |
| 1863 | * Returns: true if the end child is shrinkable |
| 1864 | */ |
| 1865 | gbooleancxx . . $ gboolean# |
| 1866 | gtk_paned_get_shrink_end_childcxx . . $ gtk_paned_get_shrink_end_child(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1867 | { |
| 1868 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 1869 | |
| 1870 | return paned->shrink_end_childcxx . . $ _GtkPaned#shrink_end_child.; |
| 1871 | } |
| 1872 | |
| 1873 | /** |
| 1874 | * gtk_paned_get_position: |
| 1875 | * @paned: a `GtkPaned` widget |
| 1876 | * |
| 1877 | * Obtains the position of the divider between the two panes. |
| 1878 | * |
| 1879 | * Returns: the position of the divider, in pixels |
| 1880 | **/ |
| 1881 | int |
| 1882 | gtk_paned_get_positioncxx . . $ gtk_paned_get_position(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 1883 | { |
| 1884 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), 0); |
| 1885 | |
| 1886 | return paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.; |
| 1887 | } |
| 1888 | |
| 1889 | /** |
| 1890 | * gtk_paned_set_position: |
| 1891 | * @paned: a `GtkPaned` widget |
| 1892 | * @position: pixel position of divider, a negative value means that the position |
| 1893 | * is unset |
| 1894 | * |
| 1895 | * Sets the position of the divider between the two panes. |
| 1896 | */ |
| 1897 | void |
| 1898 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1899 | int position) |
| 1900 | { |
| 1901 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 1902 | |
| 1903 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned)); |
| 1904 | |
| 1905 | if (position >= 0) |
| 1906 | { |
| 1907 | /* We don't clamp here - the assumption is that |
| 1908 | * if the total allocation changes at the same time |
| 1909 | * as the position, the position set is with reference |
| 1910 | * to the new total size. If only the position changes, |
| 1911 | * then clamping will occur in gtk_paned_calc_position() |
| 1912 | */ |
| 1913 | |
| 1914 | if (!paned->position_setcxx . . $ _GtkPaned#position_set.) |
| 1915 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_POSITION_SETcxx . . $ PROP_POSITION_SET.]); |
| 1916 | |
| 1917 | if (paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. != position) |
| 1918 | { |
| 1919 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_POSITIONcxx . . $ PROP_POSITION.]); |
| 1920 | gtk_widget_queue_allocatecxx . . $ gtk_widget_queue_allocate(d7cf858254b37903). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 1921 | } |
| 1922 | |
| 1923 | paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. = position; |
| 1924 | paned->position_setcxx . . $ _GtkPaned#position_set. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 1925 | } |
| 1926 | else |
| 1927 | { |
| 1928 | if (paned->position_setcxx . . $ _GtkPaned#position_set.) |
| 1929 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_POSITION_SETcxx . . $ PROP_POSITION_SET.]); |
| 1930 | |
| 1931 | paned->position_setcxx . . $ _GtkPaned#position_set. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 1932 | } |
| 1933 | |
| 1934 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned)); |
| 1935 | |
| 1936 | #ifdef G_OS_WIN32 |
| 1937 | /* Hacky work-around for bug #144269 */ |
| 1938 | if (paned->end_child != NULL) |
| 1939 | { |
| 1940 | gtk_widget_queue_draw (paned->end_child); |
| 1941 | } |
| 1942 | #endif |
| 1943 | } |
| 1944 | |
| 1945 | static void |
| 1946 | gtk_paned_calc_positioncxx . . $ gtk_paned_calc_position(1c8ca54a21f237e7). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 1947 | int allocation, |
| 1948 | int start_child_req, |
| 1949 | int end_child_req) |
| 1950 | { |
| 1951 | int old_position; |
| 1952 | int old_min_position; |
| 1953 | int old_max_position; |
| 1954 | |
| 1955 | old_position = paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.; |
| 1956 | old_min_position = paned->min_positioncxx . . $ _GtkPaned#min_position.; |
| 1957 | old_max_position = paned->max_positioncxx . . $ _GtkPaned#max_position.; |
| 1958 | |
| 1959 | gtk_paned_compute_positioncxx . . $ gtk_paned_compute_position(37bae60ac81b2470). (paned, |
| 1960 | allocation, start_child_req, end_child_req, |
| 1961 | &paned->min_positioncxx . . $ _GtkPaned#min_position., &paned->max_positioncxx . . $ _GtkPaned#max_position., |
| 1962 | &paned->start_child_sizecxx . . $ _GtkPaned#start_child_size.); |
| 1963 | |
| 1964 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->start_childcxx . . $ _GtkPaned#start_child., paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. != 0); |
| 1965 | gtk_widget_set_child_visiblecxx . . $ gtk_widget_set_child_visible(81f145f668a0074f). (paned->end_childcxx . . $ _GtkPaned#end_child., paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. != allocation); |
| 1966 | |
| 1967 | g_object_freeze_notifycxx . . $ g_object_freeze_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned)); |
| 1968 | if (paned->start_child_sizecxx . . $ _GtkPaned#start_child_size. != old_position) |
| 1969 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_POSITIONcxx . . $ PROP_POSITION.]); |
| 1970 | if (paned->min_positioncxx . . $ _GtkPaned#min_position. != old_min_position) |
| 1971 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_MIN_POSITIONcxx . . $ PROP_MIN_POSITION.]); |
| 1972 | if (paned->max_positioncxx . . $ _GtkPaned#max_position. != old_max_position) |
| 1973 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_MAX_POSITIONcxx . . $ PROP_MAX_POSITION.]); |
| 1974 | g_object_thaw_notifycxx . . $ g_object_thaw_notify(6087475fa43034d3). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned)); |
| 1975 | |
| 1976 | paned->last_allocationcxx . . $ _GtkPaned#last_allocation. = allocation; |
| 1977 | } |
| 1978 | |
| 1979 | static void |
| 1980 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, GtkWidgetcxx . . $ GtkWidget# *widget) |
| 1981 | { |
| 1982 | if (paned->saved_focuscxx . . $ _GtkPaned#saved_focus.) |
| 1983 | g_object_remove_weak_pointercxx . . $ g_object_remove_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->saved_focus), |
| 1984 | (gpointercxx . . $ gpointer# *)&(paned->saved_focuscxx . . $ _GtkPaned#saved_focus.)); |
| 1985 | |
| 1986 | paned->saved_focuscxx . . $ _GtkPaned#saved_focus. = widget; |
| 1987 | |
| 1988 | if (paned->saved_focuscxx . . $ _GtkPaned#saved_focus.) |
| 1989 | g_object_add_weak_pointercxx . . $ g_object_add_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->saved_focus), |
| 1990 | (gpointercxx . . $ gpointer# *)&(paned->saved_focuscxx . . $ _GtkPaned#saved_focus.)); |
| 1991 | } |
| 1992 | |
| 1993 | static void |
| 1994 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (GtkPanedcxx . . $ GtkPaned# *paned, GtkPanedcxx . . $ GtkPaned# *first_paned) |
| 1995 | { |
| 1996 | if (paned->first_panedcxx . . $ _GtkPaned#first_paned.) |
| 1997 | g_object_remove_weak_pointercxx . . $ g_object_remove_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->first_paned), |
| 1998 | (gpointercxx . . $ gpointer# *)&(paned->first_panedcxx . . $ _GtkPaned#first_paned.)); |
| 1999 | |
| 2000 | paned->first_panedcxx . . $ _GtkPaned#first_paned. = first_paned; |
| 2001 | |
| 2002 | if (paned->first_panedcxx . . $ _GtkPaned#first_paned.) |
| 2003 | g_object_add_weak_pointercxx . . $ g_object_add_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->first_paned), |
| 2004 | (gpointercxx . . $ gpointer# *)&(paned->first_panedcxx . . $ _GtkPaned#first_paned.)); |
| 2005 | } |
| 2006 | |
| 2007 | static void |
| 2008 | gtk_paned_set_last_start_child_focuscxx . . $ gtk_paned_set_last_start_child_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, GtkWidgetcxx . . $ GtkWidget# *widget) |
| 2009 | { |
| 2010 | if (paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.) |
| 2011 | g_object_remove_weak_pointercxx . . $ g_object_remove_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->last_start_child_focus), |
| 2012 | (gpointercxx . . $ gpointer# *)&(paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.)); |
| 2013 | |
| 2014 | paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus. = widget; |
| 2015 | |
| 2016 | if (paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.) |
| 2017 | g_object_add_weak_pointercxx . . $ g_object_add_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->last_start_child_focus), |
| 2018 | (gpointercxx . . $ gpointer# *)&(paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.)); |
| 2019 | } |
| 2020 | |
| 2021 | static void |
| 2022 | gtk_paned_set_last_end_child_focuscxx . . $ gtk_paned_set_last_end_child_focus(45f261f20196c2b6). (GtkPanedcxx . . $ GtkPaned# *paned, GtkWidgetcxx . . $ GtkWidget# *widget) |
| 2023 | { |
| 2024 | if (paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.) |
| 2025 | g_object_remove_weak_pointercxx . . $ g_object_remove_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->last_end_child_focus), |
| 2026 | (gpointercxx . . $ gpointer# *)&(paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.)); |
| 2027 | |
| 2028 | paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus. = widget; |
| 2029 | |
| 2030 | if (paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.) |
| 2031 | g_object_add_weak_pointercxx . . $ g_object_add_weak_pointer(e222a8edb8030d7b). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned->last_end_child_focus), |
| 2032 | (gpointercxx . . $ gpointer# *)&(paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.)); |
| 2033 | } |
| 2034 | |
| 2035 | static GtkWidgetcxx . . $ GtkWidget# * |
| 2036 | paned_get_focus_widgetcxx . . $ paned_get_focus_widget(86a8a248504665fa). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2037 | { |
| 2038 | GtkWidgetcxx . . $ GtkWidget# *toplevel; |
| 2039 | |
| 2040 | toplevel = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (gtk_widget_get_root (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))); |
| 2041 | if (GTK_IS_WINDOWcxx . . $ `gtk/gtkwindow.h:41:9`! (toplevel)) |
| 2042 | return gtk_window_get_focuscxx . . $ gtk_window_get_focus(531371cb518b0b30). (GTK_WINDOWcxx . . $ `gtk/gtkwindow.h:39:9`! (toplevel)); |
| 2043 | |
| 2044 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2045 | } |
| 2046 | |
| 2047 | static void |
| 2048 | gtk_paned_set_focus_childcxx . . $ gtk_paned_set_focus_child(4f261c0971c30e7). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 2049 | GtkWidgetcxx . . $ GtkWidget# *child) |
| 2050 | { |
| 2051 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 2052 | GtkWidgetcxx . . $ GtkWidget# *focus_child; |
| 2053 | |
| 2054 | if (child == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 2055 | { |
| 2056 | GtkWidgetcxx . . $ GtkWidget# *last_focus; |
| 2057 | GtkWidgetcxx . . $ GtkWidget# *w; |
| 2058 | |
| 2059 | last_focus = paned_get_focus_widgetcxx . . $ paned_get_focus_widget(86a8a248504665fa). (paned); |
| 2060 | |
| 2061 | if (last_focus) |
| 2062 | { |
| 2063 | /* If there is one or more paned widgets between us and the |
| 2064 | * focus widget, we want the topmost of those as last_focus |
| 2065 | */ |
| 2066 | for (w = last_focus; w && w != GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned); w = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (w)) |
| 2067 | if (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (w)) |
| 2068 | last_focus = w; |
| 2069 | |
| 2070 | if (w == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 2071 | { |
| 2072 | g_warningcxx . . $ `<external>/5169755362661750954/gmessages.h:340:9`! ("Error finding last focus widget of GtkPaned %p, " |
| 2073 | "gtk_paned_set_focus_child was called on widget %p " |
| 2074 | "which is not child of %p.", |
| 2075 | widget, child, widget); |
| 2076 | return; |
| 2077 | } |
| 2078 | |
| 2079 | focus_child = gtk_widget_get_focus_childcxx . . $ gtk_widget_get_focus_child(ef973e1b01680070). (widget); |
| 2080 | if (focus_child == paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 2081 | gtk_paned_set_last_start_child_focuscxx . . $ gtk_paned_set_last_start_child_focus(45f261f20196c2b6). (paned, last_focus); |
| 2082 | else if (focus_child == paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 2083 | gtk_paned_set_last_end_child_focuscxx . . $ gtk_paned_set_last_end_child_focus(45f261f20196c2b6). (paned, last_focus); |
| 2084 | } |
| 2085 | } |
| 2086 | |
| 2087 | GTK_WIDGET_CLASScxx . . $ `gtk/gtkwidget.h:45:9`! (gtk_paned_parent_class)->set_focus_childcxx . . $ _GtkWidgetClass#set_focus_child. (widget, child); |
| 2088 | } |
| 2089 | |
| 2090 | static void |
| 2091 | gtk_paned_get_cycle_chaincxx . . $ gtk_paned_get_cycle_chain(4755d6123e0c607d). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2092 | GtkDirectionTypecxx . . $ GtkDirectionType# direction, |
| 2093 | GListcxx . . $ GList# **widgets) |
| 2094 | { |
| 2095 | GtkWidgetcxx . . $ GtkWidget# *ancestor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2096 | GtkWidgetcxx . . $ GtkWidget# *focus_child; |
| 2097 | GtkWidgetcxx . . $ GtkWidget# *parent; |
| 2098 | GtkWidgetcxx . . $ GtkWidget# *widget = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned); |
| 2099 | GListcxx . . $ GList# *temp_list = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2100 | GListcxx . . $ GList# *list; |
| 2101 | |
| 2102 | if (paned->in_recursioncxx . . $ _GtkPaned#in_recursion.) |
| 2103 | return; |
| 2104 | |
| 2105 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (widgets != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2106 | |
| 2107 | if (paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus. && |
| 2108 | !gtk_widget_is_ancestorcxx . . $ gtk_widget_is_ancestor(d05965862da967f). (paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus., widget)) |
| 2109 | { |
| 2110 | gtk_paned_set_last_start_child_focuscxx . . $ gtk_paned_set_last_start_child_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2111 | } |
| 2112 | |
| 2113 | if (paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus. && |
| 2114 | !gtk_widget_is_ancestorcxx . . $ gtk_widget_is_ancestor(d05965862da967f). (paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus., widget)) |
| 2115 | { |
| 2116 | gtk_paned_set_last_end_child_focuscxx . . $ gtk_paned_set_last_end_child_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2117 | } |
| 2118 | |
| 2119 | parent = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (widget); |
| 2120 | if (parent) |
| 2121 | ancestor = gtk_widget_get_ancestorcxx . . $ gtk_widget_get_ancestor(b7ba6c2729848898). (parent, GTK_TYPE_PANEDcxx . . $ `gtk/gtkpaned.h:35:9`!); |
| 2122 | |
| 2123 | /* The idea here is that temp_list is a list of widgets we want to cycle |
| 2124 | * to. The list is prioritized so that the first element is our first |
| 2125 | * choice, the next our second, and so on. |
| 2126 | * |
| 2127 | * We can't just use g_list_reverse(), because we want to try |
| 2128 | * paned->last_child?_focus before paned->child?, both when we |
| 2129 | * are going forward and backward. |
| 2130 | */ |
| 2131 | focus_child = gtk_widget_get_focus_childcxx . . $ gtk_widget_get_focus_child(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 2132 | if (direction == GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.) |
| 2133 | { |
| 2134 | if (focus_child == paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 2135 | { |
| 2136 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.); |
| 2137 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->end_childcxx . . $ _GtkPaned#end_child.); |
| 2138 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2139 | } |
| 2140 | else if (focus_child == paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 2141 | { |
| 2142 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2143 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.); |
| 2144 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->start_childcxx . . $ _GtkPaned#start_child.); |
| 2145 | } |
| 2146 | else |
| 2147 | { |
| 2148 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.); |
| 2149 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->start_childcxx . . $ _GtkPaned#start_child.); |
| 2150 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.); |
| 2151 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->end_childcxx . . $ _GtkPaned#end_child.); |
| 2152 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2153 | } |
| 2154 | } |
| 2155 | else |
| 2156 | { |
| 2157 | if (focus_child == paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 2158 | { |
| 2159 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2160 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.); |
| 2161 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->end_childcxx . . $ _GtkPaned#end_child.); |
| 2162 | } |
| 2163 | else if (focus_child == paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 2164 | { |
| 2165 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.); |
| 2166 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->start_childcxx . . $ _GtkPaned#start_child.); |
| 2167 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2168 | } |
| 2169 | else |
| 2170 | { |
| 2171 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_end_child_focuscxx . . $ _GtkPaned#last_end_child_focus.); |
| 2172 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->end_childcxx . . $ _GtkPaned#end_child.); |
| 2173 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->last_start_child_focuscxx . . $ _GtkPaned#last_start_child_focus.); |
| 2174 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, paned->start_childcxx . . $ _GtkPaned#start_child.); |
| 2175 | temp_list = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (temp_list, ancestor); |
| 2176 | } |
| 2177 | } |
| 2178 | |
| 2179 | /* Walk the list and expand all the paned widgets. */ |
| 2180 | for (list = temp_list; list != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; list = list->nextcxx . . $ _GList#next.) |
| 2181 | { |
| 2182 | widget = list->datacxx . . $ _GList#data.; |
| 2183 | |
| 2184 | if (widget) |
| 2185 | { |
| 2186 | if (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (widget)) |
| 2187 | { |
| 2188 | paned->in_recursioncxx . . $ _GtkPaned#in_recursion. = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2189 | gtk_paned_get_cycle_chaincxx . . $ gtk_paned_get_cycle_chain(4755d6123e0c607d). (GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget), direction, widgets); |
| 2190 | paned->in_recursioncxx . . $ _GtkPaned#in_recursion. = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 2191 | } |
| 2192 | else |
| 2193 | { |
| 2194 | *widgets = g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (*widgets, widget); |
| 2195 | } |
| 2196 | } |
| 2197 | } |
| 2198 | |
| 2199 | g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (temp_list); |
| 2200 | } |
| 2201 | |
| 2202 | static gbooleancxx . . $ gboolean# |
| 2203 | gtk_paned_cycle_child_focuscxx . . $ gtk_paned_cycle_child_focus(ed5db63f8a5d3c2b). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2204 | gbooleancxx . . $ gboolean# reversed) |
| 2205 | { |
| 2206 | GListcxx . . $ GList# *cycle_chain = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2207 | GListcxx . . $ GList# *list; |
| 2208 | |
| 2209 | GtkDirectionTypecxx . . $ GtkDirectionType# direction = reversed? GTK_DIR_TAB_BACKWARDcxx . . $ GTK_DIR_TAB_BACKWARD. : GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.; |
| 2210 | |
| 2211 | /* ignore f6 if the handle is focused */ |
| 2212 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2213 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2214 | |
| 2215 | /* we can't just let the event propagate up the hierarchy, |
| 2216 | * because the paned will want to cycle focus _unless_ an |
| 2217 | * ancestor paned handles the event |
| 2218 | */ |
| 2219 | gtk_paned_get_cycle_chaincxx . . $ gtk_paned_get_cycle_chain(4755d6123e0c607d). (paned, direction, &cycle_chain); |
| 2220 | |
| 2221 | for (list = cycle_chain; list != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; list = list->nextcxx . . $ _GList#next.) |
| 2222 | if (gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (list->data), direction)) |
| 2223 | break; |
| 2224 | |
| 2225 | g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (cycle_chain); |
| 2226 | |
| 2227 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2228 | } |
| 2229 | |
| 2230 | static void |
| 2231 | get_child_panescxx . . $ get_child_panes(eb7031d9bdc05e7c). (GtkWidgetcxx . . $ GtkWidget# *widget, |
| 2232 | GListcxx . . $ GList# **panes) |
| 2233 | { |
| 2234 | if (!widget || !gtk_widget_get_realizedcxx . . $ gtk_widget_get_realized(9247ef2dc26c5426). (widget)) |
| 2235 | return; |
| 2236 | |
| 2237 | if (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (widget)) |
| 2238 | { |
| 2239 | GtkPanedcxx . . $ GtkPaned# *paned = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (widget); |
| 2240 | |
| 2241 | get_child_panescxx . . $ get_child_panes(eb7031d9bdc05e7c). (paned->start_childcxx . . $ _GtkPaned#start_child., panes); |
| 2242 | *panes = g_list_prependcxx . . $ g_list_prepend(35007086a6b2ba1c). (*panes, widget); |
| 2243 | get_child_panescxx . . $ get_child_panes(eb7031d9bdc05e7c). (paned->end_childcxx . . $ _GtkPaned#end_child., panes); |
| 2244 | } |
| 2245 | else |
| 2246 | { |
| 2247 | GtkWidgetcxx . . $ GtkWidget# *child; |
| 2248 | |
| 2249 | for (child = gtk_widget_get_first_childcxx . . $ gtk_widget_get_first_child(ef973e1b01680070). (widget); |
| 2250 | child != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2251 | child = gtk_widget_get_next_siblingcxx . . $ gtk_widget_get_next_sibling(ef973e1b01680070). (child)) |
| 2252 | get_child_panescxx . . $ get_child_panes(eb7031d9bdc05e7c). (child, panes); |
| 2253 | } |
| 2254 | } |
| 2255 | |
| 2256 | static GListcxx . . $ GList# * |
| 2257 | get_all_panescxx . . $ get_all_panes(e31b78edabe89e19). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2258 | { |
| 2259 | GtkPanedcxx . . $ GtkPaned# *topmost = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2260 | GListcxx . . $ GList# *result = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2261 | GtkWidgetcxx . . $ GtkWidget# *w; |
| 2262 | |
| 2263 | for (w = GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned); w != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; w = gtk_widget_get_parentcxx . . $ gtk_widget_get_parent(ef973e1b01680070). (w)) |
| 2264 | { |
| 2265 | if (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (w)) |
| 2266 | topmost = GTK_PANEDcxx . . $ `gtk/gtkpaned.h:36:9`! (w); |
| 2267 | } |
| 2268 | |
| 2269 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (topmost); |
| 2270 | |
| 2271 | get_child_panescxx . . $ get_child_panes(eb7031d9bdc05e7c). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (topmost), &result); |
| 2272 | |
| 2273 | return g_list_reversecxx . . $ g_list_reverse(e31b64636014b719). (result); |
| 2274 | } |
| 2275 | |
| 2276 | static void |
| 2277 | gtk_paned_find_neighbourscxx . . $ gtk_paned_find_neighbours(f1e23ae893ab6947). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2278 | GtkPanedcxx . . $ GtkPaned# **next, |
| 2279 | GtkPanedcxx . . $ GtkPaned# **prev) |
| 2280 | { |
| 2281 | GListcxx . . $ GList# *all_panes; |
| 2282 | GListcxx . . $ GList# *this_link; |
| 2283 | |
| 2284 | all_panes = get_all_panescxx . . $ get_all_panes(e31b78edabe89e19). (paned); |
| 2285 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (all_panes); |
| 2286 | |
| 2287 | this_link = g_list_findcxx . . $ g_list_find(29d4c135b9e7c78b). (all_panes, paned); |
| 2288 | |
| 2289 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (this_link); |
| 2290 | |
| 2291 | if (this_link->nextcxx . . $ _GList#next.) |
| 2292 | *next = this_link->nextcxx . . $ _GList#next.->datacxx . . $ _GList#data.; |
| 2293 | else |
| 2294 | *next = all_panes->datacxx . . $ _GList#data.; |
| 2295 | |
| 2296 | if (this_link->prevcxx . . $ _GList#prev.) |
| 2297 | *prev = this_link->prevcxx . . $ _GList#prev.->datacxx . . $ _GList#data.; |
| 2298 | else |
| 2299 | *prev = g_list_lastcxx . . $ g_list_last(e31b64636014b719). (all_panes)->datacxx . . $ _GList#data.; |
| 2300 | |
| 2301 | g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (all_panes); |
| 2302 | } |
| 2303 | |
| 2304 | static gbooleancxx . . $ gboolean# |
| 2305 | gtk_paned_move_handlecxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2306 | GtkScrollTypecxx . . $ GtkScrollType# scroll) |
| 2307 | { |
| 2308 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2309 | { |
| 2310 | int old_position; |
| 2311 | int new_position; |
| 2312 | int increment; |
| 2313 | |
| 2314 | enumcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).$anonymous_type_2# { |
| 2315 | SINGLE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).SINGLE_STEP_SIZE. = 1, |
| 2316 | PAGE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).PAGE_STEP_SIZE. = 75 |
| 2317 | }; |
| 2318 | |
| 2319 | new_position = old_position = gtk_paned_get_positioncxx . . $ gtk_paned_get_position(5d2e638fa260c3bb). (paned); |
| 2320 | increment = 0; |
| 2321 | |
| 2322 | switch (scroll) |
| 2323 | { |
| 2324 | case GTK_SCROLL_STEP_LEFTcxx . . $ GTK_SCROLL_STEP_LEFT.: |
| 2325 | case GTK_SCROLL_STEP_UPcxx . . $ GTK_SCROLL_STEP_UP.: |
| 2326 | case GTK_SCROLL_STEP_BACKWARDcxx . . $ GTK_SCROLL_STEP_BACKWARD.: |
| 2327 | increment = - SINGLE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).SINGLE_STEP_SIZE.; |
| 2328 | break; |
| 2329 | |
| 2330 | case GTK_SCROLL_STEP_RIGHTcxx . . $ GTK_SCROLL_STEP_RIGHT.: |
| 2331 | case GTK_SCROLL_STEP_DOWNcxx . . $ GTK_SCROLL_STEP_DOWN.: |
| 2332 | case GTK_SCROLL_STEP_FORWARDcxx . . $ GTK_SCROLL_STEP_FORWARD.: |
| 2333 | increment = SINGLE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).SINGLE_STEP_SIZE.; |
| 2334 | break; |
| 2335 | |
| 2336 | case GTK_SCROLL_PAGE_LEFTcxx . . $ GTK_SCROLL_PAGE_LEFT.: |
| 2337 | case GTK_SCROLL_PAGE_UPcxx . . $ GTK_SCROLL_PAGE_UP.: |
| 2338 | case GTK_SCROLL_PAGE_BACKWARDcxx . . $ GTK_SCROLL_PAGE_BACKWARD.: |
| 2339 | increment = - PAGE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).PAGE_STEP_SIZE.; |
| 2340 | break; |
| 2341 | |
| 2342 | case GTK_SCROLL_PAGE_RIGHTcxx . . $ GTK_SCROLL_PAGE_RIGHT.: |
| 2343 | case GTK_SCROLL_PAGE_DOWNcxx . . $ GTK_SCROLL_PAGE_DOWN.: |
| 2344 | case GTK_SCROLL_PAGE_FORWARDcxx . . $ GTK_SCROLL_PAGE_FORWARD.: |
| 2345 | increment = PAGE_STEP_SIZEcxx . . $ gtk_paned_move_handle(a7a04a3e4f04a75c).PAGE_STEP_SIZE.; |
| 2346 | break; |
| 2347 | |
| 2348 | case GTK_SCROLL_STARTcxx . . $ GTK_SCROLL_START.: |
| 2349 | new_position = paned->min_positioncxx . . $ _GtkPaned#min_position.; |
| 2350 | break; |
| 2351 | |
| 2352 | case GTK_SCROLL_ENDcxx . . $ GTK_SCROLL_END.: |
| 2353 | new_position = paned->max_positioncxx . . $ _GtkPaned#max_position.; |
| 2354 | break; |
| 2355 | |
| 2356 | case GTK_SCROLL_NONEcxx . . $ GTK_SCROLL_NONE.: |
| 2357 | case GTK_SCROLL_JUMPcxx . . $ GTK_SCROLL_JUMP.: |
| 2358 | default: |
| 2359 | break; |
| 2360 | } |
| 2361 | |
| 2362 | if (increment) |
| 2363 | { |
| 2364 | if (is_rtlcxx . . $ is_rtl(5d2e638fa260c3bb). (paned)) |
| 2365 | increment = -increment; |
| 2366 | |
| 2367 | new_position = old_position + increment; |
| 2368 | } |
| 2369 | |
| 2370 | new_position = CLAMPcxx . . $ `<external>/12741050725406041920/gmacros.h:984:9`! (new_position, paned->min_position, paned->max_position); |
| 2371 | |
| 2372 | if (old_position != new_position) |
| 2373 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (paned, new_position); |
| 2374 | |
| 2375 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2376 | } |
| 2377 | |
| 2378 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 2379 | } |
| 2380 | |
| 2381 | static void |
| 2382 | gtk_paned_restore_focuscxx . . $ gtk_paned_restore_focus(cff98fb849b3b4d7). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2383 | { |
| 2384 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2385 | { |
| 2386 | if (paned->saved_focuscxx . . $ _GtkPaned#saved_focus. && |
| 2387 | gtk_widget_get_sensitivecxx . . $ gtk_widget_get_sensitive(9247ef2dc26c5426). (paned->saved_focuscxx . . $ _GtkPaned#saved_focus.)) |
| 2388 | { |
| 2389 | gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (paned->saved_focuscxx . . $ _GtkPaned#saved_focus.); |
| 2390 | } |
| 2391 | else |
| 2392 | { |
| 2393 | /* the saved focus is somehow not available for focusing, |
| 2394 | * try |
| 2395 | * 1) tabbing into the paned widget |
| 2396 | * if that didn't work, |
| 2397 | * 2) unset focus for the window if there is one |
| 2398 | */ |
| 2399 | |
| 2400 | if (!gtk_widget_child_focuscxx . . $ gtk_widget_child_focus(8bb1c65c821a69cd). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned), GTK_DIR_TAB_FORWARDcxx . . $ GTK_DIR_TAB_FORWARD.)) |
| 2401 | { |
| 2402 | GtkRootcxx . . $ GtkRoot# *root = gtk_widget_get_rootcxx . . $ gtk_widget_get_root(978ce13b0a79da4). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 2403 | gtk_root_set_focuscxx . . $ gtk_root_set_focus(d74d62aeb616fd70). (root, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2404 | } |
| 2405 | } |
| 2406 | |
| 2407 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2408 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2409 | } |
| 2410 | } |
| 2411 | |
| 2412 | static gbooleancxx . . $ gboolean# |
| 2413 | gtk_paned_accept_positioncxx . . $ gtk_paned_accept_position(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2414 | { |
| 2415 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2416 | { |
| 2417 | paned->original_positioncxx . . $ _GtkPaned#original_position. = -1; |
| 2418 | gtk_paned_restore_focuscxx . . $ gtk_paned_restore_focus(cff98fb849b3b4d7). (paned); |
| 2419 | |
| 2420 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2421 | } |
| 2422 | |
| 2423 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 2424 | } |
| 2425 | |
| 2426 | |
| 2427 | static gbooleancxx . . $ gboolean# |
| 2428 | gtk_paned_cancel_positioncxx . . $ gtk_paned_cancel_position(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2429 | { |
| 2430 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2431 | { |
| 2432 | if (paned->original_positioncxx . . $ _GtkPaned#original_position. != -1) |
| 2433 | { |
| 2434 | gtk_paned_set_positioncxx . . $ gtk_paned_set_position(319472a0d7b2f19e). (paned, paned->original_positioncxx . . $ _GtkPaned#original_position.); |
| 2435 | paned->original_positioncxx . . $ _GtkPaned#original_position. = -1; |
| 2436 | } |
| 2437 | |
| 2438 | gtk_paned_restore_focuscxx . . $ gtk_paned_restore_focus(cff98fb849b3b4d7). (paned); |
| 2439 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2440 | } |
| 2441 | |
| 2442 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 2443 | } |
| 2444 | |
| 2445 | static gbooleancxx . . $ gboolean# |
| 2446 | gtk_paned_cycle_handle_focuscxx . . $ gtk_paned_cycle_handle_focus(ed5db63f8a5d3c2b). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2447 | gbooleancxx . . $ gboolean# reversed) |
| 2448 | { |
| 2449 | GtkPanedcxx . . $ GtkPaned# *next, *prev; |
| 2450 | |
| 2451 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2452 | { |
| 2453 | GtkPanedcxx . . $ GtkPaned# *focus = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 2454 | |
| 2455 | if (!paned->first_panedcxx . . $ _GtkPaned#first_paned.) |
| 2456 | { |
| 2457 | /* The first_pane has disappeared. As an ad-hoc solution, |
| 2458 | * we make the currently focused paned the first_paned. To the |
| 2459 | * user this will seem like the paned cycling has been reset. |
| 2460 | */ |
| 2461 | |
| 2462 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (paned, paned); |
| 2463 | } |
| 2464 | |
| 2465 | gtk_paned_find_neighbourscxx . . $ gtk_paned_find_neighbours(f1e23ae893ab6947). (paned, &next, &prev); |
| 2466 | |
| 2467 | if (reversed && prev && |
| 2468 | prev != paned && paned != paned->first_panedcxx . . $ _GtkPaned#first_paned.) |
| 2469 | { |
| 2470 | focus = prev; |
| 2471 | } |
| 2472 | else if (!reversed && next && |
| 2473 | next != paned && next != paned->first_panedcxx . . $ _GtkPaned#first_paned.) |
| 2474 | { |
| 2475 | focus = next; |
| 2476 | } |
| 2477 | else |
| 2478 | { |
| 2479 | gtk_paned_accept_positioncxx . . $ gtk_paned_accept_position(5d2e638fa260c3bb). (paned); |
| 2480 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2481 | } |
| 2482 | |
| 2483 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`! (focus); |
| 2484 | |
| 2485 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (focus, paned->saved_focuscxx . . $ _GtkPaned#saved_focus.); |
| 2486 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (focus, paned->first_panedcxx . . $ _GtkPaned#first_paned.); |
| 2487 | |
| 2488 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2489 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (paned, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 2490 | |
| 2491 | gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (focus)); |
| 2492 | |
| 2493 | if (!gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2494 | { |
| 2495 | paned->original_positioncxx . . $ _GtkPaned#original_position. = -1; |
| 2496 | paned->original_positioncxx . . $ _GtkPaned#original_position. = gtk_paned_get_positioncxx . . $ gtk_paned_get_position(5d2e638fa260c3bb). (focus); |
| 2497 | } |
| 2498 | } |
| 2499 | else |
| 2500 | { |
| 2501 | GtkPanedcxx . . $ GtkPaned# *focus; |
| 2502 | GtkPanedcxx . . $ GtkPaned# *first; |
| 2503 | GtkWidgetcxx . . $ GtkWidget# *focus_child; |
| 2504 | |
| 2505 | gtk_paned_find_neighbourscxx . . $ gtk_paned_find_neighbours(f1e23ae893ab6947). (paned, &next, &prev); |
| 2506 | focus_child = gtk_widget_get_focus_childcxx . . $ gtk_widget_get_focus_child(ef973e1b01680070). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)); |
| 2507 | |
| 2508 | if (focus_child == paned->start_childcxx . . $ _GtkPaned#start_child.) |
| 2509 | { |
| 2510 | if (reversed) |
| 2511 | { |
| 2512 | focus = prev; |
| 2513 | first = paned; |
| 2514 | } |
| 2515 | else |
| 2516 | { |
| 2517 | focus = paned; |
| 2518 | first = paned; |
| 2519 | } |
| 2520 | } |
| 2521 | else if (focus_child == paned->end_childcxx . . $ _GtkPaned#end_child.) |
| 2522 | { |
| 2523 | if (reversed) |
| 2524 | { |
| 2525 | focus = paned; |
| 2526 | first = next; |
| 2527 | } |
| 2528 | else |
| 2529 | { |
| 2530 | focus = next; |
| 2531 | first = next; |
| 2532 | } |
| 2533 | } |
| 2534 | else |
| 2535 | { |
| 2536 | /* Focus is not inside this paned, and we don't have focus. |
| 2537 | * Presumably this happened because the application wants us |
| 2538 | * to start keyboard navigating. |
| 2539 | */ |
| 2540 | focus = paned; |
| 2541 | |
| 2542 | if (reversed) |
| 2543 | first = paned; |
| 2544 | else |
| 2545 | first = next; |
| 2546 | } |
| 2547 | |
| 2548 | gtk_paned_set_saved_focuscxx . . $ gtk_paned_set_saved_focus(45f261f20196c2b6). (focus, gtk_root_get_focuscxx . . $ gtk_root_get_focus(6cfa63b8db06e3bd). (gtk_widget_get_rootcxx . . $ gtk_widget_get_root(978ce13b0a79da4). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned)))); |
| 2549 | gtk_paned_set_first_panedcxx . . $ gtk_paned_set_first_paned(76faaad4eabc6420). (focus, first); |
| 2550 | paned->original_positioncxx . . $ _GtkPaned#original_position. = gtk_paned_get_positioncxx . . $ gtk_paned_get_position(5d2e638fa260c3bb). (focus); |
| 2551 | |
| 2552 | gtk_widget_grab_focuscxx . . $ gtk_widget_grab_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (focus)); |
| 2553 | } |
| 2554 | |
| 2555 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 2556 | } |
| 2557 | |
| 2558 | static gbooleancxx . . $ gboolean# |
| 2559 | gtk_paned_toggle_handle_focuscxx . . $ gtk_paned_toggle_handle_focus(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2560 | { |
| 2561 | /* This function/signal has the wrong name. It is called when you |
| 2562 | * press Tab or Shift-Tab and what we do is act as if |
| 2563 | * the user pressed Return and then Tab or Shift-Tab |
| 2564 | */ |
| 2565 | if (gtk_widget_is_focuscxx . . $ gtk_widget_is_focus(9247ef2dc26c5426). (GTK_WIDGETcxx . . $ `gtk/gtkwidget.h:44:9`! (paned))) |
| 2566 | gtk_paned_accept_positioncxx . . $ gtk_paned_accept_position(5d2e638fa260c3bb). (paned); |
| 2567 | |
| 2568 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 2569 | } |
| 2570 | |
| 2571 | /** |
| 2572 | * gtk_paned_set_wide_handle: |
| 2573 | * @paned: a `GtkPaned` |
| 2574 | * @wide: the new value for the [[email protected]:wide-handle] property |
| 2575 | * |
| 2576 | * Sets whether the separator should be wide. |
| 2577 | */ |
| 2578 | void |
| 2579 | gtk_paned_set_wide_handlecxx . . $ gtk_paned_set_wide_handle(319472a0d7b2f19e). (GtkPanedcxx . . $ GtkPaned# *paned, |
| 2580 | gbooleancxx . . $ gboolean# wide) |
| 2581 | { |
| 2582 | gbooleancxx . . $ gboolean# old_wide; |
| 2583 | |
| 2584 | g_return_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:652:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned)); |
| 2585 | |
| 2586 | old_wide = gtk_paned_get_wide_handlecxx . . $ gtk_paned_get_wide_handle(5d2e638fa260c3bb). (paned); |
| 2587 | if (old_wide != wide) |
| 2588 | { |
| 2589 | if (wide) |
| 2590 | gtk_widget_add_css_classcxx . . $ gtk_widget_add_css_class(3e0616a87a6c51e5). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., "wide"); |
| 2591 | else |
| 2592 | gtk_widget_remove_css_classcxx . . $ gtk_widget_remove_css_class(3e0616a87a6c51e5). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., "wide"); |
| 2593 | |
| 2594 | g_object_notify_by_pspeccxx . . $ g_object_notify_by_pspec(89706f8943b9e738). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (paned), paned_propscxx . . $ paned_props.[PROP_WIDE_HANDLEcxx . . $ PROP_WIDE_HANDLE.]); |
| 2595 | } |
| 2596 | } |
| 2597 | |
| 2598 | /** |
| 2599 | * gtk_paned_get_wide_handle: |
| 2600 | * @paned: a `GtkPaned` |
| 2601 | * |
| 2602 | * Gets whether the separator should be wide. |
| 2603 | * |
| 2604 | * Returns: %TRUE if the paned should have a wide handle |
| 2605 | */ |
| 2606 | gbooleancxx . . $ gboolean# |
| 2607 | gtk_paned_get_wide_handlecxx . . $ gtk_paned_get_wide_handle(5d2e638fa260c3bb). (GtkPanedcxx . . $ GtkPaned# *paned) |
| 2608 | { |
| 2609 | g_return_val_if_failcxx . . $ `<external>/5169755362661750954/gmessages.h:665:9`! (GTK_IS_PANEDcxx . . $ `gtk/gtkpaned.h:37:9`! (paned), FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!); |
| 2610 | |
| 2611 | return gtk_widget_has_css_classcxx . . $ gtk_widget_has_css_class(7555db9145eb8ad0). (paned->handle_widgetcxx . . $ _GtkPaned#handle_widget., "wide"); |
| 2612 | } |