Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Dali::Internal::Layer Class Reference

#include <layer-impl.h>

Inheritance diagram for Dali::Internal::Layer:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Layer:
Collaboration graph
[legend]

Public Member Functions

void OnInitialize ()
 For use in derived classes, called after Initialize() More...
 
unsigned int GetDepth () const
 Query the current depth of the layer. More...
 
void Raise ()
 Increment the depth of the layer. More...
 
void Lower ()
 Decrement the depth of the layer. More...
 
void RaiseAbove (const Internal::Layer &target)
 Ensures the layers depth is greater than the target layer. More...
 
void LowerBelow (const Internal::Layer &target)
 Ensures the layers depth is less than the target layer. More...
 
void RaiseToTop ()
 Raises the layer to the top. More...
 
void LowerToBottom ()
 Lowers the layer to the bottom. More...
 
void MoveAbove (const Internal::Layer &target)
 Moves the layer directly above the given layer. More...
 
void MoveBelow (const Internal::Layer &target)
 Moves the layer directly above the given layer. More...
 
void SetClipping (bool enabled)
 Sets whether clipping is enabled for a layer. More...
 
bool IsClipping () const
 Query whether clipping is enabled for a layer. More...
 
void SetClippingBox (int x, int y, int width, int height)
 Sets the clipping box of a layer, in window coordinates. More...
 
const Dali::ClippingBoxGetClippingBox () const
 Retrieves the clipping box of a layer, in window coordinates. More...
 
void SetBehavior (Dali::Layer::Behavior behavior)
 Set the behavior of the layer. More...
 
Dali::Layer::Behavior GetBehavior () const
 Get the behavior of the layer. More...
 
void SetDepthTestDisabled (bool disable)
 Whether to disable the depth test. More...
 
bool IsDepthTestDisabled () const
 Retrieves whether depth test is disabled. More...
 
void SetSortFunction (Dali::Layer::SortFunctionType function)
 This allows the user to specify the sort function that the layer should use. More...
 
void SetTouchConsumed (bool consume)
 This allows the user to specify whether this layer should consume touch (including gestures). More...
 
bool IsTouchConsumed () const
 Retrieves whether the layer consumes touch (including gestures). More...
 
void SetHoverConsumed (bool consume)
 This allows the user to specify whether this layer should consume hover. More...
 
bool IsHoverConsumed () const
 Retrieves whether the layer consumes hover. More...
 
const SceneGraph::LayerGetSceneLayerOnStage () const
 Helper function to get the scene object. More...
 
virtual unsigned int GetDefaultPropertyCount () const
 Query how many default properties the derived class supports. More...
 
virtual void GetDefaultPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the indices that are associated with the default properties supported by the derived class. More...
 
virtual const char * GetDefaultPropertyName (Property::Index index) const
 Query how many default properties the derived class supports. More...
 
virtual Property::Index GetDefaultPropertyIndex (const std::string &name) const
 Query the index of a default property. More...
 
virtual bool IsDefaultPropertyWritable (Property::Index index) const
 Query whether a default property is writable. More...
 
virtual bool IsDefaultPropertyAnimatable (Property::Index index) const
 Query whether a default property is animatable. More...
 
virtual bool IsDefaultPropertyAConstraintInput (Property::Index index) const
 Query whether a default property can be used as an input to a constraint. More...
 
virtual Property::Type GetDefaultPropertyType (Property::Index index) const
 Query the type of a default property. More...
 
virtual void SetDefaultProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of a default property. More...
 
virtual Property::Value GetDefaultProperty (Property::Index index) const
 Retrieve a default property value. More...
 
- Public Member Functions inherited from Dali::Internal::Actor
const std::string & GetName () const
 Retrieve the name of the actor. More...
 
void SetName (const std::string &name)
 Set the name of the actor. More...
 
unsigned int GetId () const
 Retrieve the unique ID of the actor. More...
 
void Attach (ActorAttachment &attachment)
 Attach an object to an actor. More...
 
ActorAttachmentPtr GetAttachment ()
 Retreive the object attached to an actor. More...
 
bool IsRoot () const
 Query whether an actor is the root actor, which is owned by the Stage. More...
 
bool OnStage () const
 Query whether the actor is connected to the Stage. More...
 
bool IsRenderable () const
 Query whether the actor has any renderers. More...
 
bool IsLayer () const
 Query whether the actor is of class Dali::Layer. More...
 
Dali::Layer GetLayer ()
 Gets the layer in which the actor is present. More...
 
void Add (Actor &child)
 Adds a child Actor to this Actor. More...
 
void Remove (Actor &child)
 Removes a child Actor from this Actor. More...
 
void Unparent ()
 Removes an actor from its parent. More...
 
unsigned int GetChildCount () const
 Retrieve the number of children held by the actor. More...
 
ActorPtr GetChildAt (unsigned int index) const
 Retrieve and child actor by index. More...
 
ActorContainerGetChildrenInternal ()
 Retrieve a reference to Actor's children. More...
 
ActorPtr FindChildByName (const std::string &actorName)
 Search through this actor's hierarchy for an actor with the given name. More...
 
ActorPtr FindChildById (const unsigned int id)
 Search through this actor's hierarchy for an actor with the given unique ID. More...
 
ActorGetParent () const
 Retrieve the parent of an Actor. More...
 
void SetSize (float width, float height)
 Sets the size of an actor. More...
 
void SetSize (float width, float height, float depth)
 Sets the size of an actor. More...
 
void SetSize (const Vector2 &size)
 Sets the size of an actor. More...
 
void SetSizeInternal (const Vector2 &size)
 Sets the update size for an actor. More...
 
void SetSize (const Vector3 &size)
 Sets the size of an actor. More...
 
void SetSizeInternal (const Vector3 &size)
 Sets the update size for an actor. More...
 
void SetWidth (float width)
 Set the width component of the Actor's size. More...
 
void SetHeight (float height)
 Set the height component of the Actor's size. More...
 
void SetDepth (float depth)
 Set the depth component of the Actor's size. More...
 
const Vector3GetTargetSize () const
 Retrieve the Actor's size from event side. More...
 
const Vector3GetCurrentSize () const
 Retrieve the Actor's size from update side. More...
 
virtual Vector3 GetNaturalSize () const
 Return the natural size of the actor. More...
 
void SetParentOrigin (const Vector3 &origin)
 Set the origin of an actor, within its parent's area. More...
 
void SetParentOriginX (float x)
 Set the x component of the parent-origin. More...
 
void SetParentOriginY (float y)
 Set the y component of the parent-origin. More...
 
void SetParentOriginZ (float z)
 Set the z component of the parent-origin. More...
 
const Vector3GetCurrentParentOrigin () const
 Retrieve the parent-origin of an actor. More...
 
void SetAnchorPoint (const Vector3 &anchorPoint)
 Set the anchor-point of an actor. More...
 
void SetAnchorPointX (float x)
 Set the x component of the anchor-point. More...
 
void SetAnchorPointY (float y)
 Set the y component of the anchor-point. More...
 
void SetAnchorPointZ (float z)
 Set the z component of the anchor-point. More...
 
const Vector3GetCurrentAnchorPoint () const
 Retrieve the anchor-point of an actor. More...
 
void SetPosition (float x, float y)
 Sets the position of the Actor. More...
 
void SetPosition (float x, float y, float z)
 Sets the position of the Actor. More...
 
void SetPosition (const Vector3 &position)
 Sets the position of the Actor. More...
 
void SetX (float x)
 Set the position of an actor along the X-axis. More...
 
void SetY (float y)
 Set the position of an actor along the Y-axis. More...
 
void SetZ (float z)
 Set the position of an actor along the Z-axis. More...
 
void TranslateBy (const Vector3 &distance)
 Translate an actor relative to its existing position. More...
 
const Vector3GetCurrentPosition () const
 Retrieve the position of the Actor. More...
 
const Vector3GetTargetPosition () const
 Retrieve the target position of the Actor. More...
 
const Vector3GetCurrentWorldPosition () const
 Retrieve the world-position of the Actor. More...
 
void SetPositionInheritanceMode (PositionInheritanceMode mode)
 Set the actors position inheritance mode. More...
 
PositionInheritanceMode GetPositionInheritanceMode () const
 Returns the actors position inheritance mode. More...
 
void SetOrientation (const Radian &angleRadians, const Vector3 &axis)
 Sets the orientation of the Actor. More...
 
void SetOrientation (const Quaternion &orientation)
 Sets the orientation of the Actor. More...
 
void RotateBy (const Radian &angleRadians, const Vector3 &axis)
 Rotate an actor around its existing rotation axis. More...
 
void RotateBy (const Quaternion &relativeRotation)
 Apply a relative rotation to an actor. More...
 
const QuaternionGetCurrentOrientation () const
 Retreive the Actor's orientation. More...
 
void SetInheritOrientation (bool inherit)
 Set whether a child actor inherits it's parent's orientation. More...
 
bool IsOrientationInherited () const
 Returns whether the actor inherit's it's parent's orientation. More...
 
void SetSizeModeFactor (const Vector3 &factor)
 Sets the factor of the parents size used for the child actor. More...
 
const Vector3GetSizeModeFactor () const
 Gets the factor of the parents size used for the child actor. More...
 
const QuaternionGetCurrentWorldOrientation () const
 Retrieve the world-orientation of the Actor. More...
 
void SetScale (float scale)
 Sets a scale factor applied to an actor. More...
 
void SetScale (float scaleX, float scaleY, float scaleZ)
 Sets a scale factor applied to an actor. More...
 
void SetScale (const Vector3 &scale)
 Sets a scale factor applied to an actor. More...
 
void SetScaleX (float x)
 Set the x component of the scale factor. More...
 
void SetScaleY (float y)
 Set the y component of the scale factor. More...
 
void SetScaleZ (float z)
 Set the z component of the scale factor. More...
 
void ScaleBy (const Vector3 &relativeScale)
 Apply a relative scale to an actor. More...
 
const Vector3GetCurrentScale () const
 Retrieve the scale factor applied to an actor. More...
 
const Vector3GetCurrentWorldScale () const
 Retrieve the world-scale of the Actor. More...
 
void SetInheritScale (bool inherit)
 Set whether a child actor inherits it's parent's scale. More...
 
bool IsScaleInherited () const
 Returns whether the actor inherits its parent's scale. More...
 
Matrix GetCurrentWorldMatrix () const
 Retrieves the world-matrix of the actor. More...
 
void SetVisible (bool visible)
 Sets the visibility flag of an actor. More...
 
bool IsVisible () const
 Retrieve the visibility flag of an actor. More...
 
void SetOpacity (float opacity)
 Sets the opacity of an actor. More...
 
float GetCurrentOpacity () const
 Retrieve the actor's opacity. More...
 
void SetSensitive (bool sensitive)
 Sets whether an actor should emit touch or hover signals; see SignalTouch() and SignalHover(). More...
 
bool IsSensitive () const
 Query whether an actor emits touch or hover event signals. More...
 
void SetDrawMode (DrawMode::Type drawMode)
 Set how the actor and its children should be drawn. More...
 
DrawMode::Type GetDrawMode () const
 Query how the actor and its children will be drawn. More...
 
void SetOverlay (bool enable)
  More...
 
bool IsOverlay () const
  More...
 
void SetColor (const Vector4 &color)
 Sets the actor's color. More...
 
void SetColorRed (float red)
 Set the red component of the color. More...
 
void SetColorGreen (float green)
 Set the green component of the color. More...
 
void SetColorBlue (float blue)
 Set the blue component of the scale factor. More...
 
const Vector4GetCurrentColor () const
 Retrieve the actor's color. More...
 
void SetColorMode (ColorMode colorMode)
 Sets the actor's color mode. More...
 
ColorMode GetColorMode () const
 Returns the actor's color mode. More...
 
const Vector4GetCurrentWorldColor () const
 Retrieve the world-color of the Actor, where each component is clamped within the 0->1 range. More...
 
int GetHierarchyDepth () const
 Get depth in the hierarchy for the actor. More...
 
virtual void OnRelayout (const Vector2 &size, RelayoutContainer &container)
 Called after the size negotiation has been finished for this control. More...
 
virtual void OnSetResizePolicy (ResizePolicy::Type policy, Dimension::Type dimension)
 Notification for deriving classes when the resize policy is set. More...
 
virtual void OnCalculateRelayoutSize (Dimension::Type dimension)
 Virtual method to notify deriving classes that relayout dependencies have been met and the size for this object is about to be calculated for the given dimension. More...
 
virtual void OnLayoutNegotiated (float size, Dimension::Type dimension)
 Virtual method to notify deriving classes that the size for a dimension has just been negotiated. More...
 
