libvisual  0.5.0
Classes | Typedefs | Enumerations | Functions

Libvisual namespace. More...

Classes

class  Actor
 Actor class. More...
 
struct  AlignedAllocator
 Aligned memory allocator. More...
 
struct  AlignedAllocator< void, alignment >
 
class  Audio
 Multi-channel audio stream class. More...
 
class  Bin
 
class  Buffer
 Reference-counted memory block. More...
 
struct  Color
 
class  EventQueue
 
class  DFT
 Computes a Discrete Fourier Transform. More...
 
class  Input
 
class  IntrusivePtr
 Intrusive smart pointer class template. More...
 
class  System
 
class  Module
 
class  Morph
 Morph class. More...
 
struct  Palette
 Colour palette class for indexed colour modes. More...
 
class  ParamList
 
struct  PluginRef
 
class  PluginRegistry
 Manages the registry of plugins. More...
 
class  RandomContext
 Pseudorandom number generator class. More...
 
class  Rect
 Class describing an axis-aligned rectangle. More...
 
class  Singleton
 Singleton class template. More...
 
class  SongInfo
 Song information class. More...
 
class  Time
 Encodes time. More...
 
class  Timer
 
class  Video
 Canvas class for drawing operations. More...
 

Typedefs

typedef LV::IntrusivePtr< ActorActorPtr
 
typedef std::unique_ptr
< AudioChannel > 
AudioChannelPtr
 
typedef IntrusivePtr< BufferBufferPtr
 
typedef IntrusivePtr< Buffer
const > 
BufferConstPtr
 
typedef VisEvent Event
 
typedef LV::IntrusivePtr< InputInputPtr
 
typedef IntrusivePtr< ModuleModulePtr
 
typedef LV::IntrusivePtr< MorphMorphPtr
 
typedef std::vector< PluginRefPluginList
 
typedef ::VisPluginType PluginType
 
typedef std::minstd_rand Generator
 
typedef uint32_t RandomSeed
 
typedef IntrusivePtr< VideoVideoPtr
 
typedef IntrusivePtr< Video
const > 
VideoConstPtr
 

Enumerations

enum  SongInfoType { SONG_INFO_TYPE_NULL = ::VISUAL_SONGINFO_TYPE_NULL, SONG_INFO_TYPE_SIMPLE = ::VISUAL_SONGINFO_TYPE_SIMPLE, SONG_INFO_TYPE_ADVANCED = ::VISUAL_SONGINFO_TYPE_ADVANCED }
 

Functions

void intrusive_ptr_add_ref (Actor const *actor)
 
void intrusive_ptr_release (Actor const *actor)
 
template<typename T , typename U , std::size_t alignment>
bool operator== (AlignedAllocator< T, alignment > const &, AlignedAllocator< U, alignment > const &)
 
template<typename T , typename U , std::size_t alignment>
bool operator!= (AlignedAllocator< T, alignment > const &, AlignedAllocator< U, alignment > const &)
 
void intrusive_ptr_add_ref (Buffer const *buffer)
 
void intrusive_ptr_release (Buffer const *buffer)
 
void intrusive_ptr_add_ref (Input const *input)
 
void intrusive_ptr_release (Input const *input)
 
uint32_t rand ()
 Drop-in replacement for std::rand() using LV's system-wide random number generator. More...
 
template<typename T >
clamp (T value, T lower, T upper)
 
void intrusive_ptr_add_ref (Module *module)
 
void intrusive_ptr_release (Module *module)
 
void intrusive_ptr_add_ref (Morph const *morph)
 
void intrusive_ptr_release (Morph const *morph)
 
const char * plugin_get_next_by_name (PluginList const &list, char const *name)
 Retrieves the name of the next plugin in the given list. More...
 
const char * plugin_get_prev_by_name (PluginList const &list, char const *name)
 Retrieves the name of the previous plugin in the given list. More...
 
PluginRefload_plugin_ref (std::string const &plugin_path)
 
bool operator== (SongInfo const &lhs, SongInfo const &rhs)
 
template<typename T , typename... Args>
std::unique_ptr< T > make_unique (Args &&...args)
 
bool str_has_suffix (std::string const &str, std::string const &suffix)
 Checks if a string has a given suffix. More...
 
bool for_each_file_in_dir (std::string const &path, std::function< bool(std::string const &)> filter, std::function< bool(std::string const &)> func)
 
char const * string_to_c (std::string const &string)
 Returns a null-terminated C string from a std::string, or nullptr if string is empty. More...
 
void intrusive_ptr_add_ref (Video const *video)
 
void intrusive_ptr_release (Video const *video)
 

Detailed Description

Libvisual namespace.

Function Documentation

char const * LV::plugin_get_next_by_name ( PluginList const &  list,
char const *  name 
)

Retrieves the name of the next plugin in the given list.

Parameters
lista list of plugins
namename of plugin to start searching from
Returns
name of the next plugin, or NULL if none can be found

Definition at line 50 of file lv_plugin.cpp.

Referenced by visual_input_get_next_by_name(), and visual_morph_get_next_by_name().

char const * LV::plugin_get_prev_by_name ( PluginList const &  list,
char const *  name 
)

Retrieves the name of the previous plugin in the given list.

Parameters
lista list of plugins
namename of plugin to start searching from
Returns
name of the previous plugin, or NULL if none can be found

Definition at line 64 of file lv_plugin.cpp.

Referenced by visual_input_get_prev_by_name(), and visual_morph_get_prev_by_name().

uint32_t LV::rand ( )
inline

Drop-in replacement for std::rand() using LV's system-wide random number generator.

Returns
a random number

Definition at line 110 of file lv_libvisual.h.

bool LV::str_has_suffix ( std::string const &  str,
std::string const &  suffix 
)
inline

Checks if a string has a given suffix.

Parameters
strstring to check
suffixsuffix to look for
Returns
true if string has the given suffix, false otherwise

Definition at line 26 of file lv_util.hpp.

char const* LV::string_to_c ( std::string const &  string)
inline

Returns a null-terminated C string from a std::string, or nullptr if string is empty.

Parameters
stringinput string

return C string, or nullptr

Definition at line 46 of file lv_util.hpp.