juicysfplugin/Source/Pill.cpp

17 lines
386 B
C++
Raw Normal View History

2018-02-27 08:25:20 +08:00
//
// Created by Alex Birch on 01/10/2017.
//
#include "Pill.h"
Pill::Pill(
const String& buttonName,
const int index,
const int lastIx
) : TextButton(buttonName) {
setBounds(20 + index * 55, 260, 55, 24);
setConnectedEdges (
(index == 0 ? 0 : Button::ConnectedOnLeft)
| (index == lastIx ? 0 : Button::ConnectedOnRight)
);
}