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);
102 #if GTK_CHECK_VERSION(3,0,0)
123 int rowstride, LiVESPixbufDestroyNotify lives_free_buffer_fn,
124 livespointer destroy_fn_data);
133 LiVESInterpType interp_type);
144 #define lives_signal_connect(instance, detailed_signal, c_handler, data) g_signal_connect(instance, detailed_signal, c_handler, data)
145 #define lives_signal_connect_after(instance, detailed_signal, c_handler, data) g_signal_connect_after(instance, detailed_signal, c_handler, data)
146 #define lives_signal_handlers_block_by_func(instance, func, data) g_signal_handlers_block_by_func(instance, func, data)
147 #define lives_signal_handlers_unblock_by_func(instance, func, data) g_signal_handlers_unblock_by_func(instance, func, data)
280 double step_increment,
double page_increment,
double page_size);
286 boolean lives_box_pack_start(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
287 boolean lives_box_pack_end(LiVESBox *, LiVESWidget *child,
boolean expand,
boolean fill, uint32_t padding);
316 boolean lives_alignment_set(LiVESAlignment *,
float xalign,
float yalign,
float xscale,
float yscale);
369 const LiVESTextIter *where,
boolean left_gravity);
490 LiVESWidget *
lives_message_dialog_new(LiVESWindow *parent, LiVESDialogFlags flags, LiVESMessageType type, LiVESButtonsType buttons,
491 const
char *msg_fmt, ...);
496 void lives_ruler_set_range(LiVESRuler *,
double lower,
double upper,
double position,
double max_size);
559 LiVESWidget *
lives_table_new(uint32_t rows, uint32_t cols,
boolean homogeneous);
563 boolean lives_table_attach(LiVESTable *, LiVESWidget *child, uint32_t left, uint32_t right,
564 uint32_t top, uint32_t bottom, LiVESAttachOptions xoptions, LiVESAttachOptions yoptions,
565 uint32_t xpad, uint32_t ypad);
571 #if LIVES_TABLE_IS_GRID
576 LiVESPositionType side,
int width,
int height);
623 #if !GTK_CHECK_VERSION(3,10,0)
655 LiVESWidgetClosure *closure);
660 uint32_t accel_key, LiVESXModifierType accel_mods, LiVESAccelFlags accel_flags);
664 boolean lives_display_get_pointer(LiVESXDevice *, LiVESXDisplay *, LiVESXScreen **,
int *x,
int *y, LiVESXModifierType *mask);
683 uint32_t
lives_timer_add(uint32_t interval, LiVESWidgetSourceFunc
function, livespointer data);
716 LiVESBox *,
const char *tooltip);
718 double max,
double step,
double page,
int dp, LiVESBox *,
719 const char *tooltip);
721 const char *tooltip);
723 LiVESWidget *
lives_standard_entry_new(
const char *labeltext,
boolean use_mnemonic,
const char *txt,
int dispwidth,
int maxchars, LiVESBox *,
724 const char *tooltip);
774 double step_increment,
double page_increment);
782 boolean label_act_toggle(LiVESWidget *, LiVESXEventButton *, LiVESToggleButton *);
804 #define LIVES_JUSTIFY_DEFAULT (widget_opts.default_justify)
806 #define W_MAX_FILLER_LEN 65535
856 #ifdef NEED_DEF_WIDGET_OPTS
void resize(double scale)
Definition: main.c:7341
#define ulong
Definition: main.h:148
#define WARN_UNUSED
Definition: main.h:271
#define FALSE
Definition: videoplugin.h:56