2 #ifndef __BSE_UTILS_H__
3 #define __BSE_UTILS_H__
12 public virtual std::enable_shared_from_this<ImplicitBase> {
14 template<class Class, typename std::enable_if<std::is_base_of<ImplicitBase, Class>::value>::type* =
nullptr>
17 return object ? std::shared_ptr<Class> (
object->shared_from_this()) : std::shared_ptr<Class>();
32 void bse_cxx_init (
void);
34 BseNoteDescription* bse_note_description (BseMusicalTuningType musical_tuning,
37 BsePartNote* bse_part_note (guint
id,
45 void bse_part_note_seq_take_append (BsePartNoteSeq *seq,
46 BsePartNote *element);
47 BsePartControl* bse_part_control (guint
id,
49 BseMidiSignalType ctype,
52 void bse_part_control_seq_take_append (BsePartControlSeq *seq,
53 BsePartControl *element);
54 void bse_note_sequence_resize (BseNoteSequence *rec,
56 guint bse_note_sequence_length (BseNoteSequence *rec);
57 void bse_property_candidate_relabel (BsePropertyCandidates *pc,
59 const gchar *tooltip);
60 void bse_item_seq_remove (BseItemSeq *iseq,
62 SfiRing* bse_item_seq_to_ring (BseItemSeq *iseq);
63 BseItemSeq* bse_item_seq_from_ring (
SfiRing *ring);
67 void bse_debug_dump_floats (guint debug_stream,
76 double bse_balance_get (
double level1,
78 void bse_balance_set (
double balance,
84 BseIcon* bse_icon_from_pixstream (
const guint8 *pixstream);
88 gulong bse_id_alloc (
void);
89 void bse_id_free (gulong
id);
93 gchar** bse_xinfos_add_value (gchar **xinfos,
96 gchar** bse_xinfos_add_float (gchar **xinfos,
99 gchar** bse_xinfos_add_num (gchar **xinfos,
102 gchar** bse_xinfos_parse_assignment (gchar **xinfos,
103 const gchar *assignment);
104 gchar** bse_xinfos_del_value (gchar **xinfos,
106 const gchar* bse_xinfos_get_value (gchar **xinfos,
108 gfloat bse_xinfos_get_float (gchar **xinfos,
110 SfiNum bse_xinfos_get_num (gchar **xinfos,
112 gchar** bse_xinfos_dup_consolidated (gchar **xinfos,
113 gboolean copy_interns);
114 gint bse_xinfo_stub_compare (
const gchar *xinfo1,
115 const gchar *xinfo2);
119 guint bse_string_hash (gconstpointer
string);
120 gint bse_string_equals (gconstpointer string1,
121 gconstpointer string2);
static std::shared_ptr< Class > shared_ptr(Class *object)
Definition: bseutils.hh:15
IDL API base class until Rapicorn supports ImplicitBaseP out of the box.
Definition: bseutils.hh:11
Definition: sfiring.hh:23
Definition: bseitem.hh:33