LiVES  2.4.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
widget-helper.h
Go to the documentation of this file.
1 // widget-helper.h
2 // LiVES
3 // (c) G. Finch 2012 - 2015 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 #ifndef HAS_LIVES_WIDGET_HELPER_H
8 #define HAS_LIVES_WIDGET_HELPER_H
9 
10 
11 #ifndef M_PI
12 #define M_PI 3.1415926536
13 #endif
14 
15 #define LIVES_HAS_GRID_WIDGET 0
16 #define LIVES_HAS_IMAGE_MENU_ITEM 0
17 #define LIVES_HAS_DEVICE_MANAGER 0
18 
19 typedef enum {
24 
25 
26 #define W_PACKING_WIDTH 10 // packing width for widgets with labels
27 #define W_PACKING_HEIGHT 10 // packing height for widgets
28 #define W_BORDER_WIDTH 10 // default border width
29 
30 #define ulong_random() lives_random()
31 
32 #if defined (GUI_GTK) || defined (PAINTER_CAIRO)
33 #include "widget-helper-gtk.h"
34 #endif
35 
36 // basic functions (wrappers for Toolkit functions)
37 
38 // lives_painter_functions
39 
40 lives_painter_t *lives_painter_create(lives_painter_surface_t *target);
41 lives_painter_t *lives_painter_create_from_widget(LiVESWidget *);
42 boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y);
43 boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y);
44 lives_painter_surface_t *lives_painter_image_surface_create(lives_painter_format_t format, int width, int height);
45 lives_painter_surface_t *lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t,
46  int width, int height, int stride);
47 lives_painter_surface_t *lives_painter_surface_create_from_widget(LiVESWidget *, lives_painter_content_t,
48  int width, int height);
49 boolean lives_painter_surface_flush(lives_painter_surface_t *);
50 
51 boolean lives_painter_destroy(lives_painter_t *);
52 
53 boolean lives_painter_new_path(lives_painter_t *);
54 
55 boolean lives_painter_paint(lives_painter_t *);
56 boolean lives_painter_fill(lives_painter_t *);
57 boolean lives_painter_stroke(lives_painter_t *);
58 boolean lives_painter_clip(lives_painter_t *);
59 
60 boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue);
61 boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha);
62 
63 boolean lives_painter_set_line_width(lives_painter_t *, double width);
64 
65 boolean lives_painter_translate(lives_painter_t *, double x, double y);
66 
67 boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height);
68 boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2);
69 boolean lives_painter_line_to(lives_painter_t *, double x, double y);
70 boolean lives_painter_move_to(lives_painter_t *, double x, double y);
71 
72 boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t);
73 
74 boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t);
75 
76 
77 lives_painter_surface_t *lives_painter_get_target(lives_painter_t *);
78 int lives_painter_format_stride_for_width(lives_painter_format_t, int width);
79 
80 uint8_t *lives_painter_image_surface_get_data(lives_painter_surface_t *);
81 int lives_painter_image_surface_get_width(lives_painter_surface_t *);
82 int lives_painter_image_surface_get_height(lives_painter_surface_t *);
83 int lives_painter_image_surface_get_stride(lives_painter_surface_t *);
84 lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *);
85 
86 
87 
88 
89 // utils
90 
91 void widget_helper_init(void);
92 
93 // object funcs.
94 
95 livespointer lives_object_ref(livespointer);
96 boolean lives_object_unref(livespointer);
97 
98 // remove any "floating" reference and add a new ref
99 #ifdef GUI_GTK
100 #if GTK_CHECK_VERSION(3,0,0)
101 livespointer lives_object_ref_sink(livespointer);
102 #else
103 void lives_object_ref_sink(livespointer);
104 #endif
105 #else
106 livespointer lives_object_ref_sink(livespointer);
107 #endif
108 
109 
110 // lives_pixbuf functions
111 
112 int lives_pixbuf_get_width(const LiVESPixbuf *);
113 int lives_pixbuf_get_height(const LiVESPixbuf *);
114 boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *);
115 int lives_pixbuf_get_rowstride(const LiVESPixbuf *);
116 int lives_pixbuf_get_n_channels(const LiVESPixbuf *);
117 unsigned char *lives_pixbuf_get_pixels(const LiVESPixbuf *);
118 const unsigned char *lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *);
119 LiVESPixbuf *lives_pixbuf_new(boolean has_alpha, int width, int height);
120 LiVESPixbuf *lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height,
121  int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
122  livespointer destroy_fn_data);
123 
124 LiVESPixbuf *lives_pixbuf_new_from_file(const char *filename, LiVESError **error);
125 LiVESWidget *lives_image_new_from_pixbuf(LiVESPixbuf *);
126 LiVESPixbuf *lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio,
127  LiVESError **error);
128 
129 
130 LiVESPixbuf *lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height,
131  LiVESInterpType interp_type);
132 
133 boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate);
134 
135 // basic widget fns (TODO - amend all void to return boolean)
136 
137 boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable);
138 
139 
140 #ifdef GUI_GTK
141 
142 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
143 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
144 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
145 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
146 #else
147 ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data);
148 boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data);
149 boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data);
150 #endif
151 
152 boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id);
153 boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id);
154 
155 boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id);
156 boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal);
157 
158 
159 boolean lives_widget_set_sensitive(LiVESWidget *, boolean state);
160 boolean lives_widget_get_sensitive(LiVESWidget *);
161 
162 boolean lives_widget_show(LiVESWidget *);
163 boolean lives_widget_show_all(LiVESWidget *);
164 boolean lives_widget_hide(LiVESWidget *);
165 boolean lives_widget_destroy(LiVESWidget *);
166 
167 boolean lives_widget_queue_draw(LiVESWidget *);
168 boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height);
169 boolean lives_widget_queue_resize(LiVESWidget *);
170 boolean lives_widget_set_size_request(LiVESWidget *, int width, int height);
171 
172 boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent);
173 
174 boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable);
175 
176 LiVESWidget *lives_event_box_new(void);
177 boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set);
178 
179 LiVESWidget *lives_label_new(const char *text);
180 LiVESWidget *lives_label_new_with_mnemonic(const char *text);
181 
182 const char *lives_label_get_text(LiVESLabel *);
183 boolean lives_label_set_text(LiVESLabel *, const char *text);
184 boolean lives_label_set_text_with_mnemonic(LiVESLabel *, const char *text);
185 
186 boolean lives_label_set_markup(LiVESLabel *, const char *markup);
187 boolean lives_label_set_markup_with_mnemonic(LiVESLabel *, const char *markup);
188 
189 boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget);
190 LiVESWidget *lives_label_get_mnemonic_widget(LiVESLabel *);
191 
192 boolean lives_label_set_selectable(LiVESLabel *, boolean setting);
193 
194 
195 LiVESWidget *lives_button_new(void);
196 LiVESWidget *lives_button_new_from_stock(const char *stock_id);
197 LiVESWidget *lives_button_new_with_label(const char *label);
198 LiVESWidget *lives_button_new_with_mnemonic(const char *label);
199 
200 boolean lives_button_set_label(LiVESButton *, const char *label);
201 
202 boolean lives_button_set_use_underline(LiVESButton *, boolean use);
203 boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle);
204 boolean lives_button_set_image(LiVESButton *, LiVESWidget *image);
205 boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus);
206 
207 LiVESWidget *lives_check_button_new(void);
208 LiVESWidget *lives_check_button_new_with_label(const char *label);
209 
210 LiVESWidget *lives_radio_button_new(LiVESSList *group);
211 
212 LiVESWidget *lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits);
213 
214 LiVESResponseType lives_dialog_run(LiVESDialog *);
215 boolean lives_dialog_response(LiVESDialog *, int response);
216 
217 boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
218 boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
219 boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
220 boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
221 
222 boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
223 boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
224 
225 boolean lives_color_parse(const char *spec, LiVESWidgetColor *);
226 
227 LiVESWidgetColor *lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2);
228 
229 LiVESWidget *lives_event_box_new(void);
230 
231 LiVESWidget *lives_image_new(void);
232 LiVESWidget *lives_image_new_from_file(const char *filename);
233 LiVESWidget *lives_image_new_from_stock(const char *stock_id, LiVESIconSize size);
234 
235 boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *);
236 LiVESPixbuf *lives_image_get_pixbuf(LiVESImage *);
237 
238 LiVESWidget *lives_dialog_get_content_area(LiVESDialog *);
239 LiVESWidget *lives_dialog_get_action_area(LiVESDialog *);
240 
241 boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id);
242 
243 LiVESWidget *lives_window_new(LiVESWindowType wintype);
244 boolean lives_window_set_title(LiVESWindow *, const char *title);
245 const char *lives_window_get_title(LiVESWindow *);
246 boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent);
247 
248 boolean lives_window_set_modal(LiVESWindow *, boolean modal);
249 boolean lives_window_set_deletable(LiVESWindow *, boolean deletable);
250 boolean lives_window_set_resizable(LiVESWindow *, boolean resizable);
251 boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below);
252 boolean lives_window_set_decorated(LiVESWindow *, boolean decorated);
253 
254 boolean lives_window_set_default_size(LiVESWindow *, int width, int height);
255 
256 boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *);
257 
258 boolean lives_widget_get_position(LiVESWidget *, int *x, int *y);
259 
260 boolean lives_window_move(LiVESWindow *, int x, int y);
261 boolean lives_window_get_position(LiVESWindow *, int *x, int *y);
262 boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos);
263 boolean lives_window_resize(LiVESWindow *, int width, int height);
264 boolean lives_window_present(LiVESWindow *);
265 boolean lives_window_fullscreen(LiVESWindow *);
266 boolean lives_window_unfullscreen(LiVESWindow *);
267 boolean lives_window_maximize(LiVESWindow *);
268 boolean lives_window_unmaximize(LiVESWindow *);
269 boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting);
270 
271 boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group);
272 boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group);
273 boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group);
274 
275 boolean lives_window_has_toplevel_focus(LiVESWindow *);
276 
277 LiVESAdjustment *lives_adjustment_new(double value, double lower, double upper,
278  double step_increment, double page_increment, double page_size);
279 
280 boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos);
281 boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous);
282 boolean lives_box_set_spacing(LiVESBox *, int spacing);
283 
284 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
285 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
286 
287 LiVESWidget *lives_hbox_new(boolean homogeneous, int spacing);
288 LiVESWidget *lives_vbox_new(boolean homogeneous, int spacing);
289 
290 LiVESWidget *lives_hseparator_new(void);
291 LiVESWidget *lives_vseparator_new(void);
292 
293 LiVESWidget *lives_hbutton_box_new(void);
294 LiVESWidget *lives_vbutton_box_new(void);
295 
296 boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle);
297 boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width);
298 
299 LiVESWidget *lives_hscale_new(LiVESAdjustment *);
300 LiVESWidget *lives_vscale_new(LiVESAdjustment *);
301 
302 LiVESWidget *lives_hpaned_new(void);
303 LiVESWidget *lives_vpaned_new(void);
304 
305 boolean lives_paned_set_position(LiVESPaned *, int pos);
306 boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink);
307 
308 LiVESWidget *lives_hscrollbar_new(LiVESAdjustment *);
309 LiVESWidget *lives_vscrollbar_new(LiVESAdjustment *);
310 
311 LiVESWidget *lives_arrow_new(LiVESArrowType, LiVESShadowType);
312 
313 LiVESWidget *lives_alignment_new(float xalign, float yalign, float xscale, float yscale);
314 boolean lives_alignment_set(LiVESAlignment *, float xalign, float yalign, float xscale, float yscale);
315 
316 LiVESWidget *lives_expander_new_with_mnemonic(const char *label);
317 LiVESWidget *lives_expander_new(const char *label);
318 LiVESWidget *lives_expander_get_label_widget(LiVESExpander *expander);
319 
320 boolean lives_label_set_halignment(LiVESLabel *, float yalign);
321 
322 LiVESWidget *lives_combo_new(void);
323 LiVESWidget *lives_combo_new_with_model(LiVESTreeModel *);
324 LiVESTreeModel *lives_combo_get_model(LiVESCombo *);
325 
326 boolean lives_combo_append_text(LiVESCombo *, const char *text);
327 boolean lives_combo_set_entry_text_column(LiVESCombo *, int column);
328 
329 char *lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED;
330 boolean lives_combo_set_active_text(LiVESCombo *, const char *text);
331 boolean lives_combo_set_active_index(LiVESCombo *, int index);
332 int lives_combo_get_active(LiVESCombo *);
333 boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *);
334 boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *);
335 boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str);
336 
337 LiVESWidget *lives_combo_get_entry(LiVESCombo *);
338 
339 boolean lives_combo_populate(LiVESCombo *, LiVESList *list);
340 
341 LiVESWidget *lives_text_view_new(void);
342 LiVESWidget *lives_text_view_new_with_buffer(LiVESTextBuffer *);
343 LiVESTextBuffer *lives_text_view_get_buffer(LiVESTextView *);
344 boolean lives_text_view_set_editable(LiVESTextView *, boolean setting);
345 boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting);
346 boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting);
347 boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode);
348 boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify);
349 
350 
351 boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *, LiVESTextMark *mark);
352 
353 
354 LiVESTextBuffer *lives_text_buffer_new(void);
355 char *lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars);
356 boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len);
357 
358 boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len);
359 boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len);
360 
361 boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *);
362 boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *);
363 
364 boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *);
365 
366 LiVESTextMark *lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name,
367  const LiVESTextIter *where, boolean left_gravity);
368 boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *);
369 
370 boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end);
371 
372 boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *);
373 
374 
375 boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *, ...);
376 boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *);
377 boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *);
378 LiVESTreePath *lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *);
379 boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent);
380 int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *);
381 boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *);
382 
383 boolean lives_tree_path_free(LiVESTreePath *);
384 LiVESTreePath *lives_tree_path_new_from_string(const char *path);
385 int lives_tree_path_get_depth(LiVESTreePath *);
386 int *lives_tree_path_get_indices(LiVESTreePath *);
387 
388 LiVESTreeStore *lives_tree_store_new(int ncols, ...);
389 boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent);
390 boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *, ...);
391 
392 LiVESWidget *lives_tree_view_new(void);
393 LiVESWidget *lives_tree_view_new_with_model(LiVESTreeModel *);
394 boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *);
395 LiVESTreeModel *lives_tree_view_get_model(LiVESTreeView *);
396 int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *);
397 boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis);
398 LiVESAdjustment *lives_tree_view_get_hadjustment(LiVESTreeView *);
399 LiVESTreeSelection *lives_tree_view_get_selection(LiVESTreeView *);
400 
401 
402 LiVESTreeViewColumn *lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *, ...);
403 boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type);
404 boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth);
405 
406 boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *);
407 boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode);
408 boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *);
409 
410 LiVESListStore *lives_list_store_new(int ncols, ...);
411 boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *, ...);
412 boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position);
413 
414 LiVESCellRenderer *lives_cell_renderer_text_new(void);
415 LiVESCellRenderer *lives_cell_renderer_spin_new(void);
416 LiVESCellRenderer *lives_cell_renderer_toggle_new(void);
417 LiVESCellRenderer *lives_cell_renderer_pixbuf_new(void);
418 
419 LiVESWidget *lives_drawing_area_new(void);
420 
421 int lives_event_get_time(LiVESXEvent *);
422 
423 boolean lives_toggle_button_get_active(LiVESToggleButton *);
424 boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active);
425 boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind);
426 
427 boolean lives_has_icon(const char *stock_id, LiVESIconSize size);
428 
429 void lives_tooltips_set(LiVESWidget *, const char *tip_text);
430 
431 LiVESSList *lives_radio_button_get_group(LiVESRadioButton *);
432 LiVESSList *lives_radio_menu_item_get_group(LiVESRadioMenuItem *);
433 
434 LiVESWidget *lives_widget_get_parent(LiVESWidget *);
435 LiVESWidget *lives_widget_get_toplevel(LiVESWidget *);
436 
437 LiVESXWindow *lives_widget_get_xwindow(LiVESWidget *);
438 boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting);
439 
440 boolean lives_widget_set_can_focus(LiVESWidget *, boolean state);
441 boolean lives_widget_set_can_default(LiVESWidget *, boolean state);
442 boolean lives_widget_set_can_focus_and_default(LiVESWidget *);
443 
444 boolean lives_widget_add_events(LiVESWidget *, int events);
445 boolean lives_widget_set_events(LiVESWidget *, int events);
446 boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods);
447 boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size);
448 
449 boolean lives_container_remove(LiVESContainer *, LiVESWidget *);
450 boolean lives_container_add(LiVESContainer *, LiVESWidget *);
451 boolean lives_container_set_border_width(LiVESContainer *, uint32_t width);
452 
453 boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data);
454 LiVESList *lives_container_get_children(LiVESContainer *);
455 boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child);
456 
457 LiVESWidget *lives_progress_bar_new(void);
458 boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction);
459 boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction);
460 boolean lives_progress_bar_pulse(LiVESProgressBar *);
461 
462 double lives_spin_button_get_value(LiVESSpinButton *);
463 int lives_spin_button_get_value_as_int(LiVESSpinButton *);
464 
465 LiVESAdjustment *lives_spin_button_get_adjustment(LiVESSpinButton *);
466 
467 boolean lives_spin_button_set_value(LiVESSpinButton *, double value);
468 boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max);
469 
470 boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap);
471 
472 boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits);
473 
474 boolean lives_spin_button_update(LiVESSpinButton *);
475 
476 LiVESWidget *lives_color_button_new_with_color(const LiVESWidgetColor *);
477 boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *);
478 boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *);
479 boolean lives_color_button_set_title(LiVESColorButton *, const char *title);
480 boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha);
481 
482 LiVESToolItem *lives_tool_button_new(LiVESWidget *icon_widget, const char *label);
483 LiVESToolItem *lives_tool_item_new(void);
484 boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon);
485 boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label);
486 boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline);
487 
488 LiVESWidget *lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
489  const char *msg_fmt, ...);
490 
491 double lives_ruler_get_value(LiVESRuler *);
492 double lives_ruler_set_value(LiVESRuler *, double value);
493 
494 void lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size);
495 double lives_ruler_set_upper(LiVESRuler *, double value);
496 double lives_ruler_set_lower(LiVESRuler *, double value);
497 
498 LiVESWidget *lives_toolbar_new(void);
499 boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos);
500 boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show);
501 LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *);
502 boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size);
503 boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style);
504 
505 int lives_widget_get_allocation_x(LiVESWidget *);
506 int lives_widget_get_allocation_y(LiVESWidget *);
507 int lives_widget_get_allocation_width(LiVESWidget *);
508 int lives_widget_get_allocation_height(LiVESWidget *);
509 
510 boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state);
511 LiVESWidgetState lives_widget_get_state(LiVESWidget *widget);
512 
513 LiVESWidget *lives_bin_get_child(LiVESBin *);
514 
515 boolean lives_widget_is_sensitive(LiVESWidget *);
516 boolean lives_widget_is_visible(LiVESWidget *);
517 
518 boolean lives_widget_is_realized(LiVESWidget *);
519 
520 double lives_adjustment_get_upper(LiVESAdjustment *);
521 double lives_adjustment_get_lower(LiVESAdjustment *);
522 double lives_adjustment_get_page_size(LiVESAdjustment *);
523 double lives_adjustment_get_value(LiVESAdjustment *);
524 
525 boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper);
526 boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower);
527 boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size);
528 boolean lives_adjustment_set_value(LiVESAdjustment *, double value);
529 
530 boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper);
531 
532 LiVESAdjustment *lives_range_get_adjustment(LiVESRange *);
533 boolean lives_range_set_value(LiVESRange *, double value);
534 boolean lives_range_set_range(LiVESRange *, double min, double max);
535 boolean lives_range_set_increments(LiVESRange *, double step, double page);
536 boolean lives_range_set_inverted(LiVESRange *, boolean invert);
537 
538 double lives_range_get_value(LiVESRange *);
539 
540 boolean lives_editable_set_editable(LiVESEditable *, boolean editable);
541 boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos);
542 
543 
544 LiVESWidget *lives_entry_new(void);
545 boolean lives_entry_set_editable(LiVESEntry *, boolean editable);
546 const char *lives_entry_get_text(LiVESEntry *);
547 boolean lives_entry_set_text(LiVESEntry *, const char *text);
548 boolean lives_entry_set_width_chars(LiVESEntry *, int nchars);
549 boolean lives_entry_set_max_length(LiVESEntry *, int len);
550 boolean lives_entry_set_activates_default(LiVESEntry *, boolean act);
551 boolean lives_entry_set_visibility(LiVESEntry *, boolean vis);
552 boolean lives_entry_set_has_frame(LiVESEntry *, boolean has);
553 
554 double lives_scale_button_get_value(LiVESScaleButton *);
555 
556 LiVESWidget *lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous);
557 boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing);
558 boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing);
559 boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols);
560 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
561  uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
562  uint32_t xpad, uint32_t ypad);
563 
564 #if LIVES_TABLE_IS_GRID
565 LiVESWidget *lives_grid_new(void);
566 boolean lives_grid_set_row_spacing(LiVESGrid *, uint32_t spacing);
567 boolean lives_grid_set_column_spacing(LiVESGrid *, uint32_t spacing);
568 boolean lives_grid_attach_next_to(LiVESGrid *, LiVESWidget *child, LiVESWidget *sibling,
569  LiVESPositionType side, int width, int height);
570 
571 boolean lives_grid_insert_row(LiVESGrid *, int posn);
572 boolean lives_grid_remove_row(LiVESGrid *, int posn);
573 #endif
574 
575 LiVESWidget *lives_frame_new(const char *label);
576 boolean lives_frame_set_label(LiVESFrame *, const char *label);
577 boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *);
578 LiVESWidget *lives_frame_get_label_widget(LiVESFrame *);
579 boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType);
580 
581 LiVESWidget *lives_notebook_new(void);
582 LiVESWidget *lives_notebook_get_nth_page(LiVESNotebook *, int pagenum);
583 int lives_notebook_get_current_page(LiVESNotebook *);
584 boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum);
585 boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel);
586 
587 LiVESWidget *lives_menu_new(void);
588 LiVESWidget *lives_menu_bar_new(void);
589 
590 boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *);
591 
592 boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos);
593 boolean lives_menu_detach(LiVESMenu *);
594 
595 boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos);
596 boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child);
597 boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child);
598 
599 LiVESWidget *lives_menu_item_new(void);
600 LiVESWidget *lives_menu_item_new_with_mnemonic(const char *label);
601 LiVESWidget *lives_menu_item_new_with_label(const char *label);
602 
603 LiVESWidget *lives_check_menu_item_new_with_mnemonic(const char *label);
604 LiVESWidget *lives_check_menu_item_new_with_label(const char *label);
605 LiVESWidget *lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label);
606 LiVESWidget *lives_image_menu_item_new_with_label(const char *label);
607 LiVESWidget *lives_image_menu_item_new_with_mnemonic(const char *label);
608 LiVESWidget *lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group);
609 
610 LiVESToolItem *lives_menu_tool_button_new(LiVESWidget *icon, const char *label);
611 boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu);
612 
613 
614 #if !GTK_CHECK_VERSION(3,10,0)
615 
616 boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image);
617 
618 #endif
619 
620 boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *);
621 
622 boolean lives_menu_item_activate(LiVESMenuItem *);
623 
624 boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state);
625 boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *);
626 
627 boolean lives_menu_set_title(LiVESMenu *, const char *title);
628 
629 
630 int lives_display_get_n_screens(LiVESXDisplay *);
631 
632 
633 char *lives_file_chooser_get_filename(LiVESFileChooser *);
634 LiVESSList *lives_file_chooser_get_filenames(LiVESFileChooser *);
635 
636 boolean lives_widget_grab_focus(LiVESWidget *);
637 boolean lives_widget_grab_default(LiVESWidget *);
638 
639 boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text);
640 
641 boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children);
643 
644 LiVESAccelGroup *lives_accel_group_new(void);
645 boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags,
646  LiVESWidgetClosure *closure);
647 boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure);
648 boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod);
649 
650 boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group,
651  uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
652 
653 boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y);
654 LiVESXWindow *lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y);
655 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask);
656 boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y);
657 
658 LiVESXDisplay *lives_widget_get_display(LiVESWidget *);
660 
661 uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg);
662 
663 
664 LiVESWidget *lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj);
665 LiVESAdjustment *lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *);
666 LiVESAdjustment *lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *);
667 
668 boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy);
669 boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child);
670 
671 boolean lives_xwindow_raise(LiVESXWindow *);
672 boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *);
673 
674 uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data);
675 boolean lives_timer_remove(uint32_t timer);
676 
677 boolean lives_source_remove(ulong handle);
678 
680 
681 int lives_screen_get_width(LiVESXScreen *);
682 int lives_screen_get_height(LiVESXScreen *);
683 
684 boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value);
685 boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype);
686 boolean lives_scale_set_digits(LiVESScale *, int digits);
687 
688 // optional (return TRUE if implemented)
689 
690 boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has);
691 boolean lives_widget_set_hexpand(LiVESWidget *, boolean state);
692 boolean lives_widget_set_vexpand(LiVESWidget *, boolean state);
693 boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show);
694 boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation);
695 boolean lives_window_set_auto_startup_notification(boolean set);
696 
697 
698 
699 
700 // compound functions (composed of basic functions)
701 
702 void lives_painter_set_source_to_bg(lives_painter_t *, LiVESWidget *);
703 
704 LiVESWidget *lives_standard_label_new(const char *text);
705 LiVESWidget *lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget);
706 
707 LiVESWidget *lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip);
708 LiVESWidget *lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup,
709  LiVESBox *, const char *tooltip);
710 LiVESWidget *lives_standard_spin_button_new(const char *labeltext, boolean use_mnemonic, double val, double min,
711  double max, double step, double page, int dp, LiVESBox *,
712  const char *tooltip);
713 LiVESWidget *lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *,
714  const char *tooltip);
715 
716 LiVESWidget *lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *,
717  const char *tooltip);
718 
719 LiVESWidget *lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height);
720 
721 LiVESWidget *lives_standard_hruler_new(void);
722 
723 LiVESWidget *lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child);
724 
725 LiVESWidget *lives_standard_expander_new(const char *label, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child);
726 
727 LiVESWidget *lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume);
728 
729 LiVESWidget *lives_standard_file_button_new(boolean is_dir, const char *def_dir);
730 
731 LiVESXCursor *lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y);
732 
733 // util functions
734 
735 void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state); // normal theme colours
736 void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state); // menu and bars colours (bg only...)
737 
738 void lives_cursor_unref(LiVESXCursor *cursor);
739 
740 boolean lives_widget_context_update(void);
741 
742 LiVESWidget *lives_menu_add_separator(LiVESMenu *menu);
743 
744 void lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *);
745 void lives_widget_get_bg_color(LiVESWidget *, LiVESWidgetColor *);
746 
747 void lives_window_center(LiVESWindow *);
748 
749 boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *);
750 
751 void lives_widget_unparent(LiVESWidget *);
752 
753 void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source);
754 
755 char *lives_text_view_get_text(LiVESTextView *);
756 boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len);
757 
758 
759 boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text);
760 boolean lives_text_view_scroll_onscreen(LiVESTextView *);
761 
762 
763 
764 
765 void lives_general_button_clicked(LiVESButton *, livespointer data_to_free);
766 
767 void lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper,
768  double step_increment, double page_increment);
769 
770 
771 
772 size_t calc_spin_button_width(double min, double max, int dp);
773 
774 int get_box_child_index(LiVESBox *, LiVESWidget *child);
775 
776 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
777 boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *);
778 
779 void toggle_button_toggle(LiVESToggleButton *);
780 
781 // must retain this fn prototype as a callback
782 void set_child_colour(LiVESWidget *widget, livespointer set_all);
783 
784 void unhide_cursor(LiVESXWindow *);
785 void hide_cursor(LiVESXWindow *);
786 
787 void get_border_size(LiVESWidget *win, int *bx, int *by);
788 
789 LiVESWidget *add_hsep_to_box(LiVESBox *);
790 LiVESWidget *add_vsep_to_box(LiVESBox *);
791 
792 LiVESWidget *add_fill_to_box(LiVESBox *);
793 
794 #endif // cplusplus
795 
796 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
797 
798 #define W_MAX_FILLER_LEN 65535
799 
800 
801 typedef enum {
810 
817 
818 void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *);
819 
820 typedef enum {
825 
826 
827 typedef struct {
828  boolean no_gui; // show nothing !
829  boolean swap_label; // swap label/widget position
830  boolean pack_end;
831  boolean line_wrap; // line wrapping for labels
832  boolean non_modal; // non-modal for dialogs
833  boolean expand; // whether spin,check,radio buttons should expand
834  boolean apply_theme; // whether to apply theming to widget
835  double scale; // scale factor for all sizes
836  int packing_width; // default should be W_PACKING_WIDTH
837  int packing_height; // default should be W_PACKING_HEIGHT
838  int border_width; // default should be W_BORDER_WIDTH
839  int filler_len; // length of extra "fill" between widgets
840  LiVESWidget *last_label; // label widget of last standard widget (spin,radio,check,entry,combo) [readonly]
841  LiVESJustification justify; // justify for labels
842  LiVESJustification default_justify;
843 } widget_opts_t;
844 
845 
847 
848 #ifdef NEED_DEF_WIDGET_OPTS
849 
851  FALSE, // no_gui
852  FALSE, // swap_label
853  FALSE, //pack_end
854  FALSE, // line_wrap
855  FALSE, // non_modal
856  LIVES_EXPAND_DEFAULT, // default expand
857  FALSE, // no themeing
858  1.0, // default scale
859  W_PACKING_WIDTH, // def packing width
860  W_PACKING_HEIGHT, // def packing height
861  W_BORDER_WIDTH, // def border width
862  8, // def fill width (in chars)
863  NULL, // last_label
864  LIVES_JUSTIFY_LEFT, // justify
865  LIVES_JUSTIFY_LEFT // default justify
866 };
867 
868 #else
869 
870 extern const widget_opts_t def_widget_opts;
871 
872 //#endif
873 
874 #endif
875 
LIVES_INLINE boolean lives_widget_queue_draw(LiVESWidget *widget)
Definition: widget-helper.c:713
LIVES_INLINE int lives_pixbuf_get_height(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1870
LIVES_INLINE int lives_screen_get_width(LiVESXScreen *screen)
Definition: widget-helper.c:6954
LIVES_INLINE boolean lives_menu_item_set_submenu(LiVESMenuItem *menuitem, LiVESWidget *menu)
Definition: widget-helper.c:5987
LIVES_INLINE LiVESWidgetColor * lives_widget_color_copy(LiVESWidgetColor *c1, const LiVESWidgetColor *c2)
Definition: widget-helper.c:958
LIVES_INLINE boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *tbuff, LiVESTextIter *iter, LiVESTextMark *mark)
Definition: widget-helper.c:2912
LIVES_INLINE boolean lives_window_unfullscreen(LiVESWindow *window)
Definition: widget-helper.c:1554
LIVES_INLINE lives_painter_surface_t * lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t format, int width, int height, int stride)
Definition: widget-helper.c:334
LIVES_INLINE LiVESAdjustment * lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *swindow)
Definition: widget-helper.c:5585
LiVESJustification justify
Definition: widget-helper.h:841
LIVES_INLINE int lives_spin_button_get_value_as_int(LiVESSpinButton *button)
Definition: widget-helper.c:3904
LIVES_INLINE livespointer lives_object_ref(livespointer object)
increase refcount by one
Definition: widget-helper.c:499
LIVES_INLINE LiVESList * lives_container_get_children(LiVESContainer *cont)
Definition: widget-helper.c:3787
LIVES_INLINE LiVESWidget * lives_image_new_from_stock(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:1034
LIVES_INLINE lives_painter_t * lives_painter_create(lives_painter_surface_t *target)
Definition: widget-helper.c:21
LIVES_INLINE LiVESPixbuf * lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height, LiVESInterpType interp_type)
Definition: widget-helper.c:1928
boolean lives_widget_set_can_focus_and_default(LiVESWidget *widget)
Definition: widget-helper.c:8266
LIVES_INLINE boolean lives_painter_surface_flush(lives_painter_surface_t *surf)
Definition: widget-helper.c:321
LIVES_INLINE boolean lives_widget_set_hexpand(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:5678
LIVES_INLINE LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *toolbar)
Definition: widget-helper.c:4252
LIVES_INLINE boolean lives_window_set_keep_below(LiVESWindow *window, boolean set)
Definition: widget-helper.c:1327
LIVES_INLINE boolean lives_grid_set_column_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6315
LIVES_INLINE boolean lives_container_add(LiVESContainer *container, LiVESWidget *widget)
Definition: widget-helper.c:3581
LIVES_INLINE LiVESWidget * lives_hbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2033
LIVES_INLINE LiVESWidget * lives_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5772
LIVES_INLINE LiVESPixbuf * lives_image_get_pixbuf(LiVESImage *image)
Definition: widget-helper.c:1122
Definition: widget-helper.h:807
LIVES_INLINE boolean lives_color_button_get_color(LiVESColorButton *button, LiVESWidgetColor *color)
Definition: widget-helper.c:6665
LIVES_INLINE boolean lives_spin_button_set_range(LiVESSpinButton *button, double min, double max)
Definition: widget-helper.c:3940
LIVES_INLINE boolean lives_widget_set_events(LiVESWidget *widget, int events)
Definition: widget-helper.c:3496
LiVESWidget * add_hsep_to_box(LiVESBox *box)
Definition: widget-helper.c:8282
LIVES_INLINE boolean lives_tree_model_get_iter_first(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4710
LIVES_INLINE boolean lives_window_present(LiVESWindow *window)
Definition: widget-helper.c:1523
LIVES_INLINE LiVESWidget * lives_drawing_area_new(void)
Definition: widget-helper.c:3187
LIVES_INLINE boolean lives_painter_destroy(lives_painter_t *cr)
Definition: widget-helper.c:137
LIVES_INLINE boolean lives_painter_new_path(lives_painter_t *cr)
Definition: widget-helper.c:162
LIVES_INLINE boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:548
LIVES_INLINE boolean lives_widget_hide(LiVESWidget *widget)
Definition: widget-helper.c:674
void lives_painter_set_source_to_bg(lives_painter_t *cr, LiVESWidget *widget)
Definition: widget-helper.c:6995
LIVES_INLINE boolean lives_painter_paint(lives_painter_t *cr)
Definition: widget-helper.c:83
LIVES_INLINE boolean lives_widget_is_visible(LiVESWidget *widget)
Definition: widget-helper.c:3552
LIVES_INLINE boolean lives_paned_pack(int where, LiVESPaned *paned, LiVESWidget *child, boolean resize, boolean shrink)
Definition: widget-helper.c:3172
LIVES_INLINE boolean lives_tree_model_iter_children(LiVESTreeModel *tmod, LiVESTreeIter *titer, LiVESTreeIter *parent)
Definition: widget-helper.c:4752
void get_border_size(LiVESWidget *win, int *bx, int *by)
Definition: widget-helper.c:8233
int packing_width
Definition: widget-helper.h:836
LIVES_INLINE LiVESWidget * lives_alignment_new(float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2348
ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data)
LIVES_INLINE int lives_widget_get_allocation_width(LiVESWidget *widget)
Definition: widget-helper.c:4333
void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *widget)
Definition: widget-helper.c:8081
boolean lives_has_icon(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:7759
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_file(const char *filename, LiVESError **error)
Definition: widget-helper.c:1782
LIVES_INLINE char * lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars)
Definition: widget-helper.c:2811
LIVES_INLINE LiVESWidget * lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj)
Definition: widget-helper.c:5561
LIVES_INLINE boolean lives_text_view_set_justification(LiVESTextView *tview, LiVESJustification justify)
Definition: widget-helper.c:2727
LIVES_INLINE boolean lives_tree_store_append(LiVESTreeStore *tstore, LiVESTreeIter *titer, LiVESTreeIter *parent)
Definition: widget-helper.c:4898
LIVES_INLINE LiVESWidget * lives_combo_new(void)
Definition: widget-helper.c:2442
LIVES_INLINE boolean lives_dialog_add_action_widget(LiVESDialog *dialog, LiVESWidget *widget, int response)
Definition: widget-helper.c:1193
LIVES_INLINE boolean lives_adjustment_set_upper(LiVESAdjustment *adj, double upper)
Definition: widget-helper.c:4487
const widget_opts_t def_widget_opts
LIVES_INLINE const unsigned char * lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1904
LIVES_INLINE LiVESTextBuffer * lives_text_buffer_new(void)
Definition: widget-helper.c:2755
LIVES_INLINE boolean lives_widget_get_sensitive(LiVESWidget *widget)
Definition: widget-helper.c:642
LIVES_INLINE int lives_combo_get_active(LiVESCombo *combo)
Definition: widget-helper.c:2621
LIVES_INLINE boolean lives_accel_group_connect(LiVESAccelGroup *group, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1619
LIVES_INLINE boolean lives_range_set_range(LiVESRange *range, double min, double max)
Definition: widget-helper.c:4589
LIVES_INLINE boolean lives_tree_model_get(LiVESTreeModel *tmod, LiVESTreeIter *titer,...)
Definition: widget-helper.c:4652
LIVES_INLINE LiVESWidget * lives_button_new_with_label(const char *label)
Definition: widget-helper.c:2964
boolean lives_widget_get_preferred_size(LiVESWidget *widget, LiVESRequisition *min_size, LiVESRequisition *nat_size)
Definition: widget-helper.c:3521
LIVES_INLINE boolean lives_widget_show_all(LiVESWidget *widget)
Definition: widget-helper.c:687
LIVES_INLINE boolean lives_menu_set_title(LiVESMenu *menu, const char *title)
Definition: widget-helper.c:6061
LIVES_INLINE boolean lives_widget_get_fg_state_color(LiVESWidget *widget, LiVESWidgetState state, LiVESWidgetColor *color)
Definition: widget-helper.c:941
LIVES_INLINE boolean lives_range_set_value(LiVESRange *range, double value)
Definition: widget-helper.c:4580
LIVES_INLINE boolean lives_spin_button_set_wrap(LiVESSpinButton *button, boolean wrap)
Definition: widget-helper.c:3962
LIVES_INLINE boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set)
Definition: widget-helper.c:1008
LIVES_INLINE LiVESWidget * lives_button_new(void)
Definition: widget-helper.c:2937
LIVES_INLINE void lives_object_ref_sink(livespointer object)
Definition: widget-helper.c:530
LIVES_INLINE boolean lives_text_buffer_set_text(LiVESTextBuffer *tbuff, const char *text, int len)
Definition: widget-helper.c:2798
LIVES_INLINE int lives_tree_view_append_column(LiVESTreeView *tview, LiVESTreeViewColumn *tvcol)
Definition: widget-helper.c:5035
LIVES_INLINE uint32_t lives_accelerator_get_default_mod_mask()
Definition: widget-helper.c:6943
LIVES_INLINE boolean lives_tree_path_free(LiVESTreePath *tpath)
Definition: widget-helper.c:4813
LIVES_INLINE boolean lives_list_store_set(LiVESListStore *lstore, LiVESTreeIter *titer,...)
Definition: widget-helper.c:5228
Definition: widget-helper.h:806
LIVES_INLINE boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *tview, LiVESTextMark *mark)
Definition: widget-helper.c:2740
LIVES_INLINE boolean lives_button_box_set_layout(LiVESButtonBox *bbox, LiVESButtonBoxStyle bstyle)
Definition: widget-helper.c:2195
void set_child_colour(LiVESWidget *widget, livespointer set_allx)
Definition: widget-helper.c:7886
LIVES_INLINE LiVESWidget * lives_image_new_from_pixbuf(LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1096
LIVES_INLINE boolean lives_button_set_label(LiVESButton *button, const char *label)
Definition: widget-helper.c:3060
LIVES_INLINE int lives_event_get_time(LiVESXEvent *event)
Definition: widget-helper.c:3200
LIVES_INLINE boolean lives_widget_set_size_request(LiVESWidget *widget, int width, int height)
Definition: widget-helper.c:756
LIVES_INLINE LiVESWidget * lives_frame_new(const char *label)
Definition: widget-helper.c:6362
LIVES_INLINE LiVESWidget * lives_bin_get_child(LiVESBin *bin)
Definition: widget-helper.c:4410
LIVES_INLINE boolean lives_widget_remove_accelerator(LiVESWidget *widget, LiVESAccelGroup *acgroup, uint32_t accel_key, LiVESXModifierType accel_mods)
Definition: widget-helper.c:3509
LIVES_INLINE boolean lives_window_set_title(LiVESWindow *window, const char *title)
Definition: widget-helper.c:1225
uint8_t * lives_painter_image_surface_get_data(lives_painter_surface_t *surf)
Definition: widget-helper.c:410
LIVES_INLINE LiVESWidget * lives_image_new_from_file(const char *filename)
Definition: widget-helper.c:1076
void lives_spin_button_configure(LiVESSpinButton *spinbutton, double value, double lower, double upper, double step_increment, double page_increment)
Definition: widget-helper.c:7973
LIVES_INLINE boolean lives_adjustment_set_lower(LiVESAdjustment *adj, double lower)
Definition: widget-helper.c:4504
LIVES_INLINE boolean lives_painter_arc(lives_painter_t *cr, double xc, double yc, double radius, double angle1, double angle2)
Definition: widget-helper.c:244
LIVES_INLINE boolean lives_alignment_set(LiVESAlignment *alignment, float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2371
LIVES_INLINE boolean lives_widget_set_base_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:907
LIVES_INLINE boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *window, boolean setting)
Definition: widget-helper.c:1499
LIVES_INLINE boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *toolbutton, LiVESWidget *menu)
Definition: widget-helper.c:5973
LIVES_INLINE boolean lives_color_button_set_color(LiVESColorButton *button, const LiVESWidgetColor *color)
Definition: widget-helper.c:6685
LIVES_INLINE boolean lives_window_maximize(LiVESWindow *window)
Definition: widget-helper.c:1572
LIVES_INLINE boolean lives_window_remove_accel_group(LiVESWindow *window, LiVESAccelGroup *group)
Definition: widget-helper.c:1678
LiVESWidget * add_fill_to_box(LiVESBox *box)
Definition: widget-helper.c:8309
LIVES_INLINE boolean lives_table_attach(LiVESTable *table, LiVESWidget *child, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions, uint32_t xpad, uint32_t ypad)
Definition: widget-helper.c:6593
LIVES_INLINE boolean lives_list_store_insert(LiVESListStore *lstore, LiVESTreeIter *titer, int position)
Definition: widget-helper.c:5266
LiVESJustification default_justify
Definition: widget-helper.h:842
LIVES_INLINE LiVESWidget * lives_check_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5895
LIVES_INLINE boolean lives_timer_remove(uint32_t timer)
Definition: widget-helper.c:6914
lives_cursor_t
Definition: widget-helper.h:801
LIVES_INLINE boolean lives_label_set_text(LiVESLabel *label, const char *text)
Definition: widget-helper.c:5293
LIVES_INLINE boolean lives_text_view_set_cursor_visible(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2697
LiVESWidget * lives_standard_expander_new(const char *ltext, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child)
Definition: widget-helper.c:7667
LIVES_INLINE boolean lives_progress_bar_pulse(LiVESProgressBar *pbar)
Definition: widget-helper.c:3865
LIVES_INLINE boolean lives_display_get_pointer(LiVESXDevice *device, LiVESXDisplay *display, LiVESXScreen **screen, int *x, int *y, LiVESXModifierType *mask)
Definition: widget-helper.c:6811
LIVES_INLINE LiVESTextMark * lives_text_buffer_create_mark(LiVESTextBuffer *tbuff, const char *mark_name, const LiVESTextIter *where, boolean left_gravity)
Definition: widget-helper.c:2867
void resize(double scale)
Definition: main.c:7184
LIVES_INLINE const char * lives_label_get_text(LiVESLabel *label)
Definition: widget-helper.c:5282
LIVES_INLINE boolean lives_tool_button_set_icon_widget(LiVESToolButton *button, LiVESWidget *icon)
Definition: widget-helper.c:4025
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_toggle_new(void)
Definition: widget-helper.c:4181
LIVES_INLINE boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *item)
Definition: widget-helper.c:6028
boolean widget_act_toggle(LiVESWidget *widget, LiVESToggleButton *togglebutton)
Definition: widget-helper.c:7874
int lives_painter_image_surface_get_stride(lives_painter_surface_t *surf)
Definition: widget-helper.c:446
LIVES_INLINE LiVESWidget * lives_notebook_get_nth_page(LiVESNotebook *nbook, int pagenum)
Definition: widget-helper.c:6442
LIVES_INLINE LiVESWidget * lives_entry_new(void)
Definition: widget-helper.c:5446
LIVES_INLINE boolean lives_window_set_decorated(LiVESWindow *window, boolean set)
Definition: widget-helper.c:1351
LIVES_INLINE boolean lives_window_set_screen(LiVESWindow *window, LiVESXScreen *screen)
Definition: widget-helper.c:1389
LIVES_INLINE boolean lives_toolbar_set_style(LiVESToolbar *toolbar, LiVESToolbarStyle style)
Definition: widget-helper.c:4277
boolean lives_combo_populate(LiVESCombo *combo, LiVESList *list)
Definition: widget-helper.c:7033
LIVES_INLINE int lives_pixbuf_get_width(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1859
LIVES_INLINE LiVESTreeModel * lives_tree_view_get_model(LiVESTreeView *tview)
Definition: widget-helper.c:5009
LIVES_INLINE boolean lives_dialog_set_has_separator(LiVESDialog *dialog, boolean has)
Definition: widget-helper.c:5661
LIVES_INLINE boolean lives_toggle_button_set_active(LiVESToggleButton *button, boolean active)
Definition: widget-helper.c:3224
LIVES_INLINE int lives_widget_get_allocation_height(LiVESWidget *widget)
Definition: widget-helper.c:4351
LIVES_INLINE boolean lives_painter_set_fill_rule(lives_painter_t *cr, lives_painter_fill_rule_t fill_rule)
Definition: widget-helper.c:308
boolean swap_label
Definition: widget-helper.h:829
LIVES_INLINE LiVESWidget * lives_image_new(void)
Definition: widget-helper.c:1021
LIVES_INLINE boolean lives_image_menu_item_set_image(LiVESImageMenuItem *item, LiVESWidget *image)
Definition: widget-helper.c:6041
boolean lives_text_view_scroll_onscreen(LiVESTextView *tview)
Definition: widget-helper.c:7933
LIVES_INLINE boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *pbar, double fraction)
Definition: widget-helper.c:3852
LIVES_INLINE boolean lives_window_move(LiVESWindow *window, int x, int y)
Definition: widget-helper.c:1432
LIVES_INLINE boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:599
LIVES_INLINE boolean lives_painter_set_source_surface(lives_painter_t *cr, lives_painter_surface_t *surface, double x, double y)
Definition: widget-helper.c:68
LIVES_INLINE boolean lives_xwindow_set_cursor(LiVESXWindow *xwin, LiVESXCursor *cursor)
Definition: widget-helper.c:5645
LIVES_INLINE boolean lives_label_set_markup_with_mnemonic(LiVESLabel *label, const char *markup)
Definition: widget-helper.c:5338
LIVES_INLINE boolean lives_tree_selection_get_selected(LiVESTreeSelection *tsel, LiVESTreeModel **tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:5149
boolean lives_source_remove(ulong handle)
Definition: widget-helper.c:6929
Definition: widget-helper.h:823
LIVES_INLINE boolean lives_spin_button_update(LiVESSpinButton *button)
Definition: widget-helper.c:3988
boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data)
LIVES_INLINE boolean lives_editable_set_editable(LiVESEditable *editable, boolean is_editable)
Definition: widget-helper.c:5404
LIVES_INLINE boolean lives_toolbar_set_icon_size(LiVESToolbar *toolbar, LiVESIconSize icon_size)
Definition: widget-helper.c:4264
LIVES_INLINE boolean lives_widget_add_events(LiVESWidget *widget, int events)
Definition: widget-helper.c:3482
LIVES_INLINE boolean lives_grid_insert_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6338
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_pixbuf_new(void)
Definition: widget-helper.c:4194
LIVES_INLINE boolean lives_label_set_text_with_mnemonic(LiVESLabel *label, const char *text)
Definition: widget-helper.c:5308
LIVES_INLINE LiVESWidget * lives_button_new_from_stock(const char *stock_id)
Definition: widget-helper.c:2977
LIVES_INLINE boolean lives_menu_shell_append(LiVESMenuShell *menushell, LiVESWidget *child)
Definition: widget-helper.c:6119
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_text_new(void)
Definition: widget-helper.c:4157
LIVES_INLINE boolean lives_toggle_button_get_active(LiVESToggleButton *button)
Definition: widget-helper.c:3213
LIVES_INLINE boolean lives_widget_set_vexpand(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:5694
LiVESWidget * lives_standard_hruler_new(void)
Definition: widget-helper.c:7575
LIVES_INLINE LiVESWidget * lives_dialog_get_action_area(LiVESDialog *dialog)
Definition: widget-helper.c:1176
LIVES_INLINE boolean lives_widget_set_can_default(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:3458
void lives_window_center(LiVESWindow *window)
Definition: widget-helper.c:7839
LIVES_INLINE boolean lives_image_set_from_pixbuf(LiVESImage *image, LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1109
LIVES_INLINE boolean lives_widget_set_sensitive(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:629
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5812
LIVES_INLINE boolean lives_widget_is_sensitive(LiVESWidget *widget)
Definition: widget-helper.c:3537
LIVES_INLINE boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable)
Definition: widget-helper.c:472
LIVES_INLINE boolean lives_widget_set_text_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:890
Definition: widget-helper.h:22
LIVES_INLINE uint64_t lives_widget_get_xwinid(LiVESWidget *widget, const char *msg)
Definition: widget-helper.c:6873
LIVES_INLINE LiVESWidget * lives_hseparator_new(void)
Definition: widget-helper.c:2130
LIVES_INLINE LiVESWidget * lives_expander_new(const char *label)
Definition: widget-helper.c:2403
LIVES_INLINE boolean lives_range_set_inverted(LiVESRange *range, boolean invert)
Definition: widget-helper.c:4623
LIVES_INLINE boolean lives_painter_line_to(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:218
LIVES_INLINE boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:2838
LIVES_INLINE boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate)
Definition: widget-helper.c:1949
LIVES_INLINE boolean lives_table_set_row_spacings(LiVESTable *table, uint32_t spacing)
Definition: widget-helper.c:6531
LIVES_INLINE double lives_adjustment_get_upper(LiVESAdjustment *adj)
Definition: widget-helper.c:4427
LIVES_INLINE LiVESWidget * lives_expander_new_with_mnemonic(const char *label)
Definition: widget-helper.c:2393
LIVES_INLINE boolean lives_box_pack_start(LiVESBox *box, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2072
LIVES_INLINE LiVESToolItem * lives_tool_button_new(LiVESWidget *icon_widget, const char *label)
Definition: widget-helper.c:4001
LiVESWidget * last_label
Definition: widget-helper.h:840
LiVESWidget * lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height)
Definition: widget-helper.c:7504
LIVES_INLINE double lives_scale_button_get_value(LiVESScaleButton *scale)
Definition: widget-helper.c:6249
LiVESWidget * lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget)
Definition: widget-helper.c:7092
LIVES_INLINE boolean lives_container_set_focus_child(LiVESContainer *cont, LiVESWidget *child)
Definition: widget-helper.c:3801
LIVES_INLINE int lives_tree_model_iter_n_children(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4771
boolean label_act_toggle(LiVESWidget *widget, LiVESXEventButton *event, LiVESToggleButton *togglebutton)
Definition: widget-helper.c:7868
LIVES_INLINE boolean lives_tool_button_set_use_underline(LiVESToolButton *button, boolean use_underline)
Definition: widget-helper.c:4050
LiVESWidget * lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7436
int border_width
Definition: widget-helper.h:838
LIVES_INLINE boolean lives_scale_button_set_orientation(LiVESScaleButton *scale, LiVESOrientation orientation)
Definition: widget-helper.c:6228
LIVES_INLINE boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *tbuff, const char *text, int len)
Definition: widget-helper.c:2783
boolean apply_theme
Definition: widget-helper.h:834
boolean lives_combo_set_active_string(LiVESCombo *combo, const char *active_str)
Definition: widget-helper.c:8257
LIVES_INLINE double lives_range_get_value(LiVESRange *range)
Definition: widget-helper.c:4640
lives_expand_t
Definition: widget-helper.h:820
LIVES_INLINE const char * lives_window_get_title(LiVESWindow *window)
Definition: widget-helper.c:1421
LIVES_INLINE lives_painter_surface_t * lives_painter_image_surface_create(lives_painter_format_t format, int width, int height)
Definition: widget-helper.c:369
LIVES_INLINE LiVESTreeSelection * lives_tree_view_get_selection(LiVESTreeView *tview)
Definition: widget-helper.c:5022
LIVES_INLINE LiVESWidget * lives_text_view_new_with_buffer(LiVESTextBuffer *tbuff)
Definition: widget-helper.c:2646
LIVES_INLINE boolean lives_painter_translate(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:176
LIVES_INLINE boolean lives_widget_queue_resize(LiVESWidget *widget)
Definition: widget-helper.c:742
int packing_height
Definition: widget-helper.h:837
LIVES_INLINE boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod)
Definition: widget-helper.c:1704
LIVES_INLINE LiVESWidget * lives_vbutton_box_new(void)
Definition: widget-helper.c:2178
LIVES_INLINE boolean lives_editable_select_region(LiVESEditable *editable, int start_pos, int end_pos)
Definition: widget-helper.c:5429
LIVES_INLINE LiVESWidget * lives_grid_new(void)
Definition: widget-helper.c:6293
LIVES_INLINE boolean lives_window_has_toplevel_focus(LiVESWindow *window)
Definition: widget-helper.c:1719
LIVES_INLINE LiVESWidget * lives_combo_new_with_model(LiVESTreeModel *model)
Definition: widget-helper.c:2458
LIVES_INLINE boolean lives_button_set_use_underline(LiVESButton *button, boolean use)
Definition: widget-helper.c:3079
LIVES_INLINE boolean lives_painter_rectangle(lives_painter_t *cr, double x, double y, double width, double height)
Definition: widget-helper.c:231
LIVES_INLINE LiVESWidget * lives_arrow_new(LiVESArrowType arrow_type, LiVESShadowType shadow_type)
Definition: widget-helper.c:2332
boolean pack_end
Definition: widget-helper.h:830
void lives_general_button_clicked(LiVESButton *button, livespointer data_to_free)
Definition: widget-helper.c:8273
size_t calc_spin_button_width(double min, double max, int dp)
Definition: widget-helper.c:7251
LIVES_INLINE boolean lives_entry_set_editable(LiVESEntry *entry, boolean editable)
Definition: widget-helper.c:6979
LIVES_INLINE LiVESWidget * lives_dialog_get_content_area(LiVESDialog *dialog)
Definition: widget-helper.c:1159
LIVES_INLINE boolean lives_button_set_relief(LiVESButton *button, LiVESReliefStyle rstyle)
Definition: widget-helper.c:3092
LIVES_INLINE boolean lives_accel_group_disconnect(LiVESAccelGroup *group, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1634
LIVES_INLINE lives_painter_t * lives_painter_create_from_widget(LiVESWidget *widget)
Definition: widget-helper.c:33
LIVES_INLINE boolean lives_progress_bar_set_fraction(LiVESProgressBar *pbar, double fraction)
Definition: widget-helper.c:3837
LIVES_INLINE LiVESWidget * lives_tree_view_new_with_model(LiVESTreeModel *tmod)
Definition: widget-helper.c:4965
LIVES_INLINE boolean lives_text_view_set_wrap_mode(LiVESTextView *tview, LiVESWrapMode wrapmode)
Definition: widget-helper.c:2712
LIVES_INLINE boolean lives_widget_reparent(LiVESWidget *widget, LiVESWidget *new_parent)
Definition: widget-helper.c:799
LIVES_INLINE LiVESSList * lives_radio_menu_item_get_group(LiVESRadioMenuItem *rmenuitem)
Definition: widget-helper.c:5865
LIVES_INLINE boolean lives_painter_clip(lives_painter_t *cr)
Definition: widget-helper.c:123
LIVES_INLINE boolean lives_scale_set_draw_value(LiVESScale *scale, boolean draw_value)
Definition: widget-helper.c:6187
lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *surf)
Definition: widget-helper.c:458
LIVES_INLINE boolean lives_toolbar_set_show_arrow(LiVESToolbar *toolbar, boolean show)
Definition: widget-helper.c:4243
LiVESWidget * lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7353
LIVES_INLINE LiVESXCursor * lives_cursor_new_from_pixbuf(LiVESXDisplay *disp, LiVESPixbuf *pixbuf, int x, int y)
Definition: widget-helper.c:7711
LIVES_INLINE boolean lives_tree_view_set_model(LiVESTreeView *tview, LiVESTreeModel *tmod)
Definition: widget-helper.c:4995
LIVES_INLINE boolean lives_window_get_position(LiVESWindow *window, int *x, int *y)
Definition: widget-helper.c:1468
LIVES_INLINE boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable)
Definition: widget-helper.c:816
LIVES_INLINE boolean lives_text_view_set_accepts_tab(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2684
LIVES_INLINE LiVESWidget * lives_hpaned_new(void)
Definition: widget-helper.c:2245
LIVES_INLINE double lives_adjustment_get_value(LiVESAdjustment *adj)
Definition: widget-helper.c:4475
LIVES_INLINE LiVESWidget * lives_button_new_with_mnemonic(const char *label)
Definition: widget-helper.c:2949
LIVES_INLINE boolean lives_range_set_increments(LiVESRange *range, double step, double page)
Definition: widget-helper.c:4608
void lives_widget_get_fg_color(LiVESWidget *widget, LiVESWidgetColor *color)
Definition: widget-helper.c:7860
LiVESWidget * lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *adj, double volume)
Definition: widget-helper.c:7053
LIVES_INLINE boolean lives_xwindow_raise(LiVESXWindow *xwin)
Definition: widget-helper.c:5632
LIVES_INLINE boolean lives_text_buffer_place_cursor(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:2852
LiVESWidget * lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7108
LIVES_INLINE boolean lives_window_add_accel_group(LiVESWindow *window, LiVESAccelGroup *group)
Definition: widget-helper.c:1665
LIVES_INLINE boolean lives_notebook_set_current_page(LiVESNotebook *nbook, int pagenum)
Definition: widget-helper.c:6472
LIVES_INLINE boolean lives_tree_store_set(LiVESTreeStore *tstore, LiVESTreeIter *titer,...)
Definition: widget-helper.c:4926
LIVES_INLINE boolean lives_menu_item_activate(LiVESMenuItem *menuitem)
Definition: widget-helper.c:6001
LIVES_INLINE boolean lives_painter_set_source_pixbuf(lives_painter_t *cr, const LiVESPixbuf *pixbuf, double pixbuf_x, double pixbuf_y)
Definition: widget-helper.c:51
LIVES_INLINE int * lives_tree_path_get_indices(LiVESTreePath *tpath)
Definition: widget-helper.c:4851
LIVES_INLINE boolean lives_button_set_image(LiVESButton *button, LiVESWidget *image)
Definition: widget-helper.c:3106
lives_painter_surface_t * lives_painter_get_target(lives_painter_t *cr)
Definition: widget-helper.c:384
LIVES_INLINE LiVESWidget * lives_text_view_new(void)
Definition: widget-helper.c:2633
LIVES_INLINE boolean lives_painter_set_line_width(lives_painter_t *cr, double width)
Definition: widget-helper.c:192
LIVES_INLINE boolean lives_label_set_markup(LiVESLabel *label, const char *markup)
Definition: widget-helper.c:5323
LIVES_INLINE boolean lives_widget_get_pointer(LiVESXDevice *device, LiVESWidget *widget, int *x, int *y)
Definition: widget-helper.c:6746
LIVES_INLINE int lives_notebook_get_current_page(LiVESNotebook *nbook)
Definition: widget-helper.c:6459
LIVES_INLINE boolean lives_menu_shell_prepend(LiVESMenuShell *menushell, LiVESWidget *child)
Definition: widget-helper.c:6155
LIVES_INLINE boolean lives_tree_selection_select_iter(LiVESTreeSelection *tsel, LiVESTreeIter *titer)
Definition: widget-helper.c:5181
LIVES_INLINE LiVESWidget * lives_check_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5877
LIVES_INLINE LiVESListStore * lives_list_store_new(int ncols,...)
Definition: widget-helper.c:5194
LIVES_INLINE boolean lives_toolbar_insert(LiVESToolbar *toolbar, LiVESToolItem *item, int pos)
Definition: widget-helper.c:4221
LIVES_INLINE LiVESAdjustment * lives_tree_view_get_hadjustment(LiVESTreeView *tview)
Definition: widget-helper.c:5064
LIVES_INLINE boolean lives_entry_set_text(LiVESEntry *entry, const char *text)
Definition: widget-helper.c:5531
LIVES_INLINE boolean lives_label_set_selectable(LiVESLabel *label, boolean setting)
Definition: widget-helper.c:5381
void hide_cursor(LiVESXWindow *window)
Definition: widget-helper.c:8191
Definition: widget-helper.h:804
boolean non_modal
Definition: widget-helper.h:832
Definition: widget-helper.h:20
LIVES_INLINE LiVESWidget * lives_label_get_mnemonic_widget(LiVESLabel *label)
Definition: widget-helper.c:5368
LIVES_INLINE boolean lives_frame_set_label(LiVESFrame *frame, const char *label)
Definition: widget-helper.c:6375
LIVES_INLINE boolean lives_menu_popup(LiVESMenu *menu, LiVESXEventButton *event)
Definition: widget-helper.c:6077
LIVES_INLINE boolean lives_button_set_focus_on_click(LiVESButton *button, boolean focus)
Definition: widget-helper.c:3132
LIVES_INLINE boolean lives_painter_move_to(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:205
LIVES_INLINE boolean lives_combo_append_text(LiVESCombo *combo, const char *text)
Definition: widget-helper.c:2499
LIVES_INLINE boolean lives_adjustment_clamp_page(LiVESAdjustment *adj, double lower, double upper)
Definition: widget-helper.c:4551
LIVES_INLINE boolean lives_window_fullscreen(LiVESWindow *window)
Definition: widget-helper.c:1536
Definition: widget-helper.h:822
LIVES_INLINE LiVESXWindow * lives_widget_get_xwindow(LiVESWidget *widget)
Definition: widget-helper.c:3395
LIVES_INLINE boolean lives_text_buffer_delete_mark(LiVESTextBuffer *tbuff, LiVESTextMark *mark)
Definition: widget-helper.c:2881
Definition: widget-helper.h:815
void lives_widget_apply_theme2(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:7795
LIVES_INLINE LiVESWidget * lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous)
Definition: widget-helper.c:6500
LIVES_INLINE LiVESWidget * lives_menu_bar_new(void)
Definition: widget-helper.c:5722
LIVES_INLINE LiVESTreePath * lives_tree_model_get_path(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4724
Definition: widget-helper.h:809
LIVES_INLINE LiVESWidget * lives_check_button_new(void)
Definition: widget-helper.c:3276
LIVES_INLINE boolean lives_combo_set_active_index(LiVESCombo *combo, int index)
Definition: widget-helper.c:2571
LIVES_INLINE LiVESAdjustment * lives_spin_button_get_adjustment(LiVESSpinButton *button)
Definition: widget-helper.c:3915
Definition: widget-helper.h:827
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group)
Definition: widget-helper.c:5914
LIVES_INLINE boolean lives_widget_set_bg_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:856
LIVES_INLINE LiVESAdjustment * lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *swindow)
Definition: widget-helper.c:5573
LIVES_INLINE boolean lives_adjustment_set_value(LiVESAdjustment *adj, double value)
Definition: widget-helper.c:4538
LIVES_INLINE boolean lives_window_set_position(LiVESWindow *window, LiVESWindowPosition pos)
Definition: widget-helper.c:1486
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_spin_new(void)
Definition: widget-helper.c:4169
LIVES_INLINE int lives_widget_get_allocation_x(LiVESWidget *widget)
Definition: widget-helper.c:4293
LIVES_INLINE boolean lives_grid_attach_next_to(LiVESGrid *grid, LiVESWidget *child, LiVESWidget *sibling, LiVESPositionType side, int width, int height)
Definition: widget-helper.c:6349
LIVES_INLINE LiVESAccelGroup * lives_accel_group_new(void)
Definition: widget-helper.c:1606
LIVES_INLINE LiVESAdjustment * lives_range_get_adjustment(LiVESRange *range)
Definition: widget-helper.c:4568
LIVES_INLINE double lives_ruler_set_upper(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4127
Definition: widget-helper.h:814
LIVES_INLINE double lives_adjustment_get_page_size(LiVESAdjustment *adj)
Definition: widget-helper.c:4459
LIVES_INLINE boolean lives_entry_set_max_length(LiVESEntry *entry, int len)
Definition: widget-helper.c:5460
LIVES_INLINE boolean lives_window_set_auto_startup_notification(boolean set)
Definition: widget-helper.c:1375
LIVES_INLINE int lives_display_get_n_screens(LiVESXDisplay *disp)
Definition: widget-helper.c:8066
void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source)
Definition: widget-helper.c:7015
LIVES_INLINE LiVESSList * lives_file_chooser_get_filenames(LiVESFileChooser *chooser)
Definition: widget-helper.c:6278
LIVES_INLINE boolean lives_frame_set_shadow_type(LiVESFrame *frame, LiVESShadowType stype)
Definition: widget-helper.c:6416
LIVES_INLINE boolean lives_paned_set_position(LiVESPaned *paned, int pos)
Definition: widget-helper.c:3149
void unhide_cursor(LiVESXWindow *window)
Definition: widget-helper.c:8228
LIVES_INLINE LiVESWidget * lives_window_new(LiVESWindowType wintype)
Definition: widget-helper.c:1208
LIVES_INLINE double lives_ruler_set_lower(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4142
LIVES_INLINE LiVESWidget * lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons, const char *msg_fmt,...)
Definition: widget-helper.c:4082
LIVES_INLINE LiVESTextBuffer * lives_text_view_get_buffer(LiVESTextView *tview)
Definition: widget-helper.c:2658
LIVES_INLINE int lives_pixbuf_get_n_channels(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1881
LIVES_INLINE LiVESWidgetState lives_widget_get_state(LiVESWidget *widget)
Definition: widget-helper.c:4386
LIVES_INLINE lives_painter_surface_t * lives_painter_surface_create_from_widget(LiVESWidget *widget, lives_painter_content_t content, int width, int height)
Definition: widget-helper.c:347
LIVES_INLINE lives_display_t lives_widget_get_display_type(LiVESWidget *widget)
Definition: widget-helper.c:6853
LIVES_INLINE boolean lives_widget_grab_focus(LiVESWidget *widget)
Definition: widget-helper.c:3326
LiVESWidget * lives_standard_label_new(const char *text)
Definition: widget-helper.c:7079
LIVES_INLINE LiVESWidget * lives_toolbar_new(void)
Definition: widget-helper.c:4208
LIVES_INLINE boolean lives_entry_set_width_chars(LiVESEntry *entry, int nchars)
Definition: widget-helper.c:5545
LIVES_INLINE boolean lives_table_set_col_spacings(LiVESTable *table, uint32_t spacing)
Definition: widget-helper.c:6548
LIVES_INLINE boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:2825
LIVES_INLINE LiVESWidget * lives_label_new(const char *text)
Definition: widget-helper.c:2313
LIVES_INLINE boolean lives_widget_add_accelerator(LiVESWidget *widget, const char *accel_signal, LiVESAccelGroup *accel_group, uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags)
Definition: widget-helper.c:1650
LIVES_INLINE boolean lives_widget_queue_draw_area(LiVESWidget *widget, int x, int y, int width, int height)
Definition: widget-helper.c:726
LIVES_INLINE LiVESResponseType lives_dialog_run(LiVESDialog *dialog)
Definition: widget-helper.c:830
#define ulong
Definition: main.h:148
LIVES_INLINE boolean lives_window_resize(LiVESWindow *window, int width, int height)
Definition: widget-helper.c:1513
void lives_widget_apply_theme(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:7789
LIVES_INLINE LiVESTreePath * lives_tree_path_new_from_string(const char *path)
Definition: widget-helper.c:4825
non-standard cursors
Definition: widget-helper.h:812
LIVES_INLINE boolean lives_widget_get_position(LiVESWidget *widget, int *x, int *y)
Definition: widget-helper.c:1450
widget_opts_t widget_opts
Definition: widget-helper.h:846
#define W_BORDER_WIDTH
Definition: widget-helper.h:28
LIVES_INLINE boolean lives_painter_set_source_rgba(lives_painter_t *cr, double red, double green, double blue, double alpha)
Definition: widget-helper.c:293
void lives_tooltips_set(LiVESWidget *, const char *tip_text)
LIVES_INLINE boolean lives_toggle_button_set_mode(LiVESToggleButton *button, boolean drawind)
Definition: widget-helper.c:3237
LIVES_INLINE boolean lives_grid_set_row_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6304
#define W_PACKING_WIDTH
Definition: widget-helper.h:26
double scale
Definition: widget-helper.h:835
LIVES_INLINE boolean lives_widget_set_tooltip_text(LiVESWidget *widget, const char *tip_text)
Definition: widget-helper.c:3306
LIVES_INLINE boolean lives_xwindow_set_keep_above(LiVESXWindow *xwin, boolean setting)
Definition: widget-helper.c:3412
LIVES_INLINE boolean lives_tool_button_set_label_widget(LiVESToolButton *button, LiVESWidget *label)
Definition: widget-helper.c:4037
LIVES_INLINE boolean lives_window_set_deletable(LiVESWindow *window, boolean deletable)
Definition: widget-helper.c:1275
LIVES_INLINE boolean lives_table_resize(LiVESTable *table, uint32_t rows, uint32_t cols)
Definition: widget-helper.c:6565
boolean lives_text_view_set_text(LiVESTextView *textview, const char *text, int len)
Definition: widget-helper.c:7915
LIVES_INLINE LiVESXDisplay * lives_widget_get_display(LiVESWidget *widget)
Definition: widget-helper.c:6774
LIVES_INLINE LiVESWidget * lives_radio_button_new(LiVESSList *group)
Definition: widget-helper.c:3252
LIVES_INLINE boolean lives_painter_fill(lives_painter_t *cr)
Definition: widget-helper.c:95
LIVES_INLINE boolean lives_button_box_set_button_width(LiVESButtonBox *bbox, LiVESWidget *button, int min_width)
Definition: widget-helper.c:8343
LIVES_INLINE LiVESAdjustment * lives_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Definition: widget-helper.c:1964
LIVES_INLINE LiVESWidget * lives_expander_get_label_widget(LiVESExpander *expander)
Definition: widget-helper.c:2413
LIVES_INLINE boolean lives_dialog_response(LiVESDialog *dialog, int response)
Definition: widget-helper.c:843
void lives_widget_get_bg_color(LiVESWidget *widget, LiVESWidgetColor *color)
Definition: widget-helper.c:7856
LIVES_INLINE LiVESWidget * lives_spin_button_new(LiVESAdjustment *adj, double climb_rate, uint32_t digits)
Definition: widget-helper.c:3881
boolean lives_entry_set_completion_from_list(LiVESEntry *entry, LiVESList *xlist)
Definition: widget-helper.c:7802
LIVES_INLINE boolean lives_tree_model_get_iter(LiVESTreeModel *tmod, LiVESTreeIter *titer, LiVESTreePath *tpath)
Definition: widget-helper.c:4690
LIVES_INLINE boolean lives_object_unref(livespointer object)
decrease refcount by one: if refcount==0, object is destroyed
Definition: widget-helper.c:510
Definition: widget-helper.h:821
LIVES_INLINE LiVESToolItem * lives_tool_item_new(void)
Definition: widget-helper.c:4013
LIVES_INLINE boolean lives_window_set_modal(LiVESWindow *window, boolean modal)
Definition: widget-helper.c:1258
LIVES_INLINE boolean lives_spin_button_set_digits(LiVESSpinButton *button, uint32_t digits)
Definition: widget-helper.c:3975
LIVES_INLINE LiVESWidget * lives_standard_file_button_new(boolean is_dir, const char *def_dir)
Definition: widget-helper.c:7700
int get_box_child_index(LiVESBox *box, LiVESWidget *tchild)
Definition: widget-helper.c:7953
LIVES_INLINE boolean lives_menu_reorder_child(LiVESMenu *menu, LiVESWidget *child, int pos)
Definition: widget-helper.c:6090
LIVES_INLINE boolean lives_window_set_default_size(LiVESWindow *window, int width, int height)
Definition: widget-helper.c:1406
LIVES_INLINE boolean lives_widget_show(LiVESWidget *widget)
Definition: widget-helper.c:653
LIVES_INLINE LiVESWidget * lives_vscrollbar_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2297
LIVES_INLINE LiVESTreeStore * lives_tree_store_new(int ncols,...)
Definition: widget-helper.c:4864
LIVES_INLINE double lives_adjustment_get_lower(LiVESAdjustment *adj)
Definition: widget-helper.c:4443
LIVES_INLINE void lives_cursor_unref(LiVESXCursor *cursor)
Definition: widget-helper.c:7775
LIVES_INLINE boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal)
Definition: widget-helper.c:613
LIVES_INLINE boolean lives_display_warp_pointer(LiVESXDevice *device, LiVESXDisplay *display, LiVESXScreen *screen, int x, int y)
Definition: widget-helper.c:6833
LIVES_INLINE LiVESWidget * lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label)
Definition: widget-helper.c:5834
Definition: widget-helper.h:805
LIVES_INLINE boolean lives_spin_button_set_value(LiVESSpinButton *button, double value)
Definition: widget-helper.c:3927
LIVES_INLINE boolean lives_grid_remove_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6326
LIVES_INLINE LiVESXWindow * lives_display_get_window_at_pointer(LiVESXDevice *device, LiVESXDisplay *display, int *win_x, int *win_y)
Definition: widget-helper.c:6790
LIVES_INLINE boolean lives_widget_destroy(LiVESWidget *widget)
Definition: widget-helper.c:700
LIVES_INLINE LiVESWidget * lives_frame_get_label_widget(LiVESFrame *frame)
Definition: widget-helper.c:6403
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5790
LIVES_INLINE LiVESWidget * lives_vbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2052
LIVES_INLINE double lives_spin_button_get_value(LiVESSpinButton *button)
Definition: widget-helper.c:3893
LIVES_INLINE LiVESWidget * lives_notebook_new(void)
Definition: widget-helper.c:6429
LIVES_INLINE boolean lives_scale_set_digits(LiVESScale *scale, int digits)
Definition: widget-helper.c:6213
int lives_painter_image_surface_get_height(lives_painter_surface_t *surf)
Definition: widget-helper.c:434
LIVES_INLINE boolean lives_widget_set_fg_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:873
LIVES_INLINE double lives_ruler_set_value(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4112
LIVES_INLINE double lives_ruler_get_value(LiVESRuler *ruler)
Definition: widget-helper.c:4097
LIVES_INLINE boolean lives_entry_set_has_frame(LiVESEntry *entry, boolean has)
Definition: widget-helper.c:5506
LIVES_INLINE boolean lives_scale_set_value_pos(LiVESScale *scale, LiVESPositionType ptype)
Definition: widget-helper.c:6199
LIVES_INLINE boolean lives_tree_view_set_headers_visible(LiVESTreeView *tview, boolean vis)
Definition: widget-helper.c:5049
LiVESWidget * add_vsep_to_box(LiVESBox *box)
Definition: widget-helper.c:8294
LIVES_INLINE boolean lives_box_set_spacing(LiVESBox *box, int spacing)
Definition: widget-helper.c:2014
LiVESWidget * lives_standard_spin_button_new(const char *labeltext, boolean use_mnemonic, double val, double min, double max, double step, double page, int dp, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7263
LIVES_INLINE boolean lives_xwindow_process_all_updates()
Definition: widget-helper.c:786
LIVES_INLINE boolean lives_painter_set_source_rgb(lives_painter_t *cr, double red, double green, double blue)
Definition: widget-helper.c:278
LIVES_INLINE boolean lives_text_buffer_delete(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end)
Definition: widget-helper.c:2895
Definition: widget-helper.h:803
LiVESWidget * lives_menu_add_separator(LiVESMenu *menu)
Definition: widget-helper.c:8056
LIVES_INLINE boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:572
LIVES_INLINE boolean lives_window_set_transient_for(LiVESWindow *window, LiVESWindow *parent)
Definition: widget-helper.c:1239
LIVES_INLINE boolean lives_combo_get_active_iter(LiVESCombo *combo, LiVESTreeIter *iter)
Definition: widget-helper.c:2602
LIVES_INLINE LiVESWidget * lives_widget_get_parent(LiVESWidget *widget)
Definition: widget-helper.c:3367
int lives_painter_format_stride_for_width(lives_painter_format_t form, int width)
Definition: widget-helper.c:398
LIVES_INLINE boolean lives_container_set_border_width(LiVESContainer *container, uint32_t width)
Definition: widget-helper.c:3727
LIVES_INLINE boolean lives_menu_shell_insert(LiVESMenuShell *menushell, LiVESWidget *child, int pos)
Definition: widget-helper.c:6140
LIVES_INLINE int lives_screen_get_height(LiVESXScreen *screen)
Definition: widget-helper.c:6964
LIVES_INLINE boolean lives_tree_selection_set_mode(LiVESTreeSelection *tsel, LiVESSelectionMode tselmod)
Definition: widget-helper.c:5167
LIVES_INLINE int lives_widget_get_allocation_y(LiVESWidget *widget)
Definition: widget-helper.c:4313
LIVES_INLINE boolean lives_container_foreach(LiVESContainer *cont, LiVESWidgetCallback callback, livespointer cb_data)
Definition: widget-helper.c:3747
LiVESWidget * lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child)
Definition: widget-helper.c:7597
LIVES_INLINE LiVESWidget * lives_hbutton_box_new(void)
Definition: widget-helper.c:2162
LIVES_INLINE void toggle_button_toggle(LiVESToggleButton *tbutton)
Definition: widget-helper.c:7880
LIVES_INLINE boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *item, boolean state)
Definition: widget-helper.c:6015
LIVES_INLINE boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *scrolledwindow, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy)
Definition: widget-helper.c:5597
LIVES_INLINE LiVESWidget * lives_progress_bar_new(void)
Definition: widget-helper.c:3825
Definition: widget-helper.h:813
LIVES_INLINE boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1917
LIVES_INLINE LiVESWidget * lives_tree_view_new(void)
Definition: widget-helper.c:4980
LIVES_INLINE boolean lives_menu_set_accel_group(LiVESMenu *menu, LiVESAccelGroup *group)
Definition: widget-helper.c:1691
LIVES_INLINE boolean lives_text_buffer_insert(LiVESTextBuffer *tbuff, LiVESTextIter *iter, const char *text, int len)
Definition: widget-helper.c:2768
LIVES_INLINE LiVESTreeViewColumn * lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *crend,...)
Definition: widget-helper.c:5082
LIVES_INLINE LiVESWidget * lives_check_button_new_with_label(const char *label)
Definition: widget-helper.c:3288
LIVES_INLINE boolean lives_combo_set_entry_text_column(LiVESCombo *combo, int column)
Definition: widget-helper.c:2538
LIVES_INLINE boolean lives_label_set_halignment(LiVESLabel *label, float yalign)
Definition: widget-helper.c:2424
LIVES_INLINE boolean lives_color_button_set_use_alpha(LiVESColorButton *button, boolean use_alpha)
Definition: widget-helper.c:6721
LIVES_INLINE LiVESWidget * lives_hscrollbar_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2281
LiVESWidget * lives_combo_get_entry(LiVESCombo *widget)
Definition: widget-helper.c:8261
LIVES_INLINE unsigned char * lives_pixbuf_get_pixels(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1893
LIVES_INLINE uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data)
Definition: widget-helper.c:6897
int lives_painter_image_surface_get_width(lives_painter_surface_t *surf)
Definition: widget-helper.c:422
LIVES_INLINE boolean lives_painter_set_operator(lives_painter_t *cr, lives_painter_operator_t op)
Definition: widget-helper.c:262
must be zero
Definition: widget-helper.h:802
#define W_PACKING_HEIGHT
Definition: widget-helper.h:27
LIVES_INLINE boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *item, boolean show)
Definition: widget-helper.c:6169
LIVES_INLINE LiVESWidget * lives_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5753
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio, LiVESError **error)
Definition: widget-helper.c:1804
LIVES_INLINE boolean lives_widget_get_bg_state_color(LiVESWidget *widget, LiVESWidgetState state, LiVESWidgetColor *color)
Definition: widget-helper.c:924
LIVES_INLINE boolean lives_box_pack_end(LiVESBox *box, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2106
LiVESWidget * lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7181
void lives_widget_unparent(LiVESWidget *widget)
Definition: widget-helper.c:7864
LIVES_INLINE const char * lives_entry_get_text(LiVESEntry *entry)
Definition: widget-helper.c:5520
LIVES_INLINE boolean lives_tree_model_iter_next(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4786
LIVES_INLINE boolean lives_label_set_mnemonic_widget(LiVESLabel *label, LiVESWidget *widget)
Definition: widget-helper.c:5353
LIVES_INLINE LiVESTreeModel * lives_combo_get_model(LiVESCombo *combo)
Definition: widget-helper.c:2479
LIVES_INLINE boolean lives_painter_stroke(lives_painter_t *cr)
Definition: widget-helper.c:109
LIVES_INLINE boolean lives_text_view_set_editable(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2670
void widget_helper_init(void)
Definition: widget-helper.c:7728
LIVES_INLINE boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *tvcol, int fwidth)
Definition: widget-helper.c:5135
lives_display_t
Definition: widget-helper.h:19
LIVES_INLINE LiVESWidget * lives_vseparator_new(void)
Definition: widget-helper.c:2146
LIVES_INLINE boolean lives_box_set_homogeneous(LiVESBox *box, boolean homogenous)
Definition: widget-helper.c:1981
LIVES_INLINE boolean lives_color_parse(const char *spec, LiVESWidgetColor *color)
Definition: widget-helper.c:1135
LIVES_INLINE void lives_ruler_set_range(LiVESRuler *ruler, double lower, double upper, double position, double max_size)
Definition: widget-helper.c:4064
LIVES_INLINE LiVESWidget * lives_vpaned_new(void)
Definition: widget-helper.c:2263
boolean expand
Definition: widget-helper.h:833
LiVESWidget * lives_label_new_with_mnemonic(const char *text)
LIVES_INLINE boolean lives_combo_set_active_iter(LiVESCombo *combo, LiVESTreeIter *iter)
Definition: widget-helper.c:2584
LIVES_INLINE LiVESWidget * lives_color_button_new_with_color(const LiVESWidgetColor *color)
Definition: widget-helper.c:6649
LIVES_INLINE LiVESWidget * lives_widget_get_toplevel(LiVESWidget *widget)
Definition: widget-helper.c:3379
LIVES_INLINE boolean lives_widget_grab_default(LiVESWidget *widget)
Definition: widget-helper.c:3338
int filler_len
Definition: widget-helper.h:839
boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *tbuff, const char *text)
Definition: widget-helper.c:7924
LIVES_INLINE boolean lives_box_reorder_child(LiVESBox *box, LiVESWidget *child, int pos)
Definition: widget-helper.c:1993
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height, int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn, livespointer destroy_fn_data)
Definition: widget-helper.c:1756
boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data)
boolean lives_widget_context_update(void)
Definition: widget-helper.c:8010
LIVES_INLINE int lives_pixbuf_get_rowstride(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1848
LIVES_INLINE boolean lives_notebook_set_tab_label(LiVESNotebook *nbook, LiVESWidget *child, LiVESWidget *tablabel)
Definition: widget-helper.c:6486
Definition: widget-helper.h:21
LIVES_INLINE LiVESToolItem * lives_menu_tool_button_new(LiVESWidget *icon, const char *label)
Definition: widget-helper.c:5960
LIVES_INLINE boolean lives_container_remove(LiVESContainer *container, LiVESWidget *widget)
Definition: widget-helper.c:3660
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new(boolean has_alpha, int width, int height)
Definition: widget-helper.c:1734
boolean no_gui
Definition: widget-helper.h:828
LIVES_INLINE char * lives_file_chooser_get_filename(LiVESFileChooser *chooser)
Definition: widget-helper.c:6265
LIVES_INLINE boolean lives_entry_set_visibility(LiVESEntry *entry, boolean vis)
Definition: widget-helper.c:5488
LIVES_INLINE LiVESWidget * lives_menu_item_new(void)
Definition: widget-helper.c:5734
LIVES_INLINE boolean lives_entry_set_activates_default(LiVESEntry *entry, boolean act)
Definition: widget-helper.c:5474
#define WARN_UNUSED
Definition: main.h:267
LIVES_INLINE boolean lives_widget_set_state(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:4369
LIVES_INLINE boolean lives_widget_process_updates(LiVESWidget *widget, boolean upd_children)
Definition: widget-helper.c:771
LIVES_INLINE LiVESWidget * lives_hscale_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2213
LIVES_INLINE boolean lives_window_unmaximize(LiVESWindow *window)
Definition: widget-helper.c:1589
LIVES_INLINE boolean lives_frame_set_label_widget(LiVESFrame *frame, LiVESWidget *widget)
Definition: widget-helper.c:6389
LIVES_INLINE LiVESWidget * lives_vscale_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2229
LIVES_INLINE boolean lives_color_button_set_title(LiVESColorButton *button, const char *title)
Definition: widget-helper.c:6706
LIVES_INLINE boolean lives_widget_is_realized(LiVESWidget *widget)
Definition: widget-helper.c:3567
LIVES_INLINE boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *tvcol, LiVESTreeViewColumnSizing type)
Definition: widget-helper.c:5121
LIVES_INLINE boolean lives_adjustment_set_page_size(LiVESAdjustment *adj, double page_size)
Definition: widget-helper.c:4521
#define FALSE
Definition: videoplugin.h:56
LIVES_INLINE boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *scrolledwindow, LiVESWidget *child)
Definition: widget-helper.c:5613
LIVES_INLINE boolean lives_window_set_resizable(LiVESWindow *window, boolean resizable)
Definition: widget-helper.c:1302
LIVES_INLINE boolean lives_menu_detach(LiVESMenu *menu)
Definition: widget-helper.c:6104
LIVES_INLINE char * lives_combo_get_active_text(LiVESCombo *combo)
Definition: widget-helper.c:2555
boolean line_wrap
Definition: widget-helper.h:831
LIVES_INLINE int lives_tree_path_get_depth(LiVESTreePath *tpath)
Definition: widget-helper.c:4838
char * lives_text_view_get_text(LiVESTextView *textview)
Definition: widget-helper.c:7905
Definition: widget-helper.h:808
LIVES_INLINE boolean lives_widget_set_can_focus(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:3436
LIVES_INLINE LiVESWidget * lives_menu_new(void)
Definition: widget-helper.c:5710
LIVES_INLINE LiVESSList * lives_radio_button_get_group(LiVESRadioButton *rbutton)
Definition: widget-helper.c:3355
LIVES_INLINE LiVESWidget * lives_event_box_new(void)
Definition: widget-helper.c:996
boolean lives_combo_set_active_text(LiVESCombo *, const char *text)