@@ -12,7 +12,9 @@ enum ButtonDesigns {
1212 RESET ,
1313 RANDOM ,
1414 SHIFT_UP ,
15- SHIFT_DOWN
15+ SHIFT_DOWN ,
16+ ARROW_LEFT ,
17+ ARROW_RIGHT
1618};
1719
1820class ArrayAssignerButton : public juce ::Button
@@ -31,6 +33,8 @@ class ArrayAssignerButton : public juce::Button
3133 void drawRandomShape (juce::Graphics &g, juce::Rectangle<int > bounds);
3234 void drawShiftUpShape (juce::Graphics &g, juce::Rectangle<int > bounds);
3335 void drawShiftDownShape (juce::Graphics &g, juce::Rectangle<int > bounds);
36+ void drawArrowLeftShape (juce::Graphics &g, juce::Rectangle<int > bounds);
37+ void drawArrowRightShape (juce::Graphics &g, juce::Rectangle<int > bounds);
3438
3539 void mouseUp (const juce::MouseEvent &) override ;
3640
@@ -156,6 +160,29 @@ class ArrayAssignerButton : public juce::Button
156160 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0
157161 };
158162
163+ const std::array<char , buttonPixelDims * buttonPixelDims> arrowLeftShape {
164+ 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 ,
165+ 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
166+ 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 ,
167+ 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 ,
168+ 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
169+ 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 ,
170+ 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 ,
171+ 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
172+ 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0
173+ };
174+ const std::array<char , buttonPixelDims * buttonPixelDims> arrowRightShape {
175+ 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 ,
176+ 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
177+ 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 ,
178+ 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 ,
179+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 ,
180+ 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 ,
181+ 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 ,
182+ 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
183+ 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0
184+ };
185+
159186};
160187
161188#endif // MAIM_ARRAYASSIGNERBUTTON_H
0 commit comments