LiVES  3.2.0
Macros | Functions
gui.c File Reference
#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)
 

Macro Definition Documentation

◆ ASPECT_DIFF_LMT

#define ASPECT_DIFF_LMT   0.01625f

Definition at line 4391 of file gui.c.

◆ MAX_DISP_SETNAME_LEN

#define MAX_DISP_SETNAME_LEN   10

Definition at line 4485 of file gui.c.

◆ TEST_CE_THUMBS

#define TEST_CE_THUMBS   0

Definition at line 3969 of file gui.c.

Function Documentation

◆ add_to_clipmenu()

void add_to_clipmenu ( void  )

◆ add_to_playframe()

void add_to_playframe ( void  )

Definition at line 4451 of file gui.c.

Referenced by mt_show_current_frame().

◆ create_LiVES()

void create_LiVES ( void  )

Definition at line 366 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ disable_record()

void disable_record ( void  )

Definition at line 3717 of file gui.c.

◆ enable_record()

void enable_record ( void  )

Definition at line 3706 of file gui.c.

Referenced by on_record_perf_activate().

◆ fade_background()

void fade_background ( void  )

Definition at line 3216 of file gui.c.

Referenced by on_fade_activate(), and on_sepwin_activate().

◆ frame_size_update()

LIVES_GLOBAL_INLINE void frame_size_update ( void  )

Definition at line 4479 of file gui.c.

◆ fullscreen_internal()

void fullscreen_internal ( void  )

Definition at line 3440 of file gui.c.

Referenced by on_sepwin_activate(), and on_toolbar_hide().

◆ get_letterbox_sizes()

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)

  • if either dimension ends up larger, then our outer rectangle is the player size, and we scale the inner image down so both width and height fit

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.

◆ get_menu_name()

char* get_menu_name ( lives_clip_t sfile,
boolean  add_setname 
)

◆ get_play_screen_size()

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().

◆ get_vspace()

LIVES_GLOBAL_INLINE int get_vspace ( void  )

Definition at line 55 of file gui.c.

Referenced by resize().

◆ kill_play_window()

void kill_play_window ( void  )

Definition at line 4386 of file gui.c.

Referenced by on_sepwin_activate(), and pref_factory_int().

◆ load_theme_images()

void load_theme_images ( void  )

Definition at line 65 of file gui.c.

Referenced by on_import_theme_activate(), and on_prefs_apply_clicked().

◆ make_custom_submenus()

void make_custom_submenus ( void  )

Definition at line 126 of file gui.c.

Referenced by add_rfx_effects2().

◆ make_play_window()

void make_play_window ( void  )

actually in gui.c

Definition at line 3932 of file gui.c.

Referenced by on_sepwin_activate(), and pref_factory_int().

◆ make_preview_box()

void make_preview_box ( void  )

Definition at line 3515 of file gui.c.

Referenced by switch_to_file().

◆ play_window_set_title()

void play_window_set_title ( void  )

Definition at line 3722 of file gui.c.

Referenced by pref_factory_int(), set_main_title(), and vid_playback_plugin_exit().

◆ remove_from_clipmenu()

void remove_from_clipmenu ( void  )

Definition at line 4560 of file gui.c.

Referenced by close_current_file().

◆ reset_message_area()

void reset_message_area ( void  )

Definition at line 4734 of file gui.c.

Referenced by switch_to_file().

◆ resize_play_window()

void resize_play_window ( void  )

◆ resize_widgets_for_monitor()

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 config_event().

◆ set_colours()

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(), and show_lives().

◆ set_interactive()

void set_interactive ( boolean  interactive)

Definition at line 3072 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ set_preview_box_colours()

void set_preview_box_colours ( void  )

Definition at line 3505 of file gui.c.

Referenced by make_preview_box(), and pref_change_colours().

◆ show_lives()

void show_lives ( void  )

Definition at line 3006 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ splash_end()

void splash_end ( void  )

Definition at line 4712 of file gui.c.

Referenced by startup_message_fatal().

◆ splash_init()

void splash_init ( void  )

Definition at line 4605 of file gui.c.

◆ splash_msg()

void splash_msg ( const char *  msg,
double  pct 
)

Definition at line 4687 of file gui.c.

◆ toggle_record()

void toggle_record ( void  )

Definition at line 3712 of file gui.c.

Referenced by on_record_perf_activate().

◆ unfade_background()

void unfade_background ( void  )

Definition at line 3324 of file gui.c.

Referenced by on_fade_activate(), and on_sepwin_activate().