mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
respect text alignment
This commit is contained in:
parent
d49fee0750
commit
7972d8f44e
2 changed files with 8 additions and 8 deletions
|
|
@ -42,8 +42,8 @@ OSCArgument::OSCArgument (double v) : type (OSCTypes::double64),doub
|
|||
OSCArgument::OSCArgument (const String& s) : type (OSCTypes::string), stringValue (s) {}
|
||||
OSCArgument::OSCArgument (MemoryBlock b) : type (OSCTypes::blob), blob (std::move (b)) {}
|
||||
OSCArgument::OSCArgument (OSCColour c) : type (OSCTypes::colour), intValue ((int32) c.toInt32()) {}
|
||||
OSCArgument::OSCArgument(bool b) : type (b ? OSCTypes::T : OSCTypes::F) {}
|
||||
OSCArgument::OSCArgument(OSCType t) : type (t) {} //for nil and impulse
|
||||
OSCArgument::OSCArgument (bool b) : type (b ? OSCTypes::T : OSCTypes::F) {}
|
||||
OSCArgument::OSCArgument (OSCType t) : type (t) {} //for nil and impulse
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -53,13 +53,13 @@ public:
|
|||
OSCArgument (int32 value);
|
||||
|
||||
/** Constructs an OSCArgument with type int64 and a given value. */
|
||||
OSCArgument(int64 value);
|
||||
OSCArgument (int64 value);
|
||||
|
||||
/** Constructs an OSCArgument with type float32 and a given value. */
|
||||
OSCArgument (float value);
|
||||
|
||||
/** Constructs an OSCArgument with type double and a given value. */
|
||||
OSCArgument(double value);
|
||||
OSCArgument (double value);
|
||||
|
||||
/** Constructs an OSCArgument with type string and a given value */
|
||||
OSCArgument (const String& value);
|
||||
|
|
@ -76,12 +76,12 @@ public:
|
|||
OSCArgument (OSCColour colour);
|
||||
|
||||
/** Constructs an OSCArgument with type T or F depending on the given boolean value */
|
||||
OSCArgument(bool value);
|
||||
OSCArgument (bool value);
|
||||
|
||||
/** Constructs an OSCArgument with the given OSC type tag.
|
||||
This constructor is intended for creating OSCArgument objects with type nil or impulse.
|
||||
*/
|
||||
OSCArgument(OSCType type);
|
||||
OSCArgument (OSCType type);
|
||||
|
||||
/** Returns the type of the OSCArgument as an OSCType.
|
||||
OSCType is a char type, and its value will be the OSC type tag of the type.
|
||||
|
|
@ -98,7 +98,7 @@ public:
|
|||
bool isFloat32() const noexcept { return type == OSCTypes::float32; }
|
||||
|
||||
/** Returns whether the type of the OSCArgument is double. */
|
||||
bool isDouble() const noexcept { return type == OSCTypes::double64; }
|
||||
bool isDouble() const noexcept { return type == OSCTypes::double64; }
|
||||
|
||||
/** Returns whether the type of the OSCArgument is string. */
|
||||
bool isString() const noexcept { return type == OSCTypes::string; }
|
||||
|
|
@ -116,7 +116,7 @@ public:
|
|||
bool isImpulse() const noexcept { return type == OSCTypes::impulse; }
|
||||
|
||||
/** Returns whether the type of the OSCArgument is T or F. */
|
||||
bool isBool() const noexcept { return type == OSCTypes::T || type == OSCTypes::F; }
|
||||
bool isBool() const noexcept { return type == OSCTypes::T || type == OSCTypes::F; }
|
||||
|
||||
/** Returns the value of the OSCArgument as an int32.
|
||||
If the type of the OSCArgument is not int32, the behaviour is undefined.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue