struct NodeDepths
{
- NodeDepths()
- {
- }
+ NodeDepths() = default;
void Add( SceneGraph::Node* node, uint32_t sortedDepth )
{
void SetDefaultSurfaceRect( const Rect<int>& rect );
/**
+ * Set the default surface orientation.
+ * @param[in] orientation The orientation value representing the surface.
+ */
+ void SetDefaultSurfaceOrientation( int orientation );
+
+ /**
* @copydoc Dali::Stage::KeepRendering()
*/
void KeepRendering( float durationSeconds );
void SetRenderingBehavior( DevelStage::Rendering renderingBehavior );
/**
- * Request to render the current frame
- * @note This is a temporary workaround (to be removed in the future) to request the rendering of
- * the current frame if the color or visibility of any actor is updated. It MUST NOT be used
- * for any other purposes.
- */
- void RequestRendering();
-
- /**
* Sets the depths of all layers.
* @param layers The layers in depth order.
* @param[in] rootLayer The root layer of the sorted layers.
* Perform animation updates
* @param[in] bufferIndex to use
* @param[in] elapsedSeconds time since last frame
- * @return true if at least one animations is currently active or false otherwise
*/
- bool Animate( BufferIndex bufferIndex, float elapsedSeconds );
+ void Animate( BufferIndex bufferIndex, float elapsedSeconds );
/**
* Applies constraints to CustomObjects
new (slot) LocalType( &manager, &UpdateManager::SurfaceReplaced, &scene );
}
-inline void KeepRenderingMessage( UpdateManager& manager, float durationSeconds )
+inline void SetDefaultSurfaceOrientationMessage( UpdateManager& manager, int orientation )
{
- using LocalType = MessageValue1<UpdateManager, float>;
+ typedef MessageValue1< UpdateManager, int > LocalType;
// Reserve some memory inside the message queue
- uint32_t* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
+ unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
// Construct message in the message queue memory; note that delete should not be called on the return value
- new (slot) LocalType( &manager, &UpdateManager::KeepRendering, durationSeconds );
+ new (slot) LocalType( &manager, &UpdateManager::SetDefaultSurfaceOrientation, orientation );
}
-inline void SetRenderingBehaviorMessage( UpdateManager& manager, DevelStage::Rendering renderingBehavior )
+inline void KeepRenderingMessage( UpdateManager& manager, float durationSeconds )
{
- using LocalType = MessageValue1<UpdateManager, DevelStage::Rendering>;
+ using LocalType = MessageValue1<UpdateManager, float>;
// Reserve some memory inside the message queue
uint32_t* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
// Construct message in the message queue memory; note that delete should not be called on the return value
- new (slot) LocalType( &manager, &UpdateManager::SetRenderingBehavior, renderingBehavior );
+ new (slot) LocalType( &manager, &UpdateManager::KeepRendering, durationSeconds );
}
-inline void RequestRenderingMessage( UpdateManager& manager )
+inline void SetRenderingBehaviorMessage( UpdateManager& manager, DevelStage::Rendering renderingBehavior )
{
- using LocalType = Message<UpdateManager>;
+ using LocalType = MessageValue1<UpdateManager, DevelStage::Rendering>;
// Reserve some memory inside the message queue
uint32_t* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
// Construct message in the message queue memory; note that delete should not be called on the return value
- new (slot) LocalType( &manager, &UpdateManager::RequestRendering );
+ new (slot) LocalType( &manager, &UpdateManager::SetRenderingBehavior, renderingBehavior );
}
/**
/**
* Virtual destructor
*/
- ~IndexBufferMessage() override
- {
- }
+ ~IndexBufferMessage() override = default;
/**
* @copydoc MessageBase::Process