Last active
November 29, 2019 19:49
-
-
Save ed95/7f5c0f0f13f8d9ddf185e458fc31bc0c to your computer and use it in GitHub Desktop.
C++/JUCE emoji defines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
============================================================================== | |
This file is part of the JUCE library. | |
Copyright (c) 2017 - ROLI Ltd. | |
JUCE is an open source library subject to commercial or open-source | |
licensing. | |
By using JUCE, you agree to the terms of both the JUCE 5 End-User License | |
Agreement and JUCE 5 Privacy Policy (both updated and effective as of the | |
27th April 2017). | |
End User License Agreement: www.juce.com/juce-5-licence | |
Privacy Policy: www.juce.com/juce-5-privacy-policy | |
Or: You may also use this code under the terms of the GPL v3 (see | |
www.gnu.org/licenses). | |
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER | |
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE | |
DISCLAIMED. | |
============================================================================== | |
*/ | |
#pragma once | |
//============================================================================== | |
// C++ keywords | |
#define π΅ public | |
#define π private | |
#define π class | |
#define π struct | |
#define π³ void | |
#define πΆπ¦ override | |
#define π© static | |
#define π delete | |
#define π³π nullptr | |
#define π« for | |
#define π return | |
#define πΆ new | |
#define π auto | |
// JUCE classes | |
#define π Component | |
#define π° Timer | |
#define π Font | |
#define π¨ Colour | |
#define πΎ Graphics | |
#define ππ ScopedPointer | |
#define π Drawable | |
#define π Point | |
#define π· XmlElement | |
#define π·π· XmlDocument | |
#define ππ OwnedArray | |
#define ππ§ MemoryOutputStream | |
// JUCE methods | |
#define π¨βπ¨ paint | |
#define π resized | |
#define π°π timerCallback | |
#define π size | |
#define ππ setSize | |
#define ππ setFont | |
#define ππ¨ setColour | |
#define ππ¨ findColour | |
#define π fillAll | |
#define ππ drawText | |
#define ππΌ getLookAndFeel | |
#define ππ getBounds | |
#define ππ π getLocalBounds | |
#define π€ getUnchecked | |
#define Β· centred | |
#define πΏπ¨ JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR | |
#define π² Random::getSystemRandom | |
#define π¬π° startTimerHz | |
#define π jassert | |
#define ππ addAndMakeVisible | |
#define π₯ remove | |
#define π₯ add | |
#define ππ¦ getParentComponent | |
#define πΒ·π setCentrePosition | |
#define πΒ· getCentre | |
#define πππ getWidth | |
#define πππ getHeight | |
#define π isPositiveAndBelow | |
#define ππ drawWithin | |
#define π parse | |
#define πΆπ₯ createFromSVG |
wow had me scared there till I saw the date π
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You've been taught it wrong