LiVES  3.2.0
Functions
framedraw.c File Reference
#include "main.h"
#include "callbacks.h"
#include "interface.h"
#include "effects.h"
#include "cvirtual.h"
#include "framedraw.h"

Go to the source code of this file.

Functions

void invalidate_preview (lives_special_framedraw_rect_t *frame_draw)
 
void framedraw_connect_spinbutton (lives_special_framedraw_rect_t *framedraw, lives_rfx_t *rfx)
 connect spinbutton to preview More...
 
void framedraw_connect (lives_special_framedraw_rect_t *framedraw, int width, int height, lives_rfx_t *rfx)
 activate the image for clicks and draws More...
 
void framedraw_add_label (LiVESVBox *box)
 add explanatory label More...
 
void framedraw_add_reset (LiVESVBox *box, lives_special_framedraw_rect_t *framedraw)
 add "reset values" button More...
 
void widget_add_framedraw (LiVESVBox *box, int start, int end, boolean add_preview_button, int width, int height, lives_rfx_t *rfx)
 call this to add framedraw widget to an hbox More...
 
weed_plant_t * framedraw_redraw (lives_special_framedraw_rect_t *framedraw, weed_layer_t *layer)
 redraw when exposed/frame number changes More...
 
void load_rfx_preview (lives_rfx_t *rfx)
 rfx preview More...
 
boolean on_framedraw_enter (LiVESWidget *widget, LiVESXEventCrossing *event, lives_special_framedraw_rect_t *framedraw)
 
boolean on_framedraw_leave (LiVESWidget *widget, LiVESXEventCrossing *event, lives_special_framedraw_rect_t *framedraw)
 
boolean on_framedraw_mouse_start (LiVESWidget *widget, LiVESXEventButton *event, lives_special_framedraw_rect_t *framedraw)
 
boolean on_framedraw_mouse_update (LiVESWidget *widget, LiVESXEventMotion *event, lives_special_framedraw_rect_t *framedraw)
 
boolean on_framedraw_mouse_reset (LiVESWidget *widget, LiVESXEventButton *event, lives_special_framedraw_rect_t *framedraw)
 
boolean on_framedraw_scroll (LiVESWidget *widget, LiVESXEventScroll *event, lives_special_framedraw_rect_t *framedraw)
 
void after_framedraw_widget_changed (LiVESWidget *widget, lives_special_framedraw_rect_t *framedraw)
 callback for widgets More...
 
void on_framedraw_reset_clicked (LiVESButton *button, lives_special_framedraw_rect_t *framedraw)
 reset button More...
 

Function Documentation

◆ after_framedraw_widget_changed()

void after_framedraw_widget_changed ( LiVESWidget *  widget,
lives_special_framedraw_rect_t framedraw 
)

callback for widgets

Definition at line 1282 of file framedraw.c.

◆ framedraw_add_label()

void framedraw_add_label ( LiVESVBox *  box)

add explanatory label

Definition at line 189 of file framedraw.c.

◆ framedraw_add_reset()

void framedraw_add_reset ( LiVESVBox *  box,
lives_special_framedraw_rect_t framedraw 
)

add "reset values" button

Definition at line 200 of file framedraw.c.

◆ framedraw_connect()

void framedraw_connect ( lives_special_framedraw_rect_t framedraw,
int  width,
int  height,
lives_rfx_t rfx 
)

activate the image for clicks and draws

Definition at line 165 of file framedraw.c.

◆ framedraw_connect_spinbutton()

void framedraw_connect_spinbutton ( lives_special_framedraw_rect_t framedraw,
lives_rfx_t rfx 
)

connect spinbutton to preview

Definition at line 152 of file framedraw.c.

Referenced by fd_connect_spinbutton().

◆ framedraw_redraw()

weed_plant_t* framedraw_redraw ( lives_special_framedraw_rect_t framedraw,
weed_layer_t layer 
)

redraw when exposed/frame number changes

Definition at line 423 of file framedraw.c.

◆ invalidate_preview()

void invalidate_preview ( lives_special_framedraw_rect_t frame_draw)

this is called when a parameter in a rendered effect is changed the current preview is invalid and we must reset back to the start frame

the exception is for effects which can resize, since we can only show an approximate preview anyway

Definition at line 42 of file framedraw.c.

Referenced by reset_framedraw_preview().

◆ load_rfx_preview()

void load_rfx_preview ( lives_rfx_t rfx)

rfx preview

Definition at line 671 of file framedraw.c.

◆ on_framedraw_enter()

boolean on_framedraw_enter ( LiVESWidget *  widget,
LiVESXEventCrossing *  event,
lives_special_framedraw_rect_t framedraw 
)

Definition at line 819 of file framedraw.c.

◆ on_framedraw_leave()

boolean on_framedraw_leave ( LiVESWidget *  widget,
LiVESXEventCrossing *  event,
lives_special_framedraw_rect_t framedraw 
)

Definition at line 855 of file framedraw.c.

◆ on_framedraw_mouse_reset()

boolean on_framedraw_mouse_reset ( LiVESWidget *  widget,
LiVESXEventButton *  event,
lives_special_framedraw_rect_t framedraw 
)

the focus is at xend, yend, but the crosshair may be offcenter. We need its position, and then we can find the offset to xcurrent, ycurrent. The offset is then added to the center.

Definition at line 1156 of file framedraw.c.

◆ on_framedraw_mouse_start()

boolean on_framedraw_mouse_start ( LiVESWidget *  widget,
LiVESXEventButton *  event,
lives_special_framedraw_rect_t framedraw 
)

Definition at line 871 of file framedraw.c.

◆ on_framedraw_mouse_update()

boolean on_framedraw_mouse_update ( LiVESWidget *  widget,
LiVESXEventMotion *  event,
lives_special_framedraw_rect_t framedraw 
)

Definition at line 989 of file framedraw.c.

◆ on_framedraw_reset_clicked()

void on_framedraw_reset_clicked ( LiVESButton *  button,
lives_special_framedraw_rect_t framedraw 
)

reset button

Definition at line 1296 of file framedraw.c.

◆ on_framedraw_scroll()

boolean on_framedraw_scroll ( LiVESWidget *  widget,
LiVESXEventScroll *  event,
lives_special_framedraw_rect_t framedraw 
)

Definition at line 1263 of file framedraw.c.

◆ widget_add_framedraw()

void widget_add_framedraw ( LiVESVBox *  box,
int  start,
int  end,
boolean  add_preview_button,
int  width,
int  height,
lives_rfx_t rfx 
)

call this to add framedraw widget to an hbox

Definition at line 279 of file framedraw.c.

Referenced by on_fx_pre_activate().