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
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
30 #define ulong_random() lives_random()
32 #if defined (GUI_GTK) || defined (PAINTER_CAIRO)
46 int width,
int height,
int stride);
48 int width,
int height);
68 boolean lives_painter_arc(lives_painter_t *,
double xc,
double yc,
double radius,
double angle1,
double angle2);
100 #if GTK_CHECK_VERSION(3,0,0)
121 int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
122 livespointer destroy_fn_data);
131 LiVESInterpType interp_type);
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)
147 ulong
lives_signal_connect(LiVESWidget *widget,
const char *signal_name, ulong funcptr, livespointer data);
278 double step_increment,
double page_increment,
double page_size);
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);
314 boolean lives_alignment_set(LiVESAlignment *,
float xalign,
float yalign,
float xscale,
float yscale);
367 const LiVESTextIter *where,
boolean left_gravity);
488 LiVESWidget *
lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
489 const
char *msg_fmt, ...);
494 void lives_ruler_set_range(LiVESRuler *,
double lower,
double upper,
double position,
double max_size);
556 LiVESWidget *
lives_table_new(uint32_t rows, uint32_t cols,
boolean homogeneous);
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);
564 #if LIVES_TABLE_IS_GRID
569 LiVESPositionType side,
int width,
int height);
614 #if !GTK_CHECK_VERSION(3,10,0)
646 LiVESWidgetClosure *closure);
651 uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
655 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **,
int *x,
int *y, LiVESXModifierType *mask);
674 uint32_t
lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc
function, livespointer data);
709 LiVESBox *,
const char *tooltip);
711 double max,
double step,
double page,
int dp, LiVESBox *,
712 const char *tooltip);
714 const char *tooltip);
716 LiVESWidget *
lives_standard_entry_new(
const char *labeltext,
boolean use_mnemonic,
const char *txt,
int dispwidth,
int maxchars, LiVESBox *,
717 const char *tooltip);
768 double step_increment,
double page_increment);
776 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
796 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
798 #define W_MAX_FILLER_LEN 65535
848 #ifdef NEED_DEF_WIDGET_OPTS
void resize(double scale)
Definition: main.c:7172
#define WARN_UNUSED
Definition: main.h:261
#define FALSE
Definition: videoplugin.h:56