|
LiVES 3.2.0
|
#include "main.h"#include "callbacks.h"#include "interface.h"#include "effects.h"#include "rfx-builder.h"#include "paramwindow.h"#include "resample.h"#include "rte_window.h"#include "stream.h"#include "startup.h"#include "ce_thumbs.h"Go to the source code of this file.
Macros | |
| #define | TEST_CE_THUMBS 0 |
| #define | ASPECT_DIFF_LMT 0.01625f |
| #define | MAX_DISP_SETNAME_LEN 10 |
Functions | |
| LIVES_GLOBAL_INLINE int | get_vspace (void) |
| void | load_theme_images (void) |
| void | make_custom_submenus (void) |
| void | set_colours (LiVESWidgetColor *colf, LiVESWidgetColor *colb, LiVESWidgetColor *colf2, LiVESWidgetColor *colb2, LiVESWidgetColor *colt, LiVESWidgetColor *coli) |
| void | create_LiVES (void) |
| void | show_lives (void) |
| void | set_interactive (boolean interactive) |
| void | fade_background (void) |
| void | unfade_background (void) |
| void | fullscreen_internal (void) |
| void | set_preview_box_colours (void) |
| void | make_preview_box (void) |
| void | enable_record (void) |
| void | toggle_record (void) |
| void | disable_record (void) |
| void | play_window_set_title (void) |
| void | resize_widgets_for_monitor (boolean do_get_play_times) |
| void | make_play_window (void) |
| actually in gui.c More... | |
| LIVES_GLOBAL_INLINE boolean | get_play_screen_size (int *opwidth, int *opheight) |
| void | resize_play_window (void) |
| void | kill_play_window (void) |
| void | get_letterbox_sizes (int *pwidth, int *pheight, int *lb_width, int *lb_height, boolean player_can_upscale) |
| calculate sizes for letterboxing More... | |
| void | add_to_playframe (void) |
| LIVES_GLOBAL_INLINE void | frame_size_update (void) |
| char * | get_menu_name (lives_clip_t *sfile, boolean add_setname) |
| void | add_to_clipmenu (void) |
| void | remove_from_clipmenu (void) |
| void | splash_init (void) |
| void | splash_msg (const char *msg, double pct) |
| void | splash_end (void) |
| void | reset_message_area (void) |
| void add_to_clipmenu | ( | void | ) |
Definition at line 4512 of file gui.c.
Referenced by after_foreign_play(), do_effect(), lives2lives_read_stream(), on_load_cdtrack_ok_clicked(), on_paste_as_new_activate(), on_recaudclip_ok_clicked(), on_render_activate(), open_file_sel(), recover_files(), reload_set(), render_to_clip(), resize_widgets_for_monitor(), and restore_file().
| void add_to_playframe | ( | void | ) |
Definition at line 4451 of file gui.c.
Referenced by mt_show_current_frame(), and play_file().
| void create_LiVES | ( | void | ) |
Definition at line 366 of file gui.c.
Referenced by resize_widgets_for_monitor().
| void disable_record | ( | void | ) |
Definition at line 3717 of file gui.c.
Referenced by create_LiVES(), and play_file().
| void enable_record | ( | void | ) |
Definition at line 3706 of file gui.c.
Referenced by on_record_perf_activate(), and play_file().
| void fade_background | ( | void | ) |
Definition at line 3216 of file gui.c.
Referenced by fullscreen_internal(), on_fade_activate(), on_sepwin_activate(), and play_file().
| LIVES_GLOBAL_INLINE void frame_size_update | ( | void | ) |
Definition at line 4479 of file gui.c.
Referenced by weed_layer_set_from_lives2lives().
| void fullscreen_internal | ( | void | ) |
Definition at line 3440 of file gui.c.
Referenced by on_sepwin_activate(), on_toolbar_hide(), and play_file().
| void get_letterbox_sizes | ( | int * | pwidth, |
| int * | pheight, | ||
| int * | lb_width, | ||
| int * | lb_height, | ||
| boolean | player_can_upscale | ||
| ) |
calculate sizes for letterboxing
if the player can resize, then we only need to consider the aspect ratio. we will embed the image in a black rectangle to give it the same aspect ratio as the player; thus when it gets stretched to the player size the inner image wil not be distorted so here we check: if we keep the same height, and then set the width to the player a.r, does it increase ? if so then our outer rectangle will be wider, othewise it will be higher (or the same, in which case we dont do anything)
widths should be in pixels (not macropixels)
inner frame needs scaling down
inner frame size OK, we will shrink wrap the outer frame
Definition at line 4406 of file gui.c.
Referenced by load_frame_image(), and weed_layer_create_from_generator().
| char * get_menu_name | ( | lives_clip_t * | sfile, |
| boolean | add_setname | ||
| ) |
Definition at line 4487 of file gui.c.
Referenced by add_to_clipmenu(), backup_file(), create_clip_info_window(), d_print(), insert_frames(), mt_init_clips(), multitrack_audio_insert(), on_close_activate(), and remove_from_clipmenu().
| LIVES_GLOBAL_INLINE boolean get_play_screen_size | ( | int * | opwidth, |
| int * | opheight | ||
| ) |
Definition at line 3937 of file gui.c.
Referenced by get_player_size().
| LIVES_GLOBAL_INLINE int get_vspace | ( | void | ) |
Definition at line 55 of file gui.c.
Referenced by load_end_image(), load_start_image(), and resize().
| void kill_play_window | ( | void | ) |
Definition at line 4386 of file gui.c.
Referenced by lives_exit(), on_sepwin_activate(), play_file(), and pref_factory_int().
| void load_theme_images | ( | void | ) |
Definition at line 65 of file gui.c.
Referenced by apply_prefs(), create_LiVES(), on_import_theme_activate(), and on_prefs_apply_clicked().
| void make_custom_submenus | ( | void | ) |
Definition at line 126 of file gui.c.
Referenced by add_rfx_effects2().
| void make_play_window | ( | void | ) |
actually in gui.c
Definition at line 3932 of file gui.c.
Referenced by fullscreen_internal(), multitrack_delete(), on_sepwin_activate(), play_file(), and pref_factory_int().
| void make_preview_box | ( | void | ) |
Definition at line 3515 of file gui.c.
Referenced by play_file(), and switch_to_file().
| void play_window_set_title | ( | void | ) |
Definition at line 3722 of file gui.c.
Referenced by play_file(), pref_factory_int(), set_main_title(), and vid_playback_plugin_exit().
| void remove_from_clipmenu | ( | void | ) |
Definition at line 4560 of file gui.c.
Referenced by close_current_file().
| void reset_message_area | ( | void | ) |
Definition at line 4734 of file gui.c.
Referenced by lives_exit(), play_file(), and switch_to_file().
| void resize_play_window | ( | void | ) |
Definition at line 4349 of file gui.c.
Referenced by on_double_size_activate(), on_multitrack_activate(), on_preview_clicked(), on_sepwin_activate(), play_file(), resize_widgets_for_monitor(), and switch_to_file().
| void resize_widgets_for_monitor | ( | boolean | do_get_play_times | ) |
create a fake event list with no events this prevents problems like the multitrack window trying to auto reload from disk
Definition at line 3752 of file gui.c.
Referenced by apply_prefs(), and config_event().
| void set_colours | ( | LiVESWidgetColor * | colf, |
| LiVESWidgetColor * | colb, | ||
| LiVESWidgetColor * | colf2, | ||
| LiVESWidgetColor * | colb2, | ||
| LiVESWidgetColor * | colt, | ||
| LiVESWidgetColor * | coli | ||
| ) |
no theme !
Definition at line 168 of file gui.c.
Referenced by fade_background(), pref_change_colours(), show_lives(), and unfade_background().
| void set_interactive | ( | boolean | interactive | ) |
Definition at line 3072 of file gui.c.
Referenced by mt_change_vals_activate(), on_multitrack_activate(), and resize_widgets_for_monitor().
| void set_preview_box_colours | ( | void | ) |
Definition at line 3505 of file gui.c.
Referenced by make_preview_box(), and pref_change_colours().
| void show_lives | ( | void | ) |
Definition at line 3006 of file gui.c.
Referenced by multitrack_delete(), on_multitrack_activate(), and resize_widgets_for_monitor().
| void splash_end | ( | void | ) |
Definition at line 4712 of file gui.c.
Referenced by startup_message_fatal().
| void splash_msg | ( | const char * | msg, |
| double | pct | ||
| ) |
Definition at line 4687 of file gui.c.
Referenced by add_rfx_effects(), and create_LiVES().
| void toggle_record | ( | void | ) |
Definition at line 3712 of file gui.c.
Referenced by on_record_perf_activate().
| void unfade_background | ( | void | ) |
Definition at line 3324 of file gui.c.
Referenced by on_fade_activate(), on_sepwin_activate(), and play_file().