LiVES 1.4.9
Defines | Functions

src/framedraw.h File Reference

Go to the source code of this file.

Defines

#define MIN_PRE_X   58
#define MIN_PRE_Y   32
#define MAX_PRE_X   320
#define MAX_PRE_Y   240

Functions

void widget_add_framedraw (GtkVBox *box, gint start, gint end, gboolean add_preview_button, gint width, gint height)
 call this to add framedraw widget to an hbox
void framedraw_redraw (lives_special_framedraw_rect_t *, gboolean reload_image, GdkPixbuf *)
 redraw when exposed/frame number changes
void after_framedraw_widget_changed (GtkWidget *, lives_special_framedraw_rect_t *)
 callback for widgets
void framedraw_connect (lives_special_framedraw_rect_t *, gint width, gint height, lives_rfx_t *)
 activate the image for clicks and draws
void framedraw_connect_spinbutton (lives_special_framedraw_rect_t *, lives_rfx_t *)
 connect spinbutton to preview
void framedraw_add_reset (GtkVBox *, lives_special_framedraw_rect_t *)
 add "reset values" button
void framedraw_add_label (GtkVBox *box)
 add explanatory label
void load_framedraw_image (GdkPixbuf *)
 reload and redraw the frame
void load_rfx_preview (lives_rfx_t *rfx)
 rfx preview
void redraw_framedraw_image (void)
 just redraw the frame
void after_framedraw_frame_spinbutton_changed (GtkSpinButton *, lives_special_framedraw_rect_t *)
 change the frame number
void on_framedraw_reset_clicked (GtkButton *, lives_special_framedraw_rect_t *)
 reset button
gboolean on_framedraw_mouse_start (GtkWidget *, GdkEventButton *, lives_special_framedraw_rect_t *)
gboolean on_framedraw_mouse_update (GtkWidget *, GdkEventButton *, lives_special_framedraw_rect_t *)
gboolean on_framedraw_mouse_reset (GtkWidget *, GdkEventButton *, lives_special_framedraw_rect_t *)
gboolean on_framedraw_leave (GtkWidget *, GdkEventCrossing *, lives_special_framedraw_rect_t *)
gboolean on_framedraw_enter (GtkWidget *, GdkEventCrossing *, lives_special_framedraw_rect_t *)
void draw_rect_demask (GdkColor *col, gint x1, gint y1, gint x2, gint y2, gboolean filled)

Define Documentation

#define MAX_PRE_X   320
#define MAX_PRE_Y   240
#define MIN_PRE_X   58
#define MIN_PRE_Y   32

Function Documentation

void after_framedraw_frame_spinbutton_changed ( GtkSpinButton *  ,
lives_special_framedraw_rect_t  
)

change the frame number

void after_framedraw_widget_changed ( GtkWidget *  ,
lives_special_framedraw_rect_t  
)

callback for widgets

void draw_rect_demask ( GdkColor *  col,
gint  x1,
gint  y1,
gint  x2,
gint  y2,
gboolean  filled 
)
void framedraw_add_label ( GtkVBox *  box)

add explanatory label

void framedraw_add_reset ( GtkVBox *  ,
lives_special_framedraw_rect_t  
)

add "reset values" button

void framedraw_connect ( lives_special_framedraw_rect_t ,
gint  width,
gint  height,
lives_rfx_t  
)

activate the image for clicks and draws

void framedraw_connect_spinbutton ( lives_special_framedraw_rect_t ,
lives_rfx_t  
)

connect spinbutton to preview

void framedraw_redraw ( lives_special_framedraw_rect_t ,
gboolean  reload_image,
GdkPixbuf *   
)

redraw when exposed/frame number changes

void load_framedraw_image ( GdkPixbuf *  )

reload and redraw the frame

void load_rfx_preview ( lives_rfx_t rfx)

rfx preview

gboolean on_framedraw_enter ( GtkWidget *  ,
GdkEventCrossing *  ,
lives_special_framedraw_rect_t  
)
gboolean on_framedraw_leave ( GtkWidget *  ,
GdkEventCrossing *  ,
lives_special_framedraw_rect_t  
)
gboolean on_framedraw_mouse_reset ( GtkWidget *  ,
GdkEventButton *  ,
lives_special_framedraw_rect_t  
)
gboolean on_framedraw_mouse_start ( GtkWidget *  ,
GdkEventButton *  ,
lives_special_framedraw_rect_t  
)
gboolean on_framedraw_mouse_update ( GtkWidget *  ,
GdkEventButton *  ,
lives_special_framedraw_rect_t  
)
void on_framedraw_reset_clicked ( GtkButton *  ,
lives_special_framedraw_rect_t  
)

reset button

void redraw_framedraw_image ( void  )

just redraw the frame

void widget_add_framedraw ( GtkVBox *  box,
gint  start,
gint  end,
gboolean  add_preview_button,
gint  width,
gint  height 
)

call this to add framedraw widget to an hbox

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines