Implement Orientation and LineFillMode enums to the JUI namespace.
This commit is contained in:
@@ -4,7 +4,25 @@
|
||||
#include <Event.h>
|
||||
|
||||
namespace JUI {
|
||||
class JUILogger : public jlog::GenericLogger {
|
||||
|
||||
|
||||
/// An enumeration for mouse buttons, used by JUI to decouple from external systems.
|
||||
/// Some boilerplate is required in order to get input mechanisms up and running. See the demo files for reference.
|
||||
enum class MouseButton {
|
||||
Left = 1,
|
||||
Middle = 2,
|
||||
Right = 3
|
||||
};
|
||||
|
||||
/// Designates an element as laid out horizontally or vertically.
|
||||
enum class Orientation { Horizontal, Vertical };
|
||||
|
||||
/// Determines how a line element is decorated.
|
||||
enum class LineFillMode { Solid, Dotted, Dashed };
|
||||
|
||||
|
||||
/// Logger class for JUI. @see project jlog
|
||||
class JUILogger : public jlog::GenericLogger {
|
||||
public:
|
||||
Event<std::string, Color4> OnLog;
|
||||
|
||||
@@ -20,12 +38,4 @@ class JUILogger : public jlog::GenericLogger {
|
||||
};
|
||||
|
||||
extern JUILogger UILogs;
|
||||
|
||||
/// An enumeration for mouse buttons, used by JUI to decouple from external systems.
|
||||
/// Some boilerplate is required in order to get input mechanisms up and running. See the demo files for reference.
|
||||
enum class MouseButton {
|
||||
Left = 1,
|
||||
Middle = 2,
|
||||
Right = 3
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user