Skip to content

Instantly share code, notes, and snippets.

@ed95
Last active November 29, 2019 19:49
Show Gist options
  • Save ed95/7f5c0f0f13f8d9ddf185e458fc31bc0c to your computer and use it in GitHub Desktop.
Save ed95/7f5c0f0f13f8d9ddf185e458fc31bc0c to your computer and use it in GitHub Desktop.
C++/JUCE emoji defines
/*
==============================================================================
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
@seanwayland
Copy link

Love it. Color is spelled wrong.

@dlandahl
Copy link

Love it. Color is spelled wrong.

You've been taught it wrong

@dblais01
Copy link

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