7 #ifndef HAS_LIVES_WIDGET_HELPER_H
8 #define HAS_LIVES_WIDGET_HELPER_H
12 #define M_PI 3.1415926536
15 #define LIVES_HAS_GRID_WIDGET 0
16 #define LIVES_HAS_IMAGE_MENU_ITEM 0
17 #define LIVES_HAS_DEVICE_MANAGER 0
27 #define W_PACKING_WIDTH 10 // packing width for widgets with labels
28 #define W_PACKING_HEIGHT 10 // packing height for widgets
29 #define W_BORDER_WIDTH 10 // default border width
31 #define ulong_random() lives_random()
33 #if defined (GUI_GTK) || defined (PAINTER_CAIRO)
47 int width,
int height,
int stride);
49 int width,
int height);
71 boolean lives_painter_arc(lives_painter_t *,
double xc,
double yc,
double radius,
double angle1,
double angle2);
113 #if GTK_CHECK_VERSION(3, 0, 0)
134 int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
135 livespointer destroy_fn_data);
144 LiVESInterpType interp_type);
153 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
154 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
155 #define lives_signal_handlers_disconnect_by_func(instance, func, data) g_signal_handlers_disconnect_by_func(instance, func, data)
156 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
157 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
303 double step_increment,
double page_increment,
double page_size);
309 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
310 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
339 boolean lives_alignment_set(LiVESAlignment *,
float xalign,
float yalign,
float xscale,
float yscale);
393 const LiVESTextIter *where,
boolean left_gravity);
514 LiVESWidget *
lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
515 const
char *msg_fmt, ...);
520 void lives_ruler_set_range(LiVESRuler *,
double lower,
double upper,
double position,
double max_size);
583 LiVESWidget *
lives_table_new(uint32_t rows, uint32_t cols,
boolean homogeneous);
587 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
588 uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
589 uint32_t xpad, uint32_t ypad);
595 #if LIVES_TABLE_IS_GRID
600 LiVESPositionType side,
int width,
int height);
648 #if !GTK_CHECK_VERSION(3, 10, 0)
680 LiVESWidgetClosure *closure);
685 uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
689 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **,
int *x,
int *y, LiVESXModifierType *mask);
708 uint32_t
lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc
function, livespointer data);
746 LiVESBox *,
const char *tooltip);
748 double max,
double step,
double page,
int dp, LiVESBox *,
749 const char *tooltip);
751 const char *tooltip);
753 LiVESWidget *
lives_standard_entry_new(
const char *labeltext,
boolean use_mnemonic,
const char *txt,
int dispwidth,
int maxchars, LiVESBox *,
754 const char *tooltip);
769 LiVESWidget **sb_red, LiVESWidget **sb_green, LiVESWidget **sb_blue, LiVESWidget **sb_alpha);
813 double step_increment,
double page_increment);
821 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
844 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
846 #define W_MAX_FILLER_LEN 65535
898 #ifdef NEED_DEF_WIDGET_OPTS
void resize(double scale)
Definition: main.c:7527
#define ulong
Definition: main.h:154
#define WARN_UNUSED
Definition: main.h:298
#define FALSE
Definition: videoplugin.h:56