LiVES  3.0.2
widget-helper.h
Go to the documentation of this file.
1 // widget-helper.h
2 // LiVES
3 // (c) G. Finch 2012 - 2018 <salsaman+lives@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 #ifndef IS_SOLARIS
11 #define WIDGET_HELPER_GLOBAL_INLINE inline
12 #define WIDGET_HELPER_LOCAL_INLINE static inline
13 #else
14 #define WIDGET_HELPER_GLOBAL_INLINE
15 #define WIDGET_HELPER_LOCAL_INLINE
16 #endif
17 
18 #ifndef M_PI
19 #define M_PI 3.1415926536
20 #endif
21 
22 #define LIVES_HAS_GRID_WIDGET 0
23 #define LIVES_HAS_IMAGE_MENU_ITEM 0
24 #define LIVES_HAS_DEVICE_MANAGER 0
25 
26 #define MIN_SPINBUTTON_SIZE 6
27 
28 #define LONG_ENTRY_WIDTH ((int)(120.*widget_opts.scale))
29 #define SHORT_ENTRY_WIDTH ((int)(40.*widget_opts.scale))
30 #define MEDIUM_ENTRY_WIDTH ((int)(60.*widget_opts.scale))
31 
32 typedef enum {
38 
39 // values below are multiplied by scale
40 #define W_PACKING_WIDTH 10 // packing width for widgets with labels
41 #define W_PACKING_HEIGHT 6 // packing height for widgets
42 #define W_BORDER_WIDTH 10 // default border width
43 #define W_FILL_LENGTH (W_PACKING_WIDTH * 4) // default extra fill size
44 
45 #define ulong_random() lives_random()
46 
47 #if defined (GUI_GTK) || defined (LIVES_PAINTER_IS_CAIRO)
48 #include "widget-helper-gtk.h"
49 #endif
50 
51 // basic functions (wrappers for Toolkit functions)
52 
53 #ifdef LIVES_LINGO_IS_PANGO
54 // pango stuff. I suppose it should be here on the offchance that it might one day be used with a non-gtk+ toolkit
55 typedef PangoLayout LingoLayout;
56 typedef PangoContext LingoContext;
57 #define lingo_layout_set_alignment(a, b) pango_layout_set_alignment(a, b)
58 
59 #define LINGO_ALIGN_LEFT PANGO_ALIGN_LEFT
60 #define LINGO_ALIGN_RIGHT PANGO_ALIGN_RIGHT
61 #define LINGO_ALIGN_CENTER PANGO_ALIGN_CENTER
62 
63 #define lingo_layout_set_text(a, b, c) pango_layout_set_text(a, b, c)
64 #ifdef LIVES_PAINTER_IS_CAIRO
65 #define lingo_painter_show_layout(a, b) pango_cairo_show_layout(a, b)
66 #endif
67 #ifdef GUI_GTK
68 #define lives_widget_create_lingo_context(a) gtk_widget_create_pango_context(a)
69 #endif
70 #define lingo_layout_get_size(a, b, c, d, e) pango_layout_get_size(a, b, c)
71 #define lingo_layout_new(a) pango_layout_new(a)
72 #define lingo_layout_set_markup(a, b, c) pango_layout_set_markup(a, b, c)
73 
74 #define LINGO_IS_LAYOUT(a) PANGO_IS_LAYOUT(a)
75 #define LINGO_IS_CONTEXT(a) PANGO_IS_CONTEXT(a)
76 
77 #define LINGO_SCALE PANGO_SCALE
78 #endif
79 
80 #ifdef LIVES_PAINTER_IS_CAIRO
81 // likewise with cairo
82 #ifndef GUI_GTK
83 #include <cairo/cairo.h>
84 #endif
85 
86 typedef cairo_t lives_painter_t;
87 typedef cairo_surface_t lives_painter_surface_t;
88 
89 boolean lives_painter_surface_destroy(lives_painter_surface_t *);
90 
91 typedef cairo_format_t lives_painter_format_t;
92 
93 #define LIVES_PAINTER_FORMAT_A1 CAIRO_FORMAT_A1
94 #define LIVES_PAINTER_FORMAT_A8 CAIRO_FORMAT_A8
95 #define LIVES_PAINTER_FORMAT_RGB24 CAIRO_FORMAT_RGB24
96 #define LIVES_PAINTER_FORMAT_ARGB32 CAIRO_FORMAT_ARGB32
97 
98 typedef cairo_content_t lives_painter_content_t; // eg. color, alpha, color+alpha
99 
100 #define LIVES_PAINTER_CONTENT_COLOR CAIRO_CONTENT_COLOR
101 
102 typedef cairo_operator_t lives_painter_operator_t;
103 
104 #define LIVES_PAINTER_OPERATOR_UNKNOWN CAIRO_OPERATOR_OVER
105 #define LIVES_PAINTER_OPERATOR_DEFAULT CAIRO_OPERATOR_OVER
106 
107 #define LIVES_PAINTER_OPERATOR_DEST_OUT CAIRO_OPERATOR_DEST_OUT
108 #if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 10, 0)
109 #define LIVES_PAINTER_OPERATOR_DIFFERENCE CAIRO_OPERATOR_OVER
110 #define LIVES_PAINTER_OPERATOR_OVERLAY CAIRO_OPERATOR_OVER
111 #else
112 #define LIVES_PAINTER_OPERATOR_DIFFERENCE CAIRO_OPERATOR_DIFFERENCE
113 #define LIVES_PAINTER_OPERATOR_OVERLAY CAIRO_OPERATOR_OVERLAY
114 #endif
115 
116 typedef cairo_fill_rule_t lives_painter_fill_rule_t;
117 
118 #define LIVES_PAINTER_FILL_RULE_WINDING CAIRO_FILL_RULE_WINDING
119 #define LIVES_PAINTER_FILL_RULE_EVEN_ODD CAIRO_FILL_RULE_EVEN_ODD
120 
121 #endif
122 
123 // lives_painter_functions
124 
125 lives_painter_t *lives_painter_create_from_surface(lives_painter_surface_t *target);
126 lives_painter_t *lives_painter_create_from_widget(LiVESWidget *);
127 boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y);
128 boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y);
129 lives_painter_surface_t *lives_painter_image_surface_create(lives_painter_format_t format, int width, int height);
130 lives_painter_surface_t *lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t,
131  int width, int height, int stride);
132 boolean lives_painter_surface_flush(lives_painter_surface_t *);
133 
134 boolean lives_painter_destroy(lives_painter_t *);
135 
136 boolean lives_painter_new_path(lives_painter_t *);
137 
138 boolean lives_painter_paint(lives_painter_t *);
139 boolean lives_painter_fill(lives_painter_t *);
140 boolean lives_painter_stroke(lives_painter_t *);
141 boolean lives_painter_clip(lives_painter_t *);
142 
143 boolean lives_painter_render_background(LiVESWidget *, lives_painter_t *, double x, double y, double width, double height);
144 
145 boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue);
146 boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha);
147 
148 boolean lives_painter_set_line_width(lives_painter_t *, double width);
149 
150 boolean lives_painter_translate(lives_painter_t *, double x, double y);
151 
152 boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height);
153 boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2);
154 boolean lives_painter_line_to(lives_painter_t *, double x, double y);
155 boolean lives_painter_move_to(lives_painter_t *, double x, double y);
156 
157 boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t);
158 
159 boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t);
160 
161 lives_painter_surface_t *lives_painter_get_target(lives_painter_t *);
162 int lives_painter_format_stride_for_width(lives_painter_format_t, int width);
163 
164 uint8_t *lives_painter_image_surface_get_data(lives_painter_surface_t *);
165 int lives_painter_image_surface_get_width(lives_painter_surface_t *);
166 int lives_painter_image_surface_get_height(lives_painter_surface_t *);
167 int lives_painter_image_surface_get_stride(lives_painter_surface_t *);
168 lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *);
169 
170 // utils
171 
172 boolean widget_helper_init(void);
173 boolean widget_opts_rescale(double scale);
174 
175 lives_colRGBA64_t lives_rgba_col_new(int red, int green, int blue, int alpha);
176 boolean widget_color_to_lives_rgba(lives_colRGBA64_t *, LiVESWidgetColor *);
177 boolean lives_rgba_to_widget_color(LiVESWidgetColor *, lives_colRGBA64_t *);
178 
181 boolean lives_painter_set_source_rgb_from_lives_widget_color(lives_painter_t *, LiVESWidgetColor *);
182 
185 
186 // object funcs.
187 
188 boolean lives_object_ref(livespointer);
189 boolean lives_object_unref(livespointer);
190 
191 // remove any "floating" reference and add a new ref
192 boolean lives_object_ref_sink(livespointer);
193 
194 // lives_pixbuf functions
195 
196 int lives_pixbuf_get_width(const LiVESPixbuf *);
197 int lives_pixbuf_get_height(const LiVESPixbuf *);
198 boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *);
199 int lives_pixbuf_get_rowstride(const LiVESPixbuf *);
200 int lives_pixbuf_get_n_channels(const LiVESPixbuf *);
201 unsigned char *lives_pixbuf_get_pixels(const LiVESPixbuf *);
202 const unsigned char *lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *);
203 LiVESPixbuf *lives_pixbuf_new(boolean has_alpha, int width, int height);
204 LiVESPixbuf *lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height,
205  int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
206  livespointer destroy_fn_data);
207 
208 LiVESPixbuf *lives_pixbuf_new_from_file(const char *filename, LiVESError **error);
209 LiVESWidget *lives_image_new_from_pixbuf(LiVESPixbuf *);
210 LiVESPixbuf *lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio,
211  LiVESError **error);
212 
213 LiVESPixbuf *lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height,
214  LiVESInterpType interp_type);
215 
216 boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate);
217 
218 // basic widget fns
219 
220 // TODO consider combining get/set value, get/set label, get/set label widget
221 
222 #ifdef GUI_GTK
223 
224 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
225 #define lives_signal_connect_swapped(instance, detailed_signal, c_handler, data) g_signal_connect_swapped(instance, detailed_signal, c_handler, data)
226 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
227 #define lives_signal_handlers_disconnect_by_func(instance, func, data) g_signal_handlers_disconnect_by_func(instance, func, data)
228 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
229 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
230 #else
231 ulong lives_signal_connect(LiVESWidget *, const char *signal_name, ulong funcptr, livespointer data);
232 boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data);
233 boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data);
234 #endif
235 
236 boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id);
237 boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id);
238 
239 boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id);
240 boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal);
241 
242 boolean lives_grab_add(LiVESWidget *);
243 boolean lives_grab_remove(LiVESWidget *);
244 
245 boolean lives_widget_set_sensitive(LiVESWidget *, boolean state);
246 boolean lives_widget_get_sensitive(LiVESWidget *);
247 
248 boolean lives_widget_show(LiVESWidget *);
249 boolean lives_widget_show_now(LiVESWidget *);
250 boolean lives_widget_show_all(LiVESWidget *);
251 boolean lives_widget_hide(LiVESWidget *);
252 boolean lives_widget_destroy(LiVESWidget *);
253 boolean lives_widget_realize(LiVESWidget *);
254 
255 boolean lives_widget_queue_draw(LiVESWidget *);
256 boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height);
257 boolean lives_widget_queue_resize(LiVESWidget *);
258 boolean lives_widget_set_size_request(LiVESWidget *, int width, int height);
259 boolean lives_widget_set_minimum_size(LiVESWidget *, int width, int height);
260 boolean lives_widget_set_maximum_size(LiVESWidget *, int width, int height);
261 boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent);
262 
263 boolean lives_widget_is_ancestor(LiVESWidget *, LiVESWidget *ancestor);
264 
265 boolean lives_widget_set_app_paintable(LiVESWidget *, boolean paintable);
266 
267 boolean lives_widget_has_focus(LiVESWidget *);
268 boolean lives_widget_has_default(LiVESWidget *);
269 
270 boolean lives_widget_set_halign(LiVESWidget *, LiVESAlign align);
271 boolean lives_widget_set_valign(LiVESWidget *, LiVESAlign align);
272 
273 LiVESWidget *lives_event_box_new(void);
274 boolean lives_event_box_set_above_child(LiVESEventBox *, boolean set);
275 
276 LiVESWidget *lives_label_new(const char *text);
277 
278 const char *lives_label_get_text(LiVESLabel *);
279 boolean lives_label_set_text(LiVESLabel *, const char *text);
280 
281 //boolean lives_label_set_xalign(LiVESLabel *, double align);
282 
283 boolean lives_label_set_markup(LiVESLabel *, const char *markup);
284 
285 boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget);
286 LiVESWidget *lives_label_get_mnemonic_widget(LiVESLabel *);
287 
288 boolean lives_label_set_selectable(LiVESLabel *, boolean setting);
289 
291 
292 LiVESWidget *lives_button_new(void);
293 LiVESWidget *lives_button_new_from_stock(const char *stock_id, const char *label);
294 LiVESWidget *lives_button_new_with_label(const char *label);
295 
296 boolean lives_button_set_label(LiVESButton *, const char *label);
297 LiVESWidget *lives_button_get_label_widget(LiVESButton *);
298 
299 boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle);
300 boolean lives_button_set_image(LiVESButton *, LiVESWidget *image);
301 boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus);
302 boolean lives_widget_set_focus_on_click(LiVESWidget *, boolean focus);
303 
305 
306 LiVESWidget *lives_check_button_new(void);
307 LiVESWidget *lives_check_button_new_with_label(const char *label);
308 
309 LiVESWidget *lives_radio_button_new(LiVESSList *group);
310 
311 LiVESWidget *lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits);
312 
313 LiVESResponseType lives_dialog_run(LiVESDialog *);
314 boolean lives_dialog_response(LiVESDialog *, int response);
315 int lives_dialog_get_response_for_widget(LiVESDialog *, LiVESWidget *);
316 
317 boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
318 boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
319 boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
320 boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
321 
322 boolean lives_widget_set_border_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
323 boolean lives_widget_set_outline_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
324 
325 boolean lives_widget_set_font_size(LiVESWidget *, LiVESWidgetState state, const char *size);
326 
327 boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
328 boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
329 
330 boolean lives_color_parse(const char *spec, LiVESWidgetColor *);
331 
332 LiVESWidgetColor *lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2);
333 boolean lives_widget_color_equal(LiVESWidgetColor *, const LiVESWidgetColor *);
334 boolean lives_widget_color_mix(LiVESWidgetColor *c1, const LiVESWidgetColor *c2, float mixval);
335 
336 LiVESWidget *lives_image_new(void);
337 LiVESWidget *lives_image_new_from_file(const char *filename);
338 LiVESWidget *lives_image_new_from_stock(const char *stock_id, LiVESIconSize size);
339 
340 boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *);
341 LiVESPixbuf *lives_image_get_pixbuf(LiVESImage *);
342 
343 boolean lives_widget_set_margin_left(LiVESWidget *, int margin);
344 boolean lives_widget_set_margin_right(LiVESWidget *, int margin);
345 boolean lives_widget_set_margin_top(LiVESWidget *, int margin);
346 boolean lives_widget_set_margin_bottom(LiVESWidget *, int margin);
347 
348 LiVESWidget *lives_dialog_get_content_area(LiVESDialog *);
349 LiVESWidget *lives_dialog_get_action_area(LiVESDialog *);
350 
351 boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id);
352 
353 LiVESWidget *lives_window_new(LiVESWindowType wintype);
354 boolean lives_window_set_title(LiVESWindow *, const char *title);
355 const char *lives_window_get_title(LiVESWindow *);
356 boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent);
357 
358 boolean lives_window_set_modal(LiVESWindow *, boolean modal);
359 boolean lives_window_set_deletable(LiVESWindow *, boolean deletable);
360 boolean lives_window_set_resizable(LiVESWindow *, boolean resizable);
361 boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below);
362 boolean lives_window_set_keep_above(LiVESWindow *, boolean keep_below);
363 boolean lives_window_set_decorated(LiVESWindow *, boolean decorated);
364 
365 boolean lives_window_set_default_size(LiVESWindow *, int width, int height);
366 
367 boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *);
368 
369 boolean lives_widget_get_position(LiVESWidget *, int *x, int *y);
370 
371 LiVESWidget *lives_window_get_focus(LiVESWindow *);
372 
373 boolean lives_window_move(LiVESWindow *, int x, int y);
374 boolean lives_window_get_position(LiVESWindow *, int *x, int *y);
375 boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos);
376 boolean lives_window_resize(LiVESWindow *, int width, int height);
377 boolean lives_window_present(LiVESWindow *);
378 boolean lives_window_fullscreen(LiVESWindow *);
379 boolean lives_window_unfullscreen(LiVESWindow *);
380 boolean lives_window_maximize(LiVESWindow *);
381 boolean lives_window_unmaximize(LiVESWindow *);
382 boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting);
383 
384 boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group);
385 boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group);
386 boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group);
387 
388 LiVESAdjustment *lives_adjustment_new(double value, double lower, double upper,
389  double step_increment, double page_increment, double page_size);
390 
391 boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos);
392 boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous);
393 boolean lives_box_set_spacing(LiVESBox *, int spacing);
394 
395 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
396 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
397 
398 LiVESWidget *lives_hbox_new(boolean homogeneous, int spacing);
399 LiVESWidget *lives_vbox_new(boolean homogeneous, int spacing);
400 
401 LiVESWidget *lives_hseparator_new(void);
402 LiVESWidget *lives_vseparator_new(void);
403 
404 LiVESWidget *lives_hbutton_box_new(void);
405 LiVESWidget *lives_vbutton_box_new(void);
406 
407 boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle);
408 boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width);
409 
410 boolean lives_button_set_border_colour(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
411 
412 LiVESWidget *lives_standard_hscale_new(LiVESAdjustment *);
413 LiVESWidget *lives_vscale_new(LiVESAdjustment *);
414 
415 LiVESWidget *lives_hpaned_new(void);
416 LiVESWidget *lives_vpaned_new(void);
417 
418 boolean lives_paned_set_position(LiVESPaned *, int pos);
419 int lives_paned_get_position(LiVESPaned *);
420 boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink);
421 
422 LiVESWidget *lives_hscrollbar_new(LiVESAdjustment *);
423 LiVESWidget *lives_vscrollbar_new(LiVESAdjustment *);
424 
425 LiVESWidget *lives_arrow_new(LiVESArrowType, LiVESShadowType);
426 
427 LiVESWidget *lives_alignment_new(float xalign, float yalign, float xscale, float yscale);
428 boolean lives_alignment_set(LiVESWidget *, float xalign, float yalign, float xscale, float yscale);
429 
430 LiVESWidget *lives_expander_new(const char *label);
431 LiVESWidget *lives_expander_get_label_widget(LiVESExpander *expander);
432 boolean lives_expander_set_use_markup(LiVESExpander *expander, boolean val);
433 
434 boolean lives_label_set_width_chars(LiVESLabel *label, int nchars);
435 boolean lives_label_set_halignment(LiVESLabel *, float yalign);
436 
437 LiVESWidget *lives_combo_new(void);
438 LiVESWidget *lives_combo_new_with_model(LiVESTreeModel *model);
439 LiVESTreeModel *lives_combo_get_model(LiVESCombo *);
440 boolean lives_combo_set_model(LiVESCombo *, LiVESTreeModel *);
441 
442 boolean lives_combo_append_text(LiVESCombo *, const char *text);
443 boolean lives_combo_set_entry_text_column(LiVESCombo *, int column);
444 
445 char *lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED;
446 boolean lives_combo_set_active_text(LiVESCombo *, const char *text);
447 boolean lives_combo_set_active_index(LiVESCombo *, int index);
448 int lives_combo_get_active(LiVESCombo *);
449 boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *);
450 boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *);
451 boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str);
452 
453 LiVESWidget *lives_combo_get_entry(LiVESCombo *);
454 
455 boolean lives_combo_populate(LiVESCombo *, LiVESList *list);
456 
457 LiVESWidget *lives_text_view_new(void);
458 LiVESWidget *lives_text_view_new_with_buffer(LiVESTextBuffer *);
459 LiVESTextBuffer *lives_text_view_get_buffer(LiVESTextView *);
460 boolean lives_text_view_set_editable(LiVESTextView *, boolean setting);
461 boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting);
462 boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting);
463 boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode);
464 boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify);
465 
466 LiVESTextBuffer *lives_text_buffer_new(void);
467 char *lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars);
468 boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len);
469 
470 boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len);
471 boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len);
472 
473 boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *);
474 boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *);
475 
476 boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *);
477 
478 LiVESTextMark *lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name,
479  const LiVESTextIter *where, boolean left_gravity);
480 boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *);
481 
482 boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end);
483 
484 boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *);
485 
486 boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *, ...);
487 boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *);
488 boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *);
489 LiVESTreePath *lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *);
490 boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent);
491 int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *);
492 boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *);
493 
494 boolean lives_tree_path_free(LiVESTreePath *);
495 LiVESTreePath *lives_tree_path_new_from_string(const char *path);
496 int lives_tree_path_get_depth(LiVESTreePath *);
497 int *lives_tree_path_get_indices(LiVESTreePath *);
498 
499 LiVESTreeStore *lives_tree_store_new(int ncols, ...);
500 boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent);
501 boolean lives_tree_store_prepend(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent);
502 boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *, ...);
503 
504 LiVESWidget *lives_tree_view_new(void);
505 LiVESWidget *lives_tree_view_new_with_model(LiVESTreeModel *);
506 boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *);
507 LiVESTreeModel *lives_tree_view_get_model(LiVESTreeView *);
508 int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *);
509 boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis);
510 LiVESAdjustment *lives_tree_view_get_hadjustment(LiVESTreeView *);
511 LiVESTreeSelection *lives_tree_view_get_selection(LiVESTreeView *);
512 
513 LiVESTreeViewColumn *lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *, ...);
514 boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type);
515 boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth);
516 
517 boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *);
518 boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode);
519 boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *);
520 
521 LiVESListStore *lives_list_store_new(int ncols, ...);
522 boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *, ...);
523 boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position);
524 
525 LiVESCellRenderer *lives_cell_renderer_text_new(void);
526 LiVESCellRenderer *lives_cell_renderer_spin_new(void);
527 LiVESCellRenderer *lives_cell_renderer_toggle_new(void);
528 LiVESCellRenderer *lives_cell_renderer_pixbuf_new(void);
529 
530 LiVESWidget *lives_drawing_area_new(void);
531 
532 int lives_event_get_time(LiVESXEvent *);
533 
534 boolean lives_toggle_button_get_active(LiVESToggleButton *);
535 boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active);
536 boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind);
537 boolean lives_toggle_button_toggle(LiVESToggleButton *);
538 
539 LiVESWidget *lives_toggle_tool_button_new(void);
540 boolean lives_toggle_tool_button_get_active(LiVESToggleToolButton *);
541 boolean lives_toggle_tool_button_set_active(LiVESToggleToolButton *, boolean active);
542 
543 boolean lives_has_icon(const char *stock_id, LiVESIconSize size);
544 
545 LiVESSList *lives_radio_button_get_group(LiVESRadioButton *);
546 LiVESSList *lives_radio_menu_item_get_group(LiVESRadioMenuItem *);
547 
548 LiVESWidget *lives_widget_get_parent(LiVESWidget *);
549 LiVESWidget *lives_widget_get_toplevel(LiVESWidget *);
550 
551 LiVESXWindow *lives_widget_get_xwindow(LiVESWidget *);
552 boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting);
553 
554 boolean lives_widget_set_can_focus(LiVESWidget *, boolean state);
555 boolean lives_widget_set_can_default(LiVESWidget *, boolean state);
556 boolean lives_widget_set_can_focus_and_default(LiVESWidget *);
557 
558 boolean lives_widget_add_events(LiVESWidget *, int events);
559 boolean lives_widget_set_events(LiVESWidget *, int events);
560 boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods);
561 boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size);
562 
563 boolean lives_widget_set_no_show_all(LiVESWidget *, boolean set);
564 
565 boolean lives_container_remove(LiVESContainer *, LiVESWidget *);
566 boolean lives_container_add(LiVESContainer *, LiVESWidget *);
567 boolean lives_container_set_border_width(LiVESContainer *, uint32_t width);
568 
569 boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data);
570 LiVESList *lives_container_get_children(LiVESContainer *);
571 boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child);
572 LiVESWidget *lives_container_get_focus_child(LiVESContainer *);
573 
574 LiVESWidget *lives_progress_bar_new(void);
575 boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction);
576 boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction);
577 boolean lives_progress_bar_pulse(LiVESProgressBar *);
578 
579 double lives_spin_button_get_value(LiVESSpinButton *);
580 int lives_spin_button_get_value_as_int(LiVESSpinButton *);
581 
582 LiVESAdjustment *lives_spin_button_get_adjustment(LiVESSpinButton *);
583 LiVESAdjustment *lives_spin_button_set_adjustment(LiVESSpinButton *, LiVESAdjustment *adj);
584 
585 boolean lives_spin_button_set_value(LiVESSpinButton *, double value);
586 boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max);
587 
588 boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap);
589 
590 boolean lives_spin_button_set_step_increment(LiVESSpinButton *button, double step_increment);
591 boolean lives_spin_button_set_snap_to_ticks(LiVESSpinButton *, boolean snap);
592 boolean lives_spin_button_set_snap_to_multiples(LiVESSpinButton *, double mult);
593 
594 boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits);
595 
596 boolean lives_spin_button_update(LiVESSpinButton *);
597 
598 LiVESWidget *lives_color_button_new_with_color(const LiVESWidgetColor *);
599 boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *);
600 boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *);
601 boolean lives_color_button_set_alpha(LiVESColorButton *, int16_t alpha);
602 int16_t lives_color_button_get_alpha(LiVESColorButton *);
603 boolean lives_color_button_set_title(LiVESColorButton *, const char *title);
604 boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha);
605 
606 LiVESToolItem *lives_tool_button_new(LiVESWidget *icon_widget, const char *label);
607 LiVESToolItem *lives_tool_item_new(void);
608 LiVESToolItem *lives_separator_tool_item_new(void);
609 boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon);
610 boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label);
611 boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline);
612 
613 LiVESWidget *lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
614  const char *msg_fmt, ...);
615 
616 double lives_ruler_get_value(LiVESRuler *);
617 double lives_ruler_set_value(LiVESRuler *, double value);
618 
619 boolean lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size);
620 double lives_ruler_set_upper(LiVESRuler *, double upper);
621 double lives_ruler_set_lower(LiVESRuler *, double lower);
622 
623 LiVESWidget *lives_toolbar_new(void);
624 boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos);
625 boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show);
626 LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *);
627 boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size);
628 boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style);
629 
630 int lives_widget_get_allocation_x(LiVESWidget *);
631 int lives_widget_get_allocation_y(LiVESWidget *);
632 int lives_widget_get_allocation_width(LiVESWidget *);
633 int lives_widget_get_allocation_height(LiVESWidget *);
634 
635 boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state);
636 LiVESWidgetState lives_widget_get_state(LiVESWidget *widget);
637 
638 LiVESWidget *lives_bin_get_child(LiVESBin *);
639 
640 boolean lives_widget_is_sensitive(LiVESWidget *);
641 boolean lives_widget_is_visible(LiVESWidget *);
642 boolean lives_widget_is_realized(LiVESWidget *);
643 
644 double lives_adjustment_get_upper(LiVESAdjustment *);
645 double lives_adjustment_get_lower(LiVESAdjustment *);
646 double lives_adjustment_get_page_size(LiVESAdjustment *);
647 double lives_adjustment_get_step_increment(LiVESAdjustment *);
648 double lives_adjustment_get_value(LiVESAdjustment *);
649 
650 boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper);
651 boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower);
652 boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size);
653 boolean lives_adjustment_set_step_increment(LiVESAdjustment *, double step_increment);
654 boolean lives_adjustment_set_value(LiVESAdjustment *, double value);
655 
656 boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper);
657 
658 LiVESAdjustment *lives_range_get_adjustment(LiVESRange *);
659 boolean lives_range_set_value(LiVESRange *, double value);
660 boolean lives_range_set_range(LiVESRange *, double min, double max);
661 boolean lives_range_set_increments(LiVESRange *, double step, double page);
662 boolean lives_range_set_inverted(LiVESRange *, boolean invert);
663 
664 double lives_range_get_value(LiVESRange *);
665 
666 boolean lives_editable_set_editable(LiVESEditable *, boolean editable);
667 boolean lives_editable_get_editable(LiVESEditable *);
668 boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos);
669 
670 LiVESWidget *lives_entry_new(void);
671 boolean lives_entry_set_editable(LiVESEntry *, boolean editable);
672 boolean lives_entry_get_editable(LiVESEntry *);
673 const char *lives_entry_get_text(LiVESEntry *);
674 boolean lives_entry_set_text(LiVESEntry *, const char *text);
675 boolean lives_entry_set_width_chars(LiVESEntry *, int nchars);
676 boolean lives_entry_set_max_length(LiVESEntry *, int len);
677 boolean lives_entry_set_activates_default(LiVESEntry *, boolean act);
678 boolean lives_entry_get_activates_default(LiVESEntry *);
679 boolean lives_entry_set_visibility(LiVESEntry *, boolean vis);
680 boolean lives_entry_set_has_frame(LiVESEntry *, boolean has);
681 boolean lives_entry_set_alignment(LiVESEntry *, float align);
682 
683 double lives_scale_button_get_value(LiVESScaleButton *);
684 boolean lives_scale_button_set_value(LiVESScaleButton *, double value);
685 
686 LiVESWidget *lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous);
687 boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing);
688 boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing);
689 boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols);
690 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
691  uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
692  uint32_t xpad, uint32_t ypad);
693 
694 boolean lives_table_set_column_homogeneous(LiVESTable *, boolean homogeneous);
695 boolean lives_table_set_row_homogeneous(LiVESTable *, boolean homogeneous);
696 
697 #if LIVES_TABLE_IS_GRID
698 LiVESWidget *lives_grid_new(void);
699 boolean lives_grid_set_row_spacing(LiVESGrid *, uint32_t spacing);
700 boolean lives_grid_set_column_spacing(LiVESGrid *, uint32_t spacing);
701 boolean lives_grid_attach_next_to(LiVESGrid *, LiVESWidget *child, LiVESWidget *sibling,
702  LiVESPositionType side, int width, int height);
703 
704 boolean lives_grid_insert_row(LiVESGrid *, int posn);
705 boolean lives_grid_remove_row(LiVESGrid *, int posn);
706 #endif
707 
708 LiVESWidget *lives_frame_new(const char *label);
709 boolean lives_frame_set_label(LiVESFrame *, const char *label);
710 boolean lives_frame_set_label_align(LiVESFrame *, float xalign, float yalign);
711 boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *);
712 LiVESWidget *lives_frame_get_label_widget(LiVESFrame *);
713 boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType);
714 
715 LiVESWidget *lives_notebook_new(void);
716 LiVESWidget *lives_notebook_get_nth_page(LiVESNotebook *, int pagenum);
717 int lives_notebook_get_current_page(LiVESNotebook *);
718 boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum);
719 boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel);
720 
721 LiVESWidget *lives_menu_new(void);
722 LiVESWidget *lives_menu_bar_new(void);
723 
724 boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *);
725 
726 boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos);
727 boolean lives_menu_detach(LiVESMenu *);
728 
729 boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos);
730 boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child);
731 boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child);
732 
733 LiVESWidget *lives_menu_item_new(void);
734 LiVESWidget *lives_menu_item_new_with_label(const char *label);
735 
736 boolean lives_menu_item_set_accel_path(LiVESMenuItem *, const char *path);
737 
738 LiVESWidget *lives_check_menu_item_new_with_label(const char *label);
739 boolean lives_check_menu_item_set_draw_as_radio(LiVESCheckMenuItem *, boolean setting);
740 
741 LiVESWidget *lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label);
742 LiVESWidget *lives_image_menu_item_new_with_label(const char *label);
743 LiVESWidget *lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group);
744 
745 LiVESToolItem *lives_menu_tool_button_new(LiVESWidget *icon, const char *label);
746 boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu);
747 
748 #if !GTK_CHECK_VERSION(3, 10, 0)
749 
750 boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image);
751 
752 #endif
753 
754 boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *);
755 LiVESWidget *lives_menu_item_get_submenu(LiVESMenuItem *);
756 
757 boolean lives_menu_item_activate(LiVESMenuItem *);
758 
759 boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state);
760 boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *);
761 
762 boolean lives_menu_set_title(LiVESMenu *, const char *title);
763 
764 int lives_display_get_n_screens(LiVESXDisplay *);
765 
766 char *lives_file_chooser_get_filename(LiVESFileChooser *);
767 LiVESSList *lives_file_chooser_get_filenames(LiVESFileChooser *);
768 
769 boolean lives_widget_grab_focus(LiVESWidget *);
770 boolean lives_widget_grab_default(LiVESWidget *);
771 
772 boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text);
773 
774 boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children);
776 
777 LiVESAccelGroup *lives_accel_group_new(void);
778 boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags,
779  LiVESWidgetClosure *closure);
780 boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure);
781 boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod);
782 
783 boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group,
784  uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
785 
786 boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y);
787 boolean lives_widget_get_modmask(LiVESXDevice *, LiVESWidget *, LiVESXModifierType *modmask);
788 LiVESXWindow *lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y);
789 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask);
790 boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y);
791 
792 LiVESXDisplay *lives_widget_get_display(LiVESWidget *);
794 
795 uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg);
796 
797 LiVESWidget *lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj);
798 LiVESAdjustment *lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *);
799 LiVESAdjustment *lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *);
800 
801 boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy);
802 boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child);
803 
804 boolean lives_scrolled_window_set_min_content_height(LiVESScrolledWindow *, int height);
805 boolean lives_scrolled_window_set_min_content_width(LiVESScrolledWindow *, int width);
806 
807 boolean lives_xwindow_raise(LiVESXWindow *);
808 boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *);
809 
810 uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data);
811 boolean lives_timer_remove(uint32_t timer);
812 
813 boolean lives_source_remove(uint32_t handle);
814 
816 
817 int lives_screen_get_width(LiVESXScreen *);
818 int lives_screen_get_height(LiVESXScreen *);
819 
820 boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value);
821 boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype);
822 boolean lives_scale_set_digits(LiVESScale *, int digits);
823 
824 boolean lives_has_toplevel_focus(LiVESWidget *window);
825 
826 // optional (return TRUE if implemented)
827 
828 boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has);
829 boolean lives_widget_set_hexpand(LiVESWidget *, boolean state);
830 boolean lives_widget_set_vexpand(LiVESWidget *, boolean state);
831 boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show);
832 boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation);
833 boolean lives_window_set_auto_startup_notification(boolean set);
834 
835 // compound functions (composed of basic functions)
836 
837 void lives_label_set_hpadding(LiVESLabel *label, int pad);
838 
839 LiVESWidget *align_horizontal_with(LiVESWidget *thingtoadd, LiVESWidget *thingtoalignwith);
840 
841 // this is not the same as a GtkLayout
842 LiVESWidget *lives_layout_new(LiVESBox *);
843 LiVESWidget *lives_layout_hbox_new(LiVESTable *);
844 int lives_layout_add_row(LiVESTable *layout);
845 
846 boolean lives_button_grab_default_special(LiVESWidget *);
847 
848 #define BUTTON_DIM_VAL (0.4 * 65535.) // fg / bg ratio for dimmed buttons (BUTTON_DIM_VAL/65535) (lower is dimmer)
849 
850 #define LOCK_BUTTON_WIDTH 24
851 #define LOCK_BUTTON_HEIGHT 24
852 
853 LiVESWidget *lives_standard_button_new(void);
854 LiVESWidget *lives_standard_button_new_with_label(const char *labeltext);
855 LiVESWidget *lives_standard_button_new_from_stock(const char *stock_id, const char *labeltext);
856 
857 LiVESWidget *lives_standard_menu_item_new(void);
858 LiVESWidget *lives_standard_menu_item_new_with_label(const char *labeltext);
859 
860 LiVESWidget *lives_standard_image_menu_item_new_with_label(const char *labeltext);
861 LiVESWidget *lives_standard_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group);
862 
863 LiVESWidget *lives_standard_radio_menu_item_new_with_label(LiVESSList *group, const char *labeltext);
864 
865 LiVESWidget *lives_standard_check_menu_item_new_with_label(const char *labeltext, boolean active);
866 
867 LiVESWidget *lives_standard_notebook_new(const LiVESWidgetColor *bg_color, const LiVESWidgetColor *act_color);
868 
869 LiVESWidget *lives_standard_label_new(const char *labeltext);
870 LiVESWidget *lives_standard_label_new_with_mnemonic_widget(const char *text, LiVESWidget *mnemonic_widget);
871 
872 LiVESWidget *lives_standard_drawing_area_new(LiVESGuiCallback callback, ulong *ret_fn);
873 
874 LiVESWidget *lives_standard_frame_new(const char *labeltext, float xalign, boolean invisible_outline);
875 
876 LiVESWidget *lives_standard_check_button_new(const char *labeltext, boolean active, LiVESBox *, const char *tooltip);
877 LiVESWidget *lives_glowing_check_button_new(const char *labeltext, LiVESBox *, const char *tooltip, boolean *togglevalue);
878 LiVESWidget *lives_standard_radio_button_new(const char *labeltext, LiVESSList **rbgroup,
879  LiVESBox *, const char *tooltip);
880 LiVESWidget *lives_standard_spin_button_new(const char *labeltext, double val, double min,
881  double max, double step, double page, int dp, LiVESBox *,
882  const char *tooltip);
883 LiVESWidget *lives_standard_combo_new(const char *labeltext, LiVESList *list, LiVESBox *, const char *tooltip);
884 
885 LiVESWidget *lives_standard_combo_new_with_model(LiVESTreeModel *, LiVESBox *);
886 
887 LiVESWidget *lives_standard_entry_new(const char *labeltext, const char *txt, int dispwidth, int maxchars, LiVESBox *,
888  const char *tooltip);
889 
890 LiVESWidget *lives_standard_direntry_new(const char *labeltext, const char *txt, int dispwidth, int maxchars, LiVESBox *,
891  const char *tooltip);
892 
893 LiVESWidget *lives_standard_fileentry_new(const char *labeltext, const char *txt, const char *defdir, int dispwidth, int maxchars,
894  LiVESBox *box, const char *tooltip);
895 
896 LiVESToolItem *lives_menu_tool_button_new(LiVESWidget *icon, const char *label);
897 
898 LiVESWidget *lives_standard_lock_button_new(boolean is_locked, int width, int height, const char *tooltip);
899 
900 boolean lives_lock_button_get_locked(LiVESButton *lockbutton);
901 
902 LiVESWidget *lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height);
903 
904 LiVESWidget *lives_dialog_add_button_from_stock(LiVESDialog *dialog, const char *stock_id, const char *label, int response_id);
905 
906 LiVESWidget *lives_standard_hruler_new(void);
907 
908 LiVESWidget *lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child);
909 
910 LiVESWidget *lives_standard_expander_new(const char *labeltext, LiVESBox *parent, LiVESWidget *child);
911 
912 LiVESWidget *lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume);
913 
914 LiVESWidget *lives_standard_file_button_new(boolean is_dir, const char *def_dir);
915 
916 LiVESWidget *lives_standard_color_button_new(LiVESBox *parent, const char *name, boolean use_alpha, lives_colRGBA64_t *rgba,
917  LiVESWidget **sb_red, LiVESWidget **sb_green, LiVESWidget **sb_blue, LiVESWidget **sb_alpha);
918 
919 LiVESWidget *lives_standard_text_view_new(const char *text, LiVESTextBuffer *tbuff);
920 
921 LiVESToolItem *lives_standard_menu_tool_button_new(LiVESWidget *icon, const char *label);
922 
923 LiVESXCursor *lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y);
924 
925 void set_button_image_border_colour(LiVESButton *, LiVESWidgetState state, LiVESWidgetColor *);
926 
927 // util functions
928 
929 // THEME COLOURS (will be done more logically in the future)
930 void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state); // normal theme colours
931 void lives_widget_apply_theme_dimmed(LiVESWidget *widget, LiVESWidgetState state, int dimval); // dimmed normal theme
932 void set_child_dimmed_colour(LiVESWidget *widget, int dim); // dimmed normal theme for children (insensitive state only)
933 
934 // if set_all, set the widget itself (labels always set_all; buttons are ignored if set_all is FALSE)
935 void set_child_colour(LiVESWidget *, boolean set_all); // normal theme, sensitive and insensitive
936 
937 void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state, boolean set_fg); // menu and bars colours
938 void lives_widget_apply_theme_dimmed2(LiVESWidget *widget, LiVESWidgetState state, int dimval);
939 void set_child_dimmed_colour2(LiVESWidget *widget, int dim); // dimmed m & b for children (insensitive state only)
940 
941 // like set_child_colour, but with menu and bars colours
942 void set_child_alt_colour(LiVESWidget *, boolean set_all);
943 
944 void lives_widget_apply_theme3(LiVESWidget *, LiVESWidgetState state); // info base/text
945 void set_child_colour3(LiVESWidget *, boolean set_all);
946 
947 boolean lives_widget_set_sensitive_with(LiVESWidget *, LiVESWidget *other);
948 boolean lives_widget_set_show_hide_with(LiVESWidget *, LiVESWidget *other);
949 
950 boolean lives_image_scale(LiVESImage *, int width, int height, LiVESInterpType interp_type);
951 
952 LiVESPixbuf *lives_pixbuf_new_from_stock_at_size(const char *stock_id, LiVESIconSize size, int x, int y);
953 LiVESWidget *lives_image_new_from_stock_at_size(const char *stock_id, LiVESIconSize size, int x, int y);
954 
955 boolean lives_widget_queue_draw_if_visible(LiVESWidget *);
956 boolean lives_widget_queue_draw_and_update(LiVESWidget *widget);
957 
958 boolean global_recent_manager_add(const char *file_name);
959 
960 boolean lives_cursor_unref(LiVESXCursor *);
961 
962 boolean lives_widget_context_update(void);
963 
964 LiVESWidget *lives_menu_add_separator(LiVESMenu *);
965 
966 void lives_menu_item_set_text(LiVESWidget *menuitem, const char *text, boolean use_mnemonic);
967 const char *lives_menu_item_get_text(LiVESWidget *menuitem);
968 
969 boolean lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *);
970 
971 boolean lives_widget_set_show_hide_parent(LiVESWidget *);
972 
973 void lives_window_center(LiVESWindow *);
974 
975 boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *);
976 
977 boolean lives_widget_unparent(LiVESWidget *);
978 
979 void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source);
980 
981 char *lives_text_view_get_text(LiVESTextView *);
982 boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len);
983 
984 boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text);
985 
986 void lives_general_button_clicked(LiVESButton *, livespointer data_to_free);
987 
988 boolean lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper,
989  double step_increment, double page_increment);
990 
991 size_t calc_spin_button_width(double min, double max, int dp);
992 
993 int get_box_child_index(LiVESBox *, LiVESWidget *child);
994 
995 boolean lives_container_child_set_shrinkable(LiVESContainer *, LiVESWidget *child, boolean val);
996 
997 boolean set_submenu_colours(LiVESMenu *, LiVESWidgetColor *colf, LiVESWidgetColor *colb);
998 
999 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
1000 boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *);
1001 boolean widget_inact_toggle(LiVESWidget *, LiVESToggleButton *);
1002 boolean label_act_lockbutton(LiVESWidget *, LiVESXEventButton *, LiVESButton *);
1003 
1004 boolean toggle_button_toggle(LiVESToggleButton *);
1005 
1006 void funkify_dialog(LiVESWidget *dialog);
1007 EXPOSE_FN_PROTOTYPE(draw_cool_toggle);
1008 void lives_cool_toggled(LiVESWidget *tbutton, livespointer);
1009 
1010 boolean unhide_cursor(LiVESXWindow *);
1011 void hide_cursor(LiVESXWindow *);
1012 
1013 boolean get_border_size(LiVESWidget *win, int *bx, int *by);
1014 boolean lives_window_get_inner_size(LiVESWindow *, int *x, int *y);
1015 
1016 LiVESWidget *add_hsep_to_box(LiVESBox *);
1017 LiVESWidget *add_vsep_to_box(LiVESBox *);
1018 
1019 LiVESWidget *add_fill_to_box(LiVESBox *);
1020 LiVESWidget *add_spring_to_box(LiVESBox *, int min);
1021 
1022 LiVESWidget *lives_toolbar_insert_space(LiVESToolbar *);
1023 LiVESWidget *lives_toolbar_insert_label(LiVESToolbar *, const char *labeltext);
1024 LiVESWidget *lives_standard_tool_button_new(LiVESToolbar *, GtkWidget *icon_widget, const char *label, const char *tooltips);
1025 boolean lives_tool_button_set_border_colour(LiVESWidget *button, LiVESWidgetState state, LiVESWidgetColor *);
1026 
1027 boolean lives_accel_path_disconnect(LiVESAccelGroup *, const char *path);
1028 
1029 boolean lives_widget_get_mod_mask(LiVESWidget *, LiVESXModifierType *modmask);
1030 
1031 #endif // cplusplus
1032 
1033 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
1034 
1035 typedef enum {
1044 
1050 } lives_cursor_t;
1051 
1052 void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *);
1053 
1054 typedef int lives_expand_t;
1055 #define LIVES_EXPAND_NONE 0
1056 #define LIVES_EXPAND_DEFAULT_HEIGHT 1
1057 #define LIVES_EXPAND_DEFAULT_WIDTH 2
1058 #define LIVES_EXPAND_DEFAULT (LIVES_EXPAND_DEFAULT_HEIGHT | LIVES_EXPAND_DEFAULT_WIDTH)
1059 #define LIVES_EXPAND_EXTRA_HEIGHT 4
1060 #define LIVES_EXPAND_EXTRA_WIDTH 8
1061 #define LIVES_EXPAND_EXTRA (LIVES_EXPAND_EXTRA_HEIGHT | LIVES_EXPAND_EXTRA_WIDTH)
1062 
1063 #define LIVES_SHOULD_EXPAND (widget_opts.expand != LIVES_EXPAND_NONE)
1064 #define LIVES_SHOULD_EXPAND_DEFAULT (widget_opts.expand == LIVES_EXPAND_DEFAULT)
1065 #define LIVES_SHOULD_EXPAND_EXTRA (widget_opts.expand == LIVES_EXPAND_EXTRA)
1066 
1067 #define LIVES_SHOULD_EXPAND_WIDTH (widget_opts.expand & (LIVES_EXPAND_DEFAULT_WIDTH | LIVES_EXPAND_EXTRA_WIDTH))
1068 #define LIVES_SHOULD_EXPAND_HEIGHT (widget_opts.expand & (LIVES_EXPAND_DEFAULT_HEIGHT | LIVES_EXPAND_EXTRA_HEIGHT))
1069 
1070 #define LIVES_SHOULD_EXPAND_EXTRA_WIDTH (widget_opts.expand & LIVES_EXPAND_EXTRA_WIDTH)
1071 #define LIVES_SHOULD_EXPAND_EXTRA_HEIGHT (widget_opts.expand & LIVES_EXPAND_EXTRA_HEIGHT)
1072 
1073 #define LIVES_SHOULD_EXPAND_DEFAULT_WIDTH (LIVES_SHOULD_EXPAND_WIDTH && !LIVES_SHOULD_EXPAND_EXTRA_WIDTH)
1074 #define LIVES_SHOULD_EXPAND_DEFAULT_HEIGHT (LIVES_SHOULD_EXPAND_HEIGHT && !LIVES_SHOULD_EXPAND_EXTRA_HEIGHT)
1075 
1076 
1077 #define LIVES_SHOULD_EXPAND_DEFAULT_FOR(box) ((LIVES_IS_HBOX(box) && LIVES_SHOULD_EXPAND_DEFAULT_WIDTH) || (LIVES_IS_VBOX(box) && LIVES_EXPAND_DEFAULT_HEIGHT))
1078 
1079 #define LIVES_SHOULD_EXPAND_EXTRA_FOR(box) ((LIVES_IS_HBOX(box) && LIVES_SHOULD_EXPAND_EXTRA_WIDTH) || (LIVES_IS_VBOX(box) && LIVES_SHOULD_EXPAND_EXTRA_HEIGHT))
1080 
1081 #define LIVES_SHOULD_EXPAND_FOR(box) (LIVES_SHOULD_EXPAND_DEFAULT_FOR(box) || LIVES_SHOULD_EXPAND_EXTRA_FOR(box))
1082 
1083 LiVESList *get_textsizes_list(void);
1084 const char *lives_textsize_to_string(int val);
1085 
1086 // custom stock images
1087 #define LIVES_LIVES_STOCK_AUDIO "lives-audio"
1088 #define LIVES_LIVES_STOCK_PLAY_SEL "lives-playsel"
1089 #define LIVES_LIVES_STOCK_FULLSCREEN "lives-fullscreen"
1090 #define LIVES_LIVES_STOCK_SEPWIN "lives-sepwin"
1091 #define LIVES_LIVES_STOCK_VOLUME_MUTE "lives-volume_mute"
1092 #define LIVES_LIVES_STOCK_LOOP "lives-loop"
1093 #define LIVES_LIVES_STOCK_ZOOM_IN "lives-zoom-in"
1094 #define LIVES_LIVES_STOCK_ZOOM_OUT "lives-zoom-out"
1095 #define LIVES_LIVES_STOCK_PREF_GUI "lives-pref_gui"
1096 #define LIVES_LIVES_STOCK_PREF_DECODING "lives-pref_decoding"
1097 #define LIVES_LIVES_STOCK_PREF_DIRECTORY "lives-pref_directory"
1098 #define LIVES_LIVES_STOCK_PREF_EFFECTS "lives-pref_effects"
1099 #define LIVES_LIVES_STOCK_PREF_ENCODING "lives-pref_encoding"
1100 #define LIVES_LIVES_STOCK_PREF_JACK "lives-pref_jack"
1101 #define LIVES_LIVES_STOCK_PREF_MIDI "lives-pref_midi"
1102 #define LIVES_LIVES_STOCK_PREF_MISC "lives-pref_misc"
1103 #define LIVES_LIVES_STOCK_PREF_MULTITRACK "lives-pref_multitrack"
1104 #define LIVES_LIVES_STOCK_PREF_NET "lives-pref_net"
1105 #define LIVES_LIVES_STOCK_PREF_PLAYBACK "lives-pref_playback"
1106 #define LIVES_LIVES_STOCK_PREF_RECORD "lives-pref_record"
1107 #define LIVES_LIVES_STOCK_PREF_THEMES "lives-pref_themes"
1108 #define LIVES_LIVES_STOCK_PREF_WARNING "lives-pref_warning"
1109 
1110 typedef struct {
1111  boolean no_gui;
1112  boolean swap_label;
1113  boolean pack_end;
1114  boolean line_wrap;
1115  boolean mnemonic_label;
1116  boolean non_modal;
1118  boolean apply_theme;
1119  double scale;
1124  LiVESWidget *last_label;
1125  LiVESWindow *transient;
1126  LiVESJustification justify;
1127  LiVESJustification default_justify;
1128  const char *font_size;
1129  char **image_filter;
1131  int monitor;
1132  LiVESXScreen *screen;
1134 } widget_opts_t;
1135 
1137 
1138 #ifdef NEED_DEF_WIDGET_OPTS
1139 
1141  FALSE,
1142  FALSE,
1143  FALSE,
1144  FALSE,
1145  TRUE,
1146  FALSE,
1148  FALSE,
1149  1.0,
1150  W_PACKING_WIDTH,
1152  W_BORDER_WIDTH,
1153  W_FILL_LENGTH,
1154  NULL,
1155  NULL,
1156  LIVES_JUSTIFY_LEFT,
1157  LIVES_JUSTIFY_LEFT,
1158  LIVES_FONT_SIZE_MEDIUM,
1159  NULL,
1160  "",
1161  0,
1162  NULL,
1163  FALSE
1164 };
1165 
1166 #else
1167 
1168 extern const widget_opts_t def_widget_opts;
1169 
1170 #endif
1171 
double lives_ruler_set_lower(LiVESRuler *, double lower)
Definition: widget-helper.c:5166
boolean lives_window_set_auto_startup_notification(boolean set)
Definition: widget-helper.c:2168
boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask)
Definition: widget-helper.c:7849
void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state, boolean set_fg)
Definition: widget-helper.c:10018
LiVESJustification justify
justify for labels
Definition: widget-helper.h:1126
lives_painter_surface_t * lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t, int width, int height, int stride)
Definition: widget-helper.c:584
boolean lives_entry_set_max_length(LiVESEntry *, int len)
Definition: widget-helper.c:6457
boolean lives_expander_set_use_markup(LiVESExpander *expander, boolean val)
Definition: widget-helper.c:3272
LiVESPixbuf * lives_pixbuf_new(boolean has_alpha, int width, int height)
Definition: widget-helper.c:2530
boolean lives_spin_button_update(LiVESSpinButton *)
Definition: widget-helper.c:4978
LiVESToolItem * lives_tool_button_new(LiVESWidget *icon_widget, const char *label)
Definition: widget-helper.c:4990
boolean lives_adjustment_set_step_increment(LiVESAdjustment *, double step_increment)
Definition: widget-helper.c:5565
boolean lives_table_attach(LiVESTable *, 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:7603
boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous)
Definition: widget-helper.c:2760
char * lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED
Definition: widget-helper.c:3460
LiVESWidget * lives_vpaned_new(void)
Definition: widget-helper.c:3023
LiVESWidget * lives_toolbar_new(void)
Definition: widget-helper.c:5231
boolean lives_widget_realize(LiVESWidget *)
Definition: widget-helper.c:971
boolean lives_tree_store_prepend(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent)
Definition: widget-helper.c:5959
boolean lives_window_resize(LiVESWindow *, int width, int height)
Definition: widget-helper.c:2307
boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget)
Definition: widget-helper.c:6348
boolean lives_alignment_set(LiVESWidget *, float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:3228
boolean lives_widget_set_outline_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1490
boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y)
Definition: widget-helper.c:281
boolean lives_widget_set_margin_left(LiVESWidget *, int margin)
Definition: widget-helper.c:1917
boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height)
Definition: widget-helper.c:997
LiVESWidget * lives_vseparator_new(void)
Definition: widget-helper.c:2922
boolean lives_window_unmaximize(LiVESWindow *)
Definition: widget-helper.c:2384
LiVESWidget * lives_menu_bar_new(void)
Definition: widget-helper.c:6759
boolean lives_widget_set_show_hide_with(LiVESWidget *, LiVESWidget *other)
Definition: widget-helper.c:8566
boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus)
Definition: widget-helper.c:4073
const char * lives_label_get_text(LiVESLabel *)
Definition: widget-helper.c:6305
WIDGET_HELPER_GLOBAL_INLINE boolean lives_grid_attach_next_to(LiVESGrid *grid, LiVESWidget *child, LiVESWidget *sibling, LiVESPositionType side, int width, int height)
Definition: widget-helper.c:7335
Definition: widget-helper.h:1041
boolean lives_widget_queue_resize(LiVESWidget *)
Definition: widget-helper.c:1013
boolean lives_rgba_equal(lives_colRGBA64_t *col1, lives_colRGBA64_t *col2)
Definition: widget-helper.c:11087
LiVESWidget * lives_tree_view_new_with_model(LiVESTreeModel *)
Definition: widget-helper.c:6006
boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing)
Definition: widget-helper.c:7516
LiVESWidget * lives_standard_combo_new_with_model(LiVESTreeModel *, LiVESBox *)
Definition: widget-helper.c:8967
boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *,...)
Definition: widget-helper.c:6252
EXPOSE_FN_PROTOTYPE(draw_cool_toggle)
LiVESWidget * lives_tree_view_new(void)
Definition: widget-helper.c:6020
boolean lives_table_set_row_homogeneous(LiVESTable *, boolean homogeneous)
Definition: widget-helper.c:7550
int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:5810
boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation)
Definition: widget-helper.c:7198
int lives_pixbuf_get_rowstride(const LiVESPixbuf *)
Definition: widget-helper.c:2634
boolean lives_widget_queue_draw_if_visible(LiVESWidget *)
Definition: widget-helper.c:9931
boolean lives_painter_stroke(lives_painter_t *)
Definition: widget-helper.c:323
boolean lives_menu_detach(LiVESMenu *)
Definition: widget-helper.c:7082
int lives_pixbuf_get_n_channels(const LiVESPixbuf *)
Definition: widget-helper.c:2667
boolean lives_entry_set_activates_default(LiVESEntry *, boolean act)
Definition: widget-helper.c:6471
int packing_width
horizontal pixels between widgets
Definition: widget-helper.h:1120
boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting)
Definition: widget-helper.c:2293
boolean lives_widget_set_margin_top(LiVESWidget *, int margin)
Definition: widget-helper.c:1947
boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show)
Definition: widget-helper.c:5265
boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle)
Definition: widget-helper.c:4012
boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods)
Definition: widget-helper.c:4465
boolean set_submenu_colours(LiVESMenu *, LiVESWidgetColor *colf, LiVESWidgetColor *colb)
Definition: widget-helper.c:10337
boolean lives_painter_set_source_rgb_from_lives_rgba(lives_painter_t *, lives_colRGBA64_t *)
Definition: widget-helper.c:9970
boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group, uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags)
Definition: widget-helper.c:2447
boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:5387
int lives_combo_get_active(LiVESCombo *)
Definition: widget-helper.c:3525
boolean global_recent_manager_add(const char *file_name)
Definition: widget-helper.c:8011
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:2550
LiVESWidget * lives_radio_button_new(LiVESSList *group)
Definition: widget-helper.c:4210
boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower)
Definition: widget-helper.c:5531
const widget_opts_t def_widget_opts
boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent)
Definition: widget-helper.c:2023
boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *)
Definition: widget-helper.c:6175
LiVESWidget * lives_toolbar_insert_label(LiVESToolbar *, const char *labeltext)
Definition: widget-helper.c:10966
boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *)
Definition: widget-helper.c:7673
boolean lives_event_box_set_above_child(LiVESEventBox *, boolean set)
Definition: widget-helper.c:1645
boolean lives_widget_grab_default(LiVESWidget *)
Definition: widget-helper.c:4297
char * lives_text_view_get_text(LiVESTextView *)
Definition: widget-helper.c:10288
boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *)
Definition: widget-helper.c:7382
boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *)
Definition: widget-helper.c:6953
void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *)
Definition: widget-helper.c:10490
lives_painter_t * lives_painter_create_from_widget(LiVESWidget *)
Definition: widget-helper.c:246
boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:5825
boolean lives_window_set_default_size(LiVESWindow *, int width, int height)
Definition: widget-helper.c:2198
boolean lives_widget_set_can_focus(LiVESWidget *, boolean state)
Definition: widget-helper.c:4392
boolean show_button_images
whether to show small images in buttons or not
Definition: widget-helper.h:1133
LiVESXScreen * screen
screen we are displaying on
Definition: widget-helper.h:1132
LiVESXDisplay * lives_widget_get_display(LiVESWidget *)
Definition: widget-helper.c:7813
boolean lives_widget_is_ancestor(LiVESWidget *, LiVESWidget *ancestor)
Definition: widget-helper.c:1134
boolean lives_grab_add(LiVESWidget *)
Definition: widget-helper.c:842
boolean lives_label_set_selectable(LiVESLabel *, boolean setting)
Definition: widget-helper.c:6374
void set_button_image_border_colour(LiVESButton *, LiVESWidgetState state, LiVESWidgetColor *)
boolean lives_check_menu_item_set_draw_as_radio(LiVESCheckMenuItem *, boolean setting)
Definition: widget-helper.c:6880
LiVESToolItem * lives_menu_tool_button_new(LiVESWidget *icon, const char *label)
Definition: widget-helper.c:6928
LiVESWidget * lives_arrow_new(LiVESArrowType, LiVESShadowType)
Definition: widget-helper.c:3093
int lives_display_get_n_screens(LiVESXDisplay *)
Definition: widget-helper.c:10475
LiVESAdjustment * lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *)
Definition: widget-helper.c:6587
boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent)
Definition: widget-helper.c:5791
boolean lives_window_set_keep_above(LiVESWindow *, boolean keep_below)
Definition: widget-helper.c:2135
boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *)
Definition: widget-helper.c:7052
boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state)
Definition: widget-helper.c:6987
Definition: widget-helper.h:1040
boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap)
Definition: widget-helper.c:4943
boolean lives_widget_grab_focus(LiVESWidget *)
Definition: widget-helper.c:4284
boolean lives_dialog_response(LiVESDialog *, int response)
Definition: widget-helper.c:1169
boolean lives_widget_context_update(void)
Definition: widget-helper.c:10396
boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child)
Definition: widget-helper.c:6626
boolean lives_window_set_decorated(LiVESWindow *, boolean decorated)
Definition: widget-helper.c:2144
boolean lives_widget_set_no_show_all(LiVESWidget *, boolean set)
Definition: widget-helper.c:4495
boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size)
Definition: widget-helper.c:4477
boolean lives_widget_set_margin_right(LiVESWidget *, int margin)
Definition: widget-helper.c:1932
boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *)
Definition: widget-helper.c:10146
LiVESWidget * lives_vscale_new(LiVESAdjustment *)
Definition: widget-helper.c:2989
boolean lives_color_parse(const char *spec, LiVESWidgetColor *)
Definition: widget-helper.c:1857
int lives_pixbuf_get_width(const LiVESPixbuf *)
Definition: widget-helper.c:2645
boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode)
Definition: widget-helper.c:3612
LiVESWidget * lives_standard_notebook_new(const LiVESWidgetColor *bg_color, const LiVESWidgetColor *act_color)
Definition: widget-helper.c:8370
boolean lives_editable_get_editable(LiVESEditable *)
Definition: widget-helper.c:6396
ulong lives_signal_connect(LiVESWidget *, const char *signal_name, ulong funcptr, livespointer data)
boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t)
Definition: widget-helper.c:559
boolean widget_helper_init(void)
Definition: widget-helper.c:9857
boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting)
Definition: widget-helper.c:4369
boolean lives_window_maximize(LiVESWindow *)
Definition: widget-helper.c:2367
boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent)
Definition: widget-helper.c:5933
LiVESWidget * lives_text_view_new(void)
Definition: widget-helper.c:3536
boolean lives_widget_queue_draw_and_update(LiVESWidget *widget)
Definition: widget-helper.c:9940
boolean lives_painter_render_background(LiVESWidget *, lives_painter_t *, double x, double y, double width, double height)
Definition: widget-helper.c:367
boolean lives_widget_set_border_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1504
boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2)
Definition: widget-helper.c:493
void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source)
Definition: widget-helper.c:8091
LiVESWidget * lives_hbutton_box_new(void)
Definition: widget-helper.c:2938
LiVESCellRenderer * lives_cell_renderer_pixbuf_new(void)
Definition: widget-helper.c:5219
LiVESWidget * lives_standard_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group)
Definition: widget-helper.c:8336
boolean lives_window_get_inner_size(LiVESWindow *, int *x, int *y)
Definition: widget-helper.c:10817
LiVESWidget * lives_standard_text_view_new(const char *text, LiVESTextBuffer *tbuff)
Definition: widget-helper.c:9448
char * lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars)
Definition: widget-helper.c:3693
LiVESJustification default_justify
default value
Definition: widget-helper.h:1127
boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting)
Definition: widget-helper.c:3585
boolean lives_painter_fill(lives_painter_t *)
Definition: widget-helper.c:308
lives_cursor_t
Definition: widget-helper.h:1035
LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *)
Definition: widget-helper.c:5274
double lives_adjustment_get_upper(LiVESAdjustment *)
Definition: widget-helper.c:5441
boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len)
Definition: widget-helper.c:10298
int lives_expand_t
Definition: widget-helper.h:1054
boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max)
Definition: widget-helper.c:4921
boolean lives_combo_set_model(LiVESCombo *, LiVESTreeModel *)
Definition: widget-helper.c:3385
void resize(double scale)
Definition: main.c:7928
boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify)
Definition: widget-helper.c:3626
boolean lives_widget_set_can_focus_and_default(LiVESWidget *)
Definition: widget-helper.c:10884
int16_t lives_color_button_get_alpha(LiVESColorButton *)
Definition: widget-helper.c:7709
void lives_window_center(LiVESWindow *)
Definition: widget-helper.c:10100
boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *,...)
Definition: widget-helper.c:5968
boolean lives_widget_show_all(LiVESWidget *)
Definition: widget-helper.c:931
boolean lives_entry_get_editable(LiVESEntry *)
Definition: widget-helper.c:8049
LiVESWidget * lives_standard_menu_item_new(void)
Definition: widget-helper.c:8302
boolean lives_window_fullscreen(LiVESWindow *)
Definition: widget-helper.c:2331
int lives_paned_get_position(LiVESPaned *)
Definition: widget-helper.c:4078
LiVESWidget * lives_combo_new(void)
Definition: widget-helper.c:3313
boolean lives_widget_set_halign(LiVESWidget *, LiVESAlign align)
Definition: widget-helper.c:3135
boolean lives_paned_set_position(LiVESPaned *, int pos)
Definition: widget-helper.c:4086
LiVESWidget * lives_button_new_with_label(const char *label)
Definition: widget-helper.c:3827
int * lives_tree_path_get_indices(LiVESTreePath *)
Definition: widget-helper.c:5888
boolean lives_window_set_title(LiVESWindow *, const char *title)
Definition: widget-helper.c:2005
LiVESWidget * lives_progress_bar_new(void)
Definition: widget-helper.c:4798
lives_painter_t * lives_painter_create_from_surface(lives_painter_surface_t *target)
Definition: widget-helper.c:234
boolean lives_widget_destroy(LiVESWidget *)
Definition: widget-helper.c:958
boolean lives_spin_button_set_snap_to_multiples(LiVESSpinButton *, double mult)
Definition: widget-helper.c:8780
boolean lives_object_ref(livespointer)
increase refcount by one
Definition: widget-helper.c:698
LiVESTreeViewColumn * lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *,...)
Definition: widget-helper.c:6111
boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show)
Definition: widget-helper.c:7143
boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y)
Definition: widget-helper.c:7803
boolean swap_label
swap label/widget position
Definition: widget-helper.h:1112
LiVESWidget * lives_standard_entry_new(const char *labeltext, const char *txt, int dispwidth, int maxchars, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:8987
LiVESWidget * lives_standard_menu_item_new_with_label(const char *labeltext)
Definition: widget-helper.c:8313
Definition: main.h:313
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:2592
boolean lives_widget_get_modmask(LiVESXDevice *, LiVESWidget *, LiVESXModifierType *modmask)
Definition: widget-helper.c:7808
boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y)
Definition: widget-helper.c:7870
boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y)
Definition: widget-helper.c:264
boolean mnemonic_label
if underscore in label text should be mnemonic accelerator
Definition: widget-helper.h:1115
LiVESWidget * lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous)
Definition: widget-helper.c:7485
boolean lives_widget_add_events(LiVESWidget *, int events)
Definition: widget-helper.c:4438
boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group)
Definition: widget-helper.c:2491
boolean lives_entry_set_visibility(LiVESEntry *, boolean vis)
Definition: widget-helper.c:6492
boolean lives_entry_set_width_chars(LiVESEntry *, int nchars)
Definition: widget-helper.c:6555
boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1440
boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active)
Definition: widget-helper.c:4158
boolean lives_toggle_button_toggle(LiVESToggleButton *)
Definition: widget-helper.c:10165
boolean lives_widget_queue_draw(LiVESWidget *)
Definition: widget-helper.c:980
LiVESWidget * add_spring_to_box(LiVESBox *, int min)
Definition: widget-helper.c:10940
LiVESWidget * lives_standard_combo_new(const char *labeltext, LiVESList *list, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:8885
boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data)
int lives_widget_get_allocation_width(LiVESWidget *)
Definition: widget-helper.c:5351
LiVESWidget * lives_standard_expander_new(const char *labeltext, LiVESBox *parent, LiVESWidget *child)
Definition: widget-helper.c:9379
LiVESResponseType lives_dialog_run(LiVESDialog *)
Definition: widget-helper.c:1156
boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha)
Definition: widget-helper.c:7761
boolean lives_container_child_set_shrinkable(LiVESContainer *, LiVESWidget *child, boolean val)
Definition: widget-helper.c:10325
boolean lives_color_button_set_alpha(LiVESColorButton *, int16_t alpha)
Definition: widget-helper.c:7693
boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis)
Definition: widget-helper.c:6082
boolean lives_combo_append_text(LiVESCombo *, const char *text)
Definition: widget-helper.c:3394
boolean lives_widget_unparent(LiVESWidget *)
Definition: widget-helper.c:10141
boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *)
Definition: widget-helper.c:5729
boolean lives_has_icon(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:9947
LiVESWidget * lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits)
Definition: widget-helper.c:4852
boolean lives_entry_set_has_frame(LiVESEntry *, boolean has)
Definition: widget-helper.c:6509
const char * lives_entry_get_text(LiVESEntry *)
Definition: widget-helper.c:6531
LiVESWidget * lives_image_new_from_stock(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:1795
Definition: widget-helper.h:35
boolean lives_label_set_width_chars(LiVESLabel *label, int nchars)
Definition: widget-helper.c:3281
boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos)
Definition: widget-helper.c:7069
LiVESWidget * lives_entry_new(void)
Definition: widget-helper.c:6445
boolean lives_widget_set_minimum_size(LiVESWidget *, int width, int height)
Definition: widget-helper.c:1042
boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy)
Definition: widget-helper.c:6611
boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline)
Definition: widget-helper.c:5066
boolean lives_widget_set_focus_on_click(LiVESWidget *, boolean focus)
Definition: widget-helper.c:4051
boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth)
Definition: widget-helper.c:6162
boolean lives_xwindow_process_all_updates(void)
Definition: widget-helper.c:1094
boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum)
Definition: widget-helper.c:7459
int lives_dialog_get_response_for_widget(LiVESDialog *, LiVESWidget *)
Definition: widget-helper.c:1182
LiVESWidget * last_label
label widget of last standard widget (spin,radio,check,entry,combo) [readonly]
Definition: widget-helper.h:1124
boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height)
Definition: widget-helper.c:480
LiVESXCursor * lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y)
Definition: widget-helper.c:8022
int lives_layout_add_row(LiVESTable *layout)
Definition: widget-helper.c:8279
boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *)
Definition: widget-helper.c:3506
LiVESWidget * lives_button_new(void)
Definition: widget-helper.c:3814
WIDGET_HELPER_GLOBAL_INLINE boolean lives_grid_remove_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:7313
boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction)
Definition: widget-helper.c:4825
boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2850
LiVESWidget * lives_dialog_get_content_area(LiVESDialog *)
Definition: widget-helper.c:1880
LiVESWidget * lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume)
Definition: widget-helper.c:8141
boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *)
Definition: widget-helper.c:6032
boolean lives_painter_new_path(lives_painter_t *)
Definition: widget-helper.c:412
boolean lives_color_button_set_title(LiVESColorButton *, const char *title)
Definition: widget-helper.c:7744
int monitor
monitor we are displaying on
Definition: widget-helper.h:1131
LiVESWidget * lives_standard_drawing_area_new(LiVESGuiCallback callback, ulong *ret_fn)
Definition: widget-helper.c:8406
void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:10005
double lives_range_get_value(LiVESRange *)
Definition: widget-helper.c:5679
int border_width
border width in pixels
Definition: widget-helper.h:1122
WIDGET_HELPER_GLOBAL_INLINE boolean lives_painter_surface_destroy(lives_painter_surface_t *surf)
Definition: widget-helper.c:399
LiVESWidget * lives_standard_label_new(const char *labeltext)
Definition: widget-helper.c:8388
boolean apply_theme
whether to apply theming to widget
Definition: widget-helper.h:1118
boolean lives_adjustment_set_value(LiVESAdjustment *, double value)
Definition: widget-helper.c:5578
LiVESWidget * lives_notebook_new(void)
Definition: widget-helper.c:7419
LiVESWidget * lives_event_box_new(void)
Definition: widget-helper.c:1633
boolean lives_widget_set_can_default(LiVESWidget *, boolean state)
Definition: widget-helper.c:4414
LiVESAdjustment * lives_spin_button_set_adjustment(LiVESSpinButton *, LiVESAdjustment *adj)
Definition: widget-helper.c:4898
boolean lives_painter_set_source_rgb_from_lives_rgb(lives_painter_t *, lives_colRGB48_t *)
Definition: widget-helper.c:9961
LiVESWidget * lives_label_get_mnemonic_widget(LiVESLabel *)
Definition: widget-helper.c:6362
int lives_widget_get_allocation_y(LiVESWidget *)
Definition: widget-helper.c:5331
void funkify_dialog(LiVESWidget *dialog)
Definition: widget-helper.c:10643
char * lives_file_chooser_get_filename(LiVESFileChooser *)
Definition: widget-helper.c:7252
double lives_ruler_get_value(LiVESRuler *)
Definition: widget-helper.c:5116
LiVESCellRenderer * lives_cell_renderer_toggle_new(void)
Definition: widget-helper.c:5207
LiVESTreePath * lives_tree_path_new_from_string(const char *path)
Definition: widget-helper.c:5864
boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1465
boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal)
Definition: widget-helper.c:828
int packing_height
vertical pixels between widgets
Definition: widget-helper.h:1121
boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype)
Definition: widget-helper.c:7172
LiVESWidget * lives_window_get_focus(LiVESWindow *)
Definition: widget-helper.c:2401
LiVESTreeModel * lives_combo_get_model(LiVESCombo *)
Definition: widget-helper.c:3349
boolean pack_end
pack widget at end or start
Definition: widget-helper.h:1113
boolean lives_window_move(LiVESWindow *, int x, int y)
Definition: widget-helper.c:2224
boolean lives_entry_get_activates_default(LiVESEntry *)
Definition: widget-helper.c:6484
void set_child_dimmed_colour2(LiVESWidget *widget, int dim)
Definition: widget-helper.c:10227
int lives_spin_button_get_value_as_int(LiVESSpinButton *)
Definition: widget-helper.c:4875
LiVESSList * lives_radio_button_get_group(LiVESRadioButton *)
Definition: widget-helper.c:4314
WIDGET_HELPER_GLOBAL_INLINE boolean lives_grid_set_row_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:7291
LiVESWidget * lives_image_new_from_pixbuf(LiVESPixbuf *)
Definition: widget-helper.c:1820
LiVESWidget * lives_bin_get_child(LiVESBin *)
Definition: widget-helper.c:5425
boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure)
Definition: widget-helper.c:2434
LiVESSList * lives_file_chooser_get_filenames(LiVESFileChooser *)
Definition: widget-helper.c:7265
LiVESWidget * lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child)
Definition: widget-helper.c:9303
boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *)
Definition: widget-helper.c:1832
LiVESWidget * lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label)
Definition: widget-helper.c:6831
LiVESWidget * lives_standard_tool_button_new(LiVESToolbar *, GtkWidget *icon_widget, const char *label, const char *tooltips)
Definition: widget-helper.c:11012
LiVESXWindow * lives_widget_get_xwindow(LiVESWidget *)
Definition: widget-helper.c:4352
boolean lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper, double step_increment, double page_increment)
Definition: widget-helper.c:10357
void lives_widget_apply_theme_dimmed(LiVESWidget *widget, LiVESWidgetState state, int dimval)
Definition: widget-helper.c:10039
lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *)
Definition: widget-helper.c:684
boolean lives_button_set_border_colour(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *)
boolean lives_widget_get_position(LiVESWidget *, int *x, int *y)
Definition: widget-helper.c:2242
boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style)
Definition: widget-helper.c:5298
LiVESWidget * lives_standard_hscale_new(LiVESAdjustment *)
Definition: widget-helper.c:9264
boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text)
Definition: widget-helper.c:10306
boolean lives_widget_show_now(LiVESWidget *)
Definition: widget-helper.c:949
boolean lives_tree_path_free(LiVESTreePath *)
Definition: widget-helper.c:5852
LiVESWidget * lives_standard_spin_button_new(const char *labeltext, double val, double min, double max, double step, double page, int dp, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:8803
boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size)
Definition: widget-helper.c:5548
LiVESCellRenderer * lives_cell_renderer_spin_new(void)
Definition: widget-helper.c:5193
boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len)
Definition: widget-helper.c:3651
boolean lives_scrolled_window_set_min_content_width(LiVESScrolledWindow *, int width)
Definition: widget-helper.c:6655
boolean lives_widget_set_show_hide_parent(LiVESWidget *)
Definition: widget-helper.c:8582
boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width)
Definition: widget-helper.c:10979
LiVESWidget * add_fill_to_box(LiVESBox *)
Definition: widget-helper.c:10920
boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *,...)
Definition: widget-helper.c:5691
LiVESTreeStore * lives_tree_store_new(int ncols,...)
Definition: widget-helper.c:5900
WIDGET_HELPER_GLOBAL_INLINE boolean lives_grid_set_column_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:7302
boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data)
Definition: widget-helper.c:4712
boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *)
Definition: widget-helper.c:2700
boolean lives_widget_set_maximum_size(LiVESWidget *, int width, int height)
Definition: widget-helper.c:1059
LiVESWidget * lives_hseparator_new(void)
Definition: widget-helper.c:2906
LiVESWidget * lives_standard_image_menu_item_new_with_label(const char *labeltext)
Definition: widget-helper.c:8324
boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str)
Definition: widget-helper.c:10874
Definition: widget-helper.h:1038
int lives_painter_format_stride_for_width(lives_painter_format_t, int width)
Definition: widget-helper.c:625
double lives_adjustment_get_lower(LiVESAdjustment *)
Definition: widget-helper.c:5457
LiVESPixbuf * lives_pixbuf_new_from_file(const char *filename, LiVESError **error)
Definition: widget-helper.c:2572
boolean non_modal
non-modal for dialogs
Definition: widget-helper.h:1116
LiVESAccelGroup * lives_accel_group_new(void)
Definition: widget-helper.c:2409
LiVESWidget * lives_layout_new(LiVESBox *)
Definition: widget-helper.c:8234
boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *)
Definition: widget-helper.c:7000
Definition: widget-helper.h:33
boolean lives_widget_has_default(LiVESWidget *)
Definition: widget-helper.c:2483
boolean lives_spin_button_set_snap_to_ticks(LiVESSpinButton *, boolean snap)
Definition: widget-helper.c:4956
LiVESWidget * lives_toolbar_insert_space(LiVESToolbar *)
Definition: widget-helper.c:10953
boolean lives_object_ref_sink(livespointer)
Definition: widget-helper.c:743
int lives_painter_image_surface_get_stride(lives_painter_surface_t *)
Definition: widget-helper.c:672
const unsigned char * lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *)
Definition: widget-helper.c:2689
LiVESListStore * lives_list_store_new(int ncols,...)
Definition: widget-helper.c:6219
LiVESWidget * lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons, const char *msg_fmt,...)
Definition: widget-helper.c:5099
LiVESWidget * lives_menu_item_new(void)
Definition: widget-helper.c:6771
LiVESAdjustment * lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *)
Definition: widget-helper.c:6599
LiVESWidget * lives_standard_check_button_new(const char *labeltext, boolean active, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:8589
LiVESWidget * lives_layout_hbox_new(LiVESTable *)
Definition: widget-helper.c:8250
boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType)
Definition: widget-helper.c:7407
boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *)
Definition: widget-helper.c:3489
boolean lives_painter_translate(lives_painter_t *, double x, double y)
Definition: widget-helper.c:426
boolean lives_widget_set_sensitive_with(LiVESWidget *, LiVESWidget *other)
Definition: widget-helper.c:8545
boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image)
Definition: widget-helper.c:7013
boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode)
Definition: widget-helper.c:6193
Definition: widget-helper.h:1049
LiVESWidgetColor * lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2)
Definition: widget-helper.c:1595
boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1389
int lives_painter_image_surface_get_height(lives_painter_surface_t *)
Definition: widget-helper.c:660
boolean lives_combo_set_active_index(LiVESCombo *, int index)
Definition: widget-helper.c:3476
LiVESWidget * lives_combo_get_entry(LiVESCombo *)
Definition: widget-helper.c:10879
boolean lives_lock_button_get_locked(LiVESButton *lockbutton)
Definition: widget-helper.c:9492
LiVESSList * lives_radio_menu_item_get_group(LiVESRadioMenuItem *)
Definition: widget-helper.c:6856
boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos)
Definition: widget-helper.c:7117
LiVESWidget * lives_vbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2831
boolean lives_window_set_modal(LiVESWindow *, boolean modal)
Definition: widget-helper.c:2042
boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags, LiVESWidgetClosure *closure)
Definition: widget-helper.c:2421
uint32_t lives_accelerator_get_default_mod_mask()
Definition: widget-helper.c:7979
boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos)
Definition: widget-helper.c:2280
Definition: widget-helper.h:1043
int lives_pixbuf_get_height(const LiVESPixbuf *)
Definition: widget-helper.c:2656
void lives_menu_item_set_text(LiVESWidget *menuitem, const char *text, boolean use_mnemonic)
Definition: widget-helper.c:10457
LiVESPixbuf * lives_image_get_pixbuf(LiVESImage *)
Definition: widget-helper.c:1845
int lives_screen_get_height(LiVESXScreen *)
Definition: widget-helper.c:8000
char * title_prefix
Text which is prepended to window titles, etc.
Definition: widget-helper.h:1130
boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink)
Definition: widget-helper.c:4108
LiVESWidget * lives_text_view_new_with_buffer(LiVESTextBuffer *)
Definition: widget-helper.c:3548
LiVESWidget * lives_alignment_new(float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:3203
Definition: widget-helper.h:1110
LiVESWidget * lives_hbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2812
boolean lives_entry_set_text(LiVESEntry *, const char *text)
Definition: widget-helper.c:6542
boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos)
Definition: widget-helper.c:2772
double lives_ruler_set_upper(LiVESRuler *, double upper)
Definition: widget-helper.c:5146
lives_colRGBA64_t lives_rgba_col_new(int red, int green, int blue, int alpha)
Definition: widget-helper.c:11047
LiVESTextMark * lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name, const LiVESTextIter *where, boolean left_gravity)
Definition: widget-helper.c:3747
boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below)
Definition: widget-helper.c:2111
boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits)
Definition: widget-helper.c:4965
boolean lives_menu_set_title(LiVESMenu *, const char *title)
Definition: widget-helper.c:7033
LiVESWidget * lives_menu_add_separator(LiVESMenu *)
Definition: widget-helper.c:10447
boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has)
Definition: widget-helper.c:6699
int lives_tree_path_get_depth(LiVESTreePath *)
Definition: widget-helper.c:5876
Definition: widget-helper.h:1048
lives_display_t lives_widget_get_display_type(LiVESWidget *)
Definition: widget-helper.c:7890
boolean lives_box_set_spacing(LiVESBox *, int spacing)
Definition: widget-helper.c:2793
boolean lives_window_unfullscreen(LiVESWindow *)
Definition: widget-helper.c:2349
boolean lives_widget_get_sensitive(LiVESWidget *)
Definition: widget-helper.c:886
boolean lives_widget_hide(LiVESWidget *)
Definition: widget-helper.c:918
boolean lives_widget_set_app_paintable(LiVESWidget *, boolean paintable)
Definition: widget-helper.c:1142
boolean lives_window_set_resizable(LiVESWindow *, boolean resizable)
Definition: widget-helper.c:2086
boolean lives_frame_set_label(LiVESFrame *, const char *label)
Definition: widget-helper.c:7360
LiVESWidget * lives_image_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6813
boolean lives_cursor_unref(LiVESXCursor *)
Definition: widget-helper.c:9988
boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha)
Definition: widget-helper.c:543
boolean lives_editable_set_editable(LiVESEditable *, boolean editable)
Definition: widget-helper.c:6404
boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel)
Definition: widget-helper.c:7472
boolean lives_toggle_tool_button_set_active(LiVESToggleToolButton *, boolean active)
Definition: widget-helper.c:4201
boolean widget_inact_toggle(LiVESWidget *, LiVESToggleButton *)
Definition: widget-helper.c:10153
boolean widget_opts_rescale(double scale)
Definition: widget-helper.c:9921
LiVESPixbuf * lives_pixbuf_new_from_stock_at_size(const char *stock_id, LiVESIconSize size, int x, int y)
Definition: widget-helper.c:1688
boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *)
Definition: widget-helper.c:7723
lives_painter_surface_t * lives_painter_get_target(lives_painter_t *)
Definition: widget-helper.c:613
boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *)
Definition: widget-helper.c:3760
size_t calc_spin_button_width(double min, double max, int dp)
Definition: widget-helper.c:8790
LiVESWidget * lives_glowing_check_button_new(const char *labeltext, LiVESBox *, const char *tooltip, boolean *togglevalue)
Definition: widget-helper.c:8651
const char * lives_window_get_title(LiVESWindow *)
Definition: widget-helper.c:2213
boolean lives_painter_set_source_rgb_from_lives_widget_color(lives_painter_t *, LiVESWidgetColor *)
Definition: widget-helper.c:9979
boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu)
Definition: widget-helper.c:6940
LiVESWidget * lives_check_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6867
boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue)
Definition: widget-helper.c:528
boolean lives_container_add(LiVESContainer *, LiVESWidget *)
Definition: widget-helper.c:4548
LiVESWidget * lives_toggle_tool_button_new(void)
Definition: widget-helper.c:4184
boolean lives_button_set_label(LiVESButton *, const char *label)
Definition: widget-helper.c:3987
#define ulong
Definition: main.h:137
boolean lives_grab_remove(LiVESWidget *)
Definition: widget-helper.c:851
double lives_adjustment_get_page_size(LiVESAdjustment *)
Definition: widget-helper.c:5473
LiVESAdjustment * lives_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Definition: widget-helper.c:2743
boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type)
Definition: widget-helper.c:6149
non-standard cursors
Definition: widget-helper.h:1046
LiVESWidget * lives_standard_button_new_from_stock(const char *stock_id, const char *labeltext)
Definition: widget-helper.c:8297
boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group)
Definition: widget-helper.c:2504
boolean lives_widget_set_margin_bottom(LiVESWidget *, int margin)
Definition: widget-helper.c:1958
widget_opts_t widget_opts
Definition: widget-helper.h:1136
boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:3721
#define W_BORDER_WIDTH
Definition: widget-helper.h:42
boolean lives_label_set_text(LiVESLabel *, const char *text)
Definition: widget-helper.c:6316
uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data)
Definition: widget-helper.c:7935
boolean lives_frame_set_label_align(LiVESFrame *, float xalign, float yalign)
Definition: widget-helper.c:7373
boolean lives_spin_button_set_step_increment(LiVESSpinButton *button, double step_increment)
Definition: widget-helper.c:8770
LiVESWidget * lives_dialog_add_button_from_stock(LiVESDialog *dialog, const char *stock_id, const char *label, int response_id)
Definition: widget-helper.c:9073
boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len)
Definition: widget-helper.c:3666
LiVESWidget * lives_image_new_from_stock_at_size(const char *stock_id, LiVESIconSize size, int x, int y)
Definition: widget-helper.c:1761
boolean lives_toggle_button_get_active(LiVESToggleButton *)
Definition: widget-helper.c:4147
boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction)
Definition: widget-helper.c:4810
LiVESWidget * lives_drawing_area_new(void)
Definition: widget-helper.c:4122
boolean lives_object_unref(livespointer)
decrease refcount by one: if refcount==0, object is destroyed
Definition: widget-helper.c:715
boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing)
Definition: widget-helper.c:7533
lives_expand_t expand
how much space to apply between widgets
Definition: widget-helper.h:1117
#define W_PACKING_WIDTH
Definition: widget-helper.h:40
boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind)
Definition: widget-helper.c:4171
uint8_t * lives_painter_image_surface_get_data(lives_painter_surface_t *)
Definition: widget-helper.c:637
boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t)
Definition: widget-helper.c:512
double scale
scale factor for all sizes
Definition: widget-helper.h:1119
boolean lives_progress_bar_pulse(LiVESProgressBar *)
Definition: widget-helper.c:4837
LiVESCellRenderer * lives_cell_renderer_text_new(void)
Definition: widget-helper.c:5181
char ** image_filter
/ NULL or NULL terminated list of image extensions which can be loaded
Definition: widget-helper.h:1129
boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos)
Definition: widget-helper.c:6429
boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate)
Definition: widget-helper.c:2730
boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:764
boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols)
Definition: widget-helper.c:7576
LiVESWidget * lives_menu_new(void)
Definition: widget-helper.c:6747
boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children)
Definition: widget-helper.c:1076
boolean lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *)
Definition: widget-helper.c:10136
LiVESWidget * lives_hscrollbar_new(LiVESAdjustment *)
Definition: widget-helper.c:3041
boolean lives_range_set_increments(LiVESRange *, double step, double page)
Definition: widget-helper.c:5647
boolean lives_range_set_inverted(LiVESRange *, boolean invert)
Definition: widget-helper.c:5662
LiVESWidget * lives_expander_new(const char *label)
Definition: widget-helper.c:3250
WIDGET_HELPER_GLOBAL_INLINE boolean lives_grid_insert_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:7324
boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label)
Definition: widget-helper.c:5046
double lives_adjustment_get_value(LiVESAdjustment *)
Definition: widget-helper.c:5502
LiVESWidget * add_vsep_to_box(LiVESBox *)
Definition: widget-helper.c:10909
boolean lives_widget_show(LiVESWidget *)
Definition: widget-helper.c:897
LiVESWidget * lives_standard_hruler_new(void)
Definition: widget-helper.c:9281
LiVESWidget * lives_standard_frame_new(const char *labeltext, float xalign, boolean invisible_outline)
Definition: widget-helper.c:8442
LiVESWidget * lives_standard_direntry_new(const char *labeltext, const char *txt, int dispwidth, int maxchars, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:9252
boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *)
Definition: widget-helper.c:1530
LiVESList * lives_container_get_children(LiVESContainer *)
Definition: widget-helper.c:4753
boolean lives_painter_move_to(lives_painter_t *, double x, double y)
Definition: widget-helper.c:454
boolean label_act_lockbutton(LiVESWidget *, LiVESXEventButton *, LiVESButton *)
Definition: widget-helper.c:9524
LiVESWidget * lives_image_new(void)
Definition: widget-helper.c:1657
LiVESTreeModel * lives_tree_view_get_model(LiVESTreeView *)
Definition: widget-helper.c:6045
boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *)
Definition: widget-helper.c:3789
boolean lives_scale_set_digits(LiVESScale *, int digits)
Definition: widget-helper.c:7185
double lives_scale_button_get_value(LiVESScaleButton *)
Definition: widget-helper.c:7219
void set_child_alt_colour(LiVESWidget *, boolean set_all)
Definition: widget-helper.c:10252
boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:5749
LiVESWidget * lives_button_get_label_widget(LiVESButton *)
LiVESAdjustment * lives_spin_button_get_adjustment(LiVESSpinButton *)
Definition: widget-helper.c:4886
boolean lives_timer_remove(uint32_t timer)
Definition: widget-helper.c:7952
double lives_adjustment_get_step_increment(LiVESAdjustment *)
Definition: widget-helper.c:5489
boolean get_border_size(LiVESWidget *win, int *bx, int *by)
Definition: widget-helper.c:10832
LiVESWidget * lives_frame_get_label_widget(LiVESFrame *)
Definition: widget-helper.c:7395
boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text)
Definition: widget-helper.c:4264
Definition: widget-helper.h:36
boolean lives_widget_set_font_size(LiVESWidget *, LiVESWidgetState state, const char *size)
Definition: widget-helper.c:1518
boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child)
Definition: widget-helper.c:4766
boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value)
Definition: widget-helper.c:7161
LiVESTreeSelection * lives_tree_view_get_selection(LiVESTreeView *)
Definition: widget-helper.c:6057
boolean lives_scrolled_window_set_min_content_height(LiVESScrolledWindow *, int height)
Definition: widget-helper.c:6644
boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:814
#define TRUE
Definition: videoplugin.h:55
boolean lives_container_remove(LiVESContainer *, LiVESWidget *)
Definition: widget-helper.c:4626
LiVESXWindow * lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y)
Definition: widget-helper.c:7829
LiVESWidget * lives_container_get_focus_child(LiVESContainer *)
Definition: widget-helper.c:4790
boolean lives_entry_set_alignment(LiVESEntry *, float align)
Definition: widget-helper.c:6522
LiVESWidget * lives_notebook_get_nth_page(LiVESNotebook *, int pagenum)
Definition: widget-helper.c:7431
boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting)
Definition: widget-helper.c:3598
boolean lives_widget_color_mix(LiVESWidgetColor *c1, const LiVESWidgetColor *c2, float mixval)
Definition: widget-helper.c:1582
int get_box_child_index(LiVESBox *, LiVESWidget *child)
Definition: widget-helper.c:10314
LiVESWidget * lives_standard_lock_button_new(boolean is_locked, int width, int height, const char *tooltip)
Definition: widget-helper.c:9531
boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:788
boolean lives_accel_path_disconnect(LiVESAccelGroup *, const char *path)
Definition: widget-helper.c:11036
LiVESWidget * lives_standard_label_new_with_mnemonic_widget(const char *text, LiVESWidget *mnemonic_widget)
Definition: widget-helper.c:8430
boolean lives_painter_surface_flush(lives_painter_surface_t *)
Definition: widget-helper.c:572
boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size)
Definition: widget-helper.c:5285
LiVESWidget * lives_standard_color_button_new(LiVESBox *parent, const char *name, boolean use_alpha, lives_colRGBA64_t *rgba, LiVESWidget **sb_red, LiVESWidget **sb_green, LiVESWidget **sb_blue, LiVESWidget **sb_alpha)
Definition: widget-helper.c:9697
boolean lives_painter_set_line_width(lives_painter_t *, double width)
Definition: widget-helper.c:441
boolean lives_rgba_copy(lives_colRGBA64_t *col1, lives_colRGBA64_t *col2)
Definition: widget-helper.c:11093
boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper)
Definition: widget-helper.c:5514
Definition: widget-helper.h:1039
boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle)
Definition: widget-helper.c:2970
void set_child_colour(LiVESWidget *, boolean set_all)
Definition: widget-helper.c:10187
LiVESWidget * lives_standard_button_new(void)
Definition: widget-helper.c:8287
LiVESWidget * lives_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6783
LiVESWidget * lives_standard_file_button_new(boolean is_dir, const char *def_dir)
Definition: widget-helper.c:9475
boolean lives_label_set_halignment(LiVESLabel *, float yalign)
Definition: widget-helper.c:3290
boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position)
Definition: widget-helper.c:6290
boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len)
Definition: widget-helper.c:3680
uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg)
Definition: widget-helper.c:7911
LiVESWidget * lives_dialog_get_action_area(LiVESDialog *)
Definition: widget-helper.c:1896
LiVESWidget * lives_frame_new(const char *label)
Definition: widget-helper.c:7348
boolean lives_painter_line_to(lives_painter_t *, double x, double y)
Definition: widget-helper.c:467
boolean lives_widget_get_mod_mask(LiVESWidget *, LiVESXModifierType *modmask)
Definition: main.h:307
LiVESWidget * lives_window_new(LiVESWindowType wintype)
Definition: widget-helper.c:1988
LiVESAdjustment * lives_range_get_adjustment(LiVESRange *)
Definition: widget-helper.c:5607
LiVESWidget * lives_menu_item_get_submenu(LiVESMenuItem *)
Definition: widget-helper.c:6805
boolean unhide_cursor(LiVESXWindow *)
Definition: widget-helper.c:10637
boolean lives_range_set_range(LiVESRange *, double min, double max)
Definition: widget-helper.c:5628
boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *)
Definition: widget-helper.c:6679
boolean lives_image_scale(LiVESImage *, int width, int height, LiVESInterpType interp_type)
Definition: widget-helper.c:8056
boolean lives_painter_paint(lives_painter_t *)
Definition: widget-helper.c:296
LiVESPixbuf * lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height, LiVESInterpType interp_type)
Definition: widget-helper.c:2711
LiVESWidget * lives_standard_radio_button_new(const char *labeltext, LiVESSList **rbgroup, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:8714
LiVESWidget * lives_standard_check_menu_item_new_with_label(const char *labeltext, boolean active)
Definition: widget-helper.c:8358
boolean lives_text_view_set_editable(LiVESTextView *, boolean setting)
Definition: widget-helper.c:3572
boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:1415
boolean lives_table_set_column_homogeneous(LiVESTable *, boolean homogeneous)
Definition: widget-helper.c:7563
boolean lives_toggle_tool_button_get_active(LiVESToggleToolButton *)
Definition: widget-helper.c:4193
boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2884
boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id)
Definition: widget-helper.c:1969
Definition: widget-helper.h:1037
boolean lives_button_grab_default_special(LiVESWidget *)
Definition: widget-helper.c:8223
void hide_cursor(LiVESXWindow *)
Definition: widget-helper.c:10594
boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *)
Definition: widget-helper.c:1551
LiVESWidget * lives_vscrollbar_new(LiVESAdjustment *)
Definition: widget-helper.c:3057
boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *)
Definition: widget-helper.c:2181
boolean lives_widget_set_sensitive(LiVESWidget *, boolean state)
Definition: widget-helper.c:860
const char * font_size
Definition: widget-helper.h:1128
boolean lives_menu_item_activate(LiVESMenuItem *)
Definition: widget-helper.c:6974
LiVESWidget * lives_standard_button_new_with_label(const char *labeltext)
Definition: widget-helper.c:8292
int lives_widget_get_allocation_height(LiVESWidget *)
Definition: widget-helper.c:5369
boolean lives_widget_set_size_request(LiVESWidget *, int width, int height)
Definition: widget-helper.c:1026
boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:3708
boolean lives_window_set_deletable(LiVESWindow *, boolean deletable)
Definition: widget-helper.c:2059
boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *)
Definition: widget-helper.c:6206
boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *)
Definition: widget-helper.c:10063
LiVESWidget * lives_standard_fileentry_new(const char *labeltext, const char *txt, const char *defdir, int dispwidth, int maxchars, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:9258
LiVESWidget * lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj)
Definition: widget-helper.c:6575
Definition: widget-helper.h:1047
boolean lives_button_set_image(LiVESButton *, LiVESWidget *image)
Definition: widget-helper.c:4026
LiVESWidget * lives_button_new_from_stock(const char *stock_id, const char *label)
Definition: widget-helper.c:3837
void lives_widget_apply_theme_dimmed2(LiVESWidget *widget, LiVESWidgetState state, int dimval)
Definition: widget-helper.c:10051
boolean lives_source_remove(uint32_t handle)
Definition: widget-helper.c:7966
boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:3734
boolean lives_widget_set_events(LiVESWidget *, int events)
Definition: widget-helper.c:4452
void lives_label_set_hpadding(LiVESLabel *label, int pad)
Definition: widget-helper.c:8070
must be zero
Definition: widget-helper.h:1036
const char * lives_textsize_to_string(int val)
Definition: widget-helper.c:11117
const char * lives_menu_item_get_text(LiVESWidget *menuitem)
Definition: widget-helper.c:10468
boolean lives_container_set_border_width(LiVESContainer *, uint32_t width)
Definition: widget-helper.c:4693
#define W_PACKING_HEIGHT
Definition: widget-helper.h:41
LiVESWidget * lives_check_button_new_with_label(const char *label)
Definition: widget-helper.c:4246
void lives_widget_apply_theme3(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:10028
boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos)
Definition: widget-helper.c:5243
boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *)
Definition: widget-helper.c:10160
#define W_FILL_LENGTH
Definition: widget-helper.h:43
boolean lives_painter_destroy(lives_painter_t *)
Definition: widget-helper.c:353
boolean lives_widget_color_equal(LiVESWidgetColor *, const LiVESWidgetColor *)
Definition: widget-helper.c:1570
boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child)
Definition: widget-helper.c:7097
LiVESToolItem * lives_standard_menu_tool_button_new(LiVESWidget *icon, const char *label)
Definition: widget-helper.c:8677
boolean lives_combo_populate(LiVESCombo *, LiVESList *list)
Definition: widget-helper.c:8109
int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *)
Definition: widget-helper.c:6069
boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon)
Definition: widget-helper.c:5026
boolean lives_xwindow_raise(LiVESXWindow *)
Definition: widget-helper.c:6666
boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper)
Definition: widget-helper.c:5591
LiVESWidget * lives_standard_radio_menu_item_new_with_label(LiVESSList *group, const char *labeltext)
Definition: widget-helper.c:8347
double lives_spin_button_get_value(LiVESSpinButton *)
Definition: widget-helper.c:4864
lives_display_t
Definition: widget-helper.h:32
unsigned char * lives_pixbuf_get_pixels(const LiVESPixbuf *)
Definition: widget-helper.c:2678
boolean lives_entry_set_editable(LiVESEntry *, boolean editable)
Definition: widget-helper.c:8044
LiVESWidget * lives_widget_get_toplevel(LiVESWidget *)
Definition: widget-helper.c:4336
LiVESWidget * align_horizontal_with(LiVESWidget *thingtoadd, LiVESWidget *thingtoalignwith)
Definition: widget-helper.c:8078
boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child)
Definition: widget-helper.c:7131
int lives_widget_get_allocation_x(LiVESWidget *)
Definition: widget-helper.c:5311
boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group)
Definition: widget-helper.c:2462
void set_child_dimmed_colour(LiVESWidget *widget, int dim)
Definition: widget-helper.c:10207
boolean lives_range_set_value(LiVESRange *, double value)
Definition: widget-helper.c:5619
#define LIVES_EXPAND_DEFAULT
Definition: widget-helper.h:1058
int lives_notebook_get_current_page(LiVESNotebook *)
Definition: widget-helper.c:7447
LiVESWidget * lives_color_button_new_with_color(const LiVESWidgetColor *)
Definition: widget-helper.c:7657
boolean lives_tool_button_set_border_colour(LiVESWidget *button, LiVESWidgetState state, LiVESWidgetColor *)
Definition: widget-helper.c:10995
boolean lives_widget_has_focus(LiVESWidget *)
Definition: widget-helper.c:2475
boolean lives_has_toplevel_focus(LiVESWidget *window)
Definition: widget-helper.c:8036
int filler_len
length of extra "fill" between widgets
Definition: widget-helper.h:1123
boolean widget_color_to_lives_rgba(lives_colRGBA64_t *, LiVESWidgetColor *)
Definition: widget-helper.c:11057
boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data)
int lives_event_get_time(LiVESXEvent *)
Definition: widget-helper.c:4134
boolean lives_spin_button_set_value(LiVESSpinButton *, double value)
Definition: widget-helper.c:4908
LiVESWidget * add_hsep_to_box(LiVESBox *)
Definition: widget-helper.c:10898
boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end)
Definition: widget-helper.c:3773
boolean lives_label_set_markup(LiVESLabel *, const char *markup)
Definition: widget-helper.c:6332
boolean lives_scale_button_set_value(LiVESScaleButton *, double value)
Definition: widget-helper.c:7235
int lives_painter_image_surface_get_width(lives_painter_surface_t *)
Definition: widget-helper.c:648
LiVESList * get_textsizes_list(void)
Definition: widget-helper.c:11102
Definition: widget-helper.h:34
void lives_cool_toggled(LiVESWidget *tbutton, livespointer)
Definition: widget-helper.c:10672
LiVESWidgetState lives_widget_get_state(LiVESWidget *widget)
Definition: widget-helper.c:5404
LiVESWidget * lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height)
Definition: widget-helper.c:9124
WIDGET_HELPER_GLOBAL_INLINE LiVESWidget * lives_grid_new(void)
Definition: widget-helper.c:7280
boolean lives_widget_set_valign(LiVESWidget *, LiVESAlign align)
Definition: widget-helper.c:3173
LiVESAdjustment * lives_tree_view_get_hadjustment(LiVESTreeView *)
Definition: widget-helper.c:6095
boolean no_gui
show nothing !
Definition: widget-helper.h:1111
boolean toggle_button_toggle(LiVESToggleButton *)
boolean lives_window_get_position(LiVESWindow *, int *x, int *y)
Definition: widget-helper.c:2262
LiVESWidget * lives_widget_get_parent(LiVESWidget *)
Definition: widget-helper.c:4325
LiVESWidget * lives_image_new_from_file(const char *filename)
Definition: widget-helper.c:1800
LiVESWidget * lives_hpaned_new(void)
Definition: widget-helper.c:3005
boolean lives_widget_set_hexpand(LiVESWidget *, boolean state)
Definition: widget-helper.c:6715
boolean lives_menu_item_set_accel_path(LiVESMenuItem *, const char *path)
Definition: widget-helper.c:6796
boolean lives_painter_clip(lives_painter_t *)
Definition: widget-helper.c:338
#define WARN_UNUSED
Definition: main.h:262
LiVESWidget * lives_check_button_new(void)
Definition: widget-helper.c:4234
LiVESWidget * lives_vbutton_box_new(void)
Definition: widget-helper.c:2954
double lives_ruler_set_value(LiVESRuler *, double value)
Definition: widget-helper.c:5131
boolean lives_window_present(LiVESWindow *)
Definition: widget-helper.c:2318
boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent)
Definition: widget-helper.c:1107
boolean lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size)
Definition: widget-helper.c:5079
LiVESTextBuffer * lives_text_buffer_new(void)
Definition: widget-helper.c:3639
boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod)
Definition: widget-helper.c:2517
LiVESWidget * lives_expander_get_label_widget(LiVESExpander *expander)
Definition: widget-helper.c:3263
#define FALSE
Definition: videoplugin.h:56
void lives_general_button_clicked(LiVESButton *, livespointer data_to_free)
Definition: widget-helper.c:10890
boolean lives_combo_set_entry_text_column(LiVESCombo *, int column)
Definition: widget-helper.c:3443
int lives_screen_get_width(LiVESXScreen *)
Definition: widget-helper.c:7989
void set_child_colour3(LiVESWidget *, boolean set_all)
Definition: widget-helper.c:10280
LiVESTreePath * lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:5763
LiVESWidget * lives_label_new(const char *text)
Definition: widget-helper.c:3073
boolean lives_rgba_to_widget_color(LiVESWidgetColor *, lives_colRGBA64_t *)
Definition: widget-helper.c:11073
LiVESWidget * lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group)
Definition: widget-helper.c:6889
boolean lives_widget_is_visible(LiVESWidget *)
Definition: widget-helper.c:4520
boolean line_wrap
line wrapping for labels
Definition: widget-helper.h:1114
LiVESToolItem * lives_separator_tool_item_new(void)
Definition: widget-helper.c:5014
LiVESToolItem * lives_tool_item_new(void)
Definition: widget-helper.c:5002
lives_painter_surface_t * lives_painter_image_surface_create(lives_painter_format_t format, int width, int height)
Definition: widget-helper.c:598
LiVESTextBuffer * lives_text_view_get_buffer(LiVESTextView *)
Definition: widget-helper.c:3560
boolean lives_widget_is_sensitive(LiVESWidget *)
Definition: widget-helper.c:4504
Definition: widget-helper.h:1042
boolean lives_widget_is_realized(LiVESWidget *)
Definition: widget-helper.c:4535
LiVESWidget * lives_combo_new_with_model(LiVESTreeModel *model)
Definition: widget-helper.c:3329
boolean lives_widget_set_vexpand(LiVESWidget *, boolean state)
Definition: widget-helper.c:6731
boolean lives_combo_set_active_text(LiVESCombo *, const char *text)