priv->__y = y;
priv->__changedGeometry = true;
+
+ __windowPositionChangedSignal.emit(nullptr);
}
stPosition DSWindow::getPosition(void)
__windowRaiseToTopSignal.connect(slot, func);
}
+void DSWindow::registerCallbackWindowPositionChanged(DSObject *slot, std::function<void(void *)> func)
+{
+ __windowPositionChangedSignal.connect(slot, func);
+}
+
} // namespace display_server
void registerCallbackBufferChanged(DSObject *slot, std::function<void(std::shared_ptr<IDSBuffer>)> func);
void registerCallbackWindowDestroyed(DSObject *slot, std::function<void(void *)> func);
void registerCallbackWindowRaiseToTop(DSObject *slot, std::function<void(void *)> func);
+ void registerCallbackWindowPositionChanged(DSObject *slot, std::function<void(void *)> func);
protected:
//virtual bool _onFocus(void);
DSSignal<std::shared_ptr<IDSBuffer>> __bufferChangedSignal;
DSSignal<void *> __windowDestroySignal;
DSSignal<void *> __windowRaiseToTopSignal;
+ DSSignal<void *> __windowPositionChangedSignal;
};
}