Browse Source

Misc

gh-pages
falkTX 10 years ago
parent
commit
9c99834f24
4 changed files with 22 additions and 32 deletions
  1. +2
    -2
      dgl/App.hpp
  2. +10
    -10
      dgl/Base.hpp
  3. +4
    -8
      distrho/DistrhoUtils.hpp
  4. +6
    -12
      distrho/src/DistrhoDefines.h

+ 2
- 2
dgl/App.hpp View File

@@ -50,7 +50,7 @@ public:


/** /**
Idle function. Idle function.
This calls all this app Windows' idle functions and idle callbacks.
This runs the application event-loop once.
*/ */
void idle(); void idle();


@@ -69,7 +69,7 @@ public:


/** /**
Check if the application is about to quit. Check if the application is about to quit.
Returning true means there's no event-loop running at the moment.
Returning true means there's no event-loop running at the moment (or it's just about to stop).
*/ */
bool isQuiting() const noexcept; bool isQuiting() const noexcept;




+ 10
- 10
dgl/Base.hpp View File

@@ -126,6 +126,16 @@ enum Char {
CHAR_DELETE = 0x7F CHAR_DELETE = 0x7F
}; };


/**
Keyboard modifier flags.
*/
enum Modifier {
MODIFIER_SHIFT = 1 << 0, /**< Shift key */
MODIFIER_CTRL = 1 << 1, /**< Control key */
MODIFIER_ALT = 1 << 2, /**< Alt/Option key */
MODIFIER_SUPER = 1 << 3 /**< Mod4/Command/Windows key */
};

/** /**
Special (non-Unicode) keyboard keys. Special (non-Unicode) keyboard keys.
*/ */
@@ -157,16 +167,6 @@ enum Key {
KEY_SUPER KEY_SUPER
}; };


/**
Keyboard modifier flags.
*/
enum Modifier {
MODIFIER_SHIFT = 1 << 0, /**< Shift key */
MODIFIER_CTRL = 1 << 1, /**< Control key */
MODIFIER_ALT = 1 << 2, /**< Alt/Option key */
MODIFIER_SUPER = 1 << 3 /**< Mod4/Command/Windows key */
};

// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// Base DGL classes // Base DGL classes




+ 4
- 8
distrho/DistrhoUtils.hpp View File

@@ -32,17 +32,13 @@


#if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC) #if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC)
namespace std { namespace std {
inline float
fmin(float __x, float __y)
inline float fmin(float __x, float __y)
{ return __builtin_fminf(__x, __y); } { return __builtin_fminf(__x, __y); }
inline float
fmax(float __x, float __y)
inline float fmax(float __x, float __y)
{ return __builtin_fmaxf(__x, __y); } { return __builtin_fmaxf(__x, __y); }
inline float
rint(float __x)
inline float rint(float __x)
{ return __builtin_rintf(__x); } { return __builtin_rintf(__x); }
inline float
round(float __x)
inline float round(float __x)
{ return __builtin_roundf(__x); } { return __builtin_roundf(__x); }
} }
#endif #endif


+ 6
- 12
distrho/src/DistrhoDefines.h View File

@@ -118,23 +118,17 @@ private: \
#endif #endif


/* Define namespace */ /* Define namespace */
#ifndef DISTRHO_NO_NAMESPACE
# ifndef DISTRHO_NAMESPACE
# define DISTRHO_NAMESPACE DISTRHO
# endif
# define START_NAMESPACE_DISTRHO namespace DISTRHO_NAMESPACE {
# define END_NAMESPACE_DISTRHO }
# define USE_NAMESPACE_DISTRHO using namespace DISTRHO_NAMESPACE;
#else
# define START_NAMESPACE_DISTRHO
# define END_NAMESPACE_DISTRHO
# define USE_NAMESPACE_DISTRHO
#ifndef DISTRHO_NAMESPACE
# define DISTRHO_NAMESPACE DISTRHO
#endif #endif
#define START_NAMESPACE_DISTRHO namespace DISTRHO_NAMESPACE {
#define END_NAMESPACE_DISTRHO }
#define USE_NAMESPACE_DISTRHO using namespace DISTRHO_NAMESPACE;


/* Useful typedefs */ /* Useful typedefs */
typedef unsigned char uchar; typedef unsigned char uchar;
typedef unsigned long int ulong;
typedef unsigned short int ushort; typedef unsigned short int ushort;
typedef unsigned int uint; typedef unsigned int uint;
typedef unsigned long int ulong;


#endif // DISTRHO_DEFINES_H_INCLUDED #endif // DISTRHO_DEFINES_H_INCLUDED

Loading…
Cancel
Save