LiVES  2.4.6
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
widget-helper.h
Go to the documentation of this file.
1 // widget-helper.h
2 // LiVES
3 // (c) G. Finch 2012 - 2015 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 #ifndef HAS_LIVES_WIDGET_HELPER_H
8 #define HAS_LIVES_WIDGET_HELPER_H
9 
10 
11 #ifndef M_PI
12 #define M_PI 3.1415926536
13 #endif
14 
15 #define LIVES_HAS_GRID_WIDGET 0
16 #define LIVES_HAS_IMAGE_MENU_ITEM 0
17 #define LIVES_HAS_DEVICE_MANAGER 0
18 
19 typedef enum {
24 
25 
26 #define W_PACKING_WIDTH 10 // packing width for widgets with labels
27 #define W_PACKING_HEIGHT 10 // packing height for widgets
28 #define W_BORDER_WIDTH 10 // default border width
29 
30 #define ulong_random() lives_random()
31 
32 #if defined (GUI_GTK) || defined (PAINTER_CAIRO)
33 #include "widget-helper-gtk.h"
34 #endif
35 
36 // basic functions (wrappers for Toolkit functions)
37 
38 // lives_painter_functions
39 
40 lives_painter_t *lives_painter_create(lives_painter_surface_t *target);
41 lives_painter_t *lives_painter_create_from_widget(LiVESWidget *);
42 boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y);
43 boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y);
44 lives_painter_surface_t *lives_painter_image_surface_create(lives_painter_format_t format, int width, int height);
45 lives_painter_surface_t *lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t,
46  int width, int height, int stride);
47 lives_painter_surface_t *lives_painter_surface_create_from_widget(LiVESWidget *, lives_painter_content_t,
48  int width, int height);
49 boolean lives_painter_surface_flush(lives_painter_surface_t *);
50 
51 boolean lives_painter_destroy(lives_painter_t *);
52 
53 boolean lives_painter_new_path(lives_painter_t *);
54 
55 boolean lives_painter_paint(lives_painter_t *);
56 boolean lives_painter_fill(lives_painter_t *);
57 boolean lives_painter_stroke(lives_painter_t *);
58 boolean lives_painter_clip(lives_painter_t *);
59 
60 boolean lives_painter_render_background(LiVESWidget *, lives_painter_t *, double x, double y, double width, double height);
61 
62 boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue);
63 boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha);
64 
65 boolean lives_painter_set_line_width(lives_painter_t *, double width);
66 
67 boolean lives_painter_translate(lives_painter_t *, double x, double y);
68 
69 boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height);
70 boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2);
71 boolean lives_painter_line_to(lives_painter_t *, double x, double y);
72 boolean lives_painter_move_to(lives_painter_t *, double x, double y);
73 
74 boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t);
75 
76 boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t);
77 
78 
79 lives_painter_surface_t *lives_painter_get_target(lives_painter_t *);
80 int lives_painter_format_stride_for_width(lives_painter_format_t, int width);
81 
82 uint8_t *lives_painter_image_surface_get_data(lives_painter_surface_t *);
83 int lives_painter_image_surface_get_width(lives_painter_surface_t *);
84 int lives_painter_image_surface_get_height(lives_painter_surface_t *);
85 int lives_painter_image_surface_get_stride(lives_painter_surface_t *);
86 lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *);
87 
88 
89 
90 
91 // utils
92 
93 boolean widget_helper_init(void);
94 
95 // object funcs.
96 
97 livespointer lives_object_ref(livespointer);
98 boolean lives_object_unref(livespointer);
99 
100 // remove any "floating" reference and add a new ref
101 #ifdef GUI_GTK
102 #if GTK_CHECK_VERSION(3,0,0)
103 livespointer lives_object_ref_sink(livespointer);
104 #else
105 void lives_object_ref_sink(livespointer);
106 #endif
107 #else
108 livespointer lives_object_ref_sink(livespointer);
109 #endif
110 
111 
112 // lives_pixbuf functions
113 
114 int lives_pixbuf_get_width(const LiVESPixbuf *);
115 int lives_pixbuf_get_height(const LiVESPixbuf *);
116 boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *);
117 int lives_pixbuf_get_rowstride(const LiVESPixbuf *);
118 int lives_pixbuf_get_n_channels(const LiVESPixbuf *);
119 unsigned char *lives_pixbuf_get_pixels(const LiVESPixbuf *);
120 const unsigned char *lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *);
121 LiVESPixbuf *lives_pixbuf_new(boolean has_alpha, int width, int height);
122 LiVESPixbuf *lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height,
123  int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
124  livespointer destroy_fn_data);
125 
126 LiVESPixbuf *lives_pixbuf_new_from_file(const char *filename, LiVESError **error);
127 LiVESWidget *lives_image_new_from_pixbuf(LiVESPixbuf *);
128 LiVESPixbuf *lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio,
129  LiVESError **error);
130 
131 
132 LiVESPixbuf *lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height,
133  LiVESInterpType interp_type);
134 
135 boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate);
136 
137 // basic widget fns (TODO - amend all void to return boolean)
138 
139 boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable);
140 
141 
142 #ifdef GUI_GTK
143 
144 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
145 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
146 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
147 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
148 #else
149 ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data);
150 boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data);
151 boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data);
152 #endif
153 
154 boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id);
155 boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id);
156 
157 boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id);
158 boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal);
159 
160 
161 boolean lives_widget_set_sensitive(LiVESWidget *, boolean state);
162 boolean lives_widget_get_sensitive(LiVESWidget *);
163 
164 boolean lives_widget_show(LiVESWidget *);
165 boolean lives_widget_show_all(LiVESWidget *);
166 boolean lives_widget_hide(LiVESWidget *);
167 boolean lives_widget_destroy(LiVESWidget *);
168 
169 boolean lives_widget_queue_draw(LiVESWidget *);
170 boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height);
171 boolean lives_widget_queue_resize(LiVESWidget *);
172 boolean lives_widget_set_size_request(LiVESWidget *, int width, int height);
173 
174 boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent);
175 
176 boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable);
177 
178 LiVESWidget *lives_event_box_new(void);
179 boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set);
180 
181 LiVESWidget *lives_label_new(const char *text);
182 LiVESWidget *lives_label_new_with_mnemonic(const char *text);
183 
184 const char *lives_label_get_text(LiVESLabel *);
185 boolean lives_label_set_text(LiVESLabel *, const char *text);
186 boolean lives_label_set_text_with_mnemonic(LiVESLabel *, const char *text);
187 
188 boolean lives_label_set_markup(LiVESLabel *, const char *markup);
189 boolean lives_label_set_markup_with_mnemonic(LiVESLabel *, const char *markup);
190 
191 boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget);
192 LiVESWidget *lives_label_get_mnemonic_widget(LiVESLabel *);
193 
194 boolean lives_label_set_selectable(LiVESLabel *, boolean setting);
195 
196 
197 LiVESWidget *lives_button_new(void);
198 LiVESWidget *lives_button_new_from_stock(const char *stock_id, const char *label);
199 LiVESWidget *lives_button_new_with_label(const char *label);
200 LiVESWidget *lives_button_new_with_mnemonic(const char *label);
201 
202 boolean lives_button_set_label(LiVESButton *, const char *label);
203 
204 boolean lives_button_set_use_underline(LiVESButton *, boolean use);
205 boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle);
206 boolean lives_button_set_image(LiVESButton *, LiVESWidget *image);
207 boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus);
208 
209 LiVESWidget *lives_check_button_new(void);
210 LiVESWidget *lives_check_button_new_with_label(const char *label);
211 
212 LiVESWidget *lives_radio_button_new(LiVESSList *group);
213 
214 LiVESWidget *lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits);
215 
216 LiVESResponseType lives_dialog_run(LiVESDialog *);
217 boolean lives_dialog_response(LiVESDialog *, int response);
218 
219 boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
220 boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
221 boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
222 boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
223 
224 boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
225 boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
226 
227 boolean lives_color_parse(const char *spec, LiVESWidgetColor *);
228 
229 LiVESWidgetColor *lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2);
230 
231 LiVESWidget *lives_event_box_new(void);
232 
233 LiVESWidget *lives_image_new(void);
234 LiVESWidget *lives_image_new_from_file(const char *filename);
235 LiVESWidget *lives_image_new_from_stock(const char *stock_id, LiVESIconSize size);
236 
237 boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *);
238 LiVESPixbuf *lives_image_get_pixbuf(LiVESImage *);
239 
240 LiVESWidget *lives_dialog_get_content_area(LiVESDialog *);
241 LiVESWidget *lives_dialog_get_action_area(LiVESDialog *);
242 
243 boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id);
244 
245 LiVESWidget *lives_window_new(LiVESWindowType wintype);
246 boolean lives_window_set_title(LiVESWindow *, const char *title);
247 const char *lives_window_get_title(LiVESWindow *);
248 boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent);
249 
250 boolean lives_window_set_modal(LiVESWindow *, boolean modal);
251 boolean lives_window_set_deletable(LiVESWindow *, boolean deletable);
252 boolean lives_window_set_resizable(LiVESWindow *, boolean resizable);
253 boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below);
254 boolean lives_window_set_decorated(LiVESWindow *, boolean decorated);
255 
256 boolean lives_window_set_default_size(LiVESWindow *, int width, int height);
257 
258 boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *);
259 
260 boolean lives_widget_get_position(LiVESWidget *, int *x, int *y);
261 
262 boolean lives_window_move(LiVESWindow *, int x, int y);
263 boolean lives_window_get_position(LiVESWindow *, int *x, int *y);
264 boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos);
265 boolean lives_window_resize(LiVESWindow *, int width, int height);
266 boolean lives_window_present(LiVESWindow *);
267 boolean lives_window_fullscreen(LiVESWindow *);
268 boolean lives_window_unfullscreen(LiVESWindow *);
269 boolean lives_window_maximize(LiVESWindow *);
270 boolean lives_window_unmaximize(LiVESWindow *);
271 boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting);
272 
273 boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group);
274 boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group);
275 boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group);
276 
277 boolean lives_window_has_toplevel_focus(LiVESWindow *);
278 
279 LiVESAdjustment *lives_adjustment_new(double value, double lower, double upper,
280  double step_increment, double page_increment, double page_size);
281 
282 boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos);
283 boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous);
284 boolean lives_box_set_spacing(LiVESBox *, int spacing);
285 
286 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
287 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
288 
289 LiVESWidget *lives_hbox_new(boolean homogeneous, int spacing);
290 LiVESWidget *lives_vbox_new(boolean homogeneous, int spacing);
291 
292 LiVESWidget *lives_hseparator_new(void);
293 LiVESWidget *lives_vseparator_new(void);
294 
295 LiVESWidget *lives_hbutton_box_new(void);
296 LiVESWidget *lives_vbutton_box_new(void);
297 
298 boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle);
299 boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width);
300 
301 LiVESWidget *lives_hscale_new(LiVESAdjustment *);
302 LiVESWidget *lives_vscale_new(LiVESAdjustment *);
303 
304 LiVESWidget *lives_hpaned_new(void);
305 LiVESWidget *lives_vpaned_new(void);
306 
307 boolean lives_paned_set_position(LiVESPaned *, int pos);
308 boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink);
309 
310 LiVESWidget *lives_hscrollbar_new(LiVESAdjustment *);
311 LiVESWidget *lives_vscrollbar_new(LiVESAdjustment *);
312 
313 LiVESWidget *lives_arrow_new(LiVESArrowType, LiVESShadowType);
314 
315 LiVESWidget *lives_alignment_new(float xalign, float yalign, float xscale, float yscale);
316 boolean lives_alignment_set(LiVESAlignment *, float xalign, float yalign, float xscale, float yscale);
317 
318 LiVESWidget *lives_expander_new_with_mnemonic(const char *label);
319 LiVESWidget *lives_expander_new(const char *label);
320 LiVESWidget *lives_expander_get_label_widget(LiVESExpander *expander);
321 
322 boolean lives_label_set_halignment(LiVESLabel *, float yalign);
323 
324 LiVESWidget *lives_combo_new(void);
325 LiVESWidget *lives_combo_new_with_model(LiVESTreeModel *);
326 LiVESTreeModel *lives_combo_get_model(LiVESCombo *);
327 
328 boolean lives_combo_append_text(LiVESCombo *, const char *text);
329 boolean lives_combo_set_entry_text_column(LiVESCombo *, int column);
330 
331 char *lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED;
332 boolean lives_combo_set_active_text(LiVESCombo *, const char *text);
333 boolean lives_combo_set_active_index(LiVESCombo *, int index);
334 int lives_combo_get_active(LiVESCombo *);
335 boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *);
336 boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *);
337 boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str);
338 
339 LiVESWidget *lives_combo_get_entry(LiVESCombo *);
340 
341 boolean lives_combo_populate(LiVESCombo *, LiVESList *list);
342 
343 LiVESWidget *lives_text_view_new(void);
344 LiVESWidget *lives_text_view_new_with_buffer(LiVESTextBuffer *);
345 LiVESTextBuffer *lives_text_view_get_buffer(LiVESTextView *);
346 boolean lives_text_view_set_editable(LiVESTextView *, boolean setting);
347 boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting);
348 boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting);
349 boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode);
350 boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify);
351 
352 
353 boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *, LiVESTextMark *mark);
354 
355 
356 LiVESTextBuffer *lives_text_buffer_new(void);
357 char *lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars);
358 boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len);
359 
360 boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len);
361 boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len);
362 
363 boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *);
364 boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *);
365 
366 boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *);
367 
368 LiVESTextMark *lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name,
369  const LiVESTextIter *where, boolean left_gravity);
370 boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *);
371 
372 boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end);
373 
374 boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *);
375 
376 
377 boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *, ...);
378 boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *);
379 boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *);
380 LiVESTreePath *lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *);
381 boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent);
382 int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *);
383 boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *);
384 
385 boolean lives_tree_path_free(LiVESTreePath *);
386 LiVESTreePath *lives_tree_path_new_from_string(const char *path);
387 int lives_tree_path_get_depth(LiVESTreePath *);
388 int *lives_tree_path_get_indices(LiVESTreePath *);
389 
390 LiVESTreeStore *lives_tree_store_new(int ncols, ...);
391 boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent);
392 boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *, ...);
393 
394 LiVESWidget *lives_tree_view_new(void);
395 LiVESWidget *lives_tree_view_new_with_model(LiVESTreeModel *);
396 boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *);
397 LiVESTreeModel *lives_tree_view_get_model(LiVESTreeView *);
398 int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *);
399 boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis);
400 LiVESAdjustment *lives_tree_view_get_hadjustment(LiVESTreeView *);
401 LiVESTreeSelection *lives_tree_view_get_selection(LiVESTreeView *);
402 
403 
404 LiVESTreeViewColumn *lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *, ...);
405 boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type);
406 boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth);
407 
408 boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *);
409 boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode);
410 boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *);
411 
412 LiVESListStore *lives_list_store_new(int ncols, ...);
413 boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *, ...);
414 boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position);
415 
416 LiVESCellRenderer *lives_cell_renderer_text_new(void);
417 LiVESCellRenderer *lives_cell_renderer_spin_new(void);
418 LiVESCellRenderer *lives_cell_renderer_toggle_new(void);
419 LiVESCellRenderer *lives_cell_renderer_pixbuf_new(void);
420 
421 LiVESWidget *lives_drawing_area_new(void);
422 
423 int lives_event_get_time(LiVESXEvent *);
424 
425 boolean lives_toggle_button_get_active(LiVESToggleButton *);
426 boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active);
427 boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind);
428 
429 boolean lives_has_icon(const char *stock_id, LiVESIconSize size);
430 
431 void lives_tooltips_set(LiVESWidget *, const char *tip_text);
432 
433 LiVESSList *lives_radio_button_get_group(LiVESRadioButton *);
434 LiVESSList *lives_radio_menu_item_get_group(LiVESRadioMenuItem *);
435 
436 LiVESWidget *lives_widget_get_parent(LiVESWidget *);
437 LiVESWidget *lives_widget_get_toplevel(LiVESWidget *);
438 
439 LiVESXWindow *lives_widget_get_xwindow(LiVESWidget *);
440 boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting);
441 
442 boolean lives_widget_set_can_focus(LiVESWidget *, boolean state);
443 boolean lives_widget_set_can_default(LiVESWidget *, boolean state);
444 boolean lives_widget_set_can_focus_and_default(LiVESWidget *);
445 
446 boolean lives_widget_add_events(LiVESWidget *, int events);
447 boolean lives_widget_set_events(LiVESWidget *, int events);
448 boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods);
449 boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size);
450 
451 boolean lives_container_remove(LiVESContainer *, LiVESWidget *);
452 boolean lives_container_add(LiVESContainer *, LiVESWidget *);
453 boolean lives_container_set_border_width(LiVESContainer *, uint32_t width);
454 
455 boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data);
456 LiVESList *lives_container_get_children(LiVESContainer *);
457 boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child);
458 
459 LiVESWidget *lives_progress_bar_new(void);
460 boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction);
461 boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction);
462 boolean lives_progress_bar_pulse(LiVESProgressBar *);
463 
464 double lives_spin_button_get_value(LiVESSpinButton *);
465 int lives_spin_button_get_value_as_int(LiVESSpinButton *);
466 
467 LiVESAdjustment *lives_spin_button_get_adjustment(LiVESSpinButton *);
468 
469 boolean lives_spin_button_set_value(LiVESSpinButton *, double value);
470 boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max);
471 
472 boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap);
473 
474 boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits);
475 
476 boolean lives_spin_button_update(LiVESSpinButton *);
477 
478 LiVESWidget *lives_color_button_new_with_color(const LiVESWidgetColor *);
479 boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *);
480 boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *);
481 boolean lives_color_button_set_title(LiVESColorButton *, const char *title);
482 boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha);
483 
484 LiVESToolItem *lives_tool_button_new(LiVESWidget *icon_widget, const char *label);
485 LiVESToolItem *lives_tool_item_new(void);
486 boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon);
487 boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label);
488 boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline);
489 
490 LiVESWidget *lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
491  const char *msg_fmt, ...);
492 
493 double lives_ruler_get_value(LiVESRuler *);
494 double lives_ruler_set_value(LiVESRuler *, double value);
495 
496 void lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size);
497 double lives_ruler_set_upper(LiVESRuler *, double value);
498 double lives_ruler_set_lower(LiVESRuler *, double value);
499 
500 LiVESWidget *lives_toolbar_new(void);
501 boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos);
502 boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show);
503 LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *);
504 boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size);
505 boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style);
506 
507 int lives_widget_get_allocation_x(LiVESWidget *);
508 int lives_widget_get_allocation_y(LiVESWidget *);
509 int lives_widget_get_allocation_width(LiVESWidget *);
510 int lives_widget_get_allocation_height(LiVESWidget *);
511 
512 boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state);
513 LiVESWidgetState lives_widget_get_state(LiVESWidget *widget);
514 
515 LiVESWidget *lives_bin_get_child(LiVESBin *);
516 
517 boolean lives_widget_is_sensitive(LiVESWidget *);
518 boolean lives_widget_is_visible(LiVESWidget *);
519 
520 boolean lives_widget_is_realized(LiVESWidget *);
521 
522 double lives_adjustment_get_upper(LiVESAdjustment *);
523 double lives_adjustment_get_lower(LiVESAdjustment *);
524 double lives_adjustment_get_page_size(LiVESAdjustment *);
525 double lives_adjustment_get_value(LiVESAdjustment *);
526 
527 boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper);
528 boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower);
529 boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size);
530 boolean lives_adjustment_set_value(LiVESAdjustment *, double value);
531 
532 boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper);
533 
534 LiVESAdjustment *lives_range_get_adjustment(LiVESRange *);
535 boolean lives_range_set_value(LiVESRange *, double value);
536 boolean lives_range_set_range(LiVESRange *, double min, double max);
537 boolean lives_range_set_increments(LiVESRange *, double step, double page);
538 boolean lives_range_set_inverted(LiVESRange *, boolean invert);
539 
540 double lives_range_get_value(LiVESRange *);
541 
542 boolean lives_editable_set_editable(LiVESEditable *, boolean editable);
543 boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos);
544 
545 
546 LiVESWidget *lives_entry_new(void);
547 boolean lives_entry_set_editable(LiVESEntry *, boolean editable);
548 const char *lives_entry_get_text(LiVESEntry *);
549 boolean lives_entry_set_text(LiVESEntry *, const char *text);
550 boolean lives_entry_set_width_chars(LiVESEntry *, int nchars);
551 boolean lives_entry_set_max_length(LiVESEntry *, int len);
552 boolean lives_entry_set_activates_default(LiVESEntry *, boolean act);
553 boolean lives_entry_set_visibility(LiVESEntry *, boolean vis);
554 boolean lives_entry_set_has_frame(LiVESEntry *, boolean has);
555 
556 double lives_scale_button_get_value(LiVESScaleButton *);
557 boolean lives_scale_button_set_value(LiVESScaleButton *, double value);
558 
559 LiVESWidget *lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous);
560 boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing);
561 boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing);
562 boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols);
563 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
564  uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
565  uint32_t xpad, uint32_t ypad);
566 
567 boolean lives_table_set_column_homogeneous(LiVESTable *, boolean homogeneous);
568 boolean lives_table_set_row_homogeneous(LiVESTable *, boolean homogeneous);
569 
570 
571 #if LIVES_TABLE_IS_GRID
572 LiVESWidget *lives_grid_new(void);
573 boolean lives_grid_set_row_spacing(LiVESGrid *, uint32_t spacing);
574 boolean lives_grid_set_column_spacing(LiVESGrid *, uint32_t spacing);
575 boolean lives_grid_attach_next_to(LiVESGrid *, LiVESWidget *child, LiVESWidget *sibling,
576  LiVESPositionType side, int width, int height);
577 
578 boolean lives_grid_insert_row(LiVESGrid *, int posn);
579 boolean lives_grid_remove_row(LiVESGrid *, int posn);
580 #endif
581 
582 LiVESWidget *lives_frame_new(const char *label);
583 boolean lives_frame_set_label(LiVESFrame *, const char *label);
584 boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *);
585 LiVESWidget *lives_frame_get_label_widget(LiVESFrame *);
586 boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType);
587 
588 LiVESWidget *lives_notebook_new(void);
589 LiVESWidget *lives_notebook_get_nth_page(LiVESNotebook *, int pagenum);
590 int lives_notebook_get_current_page(LiVESNotebook *);
591 boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum);
592 boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel);
593 
594 LiVESWidget *lives_menu_new(void);
595 LiVESWidget *lives_menu_bar_new(void);
596 
597 boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *);
598 
599 boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos);
600 boolean lives_menu_detach(LiVESMenu *);
601 
602 boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos);
603 boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child);
604 boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child);
605 
606 LiVESWidget *lives_menu_item_new(void);
607 LiVESWidget *lives_menu_item_new_with_mnemonic(const char *label);
608 LiVESWidget *lives_menu_item_new_with_label(const char *label);
609 
610 LiVESWidget *lives_check_menu_item_new_with_mnemonic(const char *label);
611 LiVESWidget *lives_check_menu_item_new_with_label(const char *label);
612 boolean lives_check_menu_item_set_draw_as_radio(LiVESCheckMenuItem *, boolean setting);
613 
614 LiVESWidget *lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label);
615 LiVESWidget *lives_image_menu_item_new_with_label(const char *label);
616 LiVESWidget *lives_image_menu_item_new_with_mnemonic(const char *label);
617 LiVESWidget *lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group);
618 
619 LiVESToolItem *lives_menu_tool_button_new(LiVESWidget *icon, const char *label);
620 boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu);
621 
622 
623 #if !GTK_CHECK_VERSION(3,10,0)
624 
625 boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image);
626 
627 #endif
628 
629 boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *);
630 
631 boolean lives_menu_item_activate(LiVESMenuItem *);
632 
633 boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state);
634 boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *);
635 
636 boolean lives_menu_set_title(LiVESMenu *, const char *title);
637 
638 
639 int lives_display_get_n_screens(LiVESXDisplay *);
640 
641 
642 char *lives_file_chooser_get_filename(LiVESFileChooser *);
643 LiVESSList *lives_file_chooser_get_filenames(LiVESFileChooser *);
644 
645 boolean lives_widget_grab_focus(LiVESWidget *);
646 boolean lives_widget_grab_default(LiVESWidget *);
647 
648 boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text);
649 
650 boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children);
652 
653 LiVESAccelGroup *lives_accel_group_new(void);
654 boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags,
655  LiVESWidgetClosure *closure);
656 boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure);
657 boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod);
658 
659 boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group,
660  uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
661 
662 boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y);
663 LiVESXWindow *lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y);
664 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask);
665 boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y);
666 
667 LiVESXDisplay *lives_widget_get_display(LiVESWidget *);
669 
670 uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg);
671 
672 
673 LiVESWidget *lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj);
674 LiVESAdjustment *lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *);
675 LiVESAdjustment *lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *);
676 
677 boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy);
678 boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child);
679 
680 boolean lives_xwindow_raise(LiVESXWindow *);
681 boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *);
682 
683 uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data);
684 boolean lives_timer_remove(uint32_t timer);
685 
686 boolean lives_source_remove(ulong handle);
687 
689 
690 int lives_screen_get_width(LiVESXScreen *);
691 int lives_screen_get_height(LiVESXScreen *);
692 
693 boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value);
694 boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype);
695 boolean lives_scale_set_digits(LiVESScale *, int digits);
696 
697 // optional (return TRUE if implemented)
698 
699 boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has);
700 boolean lives_widget_set_hexpand(LiVESWidget *, boolean state);
701 boolean lives_widget_set_vexpand(LiVESWidget *, boolean state);
702 boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show);
703 boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation);
704 boolean lives_window_set_auto_startup_notification(boolean set);
705 
706 
707 
708 
709 // compound functions (composed of basic functions)
710 
711 LiVESWidget *lives_standard_label_new(const char *text);
712 LiVESWidget *lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget);
713 
714 LiVESWidget *lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip);
715 LiVESWidget *lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup,
716  LiVESBox *, const char *tooltip);
717 LiVESWidget *lives_standard_spin_button_new(const char *labeltext, boolean use_mnemonic, double val, double min,
718  double max, double step, double page, int dp, LiVESBox *,
719  const char *tooltip);
720 LiVESWidget *lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *,
721  const char *tooltip);
722 
723 LiVESWidget *lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *,
724  const char *tooltip);
725 
726 LiVESWidget *lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height);
727 
728 LiVESWidget *lives_standard_hruler_new(void);
729 
730 LiVESWidget *lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child);
731 
732 LiVESWidget *lives_standard_expander_new(const char *label, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child);
733 
734 LiVESWidget *lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume);
735 
736 LiVESWidget *lives_standard_file_button_new(boolean is_dir, const char *def_dir);
737 
738 LiVESXCursor *lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y);
739 
740 // util functions
741 
742 void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state); // normal theme colours
743 void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state); // menu and bars colours (bg only...)
744 
745 void lives_cursor_unref(LiVESXCursor *cursor);
746 
747 boolean lives_widget_context_update(void);
748 
749 LiVESWidget *lives_menu_add_separator(LiVESMenu *menu);
750 
751 void lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *);
752 
753 void lives_window_center(LiVESWindow *);
754 
755 boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *);
756 
757 void lives_widget_unparent(LiVESWidget *);
758 
759 void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source);
760 
761 char *lives_text_view_get_text(LiVESTextView *);
762 boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len);
763 
764 
765 boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text);
766 boolean lives_text_view_scroll_onscreen(LiVESTextView *);
767 
768 
769 
770 
771 void lives_general_button_clicked(LiVESButton *, livespointer data_to_free);
772 
773 void lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper,
774  double step_increment, double page_increment);
775 
776 
777 
778 size_t calc_spin_button_width(double min, double max, int dp);
779 
780 int get_box_child_index(LiVESBox *, LiVESWidget *child);
781 
782 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
783 boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *);
784 
785 void toggle_button_toggle(LiVESToggleButton *);
786 
787 // must retain this fn prototype as a callback
788 void set_child_colour(LiVESWidget *widget, livespointer set_all);
789 
790 void funkify_dialog(LiVESWidget *dialog);
791 
792 void unhide_cursor(LiVESXWindow *);
793 void hide_cursor(LiVESXWindow *);
794 
795 void get_border_size(LiVESWidget *win, int *bx, int *by);
796 
797 LiVESWidget *add_hsep_to_box(LiVESBox *);
798 LiVESWidget *add_vsep_to_box(LiVESBox *);
799 
800 LiVESWidget *add_fill_to_box(LiVESBox *);
801 
802 #endif // cplusplus
803 
804 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
805 
806 #define W_MAX_FILLER_LEN 65535
807 
808 
809 typedef enum {
818 
825 
826 void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *);
827 
828 typedef enum {
833 
834 
835 typedef struct {
836  boolean no_gui; // show nothing !
837  boolean swap_label; // swap label/widget position
838  boolean pack_end;
839  boolean line_wrap; // line wrapping for labels
840  boolean non_modal; // non-modal for dialogs
841  boolean expand; // whether spin,check,radio buttons should expand
842  boolean apply_theme; // whether to apply theming to widget
843  double scale; // scale factor for all sizes
844  int packing_width; // default should be W_PACKING_WIDTH
845  int packing_height; // default should be W_PACKING_HEIGHT
846  int border_width; // default should be W_BORDER_WIDTH
847  int filler_len; // length of extra "fill" between widgets
848  LiVESWidget *last_label; // label widget of last standard widget (spin,radio,check,entry,combo) [readonly]
849  LiVESJustification justify; // justify for labels
850  LiVESJustification default_justify;
851 } widget_opts_t;
852 
853 
855 
856 #ifdef NEED_DEF_WIDGET_OPTS
857 
859  FALSE, // no_gui
860  FALSE, // swap_label
861  FALSE, //pack_end
862  FALSE, // line_wrap
863  FALSE, // non_modal
864  LIVES_EXPAND_DEFAULT, // default expand
865  FALSE, // no themeing
866  1.0, // default scale
867  W_PACKING_WIDTH, // def packing width
868  W_PACKING_HEIGHT, // def packing height
869  W_BORDER_WIDTH, // def border width
870  8, // def fill width (in chars)
871  NULL, // last_label
872  LIVES_JUSTIFY_LEFT, // justify
873  LIVES_JUSTIFY_LEFT // default justify
874 };
875 
876 #else
877 
878 extern const widget_opts_t def_widget_opts;
879 
880 //#endif
881 
882 #endif
883 
LIVES_INLINE boolean lives_widget_queue_draw(LiVESWidget *widget)
Definition: widget-helper.c:767
LIVES_INLINE int lives_pixbuf_get_height(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2058
LIVES_INLINE int lives_screen_get_width(LiVESXScreen *screen)
Definition: widget-helper.c:7252
LIVES_INLINE boolean lives_menu_item_set_submenu(LiVESMenuItem *menuitem, LiVESWidget *menu)
Definition: widget-helper.c:6232
LIVES_INLINE LiVESWidgetColor * lives_widget_color_copy(LiVESWidgetColor *c1, const LiVESWidgetColor *c2)
Definition: widget-helper.c:1145
LIVES_INLINE boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *tbuff, LiVESTextIter *iter, LiVESTextMark *mark)
Definition: widget-helper.c:3132
LIVES_INLINE boolean lives_window_unfullscreen(LiVESWindow *window)
Definition: widget-helper.c:1742
LIVES_INLINE lives_painter_surface_t * lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t format, int width, int height, int stride)
Definition: widget-helper.c:370
LIVES_INLINE LiVESAdjustment * lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *swindow)
Definition: widget-helper.c:5821
LiVESJustification justify
Definition: widget-helper.h:849
LIVES_INLINE int lives_spin_button_get_value_as_int(LiVESSpinButton *button)
Definition: widget-helper.c:4140
LIVES_INLINE livespointer lives_object_ref(livespointer object)
increase refcount by one
Definition: widget-helper.c:539
LIVES_INLINE LiVESList * lives_container_get_children(LiVESContainer *cont)
Definition: widget-helper.c:4023
LIVES_INLINE LiVESWidget * lives_image_new_from_stock(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:1221
LIVES_INLINE lives_painter_t * lives_painter_create(lives_painter_surface_t *target)
Definition: widget-helper.c:21
LIVES_INLINE LiVESPixbuf * lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height, LiVESInterpType interp_type)
Definition: widget-helper.c:2116
boolean lives_widget_set_can_focus_and_default(LiVESWidget *widget)
Definition: widget-helper.c:8589
LIVES_INLINE boolean lives_painter_surface_flush(lives_painter_surface_t *surf)
Definition: widget-helper.c:357
LIVES_INLINE boolean lives_widget_set_hexpand(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:5914
LIVES_INLINE LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *toolbar)
Definition: widget-helper.c:4488
LIVES_INLINE boolean lives_window_set_keep_below(LiVESWindow *window, boolean set)
Definition: widget-helper.c:1515
LIVES_INLINE boolean lives_grid_set_column_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6584
LIVES_INLINE boolean lives_container_add(LiVESContainer *container, LiVESWidget *widget)
Definition: widget-helper.c:3817
LIVES_INLINE LiVESWidget * lives_hbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2221
LIVES_INLINE LiVESWidget * lives_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6008
LIVES_INLINE LiVESPixbuf * lives_image_get_pixbuf(LiVESImage *image)
Definition: widget-helper.c:1309
Definition: widget-helper.h:815
LIVES_INLINE boolean lives_color_button_get_color(LiVESColorButton *button, LiVESWidgetColor *color)
Definition: widget-helper.c:6963
LIVES_INLINE boolean lives_spin_button_set_range(LiVESSpinButton *button, double min, double max)
Definition: widget-helper.c:4176
LIVES_INLINE boolean lives_widget_set_events(LiVESWidget *widget, int events)
Definition: widget-helper.c:3732
LiVESWidget * add_hsep_to_box(LiVESBox *box)
Definition: widget-helper.c:8605
LIVES_INLINE boolean lives_tree_model_get_iter_first(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4946
LIVES_INLINE boolean lives_window_present(LiVESWindow *window)
Definition: widget-helper.c:1711
LIVES_INLINE LiVESWidget * lives_drawing_area_new(void)
Definition: widget-helper.c:3423
LIVES_INLINE boolean lives_painter_destroy(lives_painter_t *cr)
Definition: widget-helper.c:137
LIVES_INLINE boolean lives_painter_new_path(lives_painter_t *cr)
Definition: widget-helper.c:198
LIVES_INLINE boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:588
LIVES_INLINE boolean lives_widget_hide(LiVESWidget *widget)
Definition: widget-helper.c:728
LIVES_INLINE boolean lives_painter_paint(lives_painter_t *cr)
Definition: widget-helper.c:83
LIVES_INLINE boolean lives_widget_is_visible(LiVESWidget *widget)
Definition: widget-helper.c:3788
LIVES_INLINE boolean lives_paned_pack(int where, LiVESPaned *paned, LiVESWidget *child, boolean resize, boolean shrink)
Definition: widget-helper.c:3408
LIVES_INLINE boolean lives_tree_model_iter_children(LiVESTreeModel *tmod, LiVESTreeIter *titer, LiVESTreeIter *parent)
Definition: widget-helper.c:4988
void get_border_size(LiVESWidget *win, int *bx, int *by)
Definition: widget-helper.c:8556
LIVES_INLINE boolean lives_painter_render_background(LiVESWidget *widget, lives_painter_t *cr, double x, double y, double width, double height)
Definition: widget-helper.c:155
int packing_width
Definition: widget-helper.h:844
LIVES_INLINE LiVESWidget * lives_alignment_new(float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2562
ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data)
LIVES_INLINE int lives_widget_get_allocation_width(LiVESWidget *widget)
Definition: widget-helper.c:4569
void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *widget)
Definition: widget-helper.c:8365
boolean lives_has_icon(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:8051
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_file(const char *filename, LiVESError **error)
Definition: widget-helper.c:1970
LIVES_INLINE char * lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars)
Definition: widget-helper.c:3031
LIVES_INLINE LiVESWidget * lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj)
Definition: widget-helper.c:5797
LIVES_INLINE boolean lives_text_view_set_justification(LiVESTextView *tview, LiVESJustification justify)
Definition: widget-helper.c:2947
LIVES_INLINE boolean lives_tree_store_append(LiVESTreeStore *tstore, LiVESTreeIter *titer, LiVESTreeIter *parent)
Definition: widget-helper.c:5134
LIVES_INLINE LiVESWidget * lives_combo_new(void)
Definition: widget-helper.c:2662
LIVES_INLINE boolean lives_dialog_add_action_widget(LiVESDialog *dialog, LiVESWidget *widget, int response)
Definition: widget-helper.c:1381
LIVES_INLINE boolean lives_adjustment_set_upper(LiVESAdjustment *adj, double upper)
Definition: widget-helper.c:4723
const widget_opts_t def_widget_opts
LIVES_INLINE const unsigned char * lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2092
LIVES_INLINE LiVESTextBuffer * lives_text_buffer_new(void)
Definition: widget-helper.c:2975
LIVES_INLINE boolean lives_widget_get_sensitive(LiVESWidget *widget)
Definition: widget-helper.c:696
LIVES_INLINE int lives_combo_get_active(LiVESCombo *combo)
Definition: widget-helper.c:2841
LIVES_INLINE boolean lives_accel_group_connect(LiVESAccelGroup *group, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1807
LIVES_INLINE boolean lives_range_set_range(LiVESRange *range, double min, double max)
Definition: widget-helper.c:4825
LIVES_INLINE boolean lives_tree_model_get(LiVESTreeModel *tmod, LiVESTreeIter *titer,...)
Definition: widget-helper.c:4888
LIVES_INLINE LiVESWidget * lives_button_new_with_label(const char *label)
Definition: widget-helper.c:3185
boolean lives_widget_get_preferred_size(LiVESWidget *widget, LiVESRequisition *min_size, LiVESRequisition *nat_size)
Definition: widget-helper.c:3757
LIVES_INLINE boolean lives_widget_show_all(LiVESWidget *widget)
Definition: widget-helper.c:741
LIVES_INLINE boolean lives_menu_set_title(LiVESMenu *menu, const char *title)
Definition: widget-helper.c:6314
LIVES_INLINE boolean lives_widget_get_fg_state_color(LiVESWidget *widget, LiVESWidgetState state, LiVESWidgetColor *color)
Definition: widget-helper.c:1109
LIVES_INLINE boolean lives_range_set_value(LiVESRange *range, double value)
Definition: widget-helper.c:4816
LIVES_INLINE boolean lives_spin_button_set_wrap(LiVESSpinButton *button, boolean wrap)
Definition: widget-helper.c:4198
LIVES_INLINE boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set)
Definition: widget-helper.c:1195
LIVES_INLINE LiVESWidget * lives_button_new(void)
Definition: widget-helper.c:3157
LIVES_INLINE void lives_object_ref_sink(livespointer object)
Definition: widget-helper.c:570
LIVES_INLINE boolean lives_text_buffer_set_text(LiVESTextBuffer *tbuff, const char *text, int len)
Definition: widget-helper.c:3018
LIVES_INLINE int lives_tree_view_append_column(LiVESTreeView *tview, LiVESTreeViewColumn *tvcol)
Definition: widget-helper.c:5271
LIVES_INLINE uint32_t lives_accelerator_get_default_mod_mask()
Definition: widget-helper.c:7241
LIVES_INLINE boolean lives_tree_path_free(LiVESTreePath *tpath)
Definition: widget-helper.c:5049
LIVES_INLINE boolean lives_list_store_set(LiVESListStore *lstore, LiVESTreeIter *titer,...)
Definition: widget-helper.c:5464
Definition: widget-helper.h:814
LIVES_INLINE boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *tview, LiVESTextMark *mark)
Definition: widget-helper.c:2960
LIVES_INLINE boolean lives_button_box_set_layout(LiVESButtonBox *bbox, LiVESButtonBoxStyle bstyle)
Definition: widget-helper.c:2383
void set_child_colour(LiVESWidget *widget, livespointer set_allx)
Definition: widget-helper.c:8178
LIVES_INLINE LiVESWidget * lives_image_new_from_pixbuf(LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1283
LIVES_INLINE boolean lives_button_set_label(LiVESButton *button, const char *label)
Definition: widget-helper.c:3296
LIVES_INLINE int lives_event_get_time(LiVESXEvent *event)
Definition: widget-helper.c:3436
LIVES_INLINE boolean lives_widget_set_size_request(LiVESWidget *widget, int width, int height)
Definition: widget-helper.c:810
LIVES_INLINE LiVESWidget * lives_frame_new(const char *label)
Definition: widget-helper.c:6631
LIVES_INLINE LiVESWidget * lives_bin_get_child(LiVESBin *bin)
Definition: widget-helper.c:4646
LIVES_INLINE boolean lives_widget_remove_accelerator(LiVESWidget *widget, LiVESAccelGroup *acgroup, uint32_t accel_key, LiVESXModifierType accel_mods)
Definition: widget-helper.c:3745
LIVES_INLINE boolean lives_window_set_title(LiVESWindow *window, const char *title)
Definition: widget-helper.c:1413
uint8_t * lives_painter_image_surface_get_data(lives_painter_surface_t *surf)
Definition: widget-helper.c:446
LIVES_INLINE LiVESWidget * lives_image_new_from_file(const char *filename)
Definition: widget-helper.c:1263
void lives_spin_button_configure(LiVESSpinButton *spinbutton, double value, double lower, double upper, double step_increment, double page_increment)
Definition: widget-helper.c:8256
LIVES_INLINE boolean lives_adjustment_set_lower(LiVESAdjustment *adj, double lower)
Definition: widget-helper.c:4740
LIVES_INLINE boolean lives_painter_arc(lives_painter_t *cr, double xc, double yc, double radius, double angle1, double angle2)
Definition: widget-helper.c:280
LIVES_INLINE boolean lives_alignment_set(LiVESAlignment *alignment, float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2585
LIVES_INLINE boolean lives_widget_set_base_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:1091
LIVES_INLINE boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *window, boolean setting)
Definition: widget-helper.c:1687
LIVES_INLINE boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *toolbutton, LiVESWidget *menu)
Definition: widget-helper.c:6218
LIVES_INLINE boolean lives_color_button_set_color(LiVESColorButton *button, const LiVESWidgetColor *color)
Definition: widget-helper.c:6983
LIVES_INLINE boolean lives_window_maximize(LiVESWindow *window)
Definition: widget-helper.c:1760
LIVES_INLINE boolean lives_window_remove_accel_group(LiVESWindow *window, LiVESAccelGroup *group)
Definition: widget-helper.c:1866
LiVESWidget * add_fill_to_box(LiVESBox *box)
Definition: widget-helper.c:8632
LIVES_INLINE boolean lives_table_attach(LiVESTable *table, LiVESWidget *child, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions, uint32_t xpad, uint32_t ypad)
Definition: widget-helper.c:6886
LIVES_INLINE boolean lives_list_store_insert(LiVESListStore *lstore, LiVESTreeIter *titer, int position)
Definition: widget-helper.c:5502
LiVESJustification default_justify
Definition: widget-helper.h:850
LIVES_INLINE LiVESWidget * lives_check_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:6131
LIVES_INLINE boolean lives_timer_remove(uint32_t timer)
Definition: widget-helper.c:7212
lives_cursor_t
Definition: widget-helper.h:809
LIVES_INLINE boolean lives_label_set_text(LiVESLabel *label, const char *text)
Definition: widget-helper.c:5529
LIVES_INLINE boolean lives_text_view_set_cursor_visible(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2917
LiVESWidget * lives_standard_expander_new(const char *ltext, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child)
Definition: widget-helper.c:7951
LIVES_INLINE boolean lives_progress_bar_pulse(LiVESProgressBar *pbar)
Definition: widget-helper.c:4101
LIVES_INLINE boolean lives_display_get_pointer(LiVESXDevice *device, LiVESXDisplay *display, LiVESXScreen **screen, int *x, int *y, LiVESXModifierType *mask)
Definition: widget-helper.c:7109
LIVES_INLINE LiVESTextMark * lives_text_buffer_create_mark(LiVESTextBuffer *tbuff, const char *mark_name, const LiVESTextIter *where, boolean left_gravity)
Definition: widget-helper.c:3087
void resize(double scale)
Definition: main.c:7341
LIVES_INLINE const char * lives_label_get_text(LiVESLabel *label)
Definition: widget-helper.c:5518
LIVES_INLINE boolean lives_tool_button_set_icon_widget(LiVESToolButton *button, LiVESWidget *icon)
Definition: widget-helper.c:4261
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_toggle_new(void)
Definition: widget-helper.c:4417
LIVES_INLINE boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *item)
Definition: widget-helper.c:6281
boolean widget_act_toggle(LiVESWidget *widget, LiVESToggleButton *togglebutton)
Definition: widget-helper.c:8166
int lives_painter_image_surface_get_stride(lives_painter_surface_t *surf)
Definition: widget-helper.c:482
LIVES_INLINE LiVESWidget * lives_notebook_get_nth_page(LiVESNotebook *nbook, int pagenum)
Definition: widget-helper.c:6711
LIVES_INLINE LiVESWidget * lives_entry_new(void)
Definition: widget-helper.c:5682
LIVES_INLINE boolean lives_window_set_decorated(LiVESWindow *window, boolean set)
Definition: widget-helper.c:1539
LIVES_INLINE boolean lives_window_set_screen(LiVESWindow *window, LiVESXScreen *screen)
Definition: widget-helper.c:1577
LIVES_INLINE boolean lives_toolbar_set_style(LiVESToolbar *toolbar, LiVESToolbarStyle style)
Definition: widget-helper.c:4513
boolean lives_combo_populate(LiVESCombo *combo, LiVESList *list)
Definition: widget-helper.c:7312
LIVES_INLINE int lives_pixbuf_get_width(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2047
LIVES_INLINE LiVESTreeModel * lives_tree_view_get_model(LiVESTreeView *tview)
Definition: widget-helper.c:5245
LIVES_INLINE boolean lives_dialog_set_has_separator(LiVESDialog *dialog, boolean has)
Definition: widget-helper.c:5897
LIVES_INLINE boolean lives_toggle_button_set_active(LiVESToggleButton *button, boolean active)
Definition: widget-helper.c:3460
LIVES_INLINE int lives_widget_get_allocation_height(LiVESWidget *widget)
Definition: widget-helper.c:4587
LIVES_INLINE boolean lives_painter_set_fill_rule(lives_painter_t *cr, lives_painter_fill_rule_t fill_rule)
Definition: widget-helper.c:344
boolean swap_label
Definition: widget-helper.h:837
LIVES_INLINE LiVESWidget * lives_image_new(void)
Definition: widget-helper.c:1208
LIVES_INLINE boolean lives_image_menu_item_set_image(LiVESImageMenuItem *item, LiVESWidget *image)
Definition: widget-helper.c:6294
boolean lives_text_view_scroll_onscreen(LiVESTextView *tview)
Definition: widget-helper.c:8225
LIVES_INLINE boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *pbar, double fraction)
Definition: widget-helper.c:4088
LIVES_INLINE boolean lives_window_move(LiVESWindow *window, int x, int y)
Definition: widget-helper.c:1620
LIVES_INLINE boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:639
LIVES_INLINE boolean lives_painter_set_source_surface(lives_painter_t *cr, lives_painter_surface_t *surface, double x, double y)
Definition: widget-helper.c:68
LIVES_INLINE boolean lives_xwindow_set_cursor(LiVESXWindow *xwin, LiVESXCursor *cursor)
Definition: widget-helper.c:5881
LIVES_INLINE boolean lives_label_set_markup_with_mnemonic(LiVESLabel *label, const char *markup)
Definition: widget-helper.c:5574
LIVES_INLINE boolean lives_tree_selection_get_selected(LiVESTreeSelection *tsel, LiVESTreeModel **tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:5385
boolean lives_source_remove(ulong handle)
Definition: widget-helper.c:7227
Definition: widget-helper.h:831
LIVES_INLINE boolean lives_spin_button_update(LiVESSpinButton *button)
Definition: widget-helper.c:4224
boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data)
LIVES_INLINE boolean lives_editable_set_editable(LiVESEditable *editable, boolean is_editable)
Definition: widget-helper.c:5640
LIVES_INLINE boolean lives_toolbar_set_icon_size(LiVESToolbar *toolbar, LiVESIconSize icon_size)
Definition: widget-helper.c:4500
LIVES_INLINE boolean lives_widget_add_events(LiVESWidget *widget, int events)
Definition: widget-helper.c:3718
LIVES_INLINE boolean lives_grid_insert_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6607
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_pixbuf_new(void)
Definition: widget-helper.c:4430
LIVES_INLINE boolean lives_label_set_text_with_mnemonic(LiVESLabel *label, const char *text)
Definition: widget-helper.c:5544
LIVES_INLINE boolean lives_menu_shell_append(LiVESMenuShell *menushell, LiVESWidget *child)
Definition: widget-helper.c:6372
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_text_new(void)
Definition: widget-helper.c:4393
LIVES_INLINE boolean lives_toggle_button_get_active(LiVESToggleButton *button)
Definition: widget-helper.c:3449
LIVES_INLINE boolean lives_widget_set_vexpand(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:5930
LiVESWidget * lives_standard_hruler_new(void)
Definition: widget-helper.c:7859
LIVES_INLINE LiVESWidget * lives_dialog_get_action_area(LiVESDialog *dialog)
Definition: widget-helper.c:1363
LIVES_INLINE boolean lives_widget_set_can_default(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:3694
void lives_window_center(LiVESWindow *window)
Definition: widget-helper.c:8135
LIVES_INLINE boolean lives_image_set_from_pixbuf(LiVESImage *image, LiVESPixbuf *pixbuf)
Definition: widget-helper.c:1296
LIVES_INLINE boolean lives_widget_set_sensitive(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:669
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:6048
LIVES_INLINE boolean lives_widget_is_sensitive(LiVESWidget *widget)
Definition: widget-helper.c:3773
LIVES_INLINE boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable)
Definition: widget-helper.c:508
LIVES_INLINE boolean lives_widget_set_text_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:1074
Definition: widget-helper.h:22
LIVES_INLINE uint64_t lives_widget_get_xwinid(LiVESWidget *widget, const char *msg)
Definition: widget-helper.c:7171
LIVES_INLINE LiVESWidget * lives_hseparator_new(void)
Definition: widget-helper.c:2318
LIVES_INLINE LiVESWidget * lives_expander_new(const char *label)
Definition: widget-helper.c:2620
LIVES_INLINE boolean lives_table_set_row_homogeneous(LiVESTable *table, boolean homogeneous)
Definition: widget-helper.c:6835
LIVES_INLINE boolean lives_range_set_inverted(LiVESRange *range, boolean invert)
Definition: widget-helper.c:4859
LIVES_INLINE boolean lives_painter_line_to(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:254
LIVES_INLINE boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:3058
LIVES_INLINE boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate)
Definition: widget-helper.c:2137
LIVES_INLINE boolean lives_table_set_row_spacings(LiVESTable *table, uint32_t spacing)
Definition: widget-helper.c:6800
LIVES_INLINE double lives_adjustment_get_upper(LiVESAdjustment *adj)
Definition: widget-helper.c:4663
LIVES_INLINE LiVESWidget * lives_expander_new_with_mnemonic(const char *label)
Definition: widget-helper.c:2607
LIVES_INLINE boolean lives_box_pack_start(LiVESBox *box, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2260
LIVES_INLINE LiVESToolItem * lives_tool_button_new(LiVESWidget *icon_widget, const char *label)
Definition: widget-helper.c:4237
LiVESWidget * last_label
Definition: widget-helper.h:848
LiVESWidget * lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height)
Definition: widget-helper.c:7783
LIVES_INLINE double lives_scale_button_get_value(LiVESScaleButton *scale)
Definition: widget-helper.c:6502
LiVESWidget * lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget)
Definition: widget-helper.c:7371
LIVES_INLINE boolean lives_container_set_focus_child(LiVESContainer *cont, LiVESWidget *child)
Definition: widget-helper.c:4037
LIVES_INLINE int lives_tree_model_iter_n_children(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:5007
boolean label_act_toggle(LiVESWidget *widget, LiVESXEventButton *event, LiVESToggleButton *togglebutton)
Definition: widget-helper.c:8160
LIVES_INLINE boolean lives_tool_button_set_use_underline(LiVESToolButton *button, boolean use_underline)
Definition: widget-helper.c:4286
LiVESWidget * lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7715
int border_width
Definition: widget-helper.h:846
LIVES_INLINE boolean lives_scale_button_set_orientation(LiVESScaleButton *scale, LiVESOrientation orientation)
Definition: widget-helper.c:6481
LIVES_INLINE boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *tbuff, const char *text, int len)
Definition: widget-helper.c:3003
boolean apply_theme
Definition: widget-helper.h:842
boolean lives_combo_set_active_string(LiVESCombo *combo, const char *active_str)
Definition: widget-helper.c:8580
LIVES_INLINE double lives_range_get_value(LiVESRange *range)
Definition: widget-helper.c:4876
lives_expand_t
Definition: widget-helper.h:828
LIVES_INLINE const char * lives_window_get_title(LiVESWindow *window)
Definition: widget-helper.c:1609
LIVES_INLINE lives_painter_surface_t * lives_painter_image_surface_create(lives_painter_format_t format, int width, int height)
Definition: widget-helper.c:405
LIVES_INLINE LiVESTreeSelection * lives_tree_view_get_selection(LiVESTreeView *tview)
Definition: widget-helper.c:5258
LIVES_INLINE LiVESWidget * lives_text_view_new_with_buffer(LiVESTextBuffer *tbuff)
Definition: widget-helper.c:2866
LIVES_INLINE boolean lives_painter_translate(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:212
LIVES_INLINE boolean lives_widget_queue_resize(LiVESWidget *widget)
Definition: widget-helper.c:796
int packing_height
Definition: widget-helper.h:845
LIVES_INLINE boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod)
Definition: widget-helper.c:1892
LIVES_INLINE LiVESWidget * lives_vbutton_box_new(void)
Definition: widget-helper.c:2366
LIVES_INLINE boolean lives_editable_select_region(LiVESEditable *editable, int start_pos, int end_pos)
Definition: widget-helper.c:5665
LIVES_INLINE LiVESWidget * lives_grid_new(void)
Definition: widget-helper.c:6562
LIVES_INLINE boolean lives_window_has_toplevel_focus(LiVESWindow *window)
Definition: widget-helper.c:1907
LIVES_INLINE LiVESWidget * lives_combo_new_with_model(LiVESTreeModel *model)
Definition: widget-helper.c:2678
LIVES_INLINE boolean lives_button_set_use_underline(LiVESButton *button, boolean use)
Definition: widget-helper.c:3315
LIVES_INLINE boolean lives_painter_rectangle(lives_painter_t *cr, double x, double y, double width, double height)
Definition: widget-helper.c:267
LIVES_INLINE LiVESWidget * lives_arrow_new(LiVESArrowType arrow_type, LiVESShadowType shadow_type)
Definition: widget-helper.c:2520
boolean pack_end
Definition: widget-helper.h:838
void lives_general_button_clicked(LiVESButton *button, livespointer data_to_free)
Definition: widget-helper.c:8596
size_t calc_spin_button_width(double min, double max, int dp)
Definition: widget-helper.c:7530
LIVES_INLINE boolean lives_entry_set_editable(LiVESEntry *entry, boolean editable)
Definition: widget-helper.c:7277
LIVES_INLINE LiVESWidget * lives_dialog_get_content_area(LiVESDialog *dialog)
Definition: widget-helper.c:1346
LIVES_INLINE boolean lives_button_set_relief(LiVESButton *button, LiVESReliefStyle rstyle)
Definition: widget-helper.c:3328
LIVES_INLINE boolean lives_accel_group_disconnect(LiVESAccelGroup *group, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1822
LIVES_INLINE lives_painter_t * lives_painter_create_from_widget(LiVESWidget *widget)
Definition: widget-helper.c:33
LIVES_INLINE boolean lives_progress_bar_set_fraction(LiVESProgressBar *pbar, double fraction)
Definition: widget-helper.c:4073
LIVES_INLINE LiVESWidget * lives_tree_view_new_with_model(LiVESTreeModel *tmod)
Definition: widget-helper.c:5201
LIVES_INLINE boolean lives_text_view_set_wrap_mode(LiVESTextView *tview, LiVESWrapMode wrapmode)
Definition: widget-helper.c:2932
LIVES_INLINE boolean lives_widget_reparent(LiVESWidget *widget, LiVESWidget *new_parent)
Definition: widget-helper.c:853
LIVES_INLINE LiVESSList * lives_radio_menu_item_get_group(LiVESRadioMenuItem *rmenuitem)
Definition: widget-helper.c:6101
LIVES_INLINE boolean lives_painter_clip(lives_painter_t *cr)
Definition: widget-helper.c:123
LIVES_INLINE boolean lives_scale_set_draw_value(LiVESScale *scale, boolean draw_value)
Definition: widget-helper.c:6440
lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *surf)
Definition: widget-helper.c:494
LIVES_INLINE boolean lives_toolbar_set_show_arrow(LiVESToolbar *toolbar, boolean show)
Definition: widget-helper.c:4479
LiVESWidget * lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7632
LIVES_INLINE LiVESXCursor * lives_cursor_new_from_pixbuf(LiVESXDisplay *disp, LiVESPixbuf *pixbuf, int x, int y)
Definition: widget-helper.c:7995
LIVES_INLINE boolean lives_tree_view_set_model(LiVESTreeView *tview, LiVESTreeModel *tmod)
Definition: widget-helper.c:5231
LIVES_INLINE boolean lives_window_get_position(LiVESWindow *window, int *x, int *y)
Definition: widget-helper.c:1656
LIVES_INLINE boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable)
Definition: widget-helper.c:877
LIVES_INLINE boolean lives_text_view_set_accepts_tab(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2904
LIVES_INLINE LiVESWidget * lives_hpaned_new(void)
Definition: widget-helper.c:2433
LIVES_INLINE double lives_adjustment_get_value(LiVESAdjustment *adj)
Definition: widget-helper.c:4711
LIVES_INLINE LiVESWidget * lives_button_new_with_mnemonic(const char *label)
Definition: widget-helper.c:3170
LIVES_INLINE boolean lives_range_set_increments(LiVESRange *range, double step, double page)
Definition: widget-helper.c:4844
void lives_widget_get_fg_color(LiVESWidget *widget, LiVESWidgetColor *color)
Definition: widget-helper.c:8152
LiVESWidget * lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *adj, double volume)
Definition: widget-helper.c:7332
LIVES_INLINE boolean lives_xwindow_raise(LiVESXWindow *xwin)
Definition: widget-helper.c:5868
LIVES_INLINE boolean lives_text_buffer_place_cursor(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:3072
LiVESWidget * lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7387
LIVES_INLINE boolean lives_window_add_accel_group(LiVESWindow *window, LiVESAccelGroup *group)
Definition: widget-helper.c:1853
LIVES_INLINE boolean lives_notebook_set_current_page(LiVESNotebook *nbook, int pagenum)
Definition: widget-helper.c:6741
LIVES_INLINE boolean lives_tree_store_set(LiVESTreeStore *tstore, LiVESTreeIter *titer,...)
Definition: widget-helper.c:5162
LIVES_INLINE boolean lives_menu_item_activate(LiVESMenuItem *menuitem)
Definition: widget-helper.c:6254
LIVES_INLINE boolean lives_painter_set_source_pixbuf(lives_painter_t *cr, const LiVESPixbuf *pixbuf, double pixbuf_x, double pixbuf_y)
Definition: widget-helper.c:51
LIVES_INLINE int * lives_tree_path_get_indices(LiVESTreePath *tpath)
Definition: widget-helper.c:5087
LIVES_INLINE boolean lives_button_set_image(LiVESButton *button, LiVESWidget *image)
Definition: widget-helper.c:3342
lives_painter_surface_t * lives_painter_get_target(lives_painter_t *cr)
Definition: widget-helper.c:420
LIVES_INLINE LiVESWidget * lives_text_view_new(void)
Definition: widget-helper.c:2853
LIVES_INLINE boolean lives_painter_set_line_width(lives_painter_t *cr, double width)
Definition: widget-helper.c:228
LIVES_INLINE boolean lives_label_set_markup(LiVESLabel *label, const char *markup)
Definition: widget-helper.c:5559
LIVES_INLINE boolean lives_table_set_column_homogeneous(LiVESTable *table, boolean homogeneous)
Definition: widget-helper.c:6846
LIVES_INLINE boolean lives_widget_get_pointer(LiVESXDevice *device, LiVESWidget *widget, int *x, int *y)
Definition: widget-helper.c:7044
LIVES_INLINE int lives_notebook_get_current_page(LiVESNotebook *nbook)
Definition: widget-helper.c:6728
LIVES_INLINE boolean lives_menu_shell_prepend(LiVESMenuShell *menushell, LiVESWidget *child)
Definition: widget-helper.c:6408
LIVES_INLINE boolean lives_tree_selection_select_iter(LiVESTreeSelection *tsel, LiVESTreeIter *titer)
Definition: widget-helper.c:5417
LIVES_INLINE LiVESWidget * lives_check_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6113
LIVES_INLINE LiVESListStore * lives_list_store_new(int ncols,...)
Definition: widget-helper.c:5430
LIVES_INLINE boolean lives_toolbar_insert(LiVESToolbar *toolbar, LiVESToolItem *item, int pos)
Definition: widget-helper.c:4457
LIVES_INLINE LiVESAdjustment * lives_tree_view_get_hadjustment(LiVESTreeView *tview)
Definition: widget-helper.c:5300
LIVES_INLINE boolean lives_entry_set_text(LiVESEntry *entry, const char *text)
Definition: widget-helper.c:5767
LIVES_INLINE boolean lives_label_set_selectable(LiVESLabel *label, boolean setting)
Definition: widget-helper.c:5617
void hide_cursor(LiVESXWindow *window)
Definition: widget-helper.c:8475
Definition: widget-helper.h:812
boolean non_modal
Definition: widget-helper.h:840
Definition: widget-helper.h:20
LIVES_INLINE LiVESWidget * lives_label_get_mnemonic_widget(LiVESLabel *label)
Definition: widget-helper.c:5604
LIVES_INLINE boolean lives_frame_set_label(LiVESFrame *frame, const char *label)
Definition: widget-helper.c:6644
LIVES_INLINE boolean lives_menu_popup(LiVESMenu *menu, LiVESXEventButton *event)
Definition: widget-helper.c:6330
LIVES_INLINE boolean lives_button_set_focus_on_click(LiVESButton *button, boolean focus)
Definition: widget-helper.c:3368
LIVES_INLINE boolean lives_painter_move_to(lives_painter_t *cr, double x, double y)
Definition: widget-helper.c:241
LIVES_INLINE boolean lives_combo_append_text(LiVESCombo *combo, const char *text)
Definition: widget-helper.c:2719
LIVES_INLINE boolean lives_adjustment_clamp_page(LiVESAdjustment *adj, double lower, double upper)
Definition: widget-helper.c:4787
LIVES_INLINE boolean lives_window_fullscreen(LiVESWindow *window)
Definition: widget-helper.c:1724
Definition: widget-helper.h:830
LIVES_INLINE LiVESXWindow * lives_widget_get_xwindow(LiVESWidget *widget)
Definition: widget-helper.c:3631
LIVES_INLINE boolean lives_text_buffer_delete_mark(LiVESTextBuffer *tbuff, LiVESTextMark *mark)
Definition: widget-helper.c:3101
Definition: widget-helper.h:823
void lives_widget_apply_theme2(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:8089
LIVES_INLINE LiVESWidget * lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous)
Definition: widget-helper.c:6769
LIVES_INLINE LiVESWidget * lives_menu_bar_new(void)
Definition: widget-helper.c:5958
LIVES_INLINE LiVESTreePath * lives_tree_model_get_path(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:4960
Definition: widget-helper.h:817
LIVES_INLINE LiVESWidget * lives_check_button_new(void)
Definition: widget-helper.c:3512
LIVES_INLINE boolean lives_combo_set_active_index(LiVESCombo *combo, int index)
Definition: widget-helper.c:2791
LIVES_INLINE LiVESAdjustment * lives_spin_button_get_adjustment(LiVESSpinButton *button)
Definition: widget-helper.c:4151
Definition: widget-helper.h:835
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group)
Definition: widget-helper.c:6159
LIVES_INLINE boolean lives_widget_set_bg_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:933
LIVES_INLINE LiVESAdjustment * lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *swindow)
Definition: widget-helper.c:5809
LIVES_INLINE boolean lives_adjustment_set_value(LiVESAdjustment *adj, double value)
Definition: widget-helper.c:4774
LIVES_INLINE boolean lives_window_set_position(LiVESWindow *window, LiVESWindowPosition pos)
Definition: widget-helper.c:1674
LIVES_INLINE LiVESCellRenderer * lives_cell_renderer_spin_new(void)
Definition: widget-helper.c:4405
LIVES_INLINE int lives_widget_get_allocation_x(LiVESWidget *widget)
Definition: widget-helper.c:4529
LIVES_INLINE boolean lives_grid_attach_next_to(LiVESGrid *grid, LiVESWidget *child, LiVESWidget *sibling, LiVESPositionType side, int width, int height)
Definition: widget-helper.c:6618
LIVES_INLINE LiVESAccelGroup * lives_accel_group_new(void)
Definition: widget-helper.c:1794
LIVES_INLINE LiVESAdjustment * lives_range_get_adjustment(LiVESRange *range)
Definition: widget-helper.c:4804
LIVES_INLINE double lives_ruler_set_upper(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4363
Definition: widget-helper.h:822
LIVES_INLINE double lives_adjustment_get_page_size(LiVESAdjustment *adj)
Definition: widget-helper.c:4695
LIVES_INLINE boolean lives_entry_set_max_length(LiVESEntry *entry, int len)
Definition: widget-helper.c:5696
LIVES_INLINE boolean lives_window_set_auto_startup_notification(boolean set)
Definition: widget-helper.c:1563
LIVES_INLINE int lives_display_get_n_screens(LiVESXDisplay *disp)
Definition: widget-helper.c:8350
void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source)
Definition: widget-helper.c:7294
LIVES_INLINE LiVESSList * lives_file_chooser_get_filenames(LiVESFileChooser *chooser)
Definition: widget-helper.c:6547
LIVES_INLINE boolean lives_frame_set_shadow_type(LiVESFrame *frame, LiVESShadowType stype)
Definition: widget-helper.c:6685
LIVES_INLINE boolean lives_paned_set_position(LiVESPaned *paned, int pos)
Definition: widget-helper.c:3385
void unhide_cursor(LiVESXWindow *window)
Definition: widget-helper.c:8516
LIVES_INLINE LiVESWidget * lives_window_new(LiVESWindowType wintype)
Definition: widget-helper.c:1396
LIVES_INLINE double lives_ruler_set_lower(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4378
LIVES_INLINE LiVESWidget * lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons, const char *msg_fmt,...)
Definition: widget-helper.c:4318
LIVES_INLINE LiVESTextBuffer * lives_text_view_get_buffer(LiVESTextView *tview)
Definition: widget-helper.c:2878
LIVES_INLINE int lives_pixbuf_get_n_channels(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2069
LIVES_INLINE LiVESWidgetState lives_widget_get_state(LiVESWidget *widget)
Definition: widget-helper.c:4622
LIVES_INLINE lives_painter_surface_t * lives_painter_surface_create_from_widget(LiVESWidget *widget, lives_painter_content_t content, int width, int height)
Definition: widget-helper.c:383
LIVES_INLINE lives_display_t lives_widget_get_display_type(LiVESWidget *widget)
Definition: widget-helper.c:7151
LIVES_INLINE boolean lives_widget_grab_focus(LiVESWidget *widget)
Definition: widget-helper.c:3562
LiVESWidget * lives_standard_label_new(const char *text)
Definition: widget-helper.c:7358
LIVES_INLINE LiVESWidget * lives_toolbar_new(void)
Definition: widget-helper.c:4444
LIVES_INLINE boolean lives_entry_set_width_chars(LiVESEntry *entry, int nchars)
Definition: widget-helper.c:5781
LIVES_INLINE boolean lives_table_set_col_spacings(LiVESTable *table, uint32_t spacing)
Definition: widget-helper.c:6818
LIVES_INLINE boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *tbuff, LiVESTextIter *iter)
Definition: widget-helper.c:3045
LIVES_INLINE LiVESWidget * lives_label_new(const char *text)
Definition: widget-helper.c:2501
LIVES_INLINE boolean lives_widget_add_accelerator(LiVESWidget *widget, const char *accel_signal, LiVESAccelGroup *accel_group, uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags)
Definition: widget-helper.c:1838
LIVES_INLINE boolean lives_widget_queue_draw_area(LiVESWidget *widget, int x, int y, int width, int height)
Definition: widget-helper.c:780
LIVES_INLINE LiVESResponseType lives_dialog_run(LiVESDialog *dialog)
Definition: widget-helper.c:892
#define ulong
Definition: main.h:148
LIVES_INLINE boolean lives_window_resize(LiVESWindow *window, int width, int height)
Definition: widget-helper.c:1701
void lives_widget_apply_theme(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:8081
LIVES_INLINE LiVESTreePath * lives_tree_path_new_from_string(const char *path)
Definition: widget-helper.c:5061
non-standard cursors
Definition: widget-helper.h:820
LIVES_INLINE boolean lives_widget_get_position(LiVESWidget *widget, int *x, int *y)
Definition: widget-helper.c:1638
widget_opts_t widget_opts
Definition: widget-helper.h:854
#define W_BORDER_WIDTH
Definition: widget-helper.h:28
LIVES_INLINE boolean lives_painter_set_source_rgba(lives_painter_t *cr, double red, double green, double blue, double alpha)
Definition: widget-helper.c:329
void lives_tooltips_set(LiVESWidget *, const char *tip_text)
LIVES_INLINE boolean lives_toggle_button_set_mode(LiVESToggleButton *button, boolean drawind)
Definition: widget-helper.c:3473
LIVES_INLINE boolean lives_grid_set_row_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6573
#define W_PACKING_WIDTH
Definition: widget-helper.h:26
double scale
Definition: widget-helper.h:843
LIVES_INLINE boolean lives_widget_set_tooltip_text(LiVESWidget *widget, const char *tip_text)
Definition: widget-helper.c:3542
LIVES_INLINE boolean lives_xwindow_set_keep_above(LiVESXWindow *xwin, boolean setting)
Definition: widget-helper.c:3648
LIVES_INLINE boolean lives_tool_button_set_label_widget(LiVESToolButton *button, LiVESWidget *label)
Definition: widget-helper.c:4273
LIVES_INLINE boolean lives_window_set_deletable(LiVESWindow *window, boolean deletable)
Definition: widget-helper.c:1463
LIVES_INLINE boolean lives_table_resize(LiVESTable *table, uint32_t rows, uint32_t cols)
Definition: widget-helper.c:6858
boolean lives_text_view_set_text(LiVESTextView *textview, const char *text, int len)
Definition: widget-helper.c:8207
LIVES_INLINE LiVESXDisplay * lives_widget_get_display(LiVESWidget *widget)
Definition: widget-helper.c:7072
LIVES_INLINE LiVESWidget * lives_radio_button_new(LiVESSList *group)
Definition: widget-helper.c:3488
LIVES_INLINE boolean lives_painter_fill(lives_painter_t *cr)
Definition: widget-helper.c:95
LIVES_INLINE boolean lives_button_box_set_button_width(LiVESButtonBox *bbox, LiVESWidget *button, int min_width)
Definition: widget-helper.c:8666
LIVES_INLINE LiVESAdjustment * lives_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Definition: widget-helper.c:2152
LIVES_INLINE boolean lives_scale_button_set_value(LiVESScaleButton *scale, double value)
Definition: widget-helper.c:6517
LIVES_INLINE LiVESWidget * lives_expander_get_label_widget(LiVESExpander *expander)
Definition: widget-helper.c:2633
LIVES_INLINE boolean lives_dialog_response(LiVESDialog *dialog, int response)
Definition: widget-helper.c:905
LIVES_INLINE LiVESWidget * lives_spin_button_new(LiVESAdjustment *adj, double climb_rate, uint32_t digits)
Definition: widget-helper.c:4117
boolean lives_entry_set_completion_from_list(LiVESEntry *entry, LiVESList *xlist)
Definition: widget-helper.c:8098
LIVES_INLINE boolean lives_tree_model_get_iter(LiVESTreeModel *tmod, LiVESTreeIter *titer, LiVESTreePath *tpath)
Definition: widget-helper.c:4926
LIVES_INLINE boolean lives_object_unref(livespointer object)
decrease refcount by one: if refcount==0, object is destroyed
Definition: widget-helper.c:550
Definition: widget-helper.h:829
LIVES_INLINE LiVESToolItem * lives_tool_item_new(void)
Definition: widget-helper.c:4249
LIVES_INLINE boolean lives_window_set_modal(LiVESWindow *window, boolean modal)
Definition: widget-helper.c:1446
LIVES_INLINE boolean lives_spin_button_set_digits(LiVESSpinButton *button, uint32_t digits)
Definition: widget-helper.c:4211
LIVES_INLINE LiVESWidget * lives_standard_file_button_new(boolean is_dir, const char *def_dir)
Definition: widget-helper.c:7984
int get_box_child_index(LiVESBox *box, LiVESWidget *tchild)
Definition: widget-helper.c:8245
LIVES_INLINE boolean lives_menu_reorder_child(LiVESMenu *menu, LiVESWidget *child, int pos)
Definition: widget-helper.c:6343
LIVES_INLINE boolean lives_window_set_default_size(LiVESWindow *window, int width, int height)
Definition: widget-helper.c:1594
LIVES_INLINE boolean lives_widget_show(LiVESWidget *widget)
Definition: widget-helper.c:707
LIVES_INLINE LiVESWidget * lives_vscrollbar_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2485
LIVES_INLINE LiVESTreeStore * lives_tree_store_new(int ncols,...)
Definition: widget-helper.c:5100
LIVES_INLINE double lives_adjustment_get_lower(LiVESAdjustment *adj)
Definition: widget-helper.c:4679
LIVES_INLINE void lives_cursor_unref(LiVESXCursor *cursor)
Definition: widget-helper.c:8067
LIVES_INLINE boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal)
Definition: widget-helper.c:653
LIVES_INLINE boolean lives_display_warp_pointer(LiVESXDevice *device, LiVESXDisplay *display, LiVESXScreen *screen, int x, int y)
Definition: widget-helper.c:7131
LIVES_INLINE LiVESWidget * lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label)
Definition: widget-helper.c:6070
Definition: widget-helper.h:813
LIVES_INLINE boolean lives_spin_button_set_value(LiVESSpinButton *button, double value)
Definition: widget-helper.c:4163
LIVES_INLINE boolean lives_grid_remove_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6595
LIVES_INLINE LiVESXWindow * lives_display_get_window_at_pointer(LiVESXDevice *device, LiVESXDisplay *display, int *win_x, int *win_y)
Definition: widget-helper.c:7088
LIVES_INLINE boolean lives_widget_destroy(LiVESWidget *widget)
Definition: widget-helper.c:754
LIVES_INLINE LiVESWidget * lives_frame_get_label_widget(LiVESFrame *frame)
Definition: widget-helper.c:6672
LIVES_INLINE LiVESWidget * lives_image_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:6026
LIVES_INLINE LiVESWidget * lives_vbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2240
LIVES_INLINE double lives_spin_button_get_value(LiVESSpinButton *button)
Definition: widget-helper.c:4129
LIVES_INLINE LiVESWidget * lives_notebook_new(void)
Definition: widget-helper.c:6698
LIVES_INLINE boolean lives_scale_set_digits(LiVESScale *scale, int digits)
Definition: widget-helper.c:6466
int lives_painter_image_surface_get_height(lives_painter_surface_t *surf)
Definition: widget-helper.c:470
LIVES_INLINE boolean lives_widget_set_fg_color(LiVESWidget *widget, LiVESWidgetState state, const LiVESWidgetColor *color)
Definition: widget-helper.c:1015
LIVES_INLINE double lives_ruler_set_value(LiVESRuler *ruler, double value)
Definition: widget-helper.c:4348
LIVES_INLINE double lives_ruler_get_value(LiVESRuler *ruler)
Definition: widget-helper.c:4333
LIVES_INLINE boolean lives_entry_set_has_frame(LiVESEntry *entry, boolean has)
Definition: widget-helper.c:5742
LIVES_INLINE boolean lives_scale_set_value_pos(LiVESScale *scale, LiVESPositionType ptype)
Definition: widget-helper.c:6452
LIVES_INLINE boolean lives_tree_view_set_headers_visible(LiVESTreeView *tview, boolean vis)
Definition: widget-helper.c:5285
LiVESWidget * add_vsep_to_box(LiVESBox *box)
Definition: widget-helper.c:8617
LIVES_INLINE boolean lives_box_set_spacing(LiVESBox *box, int spacing)
Definition: widget-helper.c:2202
LiVESWidget * lives_standard_spin_button_new(const char *labeltext, boolean use_mnemonic, double val, double min, double max, double step, double page, int dp, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7542
void funkify_dialog(LiVESWidget *dialog)
Definition: widget-helper.c:8521
LIVES_INLINE boolean lives_xwindow_process_all_updates()
Definition: widget-helper.c:840
LIVES_INLINE boolean lives_painter_set_source_rgb(lives_painter_t *cr, double red, double green, double blue)
Definition: widget-helper.c:314
LIVES_INLINE boolean lives_text_buffer_delete(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end)
Definition: widget-helper.c:3115
Definition: widget-helper.h:811
LiVESWidget * lives_menu_add_separator(LiVESMenu *menu)
Definition: widget-helper.c:8340
LIVES_INLINE boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:612
LIVES_INLINE boolean lives_window_set_transient_for(LiVESWindow *window, LiVESWindow *parent)
Definition: widget-helper.c:1427
LIVES_INLINE boolean lives_combo_get_active_iter(LiVESCombo *combo, LiVESTreeIter *iter)
Definition: widget-helper.c:2822
LIVES_INLINE LiVESWidget * lives_widget_get_parent(LiVESWidget *widget)
Definition: widget-helper.c:3603
int lives_painter_format_stride_for_width(lives_painter_format_t form, int width)
Definition: widget-helper.c:434
LIVES_INLINE boolean lives_container_set_border_width(LiVESContainer *container, uint32_t width)
Definition: widget-helper.c:3963
LIVES_INLINE boolean lives_menu_shell_insert(LiVESMenuShell *menushell, LiVESWidget *child, int pos)
Definition: widget-helper.c:6393
LIVES_INLINE int lives_screen_get_height(LiVESXScreen *screen)
Definition: widget-helper.c:7262
LIVES_INLINE boolean lives_tree_selection_set_mode(LiVESTreeSelection *tsel, LiVESSelectionMode tselmod)
Definition: widget-helper.c:5403
LIVES_INLINE int lives_widget_get_allocation_y(LiVESWidget *widget)
Definition: widget-helper.c:4549
LIVES_INLINE boolean lives_container_foreach(LiVESContainer *cont, LiVESWidgetCallback callback, livespointer cb_data)
Definition: widget-helper.c:3983
LiVESWidget * lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child)
Definition: widget-helper.c:7881
LIVES_INLINE LiVESWidget * lives_hbutton_box_new(void)
Definition: widget-helper.c:2350
LIVES_INLINE void toggle_button_toggle(LiVESToggleButton *tbutton)
Definition: widget-helper.c:8172
LIVES_INLINE boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *item, boolean state)
Definition: widget-helper.c:6268
LIVES_INLINE boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *scrolledwindow, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy)
Definition: widget-helper.c:5833
LIVES_INLINE LiVESWidget * lives_progress_bar_new(void)
Definition: widget-helper.c:4061
LIVES_INLINE boolean lives_check_menu_item_set_draw_as_radio(LiVESCheckMenuItem *item, boolean setting)
Definition: widget-helper.c:6150
Definition: widget-helper.h:821
LIVES_INLINE boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2105
LIVES_INLINE LiVESWidget * lives_tree_view_new(void)
Definition: widget-helper.c:5216
LIVES_INLINE boolean lives_menu_set_accel_group(LiVESMenu *menu, LiVESAccelGroup *group)
Definition: widget-helper.c:1879
LIVES_INLINE boolean lives_text_buffer_insert(LiVESTextBuffer *tbuff, LiVESTextIter *iter, const char *text, int len)
Definition: widget-helper.c:2988
LIVES_INLINE LiVESTreeViewColumn * lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *crend,...)
Definition: widget-helper.c:5318
LIVES_INLINE LiVESWidget * lives_check_button_new_with_label(const char *label)
Definition: widget-helper.c:3524
LIVES_INLINE boolean lives_combo_set_entry_text_column(LiVESCombo *combo, int column)
Definition: widget-helper.c:2758
LIVES_INLINE boolean lives_label_set_halignment(LiVESLabel *label, float yalign)
Definition: widget-helper.c:2644
LIVES_INLINE boolean lives_color_button_set_use_alpha(LiVESColorButton *button, boolean use_alpha)
Definition: widget-helper.c:7019
LIVES_INLINE LiVESWidget * lives_hscrollbar_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2469
LiVESWidget * lives_combo_get_entry(LiVESCombo *widget)
Definition: widget-helper.c:8584
LIVES_INLINE unsigned char * lives_pixbuf_get_pixels(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2081
LIVES_INLINE uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data)
Definition: widget-helper.c:7195
int lives_painter_image_surface_get_width(lives_painter_surface_t *surf)
Definition: widget-helper.c:458
LIVES_INLINE boolean lives_painter_set_operator(lives_painter_t *cr, lives_painter_operator_t op)
Definition: widget-helper.c:298
must be zero
Definition: widget-helper.h:810
#define W_PACKING_HEIGHT
Definition: widget-helper.h:27
LIVES_INLINE boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *item, boolean show)
Definition: widget-helper.c:6422
LIVES_INLINE LiVESWidget * lives_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5989
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio, LiVESError **error)
Definition: widget-helper.c:1992
LIVES_INLINE boolean lives_widget_get_bg_state_color(LiVESWidget *widget, LiVESWidgetState state, LiVESWidgetColor *color)
Definition: widget-helper.c:1126
LIVES_INLINE boolean lives_box_pack_end(LiVESBox *box, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2294
LiVESWidget * lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7460
void lives_widget_unparent(LiVESWidget *widget)
Definition: widget-helper.c:8156
LIVES_INLINE const char * lives_entry_get_text(LiVESEntry *entry)
Definition: widget-helper.c:5756
LIVES_INLINE boolean lives_tree_model_iter_next(LiVESTreeModel *tmod, LiVESTreeIter *titer)
Definition: widget-helper.c:5022
LIVES_INLINE boolean lives_label_set_mnemonic_widget(LiVESLabel *label, LiVESWidget *widget)
Definition: widget-helper.c:5589
LIVES_INLINE LiVESTreeModel * lives_combo_get_model(LiVESCombo *combo)
Definition: widget-helper.c:2699
LIVES_INLINE boolean lives_painter_stroke(lives_painter_t *cr)
Definition: widget-helper.c:109
LIVES_INLINE boolean lives_text_view_set_editable(LiVESTextView *tview, boolean setting)
Definition: widget-helper.c:2890
LIVES_INLINE boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *tvcol, int fwidth)
Definition: widget-helper.c:5371
lives_display_t
Definition: widget-helper.h:19
LIVES_INLINE LiVESWidget * lives_vseparator_new(void)
Definition: widget-helper.c:2334
LIVES_INLINE boolean lives_box_set_homogeneous(LiVESBox *box, boolean homogenous)
Definition: widget-helper.c:2169
LIVES_INLINE boolean lives_color_parse(const char *spec, LiVESWidgetColor *color)
Definition: widget-helper.c:1322
LIVES_INLINE void lives_ruler_set_range(LiVESRuler *ruler, double lower, double upper, double position, double max_size)
Definition: widget-helper.c:4300
LIVES_INLINE LiVESWidget * lives_vpaned_new(void)
Definition: widget-helper.c:2451
boolean expand
Definition: widget-helper.h:841
LiVESWidget * lives_label_new_with_mnemonic(const char *text)
LIVES_INLINE boolean lives_combo_set_active_iter(LiVESCombo *combo, LiVESTreeIter *iter)
Definition: widget-helper.c:2804
LIVES_INLINE LiVESWidget * lives_color_button_new_with_color(const LiVESWidgetColor *color)
Definition: widget-helper.c:6947
LIVES_INLINE LiVESWidget * lives_widget_get_toplevel(LiVESWidget *widget)
Definition: widget-helper.c:3615
LIVES_INLINE boolean lives_widget_grab_default(LiVESWidget *widget)
Definition: widget-helper.c:3574
int filler_len
Definition: widget-helper.h:847
boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *tbuff, const char *text)
Definition: widget-helper.c:8216
LIVES_INLINE boolean lives_box_reorder_child(LiVESBox *box, LiVESWidget *child, int pos)
Definition: widget-helper.c:2181
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height, int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn, livespointer destroy_fn_data)
Definition: widget-helper.c:1944
boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data)
boolean lives_widget_context_update(void)
Definition: widget-helper.c:8293
LIVES_INLINE int lives_pixbuf_get_rowstride(const LiVESPixbuf *pixbuf)
Definition: widget-helper.c:2036
LIVES_INLINE boolean lives_notebook_set_tab_label(LiVESNotebook *nbook, LiVESWidget *child, LiVESWidget *tablabel)
Definition: widget-helper.c:6755
Definition: widget-helper.h:21
LIVES_INLINE LiVESToolItem * lives_menu_tool_button_new(LiVESWidget *icon, const char *label)
Definition: widget-helper.c:6205
LIVES_INLINE boolean lives_container_remove(LiVESContainer *container, LiVESWidget *widget)
Definition: widget-helper.c:3896
LIVES_INLINE LiVESPixbuf * lives_pixbuf_new(boolean has_alpha, int width, int height)
Definition: widget-helper.c:1922
boolean no_gui
Definition: widget-helper.h:836
LIVES_INLINE char * lives_file_chooser_get_filename(LiVESFileChooser *chooser)
Definition: widget-helper.c:6534
LIVES_INLINE boolean lives_entry_set_visibility(LiVESEntry *entry, boolean vis)
Definition: widget-helper.c:5724
boolean widget_helper_init(void)
Definition: widget-helper.c:8012
LIVES_INLINE LiVESWidget * lives_menu_item_new(void)
Definition: widget-helper.c:5970
LIVES_INLINE boolean lives_entry_set_activates_default(LiVESEntry *entry, boolean act)
Definition: widget-helper.c:5710
#define WARN_UNUSED
Definition: main.h:271
LIVES_INLINE boolean lives_widget_set_state(LiVESWidget *widget, LiVESWidgetState state)
Definition: widget-helper.c:4605
LIVES_INLINE boolean lives_widget_process_updates(LiVESWidget *widget, boolean upd_children)
Definition: widget-helper.c:825
LIVES_INLINE LiVESWidget * lives_hscale_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2401
LIVES_INLINE boolean lives_window_unmaximize(LiVESWindow *window)
Definition: widget-helper.c:1777
LIVES_INLINE boolean lives_frame_set_label_widget(LiVESFrame *frame, LiVESWidget *widget)
Definition: widget-helper.c:6658
LIVES_INLINE LiVESWidget * lives_vscale_new(LiVESAdjustment *adj)
Definition: widget-helper.c:2417
LIVES_INLINE boolean lives_color_button_set_title(LiVESColorButton *button, const char *title)
Definition: widget-helper.c:7004
LIVES_INLINE boolean lives_widget_is_realized(LiVESWidget *widget)
Definition: widget-helper.c:3803
LIVES_INLINE boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *tvcol, LiVESTreeViewColumnSizing type)
Definition: widget-helper.c:5357
LIVES_INLINE boolean lives_adjustment_set_page_size(LiVESAdjustment *adj, double page_size)
Definition: widget-helper.c:4757
#define FALSE
Definition: videoplugin.h:56
LIVES_INLINE boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *scrolledwindow, LiVESWidget *child)
Definition: widget-helper.c:5849
LIVES_INLINE boolean lives_window_set_resizable(LiVESWindow *window, boolean resizable)
Definition: widget-helper.c:1490
LIVES_INLINE LiVESWidget * lives_button_new_from_stock(const char *stock_id, const char *label)
Definition: widget-helper.c:3198
LIVES_INLINE boolean lives_menu_detach(LiVESMenu *menu)
Definition: widget-helper.c:6357
LIVES_INLINE char * lives_combo_get_active_text(LiVESCombo *combo)
Definition: widget-helper.c:2775
boolean line_wrap
Definition: widget-helper.h:839
LIVES_INLINE int lives_tree_path_get_depth(LiVESTreePath *tpath)
Definition: widget-helper.c:5074
char * lives_text_view_get_text(LiVESTextView *textview)
Definition: widget-helper.c:8197
Definition: widget-helper.h:816
LIVES_INLINE boolean lives_widget_set_can_focus(LiVESWidget *widget, boolean state)
Definition: widget-helper.c:3672
LIVES_INLINE LiVESWidget * lives_menu_new(void)
Definition: widget-helper.c:5946
LIVES_INLINE LiVESSList * lives_radio_button_get_group(LiVESRadioButton *rbutton)
Definition: widget-helper.c:3591
LIVES_INLINE LiVESWidget * lives_event_box_new(void)
Definition: widget-helper.c:1183
boolean lives_combo_set_active_text(LiVESCombo *, const char *text)