Разработка кроссплатформенных приложений с использованием Juce - ответы
Количество вопросов - 286
void TTreeViewItem::paintItem(Graphics& Painter, int iWidth, int iHeight){ if(isSelected()) { PainterfillAll(Colours::violetwithAlpha(03f)); } PaintersetColour(Colours::black); PaintersetFont(iHeight * 08f); // Рисуем текст (имя) элемента PainterdrawText(sItemName, 4, 0, iWidth - 4, iHeight, Justification::centredLeft, true);}
DocumentWindow::minimiseButton | DocumentWindow::closeButton
CanvassetColour(Colours::blue); // Graphics& Canvas;CanvassetPixel(10, 10);
CanvassetColour(Colours::black); // Graphics& Canvas; float fDashLengths[] = {4, 2};CanvasdrawDashedLine(10, 10, 30, 30, fDashLengths, 3);
CanvassetColour(Colours::yellow); // Graphics& Canvas;fillEllipse(10, 10, 100, 50);CanvassetColour(Colours::red);drawEllipse(10, 10, 100, 50, 3);
Label* pMyLabel = new Label(String::empty, L"Hello world!");pMyLabel->setJustificationType(Justification::left | Justification::bottom);
TextEditor* pIDEdit = new TextEditor(String::empty);pIDEdit->setMultiLine(false, false);pIDEdit->setInputRestrictions(10, "RU1234567890");
void TToolbarFactory::getDefaultItemSet(Array<int>& iIDs){ iIDsadd(FileQuit); // Команда кнопки "Выход" iIDsadd(separatorBarId); iIDsadd(FileOpen); // Команда кнопки "Открыть" iIDsadd(separatorBarId);}
MidiOutput* pMidiOutput = MidiOutput::openDevice(0);pMidiOutput->sendMessageNow(MidiMessage::programChange(1, 0));MidiMessage PlayMessage(0x90, 60, 100, 0);pMidiOutput->sendMessageNow(PlayMessage);
pTreeView->setMultiSelectEnabled(true);pTreeView->getSelectedItem(0);
DocumentWindow::minimiseButton | DocumentWindow::closeButton
CanvassetColour(Colours::yellow); // Graphics& Canvas;fillRect(10, 10, 100, 100);CanvassetColour(Colours::blue);drawRect(10, 10, 100, 100, 3);
Slider* pSlider = new Slider(L"Slider");pSlider->setTextBoxStyle(Slider::TextBoxAbove, true, 80, 20)
AudioDeviceManager* pAudioDeviceManager = new AudioDeviceManager();String sError = pAudioDeviceManager->initialise(1, 2, 0, true);AudioIODevice* pAudioDevice = pAudioDeviceManager->getCurrentAudioDevice();
pNewButton = new DrawableButton("NewButton", DrawableButton::ImageFitted);
CanvassetColour(Colours::blue); // Graphics& Canvas;drawRect(10, 10, 100, 100, 3);
CanvassetColour(Colours::blue); // Graphics& Canvas;CanvasdrawLine(10, 10, 30, 30);
TextEditor* pMemo = new TextEditor(String::empty);pMemo->setMultiLine(true, true);