emit#
emits the specified signal in context of this
object.
Header: | #include <AUI/Common/AObject.h> |
CMake: | aui_link(my_target PUBLIC aui::core) |
Definition#
Examples#
examples/app/fractal/src/FractalView.cpp
Fractal Example - Fractal viewer application demonstrating usage of custom shaders.
void FractalView::handleMatrixUpdated() {
mShader.use();
mShader.set(UNIFORM_TR, mTransform);
emit centerPosChanged(getPlotPosition(), getPlotScale());
}
void FractalView::onKeyDown(AInput::Key key) {
AView::onKeyDown(key);
onKeyRepeat(key);
examples/app/game_of_life/src/main.cpp
Game of Life - Game of Life implementation that uses advanced large dynamic data rendering techniques such as ITexture, AImage to be GPU friendly. The computation is performed in AThreadPool.
examples/app/minesweeper/src/MinesweeperWindow.cpp
Minesweeper Game - Minesweeper game implementation driven by ass.
examples/ui/views/src/DemoListModel.cpp
Views Example - All-in-one views building example.
examples/ui/contacts/src/view/ContactDetailsView.cpp
AUI Contacts - Usage of AUI_DECLARATIVE_FOR to make a contacts-like application.
void ContactDetailsView::drop() {
if (!mEditorMode) {
// delete
emit deleteAction;
return;
}
// discard
if (AMessageBox::show(dynamic_cast<AWindow*>(AWindow::current()), "Do you really want to discard?", "This action is irreversible!", AMessageBox::Icon::NONE, AMessageBox::Button::YES_NO) != AMessageBox::ResultButton::YES) {
Examples#
examples/app/minesweeper/src/CellView.cpp
Minesweeper Game - Minesweeper game implementation driven by ass.
#include "AUI/Render/IRenderer.h"
CellView::CellView(FieldCell& cell) : mCell(cell), mCellValueCopy(cell) {
connect(clickedButton, this, [&]() {
emit customCssPropertyChanged();
});
}
void CellView::render(ARenderContext context) {
if (mCell != mCellValueCopy) {