virtual bool RelayoutDependentOnChildren (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's children for relayout. More...
 
virtual bool RelayoutDependentOnChildrenBase (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's children for relayout. More...
 
virtual float CalculateChildSize (const Dali::Actor &child, Dimension::Type dimension)
 Calculate the size for a child. More...
 
virtual float GetHeightForWidth (float width)
 This method is called during size negotiation when a height is required for a given width. More...
 
virtual float GetWidthForHeight (float height)
 This method is called during size negotiation when a width is required for a given height. More...
 
void NegotiateSize (const Vector2 &size, RelayoutContainer &container)
 Called by the RelayoutController to negotiate the size of an actor. More...
 
void SetResizePolicy (ResizePolicy::Type policy, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the resize policy to be used for the given dimension(s). More...
 
ResizePolicy::Type GetResizePolicy (Dimension::Type dimension) const
 Return the resize policy used for a single dimension. More...
 
void SetSizeScalePolicy (SizeScalePolicy::Type policy)
 Set the policy to use when setting size with size negotiation. More...
 
SizeScalePolicy::Type GetSizeScalePolicy () const
 Return the size scale policy in use. More...
 
void SetDimensionDependency (Dimension::Type dimension, Dimension::Type dependency)
  More...
 
Dimension::Type GetDimensionDependency (Dimension::Type dimension) const
  More...
 
void SetRelayoutEnabled (bool relayoutEnabled)
 Set the size negotiation relayout enabled on this actor. More...
 
bool IsRelayoutEnabled () const
 Return if relayout is enabled. More...
 
void SetLayoutDirty (bool dirty, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Mark an actor as having it's layout dirty. More...
 
bool IsLayoutDirty (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Return if any of an actor's dimensions are marked as dirty. More...
 
bool RelayoutPossible (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Returns if relayout is enabled and the actor is not dirty. More...
 
bool RelayoutRequired (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Returns if relayout is enabled and the actor is dirty. More...
 
void RelayoutRequest (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Request a relayout, which means performing a size negotiation on this actor, its parent and children (and potentially whole scene) More...
 
bool RelayoutDependentOnParent (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's parent for relayout. More...
 
bool RelayoutDependentOnDimension (Dimension::Type dimension, Dimension::Type dependentDimension)
 Determine if this actor has another dimension depedent on the specified one. More...
 
void NegotiateDimensions (const Vector2 &allocatedSize)
 Negotiate sizes for a control in all dimensions. More...
 
void NegotiateDimension (Dimension::Type dimension, const Vector2 &allocatedSize, ActorDimensionStack &recursionStack)
 Negotiate size for a specific dimension. More...
 
float CalculateSize (Dimension::Type dimension, const Vector2 &maximumSize)
 Calculate the size of a dimension. More...
 
float ClampDimension (float size, Dimension::Type dimension)
 Clamp a dimension given the relayout constraints on this actor. More...
 
float NegotiateFromParent (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromParentFit (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromParentFlood (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromChildren (Dimension::Type dimension)
 Negotiate a dimension based on the size of the children. More...
 
void SetNegotiatedDimension (float negotiatedDimension, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the negotiated dimension value for the given dimension(s) More...
 
float GetNegotiatedDimension (Dimension::Type dimension) const
 Return the value of negotiated dimension for the given dimension. More...
 
void SetPadding (const Vector2 &padding, Dimension::Type dimension)
 Set the padding for a dimension. More...
 
Vector2 GetPadding (Dimension::Type dimension) const
 Return the value of padding for the given dimension. More...
 
float GetSize (Dimension::Type dimension) const
 Return the actor size for a given dimension. More...
 
float GetNaturalSize (Dimension::Type dimension) const
 Return the natural size of the actor for a given dimension. More...
 
float GetRelayoutSize (Dimension::Type dimension) const
 Return the amount of size allocated for relayout. More...
 
float GetLatestSize (Dimension::Type dimension) const
 If the size has been negotiated return that else return normal size. More...
 
void SetNegotiatedSize (RelayoutContainer &container)
 Apply the negotiated size to the actor. More...
 
void SetLayoutNegotiated (bool negotiated, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Flag the actor as having it's layout dimension negotiated. More...
 
bool IsLayoutNegotiated (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Test whether the layout dimension for this actor has been negotiated or not. More...
 
float GetHeightForWidthBase (float width)
 provides the Actor implementation of GetHeightForWidth More...
 
float GetWidthForHeightBase (float height)
 provides the Actor implementation of GetWidthForHeight More...
 
float CalculateChildSizeBase (const Dali::Actor &child, Dimension::Type dimension)
 Calculate the size for a child. More...
 
void SetPreferredSize (const Vector2 &size)
 Set the preferred size for size negotiation. More...
 
Vector2 GetPreferredSize () const
 Return the preferred size used for size negotiation. More...
 
void SetMinimumSize (float size, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the minimum size an actor can be assigned in size negotiation. More...
 
float GetMinimumSize (Dimension::Type dimension) const
 Return the minimum relayout size. More...
 
void SetMaximumSize (float size, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the maximum size an actor can be assigned in size negotiation. More...
 
float GetMaximumSize (Dimension::Type dimension) const
 Return the maximum relayout size. More...
 
unsigned int AddRenderer (Renderer &renderer)
 Add a renderer to this actor. More...
 
unsigned int GetRendererCount () const
 Get the number of renderers on this actor. More...
 
RendererPtr GetRendererAt (unsigned int index)
 Get a Renderer by index. More...
 
void RemoveRenderer (Renderer &renderer)
 Remove an renderer from the actor. More...
 
void RemoveRenderer (unsigned int index)
 Remove an renderer from the actor. More...
 
bool ScreenToLocal (float &localX, float &localY, float screenX, float screenY) const
 Converts screen coordinates into the actor's coordinate system. More...
 
bool ScreenToLocal (const RenderTask &renderTask, float &localX, float &localY, float screenX, float screenY) const
 Converts screen coordinates into the actor's coordinate system. More...
 
bool ScreenToLocal (const Matrix &viewMatrix, const Matrix &projectionMatrix, const Viewport &viewport, float &localX, float &localY, float screenX, float screenY) const
 Converts from the actor's coordinate system to screen coordinates. More...
 
bool RaySphereTest (const Vector4 &rayOrigin, const Vector4 &rayDir) const
 Performs a ray-sphere test with the given pick-ray and the actor's bounding sphere. More...
 
bool RayActorTest (const Vector4 &rayOrigin, const Vector4 &rayDir, Vector4 &hitPointLocal, float &distance) const
 Performs a ray-actor test with the given pick-ray and the actor's geometry. More...
 
void SetLeaveRequired (bool required)
 Sets whether the actor should receive a notification when touch or hover motion events leave the boundary of the actor. More...
 
bool GetLeaveRequired () const
 This returns whether the actor requires touch or hover events whenever touch or hover motion events leave the boundary of the actor. More...
 
void SetKeyboardFocusable (bool focusable)
 Sets whether the actor should be focusable by keyboard navigation. More...
 
bool IsKeyboardFocusable () const
 Returns whether the actor is focusable by keyboard navigation. More...
 
bool GetTouchRequired () const
 Query whether the application or derived actor type requires touch events. More...
 
bool GetHoverRequired () const
 Query whether the application or derived actor type requires hover events. More...
 
bool GetWheelEventRequired () const
 Query whether the application or derived actor type requires wheel events. More...
 
bool IsHittable () const
 Query whether the actor is actually hittable. More...
 
ActorGestureDataGetGestureData ()
 Retrieve the gesture data associated with this actor. More...
 
bool IsGestureRequred (Gesture::Type type) const
 Queries whether the actor requires the gesture type. More...
 
bool EmitTouchEventSignal (const TouchEvent &event)
 Used by the EventProcessor to emit touch event signals. More...
 
bool EmitHoverEventSignal (const HoverEvent &event)
 Used by the EventProcessor to emit hover event signals. More...
 
bool EmitWheelEventSignal (const WheelEvent &event)
 Used by the EventProcessor to emit wheel event signals. More...
 
Dali::Actor::TouchSignalTypeTouchedSignal ()
 This signal is emitted when touch input is received. More...
 
Dali::Actor::HoverSignalTypeHoveredSignal ()
 This signal is emitted when hover input is received. More...
 
Dali::Actor::WheelEventSignalTypeWheelEventSignal ()
 This signal is emitted when wheel event is received. More...
 
Dali::Actor::OnStageSignalTypeOnStageSignal ()
 This signal is emitted after the actor has been connected to the stage. More...
 
Dali::Actor::OffStageSignalTypeOffStageSignal ()
 This signal is emitted after the actor has been disconnected from the stage. More...
 
Dali::Actor::OnRelayoutSignalTypeOnRelayoutSignal ()
 This signal is emitted after the size has been set on the actor during relayout. More...
 
void NotifySizeAnimation (Animation &animation, const Vector3 &targetSize)
 This should only be called by Animation, when the actors SIZE property is animated. More...
 
void NotifySizeAnimation (Animation &animation, float targetSize, Property::Index property)
 This should only be called by Animation, when the actors SIZE_WIDTH or SIZE_HEIGHT or SIZE_DEPTH property is animated. More...
 
virtual void OnSizeAnimation (Animation &animation, const Vector3 &targetSize)
 For use in derived classes. More...
 
void NotifyPositionAnimation (Animation &animation, const Vector3 &targetPosition)
 This should only be called by Animation, when the actors POSITION property is animated. More...
 
void NotifyPositionAnimation (Animation &animation, float targetPosition, Property::Index property)
 This should only be called by Animation, when the actors POSITION_X or POSITION_Y or POSITION_Z property is animated. More...
 
virtual void SetSceneGraphProperty (Property::Index index, const PropertyMetadata &entry, const Property::Value &value)
 Set the value of scene graph property. More...
 
virtual const
SceneGraph::PropertyOwner
GetPropertyOwner () const
  More...
 
virtual const
SceneGraph::PropertyOwner
GetSceneObject () const
 Retrieve the scene-graph object added by this object. More...
 
virtual const
SceneGraph::PropertyBase
GetSceneObjectAnimatableProperty (Property::Index index) const
 Retrieve an animatable property owned by the scene-graph object. More...
 
virtual const PropertyInputImplGetSceneObjectInputProperty (Property::Index index) const
 Retrieve a constraint input-property owned by the scene-graph object. More...
 
virtual int GetPropertyComponentIndex (Property::Index index) const
 Query whether the property is a component of a scene-graph property. More...
 
- Public Member Functions inherited from Dali::Internal::Object
 Object ()
 Constructor. More...
 
virtual void AddObserver (Observer &observer)
 Add an observer to the object. More...
 
virtual void RemoveObserver (Observer &observer)
 Remove an observer from the object. More...
 
virtual bool Supports (Capability capability) const
 Query whether an handle supports a given capability. More...
 
virtual unsigned int GetPropertyCount () const
 Query how many properties are provided by an handle. More...
 
virtual std::string GetPropertyName (Property::Index index) const
 Query the name of a property. More...
 
virtual Property::Index GetPropertyIndex (const std::string &name) const
 Query the index of a property. More...
 
virtual bool IsPropertyWritable (Property::Index index) const
 Query whether a property can be set using SetProperty(). More...
 
virtual bool IsPropertyAnimatable (Property::Index index) const
 Query whether a writable property can be the target of an animation or constraint. More...
 
virtual bool IsPropertyAConstraintInput (Property::Index index) const
 Query whether a property can be used as in input to a constraint. More...
 
virtual Property::Type GetPropertyType (Property::Index index) const
 Query the type of a property. More...
 
virtual void SetProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of an existing property. More...
 
virtual Property::Value GetProperty (Property::Index index) const
 Retrieve a property value. More...
 
virtual void GetPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the property indices for this object (including custom properties). More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue)
 Register a new animatable property. More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue, Property::AccessMode accessMode)
  More...
 
virtual Dali::PropertyNotification AddPropertyNotification (Property::Index index, int componentIndex, const Dali::PropertyCondition &condition)
 Add a property notification to this object. More...
 
virtual void RemovePropertyNotification (Dali::PropertyNotification propertyNotification)
 Remove a property notification from this object. More...
 
virtual void RemovePropertyNotifications ()
 Remove all property notifications from this object. More...
 
void AddUniformMapping (Property::Index propertyIndex, const std::string &uniformName) const
  More...
 
void RemoveUniformMapping (const std::string &uniformName)
  More...
 
void ApplyConstraint (ConstraintBase &constraint)
 Apply a constraint to an Object. More...
 
void RemoveConstraint (ConstraintBase &constraint)
 Remove one constraint from an Object. More...
 
void RemoveConstraints ()
 Remove all constraints from a Object. More...
 
void RemoveConstraints (unsigned int tag)
 Remove all constraints from a Object with a matching tag. More...
 
void SetTypeInfo (const TypeInfo *typeInfo)
 Called by TypeInfo to set the type-info that this object-impl is created by. More...
 
unsigned int CustomPropertyStartIndex ()
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static float ZValue (const Vector3 &position)
  More...
 
static LayerPtr New ()
 Create a new Layer. More...
 
static LayerPtr NewRoot (LayerList &layerList, SceneGraph::UpdateManager &manager, bool systemLevel)
 Create a new root layer; this is typically owned by the stage. More...
 
static bool DoAction (BaseObject *object, const std::string &actionName, const Property::Map &attributes)
 Performs actions as requested using the action name. More...
 
- Static Public Member Functions inherited from Dali::Internal::Actor
static ActorPtr New ()
 Create a new actor. More...
 
static bool DoConnectSignal (BaseObject *object, ConnectionTrackerInterface *tracker, const std::string &signalName, FunctorDelegate *functor)
 Connects a callback function with the object's signals. More...
 
static bool DoAction (BaseObject *object, const std::string &actionName, const Property::Map &attributes)
 Performs actions as requested using the action name. More...
 

Protected Member Functions

 Layer (Actor::DerivedType type)
 Construct a new layer. More...
 
virtual ~Layer ()
 A reference counted object may only be deleted by calling Unreference() More...
 
- Protected Member Functions inherited from Dali::Internal::Actor
 Actor (DerivedType derivedType)
 Protected Constructor. More...
 
void Initialize (void)
 Second-phase constructor. More...
 
virtual ~Actor ()
 A reference counted object may only be deleted by calling Unreference() More...
 
void ConnectToStage (unsigned int parentDepth)
 Called on a child during Add() when the parent actor is connected to the Stage. More...
 
void RecursiveConnectToStage (ActorContainer &connectionList, unsigned int depth)
 Helper for ConnectToStage, to recursively connect a tree of actors. More...
 
void ConnectToSceneGraph ()
 Connect the Node associated with this Actor to the scene-graph. More...
 
void NotifyStageConnection ()
 Helper for ConnectToStage, to notify a connected actor through the public API. More...
 
void DisconnectFromStage ()
 Called on a child during Remove() when the actor was previously on the Stage. More...
 
void RecursiveDisconnectFromStage (ActorContainer &disconnectionList)
 Helper for DisconnectFromStage, to recursively disconnect a tree of actors. More...
 
void DisconnectFromSceneGraph ()
 Disconnect the Node associated with this Actor from the scene-graph. More...
 
void NotifyStageDisconnection ()
 Helper for DisconnectFromStage, to notify a disconnected actor through the public API. More...
 
bool IsNodeConnected () const
 When the Actor is OnStage, checks whether the corresponding Node is connected to the scene graph. More...
 
- Protected Member Functions inherited from Dali::Internal::Object
virtual ~Object ()
 A reference counted object may only be deleted by calling Unreference() More...
 
void OnSceneObjectAdd ()
 Called immediately by derived classes, after the scene-object has been created & passed to the scene-graph. More...
 
void OnSceneObjectRemove ()
 Called by derived classes, shortly before send a message to remove the scene-object. More...
 
virtual void OnPropertySet (Property::Index index, Property::Value propertyValue)
 For use in derived classes. More...
 
const TypeInfoGetTypeInfo () const
 Retrieves the TypeInfo for this object. More...
 
CustomPropertyMetadataFindCustomProperty (Property::Index index) const
 Helper to find custom property. More...
 
AnimatablePropertyMetadataFindAnimatableProperty (Property::Index index) const
 Helper to find animatable property. More...
 
Property::Index RegisterSceneGraphProperty (const std::string &name, Property::Index index, const Property::Value &propertyValue) const
 Helper to register a scene-graph property. More...
 
AnimatablePropertyMetadataRegisterAnimatableProperty (Property::Index index) const
 Check whether the animatable property is registered already, if not then register one. More...
 
EventThreadServicesGetEventThreadServices ()
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread. More...
 
const EventThreadServicesGetEventThreadServices () const
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread This is intentionally inline for performance reasons. More...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Private Member Functions

virtual SceneGraph::NodeCreateNode () const
 From Actor; create a node to represent the layer in the scene-graph. More...
 
virtual void OnStageConnectionInternal ()
 From Actor. More...
 
virtual void OnStageDisconnectionInternal ()
 From Actor. More...
 

Private Attributes

LayerListmLayerList
 Only valid when layer is on-stage. More...
 
ClippingBox mClippingBox
 The clipping box, in window coordinates. More...
 
Dali::Layer::SortFunctionType mSortFunction
 Used to sort semi-transparent geometry. More...
 
Dali::Layer::Behavior mBehavior
 Behavior of the layer. More...
 
bool mIsClipping:1
 True when clipping is enabled. More...
 
bool mDepthTestDisabled:1
 Whether depth test is disabled. More...
 
bool mTouchConsumed:1
 Whether we should consume touch (including gesture). More...
 
bool mHoverConsumed:1
 Whether we should consume hover. More...
 

Additional Inherited Members

- Public Types inherited from Dali::Internal::Actor
typedef std::vector
< ActorDimensionPair
ActorDimensionStack
 
- Protected Types inherited from Dali::Internal::Actor
enum  DerivedType { BASIC, LAYER, ROOT_LAYER }
 
- Protected Attributes inherited from Dali::Internal::Actor
ActormParent
 Each actor (except the root) can have one parent. More...
 
ActorContainermChildren
 Container of referenced actors. More...
 
RendererContainermRenderers
 Renderer container. More...
 
const SceneGraph::NodemNode
 Not owned. More...
 
Vector3mParentOrigin
 NULL means ParentOrigin::DEFAULT. ParentOrigin is non-animatable. More...
 
Vector3mAnchorPoint
 NULL means AnchorPoint::DEFAULT. AnchorPoint is non-animatable. More...
 
RelayoutDatamRelayoutData
 Struct to hold optional collection of relayout variables. More...
 
ActorGestureDatamGestureData
 Optional Gesture data. Only created when actor requires gestures. More...
 
ActorAttachmentPtr mAttachment
 Optional referenced attachment. More...
 
Dali::Actor::TouchSignalType mTouchedSignal
 
Dali::Actor::HoverSignalType mHoveredSignal
 
Dali::Actor::WheelEventSignalType mWheelEventSignal
 
Dali::Actor::OnStageSignalType mOnStageSignal
 
Dali::Actor::OffStageSignalType mOffStageSignal
 
Dali::Actor::OnRelayoutSignalType mOnRelayoutSignal
 
Vector3 mTargetSize
 Event-side storage for size (not a pointer as most actors will have a size) More...
 
Vector3 mTargetPosition
 Event-side storage for position (not a pointer as most actors will have a position) More...
 
std::string mName
 Name of the actor. More...
 
unsigned int mId
 A unique ID to identify the actor starting from 1, and 0 is reserved. More...
 
unsigned short mDepth:12
 Cached: The depth in the hierarchy of the actor. Only 4096 levels of depth are supported. More...
 
const bool mIsRoot: 1
 Flag to identify the root actor. More...
 
const bool mIsLayer: 1
 Flag to identify that this is a layer. More...
 
bool mIsOnStage: 1
 Flag to identify whether the actor is on-stage. More...
 
bool mSensitive: 1
 Whether the actor emits touch event signals. More...
 
bool mLeaveRequired: 1
 Whether a touch event signal is emitted when the a touch leaves the actor's bounds. More...
 
bool mKeyboardFocusable: 1
 Whether the actor should be focusable by keyboard navigation. More...
 
bool mDerivedRequiresTouch: 1
 Whether the derived actor type requires touch event signals. More...
 
bool mDerivedRequiresHover: 1
 Whether the derived actor type requires hover event signals. More...
 
bool mDerivedRequiresWheelEvent: 1
 Whether the derived actor type requires wheel event signals. More...
 
bool mOnStageSignalled: 1
 Set to true before OnStageConnection signal is emitted, and false before OnStageDisconnection. More...
 
bool mInsideOnSizeSet: 1
 Whether we are inside OnSizeSet. More...
 
bool mInheritOrientation: 1
 Cached: Whether the parent's orientation should be inherited. More...
 
bool mInheritScale: 1
 Cached: Whether the parent's scale should be inherited. More...
 
DrawMode::Type mDrawMode: 2
 Cached: How the actor and its children should be drawn. More...
 
PositionInheritanceMode mPositionInheritanceMode: 2
 Cached: Determines how position is inherited. More...
 
ColorMode mColorMode: 2
 Cached: Determines whether mWorldColor is inherited. More...
 

Detailed Description

Definition at line 42 of file layer-impl.h.

Constructor & Destructor Documentation

Layer::Layer ( Actor::DerivedType  type)
protected

Construct a new layer.

Parameters
[in]typeEither Actor::LAYER or Actor::ROOT_LAYER if this is the root actor.

Definition at line 119 of file layer-impl.cpp.

Layer::~Layer ( )
protectedvirtual

A reference counted object may only be deleted by calling Unreference()

Definition at line 136 of file layer-impl.cpp.

Member Function Documentation

SceneGraph::Node * Layer::CreateNode ( ) const
privatevirtual

From Actor; create a node to represent the layer in the scene-graph.

Returns
A newly allocated layer node.

Reimplemented from Dali::Internal::Actor.

Definition at line 314 of file layer-impl.cpp.

References Dali::Internal::SceneGraph::Layer::New().

Here is the call graph for this function:

bool Layer::DoAction ( BaseObject object,
const std::string &  actionName,
const Property::Map attributes 
)
static

Performs actions as requested using the action name.

Parameters
[in]objectThe object on which to perform the action.
[in]actionNameThe action to perform.
[in]attributesThe attributes with which to perfrom this action.
Returns
true if the action was done.

Definition at line 536 of file layer-impl.cpp.

References Dali::Internal::anonymous_namespace{layer-impl.cpp}::ACTION_LOWER, Dali::Internal::anonymous_namespace{layer-impl.cpp}::ACTION_LOWER_TO_BOTTOM, Dali::Internal::anonymous_namespace{layer-impl.cpp}::ACTION_RAISE, Dali::Internal::anonymous_namespace{layer-impl.cpp}::ACTION_RAISE_TO_TOP, Lower(), LowerToBottom(), Raise(), and RaiseToTop().

Here is the call graph for this function:

Dali::Layer::Behavior Dali::Internal::Layer::GetBehavior ( ) const
inline

Get the behavior of the layer.

.0

Returns
The behavior of the layer

Definition at line 162 of file layer-impl.h.

References mBehavior.

Referenced by GetDefaultProperty().

Here is the caller graph for this function:

const Dali::ClippingBox& Dali::Internal::Layer::GetClippingBox ( ) const
inline

Retrieves the clipping box of a layer, in window coordinates.

.0

Returns
The clipping box

Definition at line 149 of file layer-impl.h.

References mClippingBox.

Referenced by Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::IsActuallyHittable().

Here is the caller graph for this function:

Property::Value Layer::GetDefaultProperty ( Property::Index  index) const
virtual

Retrieve a default property value.

Parameters
[in]indexThe index of the property.
Returns
The property value.

Reimplemented from Dali::Internal::Actor.

Definition at line 499 of file layer-impl.cpp.

References Dali::Layer::Property::BEHAVIOR, Dali::Layer::Property::CLIPPING_BOX, Dali::Layer::Property::CLIPPING_ENABLE, DALI_LOG_WARNING, Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, GetBehavior(), Dali::Internal::Actor::GetDefaultProperty(), mClippingBox, mIsClipping, and Dali::Property::Value().

Here is the call graph for this function:

unsigned int Layer::GetDefaultPropertyCount ( ) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Reimplemented from Dali::Internal::Actor.

Definition at line 355 of file layer-impl.cpp.

References Dali::Internal::Actor::GetDefaultPropertyCount().

Here is the call graph for this function:

Property::Index Layer::GetDefaultPropertyIndex ( const std::string &  name) const
virtual

Query the index of a default property.

Parameters
[in]nameThe name of the property.
Returns
The index of the property, or Property::INVALID_INDEX if no default property exists with the given name.

Reimplemented from Dali::Internal::Actor.

Definition at line 436 of file layer-impl.cpp.

References Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyIndex(), and Dali::Property::INVALID_INDEX.

Here is the call graph for this function:

void Layer::GetDefaultPropertyIndices ( Property::IndexContainer indices) const
virtual

Retrieve all the indices that are associated with the default properties supported by the derived class.

Returns
A container of default property indices.
Note
The deriving class must not modify the existing elements in the container.

Reimplemented from Dali::Internal::Actor.

Definition at line 360 of file layer-impl.cpp.

References Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyIndices(), Dali::Vector< T, IsTrivialType >::PushBack(), Dali::Vector< T, IsTrivialType >::Reserve(), and Dali::VectorBase::Size().

Here is the call graph for this function:

const char * Layer::GetDefaultPropertyName ( Property::Index  index) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Reimplemented from Dali::Internal::Actor.

Definition at line 420 of file layer-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::GetDefaultPropertyName().

Here is the call graph for this function:

Property::Type Layer::GetDefaultPropertyType ( Property::Index  index) const
virtual

Query the type of a default property.

Parameters
[in]indexThe index of the property.
Returns
The type of the property.

Reimplemented from Dali::Internal::Actor.

Definition at line 402 of file layer-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyType(), and Dali::Property::NONE.

Here is the call graph for this function:

unsigned int Layer::GetDepth ( ) const

Query the current depth of the layer.

Definition at line 140 of file layer-impl.cpp.

References Dali::Internal::LayerList::GetDepth(), and mLayerList.

Referenced by LowerBelow(), Dali::Internal::LayerList::MoveLayerAbove(), Dali::Internal::LayerList::MoveLayerBelow(), and RaiseAbove().

Here is the call graph for this function:

Here is the caller graph for this function:

const SceneGraph::Layer & Layer::GetSceneLayerOnStage ( ) const

Helper function to get the scene object.

This should only be called by Stage

Returns
the scene object for the layer.

Definition at line 349 of file layer-impl.cpp.

References DALI_ASSERT_DEBUG, and Dali::Internal::Actor::mNode.

Referenced by SetBehavior(), SetClipping(), SetClippingBox(), SetDepthTestDisabled(), and SetSortFunction().

Here is the caller graph for this function:

bool Dali::Internal::Layer::IsClipping ( ) const
inline

Query whether clipping is enabled for a layer.

.0

Returns
True if clipping is enabled.

Definition at line 136 of file layer-impl.h.

References mIsClipping.

Referenced by Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::IsActuallyHittable().

Here is the caller graph for this function:

bool Layer::IsDefaultPropertyAConstraintInput ( Property::Index  index) const
virtual

Query whether a default property can be used as an input to a constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property can be used as an input to a constraint.

Reimplemented from Dali::Internal::Actor.

Definition at line 392 of file layer-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyAConstraintInput().

Here is the call graph for this function:

bool Layer::IsDefaultPropertyAnimatable ( Property::Index  index) const
virtual

Query whether a default property is animatable.

This determines whether the property can be the target of an animation or constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Reimplemented from Dali::Internal::Actor.

Definition at line 382 of file layer-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyAnimatable().

Here is the call graph for this function:

bool Layer::IsDefaultPropertyWritable ( Property::Index  index) const
virtual

Query whether a default property is writable.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Reimplemented from Dali::Internal::Actor.

Definition at line 372 of file layer-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyWritable().

Here is the call graph for this function:

bool Layer::IsDepthTestDisabled ( ) const

Retrieves whether depth test is disabled.

.0

Returns
True if depth test is disabled.

Definition at line 278 of file layer-impl.cpp.

References Dali::Layer::LAYER_2D, mBehavior, and mDepthTestDisabled.

bool Layer::IsHoverConsumed ( ) const

Retrieves whether the layer consumes hover.

.0

Returns
True if consuming hover, false otherwise.

Definition at line 309 of file layer-impl.cpp.

References mHoverConsumed.

Referenced by Dali::Internal::anonymous_namespace{hover-event-processor.cpp}::ActorHoverableCheck::DoesLayerConsumeHit().

Here is the caller graph for this function:

bool Layer::IsTouchConsumed ( ) const

Retrieves whether the layer consumes touch (including gestures).

.0

Returns
True if consuming touch, false otherwise.

Definition at line 299 of file layer-impl.cpp.

References mTouchConsumed.

Referenced by Dali::Internal::anonymous_namespace{gesture-processor.cpp}::GestureHitTestCheck::DoesLayerConsumeHit(), and Dali::Internal::HitTestAlgorithm::anonymous_namespace{hit-test-algorithm-impl.cpp}::ActorTouchableCheck::DoesLayerConsumeHit().

Here is the caller graph for this function:

void Layer::Lower ( )

Decrement the depth of the layer.

.0

Precondition
Layer is on the stage.

Definition at line 153 of file layer-impl.cpp.

References Dali::Internal::LayerList::LowerLayer(), and mLayerList.

Referenced by DoAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::LowerBelow ( const Internal::Layer target)

Ensures the layers depth is less than the target layer.

If the layer already is below the target layer its depth is not changed. If the layer was above target, its new depth will be immediately below target. .0

Parameters
targetLayer to get below of
Precondition
Layer is on the stage.
Target layer is on the stage.
Note
All layers between this layer and target get new depth values.

Definition at line 175 of file layer-impl.cpp.

References GetDepth(), MoveBelow(), and Dali::Internal::Actor::OnStage().

Here is the call graph for this function:

void Layer::LowerToBottom ( )

Lowers the layer to the bottom.

.0

Precondition
layer is on the stage.

Definition at line 197 of file layer-impl.cpp.

References Dali::Internal::LayerList::LowerLayerToBottom(), and mLayerList.

Referenced by DoAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::MoveAbove ( const Internal::Layer target)

Moves the layer directly above the given layer.

After the call this layers depth will be immediately above target. .0

Parameters
targetLayer to get on top of
Precondition
Layer is on the stage.
Target layer is on the stage.
Note
All layers between this layer and target get new depth values.

Definition at line 205 of file layer-impl.cpp.

References mLayerList, Dali::Internal::LayerList::MoveLayerAbove(), and Dali::Internal::Actor::OnStage().

Referenced by RaiseAbove().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::MoveBelow ( const Internal::Layer target)

Moves the layer directly above the given layer.

After the call this layers depth will be immediately above target. .0

Parameters
targetLayer to get on top of
Precondition
Layer is on the stage.
Target layer is on the stage.
Note
All layers between this layer and target get new depth values.

Definition at line 214 of file layer-impl.cpp.

References mLayerList, Dali::Internal::LayerList::MoveLayerBelow(), and Dali::Internal::Actor::OnStage().

Referenced by LowerBelow().

Here is the call graph for this function:

Here is the caller graph for this function:

LayerPtr Layer::New ( )
static

Create a new Layer.

Returns
A smart-pointer to the newly allocated Layer.

Definition at line 85 of file layer-impl.cpp.

References Dali::Layer::Layer().

Referenced by Dali::Layer::New().

Here is the call graph for this function:

Here is the caller graph for this function:

LayerPtr Layer::NewRoot ( LayerList layerList,
SceneGraph::UpdateManager manager,
bool  systemLevel 
)
static

Create a new root layer; this is typically owned by the stage.

Parameters
[in]layerListThe layer will be added to this ordered list.
[in]managerThe update manager to install a root node with.
[in]systemLevelTrue if using the SystemOverlay API; see Integration::GetSystemOverlay() for more details.
Returns
A smart-pointer to the newly allocated Actor.

Definition at line 95 of file layer-impl.cpp.

References Dali::Internal::SceneGraph::InstallRootMessage(), Dali::Layer::Layer(), and Dali::Internal::LayerList::RegisterLayer().

Referenced by Dali::Internal::Stage::Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::OnInitialize ( )
virtual

For use in derived classes, called after Initialize()

Reimplemented from Dali::Internal::Actor.

Definition at line 132 of file layer-impl.cpp.

void Layer::OnStageConnectionInternal ( )
privatevirtual
void Layer::OnStageDisconnectionInternal ( )
privatevirtual

From Actor.

Reimplemented from Dali::Internal::Actor.

Definition at line 341 of file layer-impl.cpp.

References mLayerList, and Dali::Internal::LayerList::UnregisterLayer().

Here is the call graph for this function:

void Layer::Raise ( )

Increment the depth of the layer.

.0

Precondition
Layer is on the stage.

Definition at line 145 of file layer-impl.cpp.

References mLayerList, and Dali::Internal::LayerList::RaiseLayer().

Referenced by DoAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::RaiseAbove ( const Internal::Layer target)

Ensures the layers depth is greater than the target layer.

If the layer already is above the target layer its depth is not changed. If the layer was below target, its new depth will be immediately above target. .0

Parameters
targetLayer to get above of
Precondition
Layer is on the stage.
Target layer is on the stage.
Note
All layers between this layer and target get new depth values.

Definition at line 161 of file layer-impl.cpp.

References GetDepth(), MoveAbove(), and Dali::Internal::Actor::OnStage().

Here is the call graph for this function:

void Layer::RaiseToTop ( )

Raises the layer to the top.

.0

Precondition
Layer is on the stage.

Definition at line 189 of file layer-impl.cpp.

References mLayerList, and Dali::Internal::LayerList::RaiseLayerToTop().

Referenced by DoAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::SetBehavior ( Dali::Layer::Behavior  behavior)

Set the behavior of the layer.

.0

Parameters
[in]behaviorThe desired behavior

Definition at line 223 of file layer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetSceneLayerOnStage(), mBehavior, and Dali::Internal::SceneGraph::SetBehaviorMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::SetClipping ( bool  enabled)

Sets whether clipping is enabled for a layer.

Clipping is initially disabled; see also SetClippingBox(). .0

Parameters
[in]enabledTrue if clipping is enabled.
Note
When clipping is enabled, the default clipping box is empty (0,0,0,0) which means everything is clipped.

Definition at line 231 of file layer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetSceneLayerOnStage(), mIsClipping, and Dali::Internal::SceneGraph::SetClippingMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::SetClippingBox ( int  x,
int  y,
int  width,
int  height 
)

Sets the clipping box of a layer, in window coordinates.

The contents of the layer will not be visible outside this box, when clipping is enabled. The default clipping box is empty (0,0,0,0) which means everything is clipped. You can only do rectangular clipping using this API in window coordinates. For other kinds of clipping, see Dali::Actor::SetDrawMode(). .0

Parameters
[in]xThe X-coordinate of the top-left corner of the box
[in]yThe Y-coordinate of the top-left corner of the box
[in]widthThe width of the box
[in]heightThe height of the box

Definition at line 242 of file layer-impl.cpp.

References Dali::Internal::Stage::GetCurrent(), Dali::Internal::Object::GetEventThreadServices(), GetSceneLayerOnStage(), Dali::Internal::Stage::GetSize(), Dali::Rect< T >::height, Dali::Vector2::height, mClippingBox, Dali::Rect< T >::Set(), Dali::Internal::SceneGraph::SetClippingBoxMessage(), Dali::Rect< T >::width, Dali::Rect< T >::x, and Dali::Rect< T >::y.

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Layer::SetDefaultProperty ( Property::Index  index,
const Property::Value propertyValue 
)
virtual

Set the value of a default property.

Precondition
The property types match i.e. propertyValue.GetType() is equal to GetPropertyType(index).
Parameters
[in]indexThe index of the property.
[in]propertyValueThe new value of the property.

Reimplemented from Dali::Internal::Actor.

Definition at line 459 of file layer-impl.cpp.

References Dali::Layer::Property::BEHAVIOR, Dali::Layer::Property::CLIPPING_BOX, Dali::Layer::Property::CLIPPING_ENABLE, DALI_LOG_WARNING, Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::Rect< T >::height, Dali::Layer::LAYER_2D, SetBehavior(), SetClipping(), SetClippingBox(), Dali::Internal::Actor::SetDefaultProperty(), Dali::Rect< T >::width, Dali::Rect< T >::x, and Dali::Rect< T >::y.

Here is the call graph for this function:

void Layer::SetDepthTestDisabled ( bool  disable)

Whether to disable the depth test.

By default a layer enables depth test if there is more than one opaque actor or if there is one opaque actor and one, or more, transparent actors in LAYER_3D mode. However, it's possible to disable the depth test by calling this method.

.0

Parameters
[in]disableTrue disables depth test. false sets the default behavior.

Definition at line 266 of file layer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetSceneLayerOnStage(), mDepthTestDisabled, and Dali::Internal::SceneGraph::SetDepthTestDisabledMessage().

Here is the call graph for this function:

void Layer::SetHoverConsumed ( bool  consume)

This allows the user to specify whether this layer should consume hover.

If set, any layers behind this layer will not be hit-test.

.0

Parameters
[in]consumeWhether the layer should consume hover.

Definition at line 304 of file layer-impl.cpp.

References mHoverConsumed.

void Layer::SetSortFunction ( Dali::Layer::SortFunctionType  function)

This allows the user to specify the sort function that the layer should use.

The sort function is used to determine the order in which the actors are drawn and input is processed on the actors in the layer.

A function of the following type should be used:

float YourSortFunction(const Vector3& position);

.0

Parameters
[in]functionThe sort function pointer
Note
If the sort function returns a low number, the actor with the data will be drawn in front of an actor whose data yields a high value from the sort function.
All child layers use the same sort function. If a child layer is added to this layer then the sort function used by the child layer will also be the same.

Definition at line 283 of file layer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetSceneLayerOnStage(), mSortFunction, and Dali::Internal::SceneGraph::SetSortFunctionMessage().

Here is the call graph for this function:

void Layer::SetTouchConsumed ( bool  consume)

This allows the user to specify whether this layer should consume touch (including gestures).

If set, any layers behind this layer will not be hit-test.

.0

Parameters
[in]consumeWhether the layer should consume touch (including gestures).

Definition at line 294 of file layer-impl.cpp.

References mTouchConsumed.

static float Dali::Internal::Layer::ZValue ( const Vector3 position)
inlinestatic

Definition at line 57 of file layer-impl.h.

References Dali::Vector3::z.

Referenced by Dali::Internal::SceneGraph::Layer::SetSortFunction(), and Dali::Internal::SceneGraph::SortRenderItems().

Here is the caller graph for this function:

Member Data Documentation

Dali::Layer::Behavior Dali::Internal::Layer::mBehavior
private

Behavior of the layer.

Definition at line 304 of file layer-impl.h.

Referenced by GetBehavior(), IsDepthTestDisabled(), and SetBehavior().

ClippingBox Dali::Internal::Layer::mClippingBox
private

The clipping box, in window coordinates.

Definition at line 301 of file layer-impl.h.

Referenced by GetClippingBox(), GetDefaultProperty(), and SetClippingBox().

bool Dali::Internal::Layer::mDepthTestDisabled
private

Whether depth test is disabled.

Definition at line 307 of file layer-impl.h.

Referenced by IsDepthTestDisabled(), and SetDepthTestDisabled().

bool Dali::Internal::Layer::mHoverConsumed
private

Whether we should consume hover.

Definition at line 309 of file layer-impl.h.

Referenced by IsHoverConsumed(), and SetHoverConsumed().

bool Dali::Internal::Layer::mIsClipping
private

True when clipping is enabled.

Definition at line 306 of file layer-impl.h.

Referenced by GetDefaultProperty(), IsClipping(), and SetClipping().

LayerList* Dali::Internal::Layer::mLayerList
private

Only valid when layer is on-stage.

Definition at line 298 of file layer-impl.h.

Referenced by GetDepth(), Lower(), LowerToBottom(), MoveAbove(), MoveBelow(), OnStageConnectionInternal(), OnStageDisconnectionInternal(), Raise(), and RaiseToTop().

Dali::Layer::SortFunctionType Dali::Internal::Layer::mSortFunction
private

Used to sort semi-transparent geometry.

Definition at line 302 of file layer-impl.h.

Referenced by SetSortFunction().

bool Dali::Internal::Layer::mTouchConsumed
private

Whether we should consume touch (including gesture).

Definition at line 308 of file layer-impl.h.

Referenced by IsTouchConsumed(), and SetTouchConsumed().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali