LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
widget-helper.h
Go to the documentation of this file.
1 // widget-helper.h
2 // LiVES
3 // (c) G. Finch 2012 - 2015 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 #ifndef HAS_LIVES_WIDGET_HELPER_H
8 #define HAS_LIVES_WIDGET_HELPER_H
9 
10 
11 #ifndef M_PI
12 #define M_PI 3.1415926536
13 #endif
14 
15 #define LIVES_HAS_GRID_WIDGET 0
16 #define LIVES_HAS_IMAGE_MENU_ITEM 0
17 #define LIVES_HAS_DEVICE_MANAGER 0
18 
19 typedef enum {
24 
25 
26 #define W_PACKING_WIDTH 10 // packing width for widgets with labels
27 #define W_PACKING_HEIGHT 10 // packing height for widgets
28 #define W_BORDER_WIDTH 10 // default border width
29 
30 #define ulong_random() lives_random()
31 
32 #if defined (GUI_GTK) || defined (PAINTER_CAIRO)
33 #include "widget-helper-gtk.h"
34 #endif
35 
36 // basic functions (wrappers for Toolkit functions)
37 
38 // lives_painter_functions
39 
40 lives_painter_t *lives_painter_create(lives_painter_surface_t *target);
41 lives_painter_t *lives_painter_create_from_widget(LiVESWidget *);
42 boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y);
43 boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y);
44 lives_painter_surface_t *lives_painter_image_surface_create(lives_painter_format_t format, int width, int height);
45 lives_painter_surface_t *lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t,
46  int width, int height, int stride);
47 lives_painter_surface_t *lives_painter_surface_create_from_widget(LiVESWidget *, lives_painter_content_t,
48  int width, int height);
49 boolean lives_painter_surface_flush(lives_painter_surface_t *);
50 
51 boolean lives_painter_destroy(lives_painter_t *);
52 
53 boolean lives_painter_new_path(lives_painter_t *);
54 
55 boolean lives_painter_paint(lives_painter_t *);
56 boolean lives_painter_fill(lives_painter_t *);
57 boolean lives_painter_stroke(lives_painter_t *);
58 boolean lives_painter_clip(lives_painter_t *);
59 
60 boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue);
61 boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha);
62 
63 boolean lives_painter_set_line_width(lives_painter_t *, double width);
64 
65 boolean lives_painter_translate(lives_painter_t *, double x, double y);
66 
67 boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height);
68 boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2);
69 boolean lives_painter_line_to(lives_painter_t *, double x, double y);
70 boolean lives_painter_move_to(lives_painter_t *, double x, double y);
71 
72 boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t);
73 
74 boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t);
75 
76 
77 lives_painter_surface_t *lives_painter_get_target(lives_painter_t *);
78 int lives_painter_format_stride_for_width(lives_painter_format_t, int width);
79 
80 uint8_t *lives_painter_image_surface_get_data(lives_painter_surface_t *);
81 int lives_painter_image_surface_get_width(lives_painter_surface_t *);
82 int lives_painter_image_surface_get_height(lives_painter_surface_t *);
83 int lives_painter_image_surface_get_stride(lives_painter_surface_t *);
84 lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *);
85 
86 
87 
88 
89 // utils
90 
91 void widget_helper_init(void);
92 
93 // object funcs.
94 
95 livespointer lives_object_ref(livespointer);
96 boolean lives_object_unref(livespointer);
97 
98 // remove any "floating" reference and add a new ref
99 #ifdef GUI_GTK
100 #if GTK_CHECK_VERSION(3,0,0)
101 livespointer lives_object_ref_sink(livespointer);
102 #else
103 void lives_object_ref_sink(livespointer);
104 #endif
105 #else
106 livespointer lives_object_ref_sink(livespointer);
107 #endif
108 
109 
110 // lives_pixbuf functions
111 
112 int lives_pixbuf_get_width(const LiVESPixbuf *);
113 int lives_pixbuf_get_height(const LiVESPixbuf *);
114 boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *);
115 int lives_pixbuf_get_rowstride(const LiVESPixbuf *);
116 int lives_pixbuf_get_n_channels(const LiVESPixbuf *);
117 unsigned char *lives_pixbuf_get_pixels(const LiVESPixbuf *);
118 const unsigned char *lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *);
119 LiVESPixbuf *lives_pixbuf_new(boolean has_alpha, int width, int height);
120 LiVESPixbuf *lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height,
121  int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
122  livespointer destroy_fn_data);
123 
124 LiVESPixbuf *lives_pixbuf_new_from_file(const char *filename, LiVESError **error);
125 LiVESWidget *lives_image_new_from_pixbuf(LiVESPixbuf *);
126 LiVESPixbuf *lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio,
127  LiVESError **error);
128 
129 
130 LiVESPixbuf *lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height,
131  LiVESInterpType interp_type);
132 
133 boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate);
134 
135 // basic widget fns (TODO - amend all void to return boolean)
136 
137 boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable);
138 
139 
140 #ifdef GUI_GTK
141 
142 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
143 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
144 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
145 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
146 #else
147 ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data);
148 boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data);
149 boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data);
150 #endif
151 
152 boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id);
153 boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id);
154 
155 boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id);
156 boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal);
157 
158 
159 boolean lives_widget_set_sensitive(LiVESWidget *, boolean state);
160 boolean lives_widget_get_sensitive(LiVESWidget *);
161 
162 boolean lives_widget_show(LiVESWidget *);
163 boolean lives_widget_show_all(LiVESWidget *);
164 boolean lives_widget_hide(LiVESWidget *);
165 boolean lives_widget_destroy(LiVESWidget *);
166 
167 boolean lives_widget_queue_draw(LiVESWidget *);
168 boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height);
169 boolean lives_widget_queue_resize(LiVESWidget *);
170 boolean lives_widget_set_size_request(LiVESWidget *, int width, int height);
171 
172 boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent);
173 
174 boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable);
175 
176 LiVESWidget *lives_event_box_new(void);
177 boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set);
178 
179 LiVESWidget *lives_label_new(const char *text);
180 LiVESWidget *lives_label_new_with_mnemonic(const char *text);
181 
182 const char *lives_label_get_text(LiVESLabel *);
183 boolean lives_label_set_text(LiVESLabel *, const char *text);
184 boolean lives_label_set_text_with_mnemonic(LiVESLabel *, const char *text);
185 
186 boolean lives_label_set_markup(LiVESLabel *, const char *markup);
187 boolean lives_label_set_markup_with_mnemonic(LiVESLabel *, const char *markup);
188 
189 boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget);
190 LiVESWidget *lives_label_get_mnemonic_widget(LiVESLabel *);
191 
192 boolean lives_label_set_selectable(LiVESLabel *, boolean setting);
193 
194 
195 LiVESWidget *lives_button_new(void);
196 LiVESWidget *lives_button_new_from_stock(const char *stock_id);
197 LiVESWidget *lives_button_new_with_label(const char *label);
198 LiVESWidget *lives_button_new_with_mnemonic(const char *label);
199 
200 boolean lives_button_set_label(LiVESButton *, const char *label);
201 
202 boolean lives_button_set_use_underline(LiVESButton *, boolean use);
203 boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle);
204 boolean lives_button_set_image(LiVESButton *, LiVESWidget *image);
205 boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus);
206 
207 LiVESWidget *lives_check_button_new(void);
208 LiVESWidget *lives_check_button_new_with_label(const char *label);
209 
210 LiVESWidget *lives_radio_button_new(LiVESSList *group);
211 
212 LiVESWidget *lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits);
213 
214 LiVESResponseType lives_dialog_run(LiVESDialog *);
215 boolean lives_dialog_response(LiVESDialog *, int response);
216 
217 boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
218 boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
219 boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
220 boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *);
221 
222 boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
223 boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *);
224 
225 boolean lives_color_parse(const char *spec, LiVESWidgetColor *);
226 
227 LiVESWidgetColor *lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2);
228 
229 LiVESWidget *lives_event_box_new(void);
230 
231 LiVESWidget *lives_image_new(void);
232 LiVESWidget *lives_image_new_from_file(const char *filename);
233 LiVESWidget *lives_image_new_from_stock(const char *stock_id, LiVESIconSize size);
234 
235 boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *);
236 LiVESPixbuf *lives_image_get_pixbuf(LiVESImage *);
237 
238 LiVESWidget *lives_dialog_get_content_area(LiVESDialog *);
239 LiVESWidget *lives_dialog_get_action_area(LiVESDialog *);
240 
241 boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id);
242 
243 LiVESWidget *lives_window_new(LiVESWindowType wintype);
244 boolean lives_window_set_title(LiVESWindow *, const char *title);
245 const char *lives_window_get_title(LiVESWindow *);
246 boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent);
247 
248 boolean lives_window_set_modal(LiVESWindow *, boolean modal);
249 boolean lives_window_set_deletable(LiVESWindow *, boolean deletable);
250 boolean lives_window_set_resizable(LiVESWindow *, boolean resizable);
251 boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below);
252 boolean lives_window_set_decorated(LiVESWindow *, boolean decorated);
253 
254 boolean lives_window_set_default_size(LiVESWindow *, int width, int height);
255 
256 boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *);
257 
258 boolean lives_widget_get_position(LiVESWidget *, int *x, int *y);
259 
260 boolean lives_window_move(LiVESWindow *, int x, int y);
261 boolean lives_window_get_position(LiVESWindow *, int *x, int *y);
262 boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos);
263 boolean lives_window_resize(LiVESWindow *, int width, int height);
264 boolean lives_window_present(LiVESWindow *);
265 boolean lives_window_fullscreen(LiVESWindow *);
266 boolean lives_window_unfullscreen(LiVESWindow *);
267 boolean lives_window_maximize(LiVESWindow *);
268 boolean lives_window_unmaximize(LiVESWindow *);
269 boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting);
270 
271 boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group);
272 boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group);
273 boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group);
274 
275 boolean lives_window_has_toplevel_focus(LiVESWindow *);
276 
277 LiVESAdjustment *lives_adjustment_new(double value, double lower, double upper,
278  double step_increment, double page_increment, double page_size);
279 
280 boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos);
281 boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous);
282 boolean lives_box_set_spacing(LiVESBox *, int spacing);
283 
284 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
285 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding);
286 
287 LiVESWidget *lives_hbox_new(boolean homogeneous, int spacing);
288 LiVESWidget *lives_vbox_new(boolean homogeneous, int spacing);
289 
290 LiVESWidget *lives_hseparator_new(void);
291 LiVESWidget *lives_vseparator_new(void);
292 
293 LiVESWidget *lives_hbutton_box_new(void);
294 LiVESWidget *lives_vbutton_box_new(void);
295 
296 boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle);
297 boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width);
298 
299 LiVESWidget *lives_hscale_new(LiVESAdjustment *);
300 LiVESWidget *lives_vscale_new(LiVESAdjustment *);
301 
302 LiVESWidget *lives_hpaned_new(void);
303 LiVESWidget *lives_vpaned_new(void);
304 
305 boolean lives_paned_set_position(LiVESPaned *, int pos);
306 boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink);
307 
308 LiVESWidget *lives_hscrollbar_new(LiVESAdjustment *);
309 LiVESWidget *lives_vscrollbar_new(LiVESAdjustment *);
310 
311 LiVESWidget *lives_arrow_new(LiVESArrowType, LiVESShadowType);
312 
313 LiVESWidget *lives_alignment_new(float xalign, float yalign, float xscale, float yscale);
314 boolean lives_alignment_set(LiVESAlignment *, float xalign, float yalign, float xscale, float yscale);
315 
316 LiVESWidget *lives_expander_new_with_mnemonic(const char *label);
317 LiVESWidget *lives_expander_new(const char *label);
318 LiVESWidget *lives_expander_get_label_widget(LiVESExpander *expander);
319 
320 boolean lives_label_set_halignment(LiVESLabel *, float yalign);
321 
322 LiVESWidget *lives_combo_new(void);
323 LiVESWidget *lives_combo_new_with_model(LiVESTreeModel *);
324 LiVESTreeModel *lives_combo_get_model(LiVESCombo *);
325 
326 boolean lives_combo_append_text(LiVESCombo *, const char *text);
327 boolean lives_combo_set_entry_text_column(LiVESCombo *, int column);
328 
329 char *lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED;
330 boolean lives_combo_set_active_text(LiVESCombo *, const char *text);
331 boolean lives_combo_set_active_index(LiVESCombo *, int index);
332 int lives_combo_get_active(LiVESCombo *);
333 boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *);
334 boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *);
335 boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str);
336 
337 LiVESWidget *lives_combo_get_entry(LiVESCombo *);
338 
339 boolean lives_combo_populate(LiVESCombo *, LiVESList *list);
340 
341 LiVESWidget *lives_text_view_new(void);
342 LiVESWidget *lives_text_view_new_with_buffer(LiVESTextBuffer *);
343 LiVESTextBuffer *lives_text_view_get_buffer(LiVESTextView *);
344 boolean lives_text_view_set_editable(LiVESTextView *, boolean setting);
345 boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting);
346 boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting);
347 boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode);
348 boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify);
349 
350 
351 boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *, LiVESTextMark *mark);
352 
353 
354 LiVESTextBuffer *lives_text_buffer_new(void);
355 char *lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars);
356 boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len);
357 
358 boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len);
359 boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len);
360 
361 boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *);
362 boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *);
363 
364 boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *);
365 
366 LiVESTextMark *lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name,
367  const LiVESTextIter *where, boolean left_gravity);
368 boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *);
369 
370 boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end);
371 
372 boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *);
373 
374 
375 boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *, ...);
376 boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *);
377 boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *);
378 LiVESTreePath *lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *);
379 boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent);
380 int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *);
381 boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *);
382 
383 boolean lives_tree_path_free(LiVESTreePath *);
384 LiVESTreePath *lives_tree_path_new_from_string(const char *path);
385 int lives_tree_path_get_depth(LiVESTreePath *);
386 int *lives_tree_path_get_indices(LiVESTreePath *);
387 
388 LiVESTreeStore *lives_tree_store_new(int ncols, ...);
389 boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent);
390 boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *, ...);
391 
392 LiVESWidget *lives_tree_view_new(void);
393 LiVESWidget *lives_tree_view_new_with_model(LiVESTreeModel *);
394 boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *);
395 LiVESTreeModel *lives_tree_view_get_model(LiVESTreeView *);
396 int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *);
397 boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis);
398 LiVESAdjustment *lives_tree_view_get_hadjustment(LiVESTreeView *);
399 LiVESTreeSelection *lives_tree_view_get_selection(LiVESTreeView *);
400 
401 
402 LiVESTreeViewColumn *lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *, ...);
403 boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type);
404 boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth);
405 
406 boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *);
407 boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode);
408 boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *);
409 
410 LiVESListStore *lives_list_store_new(int ncols, ...);
411 boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *, ...);
412 boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position);
413 
414 LiVESCellRenderer *lives_cell_renderer_text_new(void);
415 LiVESCellRenderer *lives_cell_renderer_spin_new(void);
416 LiVESCellRenderer *lives_cell_renderer_toggle_new(void);
417 LiVESCellRenderer *lives_cell_renderer_pixbuf_new(void);
418 
419 LiVESWidget *lives_drawing_area_new(void);
420 
421 int lives_event_get_time(LiVESXEvent *);
422 
423 boolean lives_toggle_button_get_active(LiVESToggleButton *);
424 boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active);
425 boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind);
426 
427 boolean lives_has_icon(const char *stock_id, LiVESIconSize size);
428 
429 void lives_tooltips_set(LiVESWidget *, const char *tip_text);
430 
431 LiVESSList *lives_radio_button_get_group(LiVESRadioButton *);
432 LiVESSList *lives_radio_menu_item_get_group(LiVESRadioMenuItem *);
433 
434 LiVESWidget *lives_widget_get_parent(LiVESWidget *);
435 LiVESWidget *lives_widget_get_toplevel(LiVESWidget *);
436 
437 LiVESXWindow *lives_widget_get_xwindow(LiVESWidget *);
438 boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting);
439 
440 boolean lives_widget_set_can_focus(LiVESWidget *, boolean state);
441 boolean lives_widget_set_can_default(LiVESWidget *, boolean state);
442 boolean lives_widget_set_can_focus_and_default(LiVESWidget *);
443 
444 boolean lives_widget_add_events(LiVESWidget *, int events);
445 boolean lives_widget_set_events(LiVESWidget *, int events);
446 boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods);
447 boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size);
448 
449 boolean lives_container_remove(LiVESContainer *, LiVESWidget *);
450 boolean lives_container_add(LiVESContainer *, LiVESWidget *);
451 boolean lives_container_set_border_width(LiVESContainer *, uint32_t width);
452 
453 boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data);
454 LiVESList *lives_container_get_children(LiVESContainer *);
455 boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child);
456 
457 LiVESWidget *lives_progress_bar_new(void);
458 boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction);
459 boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction);
460 boolean lives_progress_bar_pulse(LiVESProgressBar *);
461 
462 double lives_spin_button_get_value(LiVESSpinButton *);
463 int lives_spin_button_get_value_as_int(LiVESSpinButton *);
464 
465 LiVESAdjustment *lives_spin_button_get_adjustment(LiVESSpinButton *);
466 
467 boolean lives_spin_button_set_value(LiVESSpinButton *, double value);
468 boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max);
469 
470 boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap);
471 
472 boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits);
473 
474 boolean lives_spin_button_update(LiVESSpinButton *);
475 
476 LiVESWidget *lives_color_button_new_with_color(const LiVESWidgetColor *);
477 boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *);
478 boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *);
479 boolean lives_color_button_set_title(LiVESColorButton *, const char *title);
480 boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha);
481 
482 LiVESToolItem *lives_tool_button_new(LiVESWidget *icon_widget, const char *label);
483 LiVESToolItem *lives_tool_item_new(void);
484 boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon);
485 boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label);
486 boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline);
487 
488 LiVESWidget *lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
489  const char *msg_fmt, ...);
490 
491 double lives_ruler_get_value(LiVESRuler *);
492 double lives_ruler_set_value(LiVESRuler *, double value);
493 
494 void lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size);
495 double lives_ruler_set_upper(LiVESRuler *, double value);
496 double lives_ruler_set_lower(LiVESRuler *, double value);
497 
498 LiVESWidget *lives_toolbar_new(void);
499 boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos);
500 boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show);
501 LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *);
502 boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size);
503 boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style);
504 
505 int lives_widget_get_allocation_x(LiVESWidget *);
506 int lives_widget_get_allocation_y(LiVESWidget *);
507 int lives_widget_get_allocation_width(LiVESWidget *);
508 int lives_widget_get_allocation_height(LiVESWidget *);
509 
510 boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state);
511 LiVESWidgetState lives_widget_get_state(LiVESWidget *widget);
512 
513 LiVESWidget *lives_bin_get_child(LiVESBin *);
514 
515 boolean lives_widget_is_sensitive(LiVESWidget *);
516 boolean lives_widget_is_visible(LiVESWidget *);
517 
518 boolean lives_widget_is_realized(LiVESWidget *);
519 
520 double lives_adjustment_get_upper(LiVESAdjustment *);
521 double lives_adjustment_get_lower(LiVESAdjustment *);
522 double lives_adjustment_get_page_size(LiVESAdjustment *);
523 double lives_adjustment_get_value(LiVESAdjustment *);
524 
525 boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper);
526 boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower);
527 boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size);
528 boolean lives_adjustment_set_value(LiVESAdjustment *, double value);
529 
530 boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper);
531 
532 LiVESAdjustment *lives_range_get_adjustment(LiVESRange *);
533 boolean lives_range_set_value(LiVESRange *, double value);
534 boolean lives_range_set_range(LiVESRange *, double min, double max);
535 boolean lives_range_set_increments(LiVESRange *, double step, double page);
536 boolean lives_range_set_inverted(LiVESRange *, boolean invert);
537 
538 double lives_range_get_value(LiVESRange *);
539 
540 boolean lives_editable_set_editable(LiVESEditable *, boolean editable);
541 boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos);
542 
543 
544 LiVESWidget *lives_entry_new(void);
545 boolean lives_entry_set_editable(LiVESEntry *, boolean editable);
546 const char *lives_entry_get_text(LiVESEntry *);
547 boolean lives_entry_set_text(LiVESEntry *, const char *text);
548 boolean lives_entry_set_width_chars(LiVESEntry *, int nchars);
549 boolean lives_entry_set_max_length(LiVESEntry *, int len);
550 boolean lives_entry_set_activates_default(LiVESEntry *, boolean act);
551 boolean lives_entry_set_visibility(LiVESEntry *, boolean vis);
552 boolean lives_entry_set_has_frame(LiVESEntry *, boolean has);
553 
554 double lives_scale_button_get_value(LiVESScaleButton *);
555 
556 LiVESWidget *lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous);
557 boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing);
558 boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing);
559 boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols);
560 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
561  uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
562  uint32_t xpad, uint32_t ypad);
563 
564 #if LIVES_TABLE_IS_GRID
565 LiVESWidget *lives_grid_new(void);
566 boolean lives_grid_set_row_spacing(LiVESGrid *, uint32_t spacing);
567 boolean lives_grid_set_column_spacing(LiVESGrid *, uint32_t spacing);
568 boolean lives_grid_attach_next_to(LiVESGrid *, LiVESWidget *child, LiVESWidget *sibling,
569  LiVESPositionType side, int width, int height);
570 
571 boolean lives_grid_insert_row(LiVESGrid *, int posn);
572 boolean lives_grid_remove_row(LiVESGrid *, int posn);
573 #endif
574 
575 LiVESWidget *lives_frame_new(const char *label);
576 boolean lives_frame_set_label(LiVESFrame *, const char *label);
577 boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *);
578 LiVESWidget *lives_frame_get_label_widget(LiVESFrame *);
579 boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType);
580 
581 LiVESWidget *lives_notebook_new(void);
582 LiVESWidget *lives_notebook_get_nth_page(LiVESNotebook *, int pagenum);
583 int lives_notebook_get_current_page(LiVESNotebook *);
584 boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum);
585 boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel);
586 
587 LiVESWidget *lives_menu_new(void);
588 LiVESWidget *lives_menu_bar_new(void);
589 
590 boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *);
591 
592 boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos);
593 boolean lives_menu_detach(LiVESMenu *);
594 
595 boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos);
596 boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child);
597 boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child);
598 
599 LiVESWidget *lives_menu_item_new(void);
600 LiVESWidget *lives_menu_item_new_with_mnemonic(const char *label);
601 LiVESWidget *lives_menu_item_new_with_label(const char *label);
602 
603 LiVESWidget *lives_check_menu_item_new_with_mnemonic(const char *label);
604 LiVESWidget *lives_check_menu_item_new_with_label(const char *label);
605 LiVESWidget *lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label);
606 LiVESWidget *lives_image_menu_item_new_with_label(const char *label);
607 LiVESWidget *lives_image_menu_item_new_with_mnemonic(const char *label);
608 LiVESWidget *lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group);
609 
610 LiVESToolItem *lives_menu_tool_button_new(LiVESWidget *icon, const char *label);
611 boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu);
612 
613 
614 #if !GTK_CHECK_VERSION(3,10,0)
615 
616 boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image);
617 
618 #endif
619 
620 boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *);
621 
622 boolean lives_menu_item_activate(LiVESMenuItem *);
623 
624 boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state);
625 boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *);
626 
627 boolean lives_menu_set_title(LiVESMenu *, const char *title);
628 
629 
630 int lives_display_get_n_screens(LiVESXDisplay *);
631 
632 
633 char *lives_file_chooser_get_filename(LiVESFileChooser *);
634 LiVESSList *lives_file_chooser_get_filenames(LiVESFileChooser *);
635 
636 boolean lives_widget_grab_focus(LiVESWidget *);
637 boolean lives_widget_grab_default(LiVESWidget *);
638 
639 boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text);
640 
641 boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children);
643 
644 LiVESAccelGroup *lives_accel_group_new(void);
645 boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags,
646  LiVESWidgetClosure *closure);
647 boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure);
648 boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod);
649 
650 boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group,
651  uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
652 
653 boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y);
654 LiVESXWindow *lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y);
655 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask);
656 boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y);
657 
658 LiVESXDisplay *lives_widget_get_display(LiVESWidget *);
660 
661 uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg);
662 
663 
664 LiVESWidget *lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj);
665 LiVESAdjustment *lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *);
666 LiVESAdjustment *lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *);
667 
668 boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy);
669 boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child);
670 
671 boolean lives_xwindow_raise(LiVESXWindow *);
672 boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *);
673 
674 uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data);
675 boolean lives_timer_remove(uint32_t timer);
676 
677 boolean lives_source_remove(ulong handle);
678 
680 
681 int lives_screen_get_width(LiVESXScreen *);
682 int lives_screen_get_height(LiVESXScreen *);
683 
684 boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value);
685 boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype);
686 boolean lives_scale_set_digits(LiVESScale *, int digits);
687 
688 // optional (return TRUE if implemented)
689 
690 boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has);
691 boolean lives_widget_set_hexpand(LiVESWidget *, boolean state);
692 boolean lives_widget_set_vexpand(LiVESWidget *, boolean state);
693 boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show);
694 boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation);
695 boolean lives_window_set_auto_startup_notification(boolean set);
696 
697 
698 
699 
700 // compound functions (composed of basic functions)
701 
702 void lives_painter_set_source_to_bg(lives_painter_t *, LiVESWidget *);
703 
704 LiVESWidget *lives_standard_label_new(const char *text);
705 LiVESWidget *lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget);
706 
707 LiVESWidget *lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip);
708 LiVESWidget *lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup,
709  LiVESBox *, const char *tooltip);
710 LiVESWidget *lives_standard_spin_button_new(const char *labeltext, boolean use_mnemonic, double val, double min,
711  double max, double step, double page, int dp, LiVESBox *,
712  const char *tooltip);
713 LiVESWidget *lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *,
714  const char *tooltip);
715 
716 LiVESWidget *lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *,
717  const char *tooltip);
718 
719 LiVESWidget *lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height);
720 
721 LiVESWidget *lives_standard_hruler_new(void);
722 
723 LiVESWidget *lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child);
724 
725 LiVESWidget *lives_standard_expander_new(const char *label, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child);
726 
727 LiVESWidget *lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume);
728 
729 LiVESWidget *lives_standard_file_button_new(boolean is_dir, const char *def_dir);
730 
731 LiVESXCursor *lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y);
732 
733 // util functions
734 
735 void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state); // normal theme colours
736 void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state); // menu and bars colours (bg only...)
737 
738 void lives_cursor_unref(LiVESXCursor *cursor);
739 
740 boolean lives_widget_context_update(void);
741 
742 LiVESWidget *lives_menu_add_separator(LiVESMenu *menu);
743 
744 void lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *);
745 void lives_widget_get_bg_color(LiVESWidget *, LiVESWidgetColor *);
746 
747 void lives_window_center(LiVESWindow *);
748 
749 boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *);
750 
751 void lives_widget_unparent(LiVESWidget *);
752 
753 void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source);
754 
755 char *lives_text_view_get_text(LiVESTextView *);
756 boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len);
757 
758 
759 boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text);
760 boolean lives_text_view_scroll_onscreen(LiVESTextView *);
761 
762 
763 
764 
765 void lives_general_button_clicked(LiVESButton *, livespointer data_to_free);
766 
767 void lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper,
768  double step_increment, double page_increment);
769 
770 
771 
772 size_t calc_spin_button_width(double min, double max, int dp);
773 
774 int get_box_child_index(LiVESBox *, LiVESWidget *child);
775 
776 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
777 boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *);
778 
779 void toggle_button_toggle(LiVESToggleButton *);
780 
781 // must retain this fn prototype as a callback
782 void set_child_colour(LiVESWidget *widget, livespointer set_all);
783 
784 void unhide_cursor(LiVESXWindow *);
785 void hide_cursor(LiVESXWindow *);
786 
787 void get_border_size(LiVESWidget *win, int *bx, int *by);
788 
789 LiVESWidget *add_hsep_to_box(LiVESBox *);
790 LiVESWidget *add_vsep_to_box(LiVESBox *);
791 
792 LiVESWidget *add_fill_to_box(LiVESBox *);
793 
794 #endif // cplusplus
795 
796 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
797 
798 #define W_MAX_FILLER_LEN 65535
799 
800 
801 typedef enum {
810 
817 
818 void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *);
819 
820 typedef enum {
825 
826 
827 typedef struct {
828  boolean no_gui; // show nothing !
829  boolean swap_label; // swap label/widget position
830  boolean pack_end;
831  boolean line_wrap; // line wrapping for labels
832  boolean non_modal; // non-modal for dialogs
833  boolean expand; // whether spin,check,radio buttons should expand
834  boolean apply_theme; // whether to apply theming to widget
835  double scale; // scale factor for all sizes
836  int packing_width; // default should be W_PACKING_WIDTH
837  int packing_height; // default should be W_PACKING_HEIGHT
838  int border_width; // default should be W_BORDER_WIDTH
839  int filler_len; // length of extra "fill" between widgets
840  LiVESWidget *last_label; // label widget of last standard widget (spin,radio,check,entry,combo) [readonly]
841  LiVESJustification justify; // justify for labels
842  LiVESJustification default_justify;
843 } widget_opts_t;
844 
845 
847 
848 #ifdef NEED_DEF_WIDGET_OPTS
849 
851  FALSE, // no_gui
852  FALSE, // swap_label
853  FALSE, //pack_end
854  FALSE, // line_wrap
855  FALSE, // non_modal
856  LIVES_EXPAND_DEFAULT, // default expand
857  FALSE, // no themeing
858  1.0, // default scale
859  W_PACKING_WIDTH, // def packing width
860  W_PACKING_HEIGHT, // def packing height
861  W_BORDER_WIDTH, // def border width
862  8, // def fill width (in chars)
863  NULL, // last_label
864  LIVES_JUSTIFY_LEFT, // justify
865  LIVES_JUSTIFY_LEFT // default justify
866 };
867 
868 #else
869 
870 extern const widget_opts_t def_widget_opts;
871 
872 //#endif
873 
874 #endif
875 
boolean lives_window_set_auto_startup_notification(boolean set)
Definition: widget-helper.c:1375
boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **, int *x, int *y, LiVESXModifierType *mask)
Definition: widget-helper.c:6791
LiVESJustification justify
Definition: widget-helper.h:841
lives_painter_surface_t * lives_painter_image_surface_create_for_data(uint8_t *data, lives_painter_format_t, int width, int height, int stride)
Definition: widget-helper.c:334
boolean lives_entry_set_max_length(LiVESEntry *, int len)
Definition: widget-helper.c:5440
LiVESPixbuf * lives_pixbuf_new(boolean has_alpha, int width, int height)
Definition: widget-helper.c:1734
boolean lives_spin_button_update(LiVESSpinButton *)
Definition: widget-helper.c:3968
LiVESToolItem * lives_tool_button_new(LiVESWidget *icon_widget, const char *label)
Definition: widget-helper.c:3981
boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions, uint32_t xpad, uint32_t ypad)
Definition: widget-helper.c:6573
boolean lives_box_set_homogeneous(LiVESBox *, boolean homogeneous)
Definition: widget-helper.c:1981
char * lives_combo_get_active_text(LiVESCombo *) WARN_UNUSED
Definition: widget-helper.c:2535
LiVESWidget * lives_vpaned_new(void)
Definition: widget-helper.c:2263
LiVESWidget * lives_toolbar_new(void)
Definition: widget-helper.c:4188
boolean lives_window_resize(LiVESWindow *, int width, int height)
Definition: widget-helper.c:1513
boolean lives_label_set_mnemonic_widget(LiVESLabel *, LiVESWidget *widget)
Definition: widget-helper.c:5333
LIVES_INLINE boolean lives_grid_set_column_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6295
boolean lives_painter_set_source_surface(lives_painter_t *, lives_painter_surface_t *, double x, double y)
Definition: widget-helper.c:68
boolean lives_widget_queue_draw_area(LiVESWidget *, int x, int y, int width, int height)
Definition: widget-helper.c:726
LiVESWidget * lives_vseparator_new(void)
Definition: widget-helper.c:2146
boolean lives_window_unmaximize(LiVESWindow *)
Definition: widget-helper.c:1589
LiVESWidget * lives_menu_bar_new(void)
Definition: widget-helper.c:5702
boolean lives_button_set_focus_on_click(LiVESButton *, boolean focus)
Definition: widget-helper.c:3112
LiVESWidget * lives_menu_add_separator(LiVESMenu *menu)
Definition: widget-helper.c:8036
const char * lives_label_get_text(LiVESLabel *)
Definition: widget-helper.c:5262
LiVESWidget * lives_check_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5875
LiVESWidget * lives_standard_label_new(const char *text)
Definition: widget-helper.c:7059
Definition: widget-helper.h:807
boolean lives_widget_queue_resize(LiVESWidget *)
Definition: widget-helper.c:742
LiVESWidget * lives_tree_view_new_with_model(LiVESTreeModel *)
Definition: widget-helper.c:4945
boolean lives_table_set_row_spacings(LiVESTable *, uint32_t spacing)
Definition: widget-helper.c:6511
LiVESWidget * lives_standard_check_button_new(const char *labeltext, boolean use_mnemonic, LiVESBox *box, const char *tooltip)
Definition: widget-helper.c:7088
boolean lives_list_store_set(LiVESListStore *, LiVESTreeIter *,...)
Definition: widget-helper.c:5208
LiVESWidget * lives_standard_combo_new(const char *labeltext, boolean use_mnemonic, LiVESList *list, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:7333
void lives_widget_get_fg_color(LiVESWidget *, LiVESWidgetColor *)
Definition: widget-helper.c:7840
LiVESWidget * lives_tree_view_new(void)
Definition: widget-helper.c:4960
int lives_tree_model_iter_n_children(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:4751
boolean lives_scale_button_set_orientation(LiVESScaleButton *, LiVESOrientation orientation)
Definition: widget-helper.c:6208
int lives_pixbuf_get_rowstride(const LiVESPixbuf *)
Definition: widget-helper.c:1848
boolean lives_painter_stroke(lives_painter_t *)
Definition: widget-helper.c:109
boolean lives_menu_detach(LiVESMenu *)
Definition: widget-helper.c:6084
int lives_pixbuf_get_n_channels(const LiVESPixbuf *)
Definition: widget-helper.c:1881
boolean lives_entry_set_activates_default(LiVESEntry *, boolean act)
Definition: widget-helper.c:5454
int packing_width
Definition: widget-helper.h:836
boolean lives_window_set_hide_titlebar_when_maximized(LiVESWindow *, boolean setting)
Definition: widget-helper.c:1499
ulong lives_signal_connect(LiVESWidget *widget, const char *signal_name, ulong funcptr, livespointer data)
boolean lives_toolbar_set_show_arrow(LiVESToolbar *, boolean show)
Definition: widget-helper.c:4223
boolean lives_button_set_relief(LiVESButton *, LiVESReliefStyle)
Definition: widget-helper.c:3072
boolean lives_widget_remove_accelerator(LiVESWidget *, LiVESAccelGroup *, uint32_t accel_key, LiVESXModifierType accel_mods)
Definition: widget-helper.c:3489
boolean lives_widget_add_accelerator(LiVESWidget *, const char *accel_signal, LiVESAccelGroup *accel_group, uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags)
Definition: widget-helper.c:1650
LiVESWidget * lives_standard_entry_new(const char *labeltext, boolean use_mnemonic, const char *txt, int dispwidth, int maxchars, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:7416
boolean lives_widget_set_state(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:4349
int lives_combo_get_active(LiVESCombo *)
Definition: widget-helper.c:2601
LiVESPixbuf * lives_pixbuf_new_from_data(const unsigned char *buf, boolean has_alpha, int width, int height, int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn, livespointer destroy_fn_data)
Definition: widget-helper.c:1756
LiVESWidget * lives_radio_button_new(LiVESSList *group)
Definition: widget-helper.c:3232
boolean lives_adjustment_set_lower(LiVESAdjustment *, double lower)
Definition: widget-helper.c:4484
const widget_opts_t def_widget_opts
boolean lives_window_set_transient_for(LiVESWindow *, LiVESWindow *parent)
Definition: widget-helper.c:1239
boolean lives_tree_selection_get_selected(LiVESTreeSelection *, LiVESTreeModel **, LiVESTreeIter *)
Definition: widget-helper.c:5129
boolean lives_text_view_scroll_onscreen(LiVESTextView *)
Definition: widget-helper.c:7913
void toggle_button_toggle(LiVESToggleButton *)
Definition: widget-helper.c:7860
void lives_widget_apply_theme2(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:7775
boolean lives_alignment_set(LiVESAlignment *, float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2360
boolean lives_color_button_get_color(LiVESColorButton *, LiVESWidgetColor *)
Definition: widget-helper.c:6645
boolean lives_widget_grab_default(LiVESWidget *)
Definition: widget-helper.c:3318
char * lives_text_view_get_text(LiVESTextView *)
Definition: widget-helper.c:7885
boolean lives_frame_set_label_widget(LiVESFrame *, LiVESWidget *)
Definition: widget-helper.c:6369
boolean lives_menu_item_set_submenu(LiVESMenuItem *, LiVESWidget *)
Definition: widget-helper.c:5967
void lives_set_cursor_style(lives_cursor_t cstyle, LiVESWidget *)
Definition: widget-helper.c:8061
lives_painter_t * lives_painter_create_from_widget(LiVESWidget *)
Definition: widget-helper.c:33
boolean lives_tree_model_iter_next(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:4766
boolean lives_window_set_default_size(LiVESWindow *, int width, int height)
Definition: widget-helper.c:1406
boolean lives_widget_set_can_focus(LiVESWidget *, boolean state)
Definition: widget-helper.c:3416
LiVESXDisplay * lives_widget_get_display(LiVESWidget *)
Definition: widget-helper.c:6754
boolean lives_label_set_selectable(LiVESLabel *, boolean setting)
Definition: widget-helper.c:5361
LiVESToolItem * lives_menu_tool_button_new(LiVESWidget *icon, const char *label)
Definition: widget-helper.c:5940
LiVESWidget * lives_arrow_new(LiVESArrowType, LiVESShadowType)
Definition: widget-helper.c:2332
int lives_display_get_n_screens(LiVESXDisplay *)
Definition: widget-helper.c:8046
LiVESAdjustment * lives_scrolled_window_get_hadjustment(LiVESScrolledWindow *)
Definition: widget-helper.c:5553
boolean lives_label_set_text_with_mnemonic(LiVESLabel *, const char *text)
Definition: widget-helper.c:5288
boolean lives_tree_model_iter_children(LiVESTreeModel *, LiVESTreeIter *, LiVESTreeIter *parent)
Definition: widget-helper.c:4732
boolean lives_menu_popup(LiVESMenu *, LiVESXEventButton *)
Definition: widget-helper.c:6057
boolean lives_check_menu_item_set_active(LiVESCheckMenuItem *, boolean state)
Definition: widget-helper.c:5995
Definition: widget-helper.h:806
boolean lives_spin_button_set_wrap(LiVESSpinButton *, boolean wrap)
Definition: widget-helper.c:3942
boolean lives_widget_grab_focus(LiVESWidget *)
Definition: widget-helper.c:3306
boolean lives_dialog_response(LiVESDialog *, int response)
Definition: widget-helper.c:843
boolean lives_widget_context_update(void)
Definition: widget-helper.c:7990
boolean lives_scrolled_window_add_with_viewport(LiVESScrolledWindow *, LiVESWidget *child)
Definition: widget-helper.c:5593
boolean lives_window_set_decorated(LiVESWindow *, boolean decorated)
Definition: widget-helper.c:1351
boolean lives_widget_get_preferred_size(LiVESWidget *, LiVESRequisition *min_size, LiVESRequisition *nat_size)
Definition: widget-helper.c:3501
boolean widget_act_toggle(LiVESWidget *, LiVESToggleButton *)
Definition: widget-helper.c:7854
LiVESWidget * lives_vscale_new(LiVESAdjustment *)
Definition: widget-helper.c:2229
boolean lives_color_parse(const char *spec, LiVESWidgetColor *)
Definition: widget-helper.c:1135
int lives_pixbuf_get_width(const LiVESPixbuf *)
Definition: widget-helper.c:1859
boolean lives_text_view_set_wrap_mode(LiVESTextView *, LiVESWrapMode wrapmode)
Definition: widget-helper.c:2692
boolean lives_painter_set_fill_rule(lives_painter_t *, lives_painter_fill_rule_t)
Definition: widget-helper.c:308
boolean lives_xwindow_set_keep_above(LiVESXWindow *, boolean setting)
Definition: widget-helper.c:3392
boolean lives_window_maximize(LiVESWindow *)
Definition: widget-helper.c:1572
boolean lives_tree_store_append(LiVESTreeStore *, LiVESTreeIter *, LiVESTreeIter *parent)
Definition: widget-helper.c:4878
LiVESWidget * lives_text_view_new(void)
Definition: widget-helper.c:2613
boolean lives_painter_arc(lives_painter_t *, double xc, double yc, double radius, double angle1, double angle2)
Definition: widget-helper.c:244
void lives_tooltips_copy(LiVESWidget *dest, LiVESWidget *source)
Definition: widget-helper.c:6995
LiVESWidget * lives_hbutton_box_new(void)
Definition: widget-helper.c:2162
LiVESCellRenderer * lives_cell_renderer_pixbuf_new(void)
Definition: widget-helper.c:4174
char * lives_text_buffer_get_text(LiVESTextBuffer *tbuff, LiVESTextIter *start, LiVESTextIter *end, boolean inc_hidden_chars)
Definition: widget-helper.c:2791
LiVESJustification default_justify
Definition: widget-helper.h:842
boolean lives_text_view_set_accepts_tab(LiVESTextView *, boolean setting)
Definition: widget-helper.c:2664
boolean lives_painter_fill(lives_painter_t *)
Definition: widget-helper.c:95
lives_cursor_t
Definition: widget-helper.h:801
LiVESIconSize lives_toolbar_get_icon_size(LiVESToolbar *)
Definition: widget-helper.c:4232
double lives_adjustment_get_upper(LiVESAdjustment *)
Definition: widget-helper.c:4407
boolean lives_text_view_set_text(LiVESTextView *, const char *text, int len)
Definition: widget-helper.c:7895
boolean lives_spin_button_set_range(LiVESSpinButton *, double min, double max)
Definition: widget-helper.c:3920
void resize(double scale)
Definition: main.c:7172
boolean lives_text_view_set_justification(LiVESTextView *, LiVESJustification justify)
Definition: widget-helper.c:2707
void lives_cursor_unref(LiVESXCursor *cursor)
Definition: widget-helper.c:7755
boolean lives_widget_set_can_focus_and_default(LiVESWidget *)
Definition: widget-helper.c:8246
void lives_window_center(LiVESWindow *)
Definition: widget-helper.c:7819
boolean lives_tree_store_set(LiVESTreeStore *, LiVESTreeIter *,...)
Definition: widget-helper.c:4906
boolean lives_widget_show_all(LiVESWidget *)
Definition: widget-helper.c:687
boolean lives_window_fullscreen(LiVESWindow *)
Definition: widget-helper.c:1536
LiVESWidget * lives_combo_new(void)
Definition: widget-helper.c:2422
boolean lives_paned_set_position(LiVESPaned *, int pos)
Definition: widget-helper.c:3129
LiVESWidget * lives_button_new_with_label(const char *label)
Definition: widget-helper.c:2944
int * lives_tree_path_get_indices(LiVESTreePath *)
Definition: widget-helper.c:4831
boolean lives_window_set_title(LiVESWindow *, const char *title)
Definition: widget-helper.c:1225
LiVESWidget * lives_progress_bar_new(void)
Definition: widget-helper.c:3805
boolean lives_widget_destroy(LiVESWidget *)
Definition: widget-helper.c:700
LiVESTreeViewColumn * lives_tree_view_column_new_with_attributes(const char *title, LiVESCellRenderer *,...)
Definition: widget-helper.c:5062
boolean lives_image_menu_item_set_always_show_image(LiVESImageMenuItem *, boolean show)
Definition: widget-helper.c:6149
boolean lives_widget_get_pointer(LiVESXDevice *, LiVESWidget *, int *x, int *y)
Definition: widget-helper.c:6726
boolean swap_label
Definition: widget-helper.h:829
LiVESPixbuf * lives_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, boolean preserve_aspect_ratio, LiVESError **error)
Definition: widget-helper.c:1804
boolean lives_display_warp_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen *, int x, int y)
Definition: widget-helper.c:6813
boolean lives_painter_set_source_pixbuf(lives_painter_t *, const LiVESPixbuf *, double pixbuf_x, double pixbuf_y)
Definition: widget-helper.c:51
LiVESWidget * lives_table_new(uint32_t rows, uint32_t cols, boolean homogeneous)
Definition: widget-helper.c:6480
boolean lives_widget_add_events(LiVESWidget *, int events)
Definition: widget-helper.c:3462
boolean lives_window_remove_accel_group(LiVESWindow *, LiVESAccelGroup *group)
Definition: widget-helper.c:1678
boolean lives_entry_set_visibility(LiVESEntry *, boolean vis)
Definition: widget-helper.c:5468
boolean lives_entry_set_width_chars(LiVESEntry *, int nchars)
Definition: widget-helper.c:5525
boolean lives_widget_set_text_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:890
LiVESWidget * lives_image_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5792
boolean lives_toggle_button_set_active(LiVESToggleButton *, boolean active)
Definition: widget-helper.c:3204
boolean lives_widget_queue_draw(LiVESWidget *)
Definition: widget-helper.c:713
Definition: widget-helper.h:823
boolean lives_signal_handlers_unblock_by_func(livespointer instance, livespointer func, livespointer data)
int lives_widget_get_allocation_width(LiVESWidget *)
Definition: widget-helper.c:4313
LIVES_INLINE boolean lives_grid_insert_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6318
LiVESResponseType lives_dialog_run(LiVESDialog *)
Definition: widget-helper.c:830
boolean lives_color_button_set_use_alpha(LiVESColorButton *, boolean use_alpha)
Definition: widget-helper.c:6701
boolean lives_label_set_markup_with_mnemonic(LiVESLabel *, const char *markup)
Definition: widget-helper.c:5318
void widget_helper_init(void)
Definition: widget-helper.c:7708
boolean lives_tree_view_set_headers_visible(LiVESTreeView *, boolean vis)
Definition: widget-helper.c:5029
boolean lives_combo_append_text(LiVESCombo *, const char *text)
Definition: widget-helper.c:2479
boolean lives_tree_model_get_iter(LiVESTreeModel *, LiVESTreeIter *, LiVESTreePath *)
Definition: widget-helper.c:4670
void lives_painter_set_source_to_bg(lives_painter_t *, LiVESWidget *)
Definition: widget-helper.c:6975
boolean lives_has_icon(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:7739
LiVESWidget * lives_spin_button_new(LiVESAdjustment *, double climb_rate, uint32_t digits)
Definition: widget-helper.c:3861
boolean lives_entry_set_has_frame(LiVESEntry *, boolean has)
Definition: widget-helper.c:5486
const char * lives_entry_get_text(LiVESEntry *)
Definition: widget-helper.c:5500
LiVESWidget * lives_menu_item_new_with_mnemonic(const char *label)
Definition: widget-helper.c:5733
LiVESWidget * lives_image_new_from_stock(const char *stock_id, LiVESIconSize size)
Definition: widget-helper.c:1034
Definition: widget-helper.h:22
boolean lives_menu_reorder_child(LiVESMenu *, LiVESWidget *, int pos)
Definition: widget-helper.c:6070
LiVESWidget * lives_entry_new(void)
Definition: widget-helper.c:5426
boolean lives_scrolled_window_set_policy(LiVESScrolledWindow *, LiVESPolicyType hpolicy, LiVESPolicyType vpolicy)
Definition: widget-helper.c:5577
boolean lives_tool_button_set_use_underline(LiVESToolButton *, boolean use_underline)
Definition: widget-helper.c:4030
boolean lives_tree_view_column_set_fixed_width(LiVESTreeViewColumn *, int fwidth)
Definition: widget-helper.c:5115
boolean lives_xwindow_process_all_updates(void)
Definition: widget-helper.c:786
void set_child_colour(LiVESWidget *widget, livespointer set_all)
Definition: widget-helper.c:7866
boolean lives_notebook_set_current_page(LiVESNotebook *, int pagenum)
Definition: widget-helper.c:6452
LiVESWidget * last_label
Definition: widget-helper.h:840
boolean lives_painter_rectangle(lives_painter_t *, double x, double y, double width, double height)
Definition: widget-helper.c:231
LiVESXCursor * lives_cursor_new_from_pixbuf(LiVESXDisplay *, LiVESPixbuf *, int x, int y)
Definition: widget-helper.c:7691
boolean lives_combo_get_active_iter(LiVESCombo *, LiVESTreeIter *)
Definition: widget-helper.c:2582
LiVESWidget * lives_button_new(void)
Definition: widget-helper.c:2917
boolean lives_progress_bar_set_pulse_step(LiVESProgressBar *, double fraction)
Definition: widget-helper.c:3832
boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2072
LiVESWidget * lives_dialog_get_content_area(LiVESDialog *)
Definition: widget-helper.c:1159
LiVESWidget * lives_volume_button_new(LiVESOrientation orientation, LiVESAdjustment *, double volume)
Definition: widget-helper.c:7033
boolean lives_tree_view_set_model(LiVESTreeView *, LiVESTreeModel *)
Definition: widget-helper.c:4975
boolean lives_painter_new_path(lives_painter_t *)
Definition: widget-helper.c:162
boolean lives_color_button_set_title(LiVESColorButton *, const char *title)
Definition: widget-helper.c:6686
void lives_widget_apply_theme(LiVESWidget *, LiVESWidgetState state)
Definition: widget-helper.c:7769
double lives_range_get_value(LiVESRange *)
Definition: widget-helper.c:4620
int border_width
Definition: widget-helper.h:838
boolean apply_theme
Definition: widget-helper.h:834
LiVESWidget * lives_hscale_new(LiVESAdjustment *)
Definition: widget-helper.c:2213
boolean lives_adjustment_set_value(LiVESAdjustment *, double value)
Definition: widget-helper.c:4518
LiVESWidget * lives_notebook_new(void)
Definition: widget-helper.c:6409
lives_expand_t
Definition: widget-helper.h:820
LiVESWidget * lives_standard_radio_button_new(const char *labeltext, boolean use_mnemonic, LiVESSList *rbgroup, LiVESBox *, const char *tooltip)
Definition: widget-helper.c:7161
LiVESWidget * lives_event_box_new(void)
Definition: widget-helper.c:996
boolean lives_widget_set_app_paintable(LiVESWidget *widget, boolean paintable)
Definition: widget-helper.c:816
boolean lives_widget_set_can_default(LiVESWidget *, boolean state)
Definition: widget-helper.c:3438
LiVESWidget * lives_label_get_mnemonic_widget(LiVESLabel *)
Definition: widget-helper.c:5348
int lives_widget_get_allocation_y(LiVESWidget *)
Definition: widget-helper.c:4293
char * lives_file_chooser_get_filename(LiVESFileChooser *)
Definition: widget-helper.c:6245
double lives_ruler_get_value(LiVESRuler *)
Definition: widget-helper.c:4077
LiVESCellRenderer * lives_cell_renderer_toggle_new(void)
Definition: widget-helper.c:4161
LiVESTreePath * lives_tree_path_new_from_string(const char *path)
Definition: widget-helper.c:4805
boolean lives_widget_set_base_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:907
boolean lives_signal_stop_emission_by_name(livespointer instance, const char *detailed_signal)
Definition: widget-helper.c:613
int packing_height
Definition: widget-helper.h:837
boolean lives_scale_set_value_pos(LiVESScale *, LiVESPositionType ptype)
Definition: widget-helper.c:6179
LIVES_INLINE LiVESWidget * lives_grid_new(void)
Definition: widget-helper.c:6273
LiVESTreeModel * lives_combo_get_model(LiVESCombo *)
Definition: widget-helper.c:2459
boolean pack_end
Definition: widget-helper.h:830
boolean lives_window_move(LiVESWindow *, int x, int y)
Definition: widget-helper.c:1432
double lives_ruler_set_upper(LiVESRuler *, double value)
Definition: widget-helper.c:4107
int lives_spin_button_get_value_as_int(LiVESSpinButton *)
Definition: widget-helper.c:3884
LiVESSList * lives_radio_button_get_group(LiVESRadioButton *)
Definition: widget-helper.c:3335
void lives_widget_get_bg_color(LiVESWidget *, LiVESWidgetColor *)
Definition: widget-helper.c:7836
LiVESWidget * lives_image_new_from_pixbuf(LiVESPixbuf *)
Definition: widget-helper.c:1096
LiVESWidget * lives_bin_get_child(LiVESBin *)
Definition: widget-helper.c:4390
boolean lives_accel_group_disconnect(LiVESAccelGroup *, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1634
LiVESSList * lives_file_chooser_get_filenames(LiVESFileChooser *)
Definition: widget-helper.c:6258
LiVESWidget * lives_standard_scrolled_window_new(int width, int height, LiVESWidget *child)
Definition: widget-helper.c:7577
boolean lives_image_set_from_pixbuf(LiVESImage *, LiVESPixbuf *)
Definition: widget-helper.c:1109
LiVESWidget * lives_radio_menu_item_new_with_label(LiVESSList *group, const char *label)
Definition: widget-helper.c:5814
LiVESWidget * lives_standard_expander_new(const char *label, boolean use_mnemonic, LiVESBox *parent, LiVESWidget *child)
Definition: widget-helper.c:7647
LiVESXWindow * lives_widget_get_xwindow(LiVESWidget *)
Definition: widget-helper.c:3375
lives_painter_format_t lives_painter_image_surface_get_format(lives_painter_surface_t *)
Definition: widget-helper.c:458
boolean lives_widget_get_position(LiVESWidget *, int *x, int *y)
Definition: widget-helper.c:1450
LiVESWidget * lives_combo_new_with_model(LiVESTreeModel *)
Definition: widget-helper.c:2438
boolean lives_toolbar_set_style(LiVESToolbar *, LiVESToolbarStyle style)
Definition: widget-helper.c:4257
livespointer lives_object_ref(livespointer)
increase refcount by one
Definition: widget-helper.c:499
void lives_ruler_set_range(LiVESRuler *, double lower, double upper, double position, double max_size)
Definition: widget-helper.c:4044
boolean lives_text_buffer_insert_at_end(LiVESTextBuffer *, const char *text)
Definition: widget-helper.c:7904
boolean lives_tree_path_free(LiVESTreePath *)
Definition: widget-helper.c:4793
boolean lives_adjustment_set_page_size(LiVESAdjustment *, double page_size)
Definition: widget-helper.c:4501
LiVESCellRenderer * lives_cell_renderer_spin_new(void)
Definition: widget-helper.c:4149
boolean lives_text_buffer_insert(LiVESTextBuffer *, LiVESTextIter *, const char *, int len)
Definition: widget-helper.c:2748
boolean lives_button_box_set_button_width(LiVESButtonBox *, LiVESWidget *button, int min_width)
Definition: widget-helper.c:8323
LiVESWidget * add_fill_to_box(LiVESBox *)
Definition: widget-helper.c:8289
boolean lives_tree_model_get(LiVESTreeModel *, LiVESTreeIter *,...)
Definition: widget-helper.c:4632
LiVESTreeStore * lives_tree_store_new(int ncols,...)
Definition: widget-helper.c:4844
boolean lives_container_foreach(LiVESContainer *, LiVESWidgetCallback callback, livespointer cb_data)
Definition: widget-helper.c:3727
boolean lives_pixbuf_get_has_alpha(const LiVESPixbuf *)
Definition: widget-helper.c:1917
lives_painter_t * lives_painter_create(lives_painter_surface_t *target)
Definition: widget-helper.c:21
LiVESWidget * lives_hseparator_new(void)
Definition: widget-helper.c:2130
boolean lives_combo_set_active_string(LiVESCombo *, const char *active_str)
Definition: widget-helper.c:8237
Definition: widget-helper.h:804
int lives_painter_format_stride_for_width(lives_painter_format_t, int width)
Definition: widget-helper.c:398
boolean lives_source_remove(ulong handle)
Definition: widget-helper.c:6909
double lives_adjustment_get_lower(LiVESAdjustment *)
Definition: widget-helper.c:4423
LiVESPixbuf * lives_pixbuf_new_from_file(const char *filename, LiVESError **error)
Definition: widget-helper.c:1782
boolean non_modal
Definition: widget-helper.h:832
LiVESAccelGroup * lives_accel_group_new(void)
Definition: widget-helper.c:1606
boolean lives_check_menu_item_get_active(LiVESCheckMenuItem *)
Definition: widget-helper.c:6008
Definition: widget-helper.h:20
int lives_painter_image_surface_get_stride(lives_painter_surface_t *)
Definition: widget-helper.c:446
const unsigned char * lives_pixbuf_get_pixels_readonly(const LiVESPixbuf *)
Definition: widget-helper.c:1904
LiVESListStore * lives_list_store_new(int ncols,...)
Definition: widget-helper.c:5174
LiVESWidget * lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons, const char *msg_fmt,...)
Definition: widget-helper.c:4062
LiVESWidget * lives_menu_item_new(void)
Definition: widget-helper.c:5714
LiVESAdjustment * lives_scrolled_window_get_vadjustment(LiVESScrolledWindow *)
Definition: widget-helper.c:5565
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 *, const char *tooltip)
Definition: widget-helper.c:7243
boolean lives_frame_set_shadow_type(LiVESFrame *, LiVESShadowType)
Definition: widget-helper.c:6396
boolean lives_combo_set_active_iter(LiVESCombo *, LiVESTreeIter *)
Definition: widget-helper.c:2564
Definition: widget-helper.h:822
boolean lives_painter_translate(lives_painter_t *, double x, double y)
Definition: widget-helper.c:176
boolean lives_image_menu_item_set_image(LiVESImageMenuItem *, LiVESWidget *image)
Definition: widget-helper.c:6021
boolean lives_tree_selection_set_mode(LiVESTreeSelection *, LiVESSelectionMode)
Definition: widget-helper.c:5147
Definition: widget-helper.h:815
LiVESWidgetColor * lives_widget_color_copy(LiVESWidgetColor *c1orNULL, const LiVESWidgetColor *c2)
Definition: widget-helper.c:958
boolean lives_widget_set_bg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:856
int lives_painter_image_surface_get_height(lives_painter_surface_t *)
Definition: widget-helper.c:434
boolean lives_combo_set_active_index(LiVESCombo *, int index)
Definition: widget-helper.c:2551
LiVESWidget * lives_combo_get_entry(LiVESCombo *)
Definition: widget-helper.c:8241
LiVESSList * lives_radio_menu_item_get_group(LiVESRadioMenuItem *)
Definition: widget-helper.c:5845
boolean lives_menu_shell_insert(LiVESMenuShell *, LiVESWidget *child, int pos)
Definition: widget-helper.c:6120
LiVESWidget * lives_vbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2052
boolean lives_window_set_modal(LiVESWindow *, boolean modal)
Definition: widget-helper.c:1258
boolean lives_accel_group_connect(LiVESAccelGroup *, uint32_t key, LiVESXModifierType mod, LiVESAccelFlags flags, LiVESWidgetClosure *closure)
Definition: widget-helper.c:1619
uint32_t lives_accelerator_get_default_mod_mask()
Definition: widget-helper.c:6923
boolean lives_window_set_position(LiVESWindow *, LiVESWindowPosition pos)
Definition: widget-helper.c:1486
Definition: widget-helper.h:809
int lives_pixbuf_get_height(const LiVESPixbuf *)
Definition: widget-helper.c:1870
LiVESPixbuf * lives_image_get_pixbuf(LiVESImage *)
Definition: widget-helper.c:1122
int lives_screen_get_height(LiVESXScreen *)
Definition: widget-helper.c:6944
boolean lives_paned_pack(int where, LiVESPaned *, LiVESWidget *child, boolean resize, boolean shrink)
Definition: widget-helper.c:3152
LiVESWidget * lives_text_view_new_with_buffer(LiVESTextBuffer *)
Definition: widget-helper.c:2626
LiVESWidget * lives_alignment_new(float xalign, float yalign, float xscale, float yscale)
Definition: widget-helper.c:2348
Definition: widget-helper.h:827
LiVESWidget * lives_hbox_new(boolean homogeneous, int spacing)
Definition: widget-helper.c:2033
boolean lives_entry_set_text(LiVESEntry *, const char *text)
Definition: widget-helper.c:5511
boolean lives_box_reorder_child(LiVESBox *, LiVESWidget *child, int pos)
Definition: widget-helper.c:1993
livespointer lives_object_ref_sink(livespointer)
Definition: widget-helper.c:530
LiVESTextMark * lives_text_buffer_create_mark(LiVESTextBuffer *, const char *mark_name, const LiVESTextIter *where, boolean left_gravity)
Definition: widget-helper.c:2847
boolean lives_window_set_keep_below(LiVESWindow *, boolean keep_below)
Definition: widget-helper.c:1327
boolean lives_spin_button_set_digits(LiVESSpinButton *, uint32_t digits)
Definition: widget-helper.c:3955
boolean lives_menu_set_title(LiVESMenu *, const char *title)
Definition: widget-helper.c:6041
LIVES_INLINE boolean lives_grid_attach_next_to(LiVESGrid *grid, LiVESWidget *child, LiVESWidget *sibling, LiVESPositionType side, int width, int height)
Definition: widget-helper.c:6329
boolean lives_dialog_set_has_separator(LiVESDialog *, boolean has)
Definition: widget-helper.c:5641
int lives_tree_path_get_depth(LiVESTreePath *)
Definition: widget-helper.c:4818
Definition: widget-helper.h:814
lives_display_t lives_widget_get_display_type(LiVESWidget *)
Definition: widget-helper.c:6833
boolean lives_box_set_spacing(LiVESBox *, int spacing)
Definition: widget-helper.c:2014
boolean lives_window_unfullscreen(LiVESWindow *)
Definition: widget-helper.c:1554
boolean lives_widget_get_sensitive(LiVESWidget *)
Definition: widget-helper.c:642
boolean lives_widget_hide(LiVESWidget *)
Definition: widget-helper.c:674
boolean lives_window_set_resizable(LiVESWindow *, boolean resizable)
Definition: widget-helper.c:1302
boolean lives_frame_set_label(LiVESFrame *, const char *label)
Definition: widget-helper.c:6355
LiVESWidget * lives_image_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5770
boolean lives_painter_set_source_rgba(lives_painter_t *, double red, double green, double blue, double alpha)
Definition: widget-helper.c:293
boolean lives_editable_set_editable(LiVESEditable *, boolean editable)
Definition: widget-helper.c:5384
boolean lives_notebook_set_tab_label(LiVESNotebook *, LiVESWidget *child, LiVESWidget *tablabel)
Definition: widget-helper.c:6466
boolean lives_color_button_set_color(LiVESColorButton *, const LiVESWidgetColor *)
Definition: widget-helper.c:6665
lives_painter_surface_t * lives_painter_get_target(lives_painter_t *)
Definition: widget-helper.c:384
boolean lives_text_buffer_delete_mark(LiVESTextBuffer *, LiVESTextMark *)
Definition: widget-helper.c:2861
size_t calc_spin_button_width(double min, double max, int dp)
Definition: widget-helper.c:7231
const char * lives_window_get_title(LiVESWindow *)
Definition: widget-helper.c:1421
boolean lives_menu_tool_button_set_menu(LiVESMenuToolButton *, LiVESWidget *menu)
Definition: widget-helper.c:5953
LiVESWidget * lives_check_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5857
LiVESWidget * lives_button_new_from_stock(const char *stock_id)
Definition: widget-helper.c:2957
boolean lives_painter_set_source_rgb(lives_painter_t *, double red, double green, double blue)
Definition: widget-helper.c:278
boolean lives_container_add(LiVESContainer *, LiVESWidget *)
Definition: widget-helper.c:3561
boolean lives_button_set_label(LiVESButton *, const char *label)
Definition: widget-helper.c:3040
double lives_adjustment_get_page_size(LiVESAdjustment *)
Definition: widget-helper.c:4439
LiVESAdjustment * lives_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Definition: widget-helper.c:1964
boolean lives_tree_view_column_set_sizing(LiVESTreeViewColumn *, LiVESTreeViewColumnSizing type)
Definition: widget-helper.c:5101
non-standard cursors
Definition: widget-helper.h:812
boolean lives_menu_set_accel_group(LiVESMenu *, LiVESAccelGroup *group)
Definition: widget-helper.c:1691
widget_opts_t widget_opts
Definition: widget-helper.h:846
boolean lives_text_buffer_get_end_iter(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:2818
#define W_BORDER_WIDTH
Definition: widget-helper.h:28
boolean lives_label_set_text(LiVESLabel *, const char *text)
Definition: widget-helper.c:5273
void unhide_cursor(LiVESXWindow *)
Definition: widget-helper.c:8208
void get_border_size(LiVESWidget *win, int *bx, int *by)
Definition: widget-helper.c:8213
uint32_t lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc function, livespointer data)
Definition: widget-helper.c:6877
void lives_tooltips_set(LiVESWidget *, const char *tip_text)
boolean lives_text_buffer_insert_at_cursor(LiVESTextBuffer *, const char *, int len)
Definition: widget-helper.c:2763
boolean lives_toggle_button_get_active(LiVESToggleButton *)
Definition: widget-helper.c:3193
LIVES_INLINE boolean lives_grid_set_row_spacing(LiVESGrid *grid, uint32_t spacing)
Definition: widget-helper.c:6284
boolean lives_progress_bar_set_fraction(LiVESProgressBar *, double fraction)
Definition: widget-helper.c:3817
LiVESWidget * lives_drawing_area_new(void)
Definition: widget-helper.c:3167
boolean lives_object_unref(livespointer)
decrease refcount by one: if refcount==0, object is destroyed
Definition: widget-helper.c:510
boolean lives_table_set_col_spacings(LiVESTable *, uint32_t spacing)
Definition: widget-helper.c:6528
#define W_PACKING_WIDTH
Definition: widget-helper.h:26
boolean lives_toggle_button_set_mode(LiVESToggleButton *, boolean drawind)
Definition: widget-helper.c:3217
uint8_t * lives_painter_image_surface_get_data(lives_painter_surface_t *)
Definition: widget-helper.c:410
boolean lives_painter_set_operator(lives_painter_t *, lives_painter_operator_t)
Definition: widget-helper.c:262
double scale
Definition: widget-helper.h:835
boolean lives_progress_bar_pulse(LiVESProgressBar *)
Definition: widget-helper.c:3845
LiVESCellRenderer * lives_cell_renderer_text_new(void)
Definition: widget-helper.c:4137
boolean lives_editable_select_region(LiVESEditable *, int start_pos, int end_pos)
Definition: widget-helper.c:5409
boolean lives_pixbuf_saturate_and_pixelate(const LiVESPixbuf *src, LiVESPixbuf *dest, float saturation, boolean pixilate)
Definition: widget-helper.c:1949
boolean lives_signal_handler_block(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:548
boolean lives_table_resize(LiVESTable *, uint32_t rows, uint32_t cols)
Definition: widget-helper.c:6545
LiVESWidget * lives_menu_new(void)
Definition: widget-helper.c:5690
boolean lives_widget_process_updates(LiVESWidget *, boolean upd_children)
Definition: widget-helper.c:771
LiVESWidget * lives_hscrollbar_new(LiVESAdjustment *)
Definition: widget-helper.c:2281
boolean lives_range_set_increments(LiVESRange *, double step, double page)
Definition: widget-helper.c:4588
boolean lives_range_set_inverted(LiVESRange *, boolean invert)
Definition: widget-helper.c:4603
LiVESWidget * lives_expander_new(const char *label)
Definition: widget-helper.c:2383
boolean lives_tool_button_set_label_widget(LiVESToolButton *, LiVESWidget *label)
Definition: widget-helper.c:4017
double lives_adjustment_get_value(LiVESAdjustment *)
Definition: widget-helper.c:4455
LiVESWidget * lives_expander_new_with_mnemonic(const char *label)
Definition: widget-helper.c:2373
LiVESWidget * add_vsep_to_box(LiVESBox *)
Definition: widget-helper.c:8274
boolean lives_widget_show(LiVESWidget *)
Definition: widget-helper.c:653
LiVESWidget * lives_standard_hruler_new(void)
Definition: widget-helper.c:7555
boolean lives_button_set_use_underline(LiVESButton *, boolean use)
Definition: widget-helper.c:3059
boolean lives_text_view_scroll_mark_onscreen(LiVESTextView *, LiVESTextMark *mark)
Definition: widget-helper.c:2720
boolean lives_widget_get_fg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *)
Definition: widget-helper.c:941
LiVESList * lives_container_get_children(LiVESContainer *)
Definition: widget-helper.c:3767
boolean lives_painter_move_to(lives_painter_t *, double x, double y)
Definition: widget-helper.c:205
LiVESWidget * lives_image_new(void)
Definition: widget-helper.c:1021
LiVESTreeModel * lives_tree_view_get_model(LiVESTreeView *)
Definition: widget-helper.c:4989
boolean lives_text_buffer_get_iter_at_mark(LiVESTextBuffer *, LiVESTextIter *, LiVESTextMark *)
Definition: widget-helper.c:2892
Definition: widget-helper.h:821
boolean lives_scale_set_digits(LiVESScale *, int digits)
Definition: widget-helper.c:6193
double lives_scale_button_get_value(LiVESScaleButton *)
Definition: widget-helper.c:6229
boolean lives_tree_model_get_iter_first(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:4690
LiVESAdjustment * lives_spin_button_get_adjustment(LiVESSpinButton *)
Definition: widget-helper.c:3895
boolean lives_timer_remove(uint32_t timer)
Definition: widget-helper.c:6894
LiVESWidget * lives_frame_get_label_widget(LiVESFrame *)
Definition: widget-helper.c:6383
boolean lives_widget_set_tooltip_text(LiVESWidget *, const char *text)
Definition: widget-helper.c:3286
boolean lives_container_set_focus_child(LiVESContainer *, LiVESWidget *child)
Definition: widget-helper.c:3781
boolean lives_scale_set_draw_value(LiVESScale *, boolean draw_value)
Definition: widget-helper.c:6167
LiVESTreeSelection * lives_tree_view_get_selection(LiVESTreeView *)
Definition: widget-helper.c:5002
boolean lives_signal_handler_disconnect(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:599
LiVESWidget * lives_button_new_with_mnemonic(const char *label)
Definition: widget-helper.c:2929
boolean lives_container_remove(LiVESContainer *, LiVESWidget *)
Definition: widget-helper.c:3640
LiVESXWindow * lives_display_get_window_at_pointer(LiVESXDevice *, LiVESXDisplay *, int *win_x, int *win_y)
Definition: widget-helper.c:6770
LiVESWidget * lives_notebook_get_nth_page(LiVESNotebook *, int pagenum)
Definition: widget-helper.c:6422
boolean lives_text_view_set_cursor_visible(LiVESTextView *, boolean setting)
Definition: widget-helper.c:2677
int get_box_child_index(LiVESBox *, LiVESWidget *child)
Definition: widget-helper.c:7933
LiVESWidget * lives_standard_label_new_with_mnemonic(const char *text, LiVESWidget *mnemonic_widget)
Definition: widget-helper.c:7072
boolean lives_signal_handler_unblock(livespointer instance, unsigned long handler_id)
Definition: widget-helper.c:572
boolean lives_painter_surface_flush(lives_painter_surface_t *)
Definition: widget-helper.c:321
boolean lives_toolbar_set_icon_size(LiVESToolbar *, LiVESIconSize icon_size)
Definition: widget-helper.c:4244
boolean lives_painter_set_line_width(lives_painter_t *, double width)
Definition: widget-helper.c:192
boolean lives_adjustment_set_upper(LiVESAdjustment *, double upper)
Definition: widget-helper.c:4467
Definition: widget-helper.h:805
boolean lives_button_box_set_layout(LiVESButtonBox *, LiVESButtonBoxStyle bstyle)
Definition: widget-helper.c:2195
LiVESWidget * lives_menu_item_new_with_label(const char *label)
Definition: widget-helper.c:5752
LIVES_INLINE boolean lives_grid_remove_row(LiVESGrid *grid, int posn)
Definition: widget-helper.c:6306
LiVESWidget * lives_standard_file_button_new(boolean is_dir, const char *def_dir)
Definition: widget-helper.c:7680
boolean lives_label_set_halignment(LiVESLabel *, float yalign)
Definition: widget-helper.c:2404
boolean lives_list_store_insert(LiVESListStore *, LiVESTreeIter *, int position)
Definition: widget-helper.c:5246
boolean lives_text_buffer_set_text(LiVESTextBuffer *, const char *, int len)
Definition: widget-helper.c:2778
uint64_t lives_widget_get_xwinid(LiVESWidget *, const char *failure_msg)
Definition: widget-helper.c:6853
LiVESWidget * lives_dialog_get_action_area(LiVESDialog *)
Definition: widget-helper.c:1176
LiVESWidget * lives_frame_new(const char *label)
Definition: widget-helper.c:6342
boolean lives_painter_line_to(lives_painter_t *, double x, double y)
Definition: widget-helper.c:218
boolean lives_mem_set_vtable(LiVESMemVTable *alt_vtable)
Definition: widget-helper.c:472
LiVESWidget * lives_window_new(LiVESWindowType wintype)
Definition: widget-helper.c:1208
LiVESAdjustment * lives_range_get_adjustment(LiVESRange *)
Definition: widget-helper.c:4548
boolean lives_range_set_range(LiVESRange *, double min, double max)
Definition: widget-helper.c:4569
boolean lives_xwindow_set_cursor(LiVESXWindow *, LiVESXCursor *)
Definition: widget-helper.c:5625
boolean lives_painter_paint(lives_painter_t *)
Definition: widget-helper.c:83
LiVESPixbuf * lives_pixbuf_scale_simple(const LiVESPixbuf *src, int dest_width, int dest_height, LiVESInterpType interp_type)
Definition: widget-helper.c:1928
boolean lives_text_view_set_editable(LiVESTextView *, boolean setting)
Definition: widget-helper.c:2650
boolean lives_widget_set_fg_color(LiVESWidget *, LiVESWidgetState state, const LiVESWidgetColor *)
Definition: widget-helper.c:873
boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child, boolean expand, boolean fill, uint32_t padding)
Definition: widget-helper.c:2106
boolean lives_dialog_add_action_widget(LiVESDialog *, LiVESWidget *, int response_id)
Definition: widget-helper.c:1193
Definition: widget-helper.h:803
void hide_cursor(LiVESXWindow *)
Definition: widget-helper.c:8171
boolean lives_widget_get_bg_state_color(LiVESWidget *, LiVESWidgetState state, LiVESWidgetColor *)
Definition: widget-helper.c:924
LiVESWidget * lives_vscrollbar_new(LiVESAdjustment *)
Definition: widget-helper.c:2297
void lives_spin_button_configure(LiVESSpinButton *, double value, double lower, double upper, double step_increment, double page_increment)
Definition: widget-helper.c:7953
boolean lives_window_set_screen(LiVESWindow *, LiVESXScreen *)
Definition: widget-helper.c:1389
boolean lives_widget_set_sensitive(LiVESWidget *, boolean state)
Definition: widget-helper.c:629
boolean lives_menu_item_activate(LiVESMenuItem *)
Definition: widget-helper.c:5981
int lives_widget_get_allocation_height(LiVESWidget *)
Definition: widget-helper.c:4331
double lives_ruler_set_lower(LiVESRuler *, double value)
Definition: widget-helper.c:4122
boolean lives_widget_set_size_request(LiVESWidget *, int width, int height)
Definition: widget-helper.c:756
boolean lives_text_buffer_get_start_iter(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:2805
boolean lives_window_set_deletable(LiVESWindow *, boolean deletable)
Definition: widget-helper.c:1275
boolean lives_tree_selection_select_iter(LiVESTreeSelection *, LiVESTreeIter *)
Definition: widget-helper.c:5161
boolean lives_entry_set_completion_from_list(LiVESEntry *, LiVESList *)
Definition: widget-helper.c:7782
LiVESWidget * lives_scrolled_window_new(LiVESAdjustment *hadj, LiVESAdjustment *vadj)
Definition: widget-helper.c:5541
Definition: widget-helper.h:813
boolean lives_button_set_image(LiVESButton *, LiVESWidget *image)
Definition: widget-helper.c:3086
boolean lives_text_buffer_place_cursor(LiVESTextBuffer *, LiVESTextIter *)
Definition: widget-helper.c:2832
boolean lives_widget_set_events(LiVESWidget *, int events)
Definition: widget-helper.c:3476
must be zero
Definition: widget-helper.h:802
boolean lives_container_set_border_width(LiVESContainer *, uint32_t width)
Definition: widget-helper.c:3707
#define W_PACKING_HEIGHT
Definition: widget-helper.h:27
LiVESWidget * lives_check_button_new_with_label(const char *label)
Definition: widget-helper.c:3268
boolean lives_toolbar_insert(LiVESToolbar *, LiVESToolItem *, int pos)
Definition: widget-helper.c:4201
boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *)
Definition: widget-helper.c:7848
boolean lives_painter_destroy(lives_painter_t *)
Definition: widget-helper.c:137
boolean lives_menu_shell_append(LiVESMenuShell *, LiVESWidget *child)
Definition: widget-helper.c:6099
boolean lives_combo_populate(LiVESCombo *, LiVESList *list)
Definition: widget-helper.c:7013
int lives_tree_view_append_column(LiVESTreeView *, LiVESTreeViewColumn *)
Definition: widget-helper.c:5015
boolean lives_tool_button_set_icon_widget(LiVESToolButton *, LiVESWidget *icon)
Definition: widget-helper.c:4005
boolean lives_xwindow_raise(LiVESXWindow *)
Definition: widget-helper.c:5612
boolean lives_adjustment_clamp_page(LiVESAdjustment *, double lower, double upper)
Definition: widget-helper.c:4531
double lives_spin_button_get_value(LiVESSpinButton *)
Definition: widget-helper.c:3873
lives_display_t
Definition: widget-helper.h:19
unsigned char * lives_pixbuf_get_pixels(const LiVESPixbuf *)
Definition: widget-helper.c:1893
boolean lives_entry_set_editable(LiVESEntry *, boolean editable)
Definition: widget-helper.c:6959
LiVESWidget * lives_widget_get_toplevel(LiVESWidget *)
Definition: widget-helper.c:3359
lives_painter_surface_t * lives_painter_surface_create_from_widget(LiVESWidget *, lives_painter_content_t, int width, int height)
Definition: widget-helper.c:347
boolean lives_menu_shell_prepend(LiVESMenuShell *, LiVESWidget *child)
Definition: widget-helper.c:6135
int lives_widget_get_allocation_x(LiVESWidget *)
Definition: widget-helper.c:4273
boolean lives_window_add_accel_group(LiVESWindow *, LiVESAccelGroup *group)
Definition: widget-helper.c:1665
boolean lives_range_set_value(LiVESRange *, double value)
Definition: widget-helper.c:4560
boolean expand
Definition: widget-helper.h:833
LiVESWidget * lives_label_new_with_mnemonic(const char *text)
int lives_notebook_get_current_page(LiVESNotebook *)
Definition: widget-helper.c:6439
LiVESWidget * lives_color_button_new_with_color(const LiVESWidgetColor *)
Definition: widget-helper.c:6629
boolean lives_event_box_set_above_child(LiVESEventBox *ebox, boolean set)
Definition: widget-helper.c:1008
int filler_len
Definition: widget-helper.h:839
boolean lives_signal_handlers_block_by_func(livespointer instance, livespointer func, livespointer data)
int lives_event_get_time(LiVESXEvent *)
Definition: widget-helper.c:3180
boolean lives_spin_button_set_value(LiVESSpinButton *, double value)
Definition: widget-helper.c:3907
LiVESWidget * add_hsep_to_box(LiVESBox *)
Definition: widget-helper.c:8262
boolean lives_text_buffer_delete(LiVESTextBuffer *, LiVESTextIter *start, LiVESTextIter *end)
Definition: widget-helper.c:2875
boolean lives_label_set_markup(LiVESLabel *, const char *markup)
Definition: widget-helper.c:5303
int lives_painter_image_surface_get_width(lives_painter_surface_t *)
Definition: widget-helper.c:422
Definition: widget-helper.h:21
LiVESWidgetState lives_widget_get_state(LiVESWidget *widget)
Definition: widget-helper.c:4366
LiVESWidget * lives_standard_dialog_new(const char *title, boolean add_std_buttons, int width, int height)
Definition: widget-helper.c:7484
LiVESAdjustment * lives_tree_view_get_hadjustment(LiVESTreeView *)
Definition: widget-helper.c:5044
boolean no_gui
Definition: widget-helper.h:828
boolean lives_window_get_position(LiVESWindow *, int *x, int *y)
Definition: widget-helper.c:1468
LiVESWidget * lives_widget_get_parent(LiVESWidget *)
Definition: widget-helper.c:3347
LiVESWidget * lives_image_new_from_file(const char *filename)
Definition: widget-helper.c:1076
LiVESWidget * lives_hpaned_new(void)
Definition: widget-helper.c:2245
boolean lives_widget_set_hexpand(LiVESWidget *, boolean state)
Definition: widget-helper.c:5658
boolean lives_painter_clip(lives_painter_t *)
Definition: widget-helper.c:123
#define WARN_UNUSED
Definition: main.h:261
LiVESWidget * lives_check_button_new(void)
Definition: widget-helper.c:3256
LiVESWidget * lives_vbutton_box_new(void)
Definition: widget-helper.c:2178
double lives_ruler_set_value(LiVESRuler *, double value)
Definition: widget-helper.c:4092
boolean lives_window_present(LiVESWindow *)
Definition: widget-helper.c:1523
boolean lives_window_has_toplevel_focus(LiVESWindow *)
Definition: widget-helper.c:1719
boolean lives_widget_reparent(LiVESWidget *, LiVESWidget *new_parent)
Definition: widget-helper.c:799
LiVESTextBuffer * lives_text_buffer_new(void)
Definition: widget-helper.c:2735
boolean lives_accel_groups_activate(LiVESObject *object, uint32_t key, LiVESXModifierType mod)
Definition: widget-helper.c:1704
LiVESWidget * lives_expander_get_label_widget(LiVESExpander *expander)
Definition: widget-helper.c:2393
#define FALSE
Definition: videoplugin.h:56
void lives_general_button_clicked(LiVESButton *, livespointer data_to_free)
Definition: widget-helper.c:8253
boolean lives_combo_set_entry_text_column(LiVESCombo *, int column)
Definition: widget-helper.c:2518
int lives_screen_get_width(LiVESXScreen *)
Definition: widget-helper.c:6934
LiVESTreePath * lives_tree_model_get_path(LiVESTreeModel *, LiVESTreeIter *)
Definition: widget-helper.c:4704
LiVESWidget * lives_label_new(const char *text)
Definition: widget-helper.c:2313
LiVESWidget * lives_image_menu_item_new_from_stock(const char *stock_id, LiVESAccelGroup *accel_group)
Definition: widget-helper.c:5894
boolean lives_widget_is_visible(LiVESWidget *)
Definition: widget-helper.c:3532
boolean line_wrap
Definition: widget-helper.h:831
LiVESToolItem * lives_tool_item_new(void)
Definition: widget-helper.c:3993
lives_painter_surface_t * lives_painter_image_surface_create(lives_painter_format_t format, int width, int height)
Definition: widget-helper.c:369
LiVESTextBuffer * lives_text_view_get_buffer(LiVESTextView *)
Definition: widget-helper.c:2638
boolean lives_widget_is_sensitive(LiVESWidget *)
Definition: widget-helper.c:3517
Definition: widget-helper.h:808
boolean lives_widget_is_realized(LiVESWidget *)
Definition: widget-helper.c:3547
boolean lives_widget_set_vexpand(LiVESWidget *, boolean state)
Definition: widget-helper.c:5674
void lives_widget_unparent(LiVESWidget *)
Definition: widget-helper.c:7844
boolean lives_combo_set_active_text(LiVESCombo *, const char *text)