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);
70 boolean lives_painter_arc(lives_painter_t *,
double xc,
double yc,
double radius,
double angle1,
double angle2);
112 #if GTK_CHECK_VERSION(3,0,0)
133 int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
134 livespointer destroy_fn_data);
143 LiVESInterpType interp_type);
152 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
153 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
154 #define lives_signal_handlers_disconnect_by_func(instance, func, data) g_signal_handlers_disconnect_by_func(instance, func, data)
155 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
156 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
297 double step_increment,
double page_increment,
double page_size);
303 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
304 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
333 boolean lives_alignment_set(LiVESAlignment *,
float xalign,
float yalign,
float xscale,
float yscale);
386 const LiVESTextIter *where,
boolean left_gravity);
507 LiVESWidget *
lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
508 const
char *msg_fmt, ...);
513 void lives_ruler_set_range(LiVESRuler *,
double lower,
double upper,
double position,
double max_size);
576 LiVESWidget *
lives_table_new(uint32_t rows, uint32_t cols,
boolean homogeneous);
580 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
581 uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
582 uint32_t xpad, uint32_t ypad);
588 #if LIVES_TABLE_IS_GRID
593 LiVESPositionType side,
int width,
int height);
641 #if !GTK_CHECK_VERSION(3,10,0)
673 LiVESWidgetClosure *closure);
678 uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
682 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **,
int *x,
int *y, LiVESXModifierType *mask);
701 uint32_t
lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc
function, livespointer data);
736 LiVESBox *,
const char *tooltip);
738 double max,
double step,
double page,
int dp, LiVESBox *,
739 const char *tooltip);
741 const char *tooltip);
743 LiVESWidget *
lives_standard_entry_new(
const char *labeltext,
boolean use_mnemonic,
const char *txt,
int dispwidth,
int maxchars, LiVESBox *,
744 const char *tooltip);
759 LiVESWidget **sb_red, LiVESWidget **sb_green, LiVESWidget **sb_blue, LiVESWidget **sb_alpha);
803 double step_increment,
double page_increment);
811 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
834 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
836 #define W_MAX_FILLER_LEN 65535
888 #ifdef NEED_DEF_WIDGET_OPTS
void resize(double scale)
Definition: main.c:7630
#define ulong
Definition: main.h:150
#define WARN_UNUSED
Definition: main.h:298
#define FALSE
Definition: videoplugin.h:56