Class: Clutter::SnapConstraint
- Inherits:
-
Constraint
- Object
- GObject::InitiallyUnowned
- ActorMeta
- Constraint
- Clutter::SnapConstraint
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#from_edge ⇒ Clutter::SnapEdge
The edge of the Clutter::Actor that should be snapped.
-
#from_edge=(from_edge) ⇒ Clutter::SnapEdge
The edge of the Clutter::Actor that should be snapped.
-
#get_edges(from_edge, to_edge) ⇒ nil
Retrieves the edges used by the constraint.
-
#initialize(source, from_edge, to_edge, offset) ⇒ Clutter::Constraint
constructor
Creates a new Clutter::SnapConstraint that will snap a #ClutterActor to the edge of source, with the given offset.
-
#offset ⇒ Clutter::gfloat
The offset, in pixels, between Clutter::SnapConstraint:from-edge and Clutter::SnapConstraint:to-edge.
-
#offset=(offset) ⇒ Clutter::gfloat
The offset, in pixels, between Clutter::SnapConstraint:from-edge and Clutter::SnapConstraint:to-edge.
-
#set_edges(from_edge, to_edge) ⇒ nil
Sets the edges to be used by the constraint.
-
#source ⇒ Clutter::Actor
The Clutter::Actor used as the source for the constraint.
-
#source=(source) ⇒ Clutter::Actor
The Clutter::Actor used as the source for the constraint.
-
#to_edge ⇒ Clutter::SnapEdge
The edge of the Clutter::SnapConstraint:source that should be snapped.
-
#to_edge=(to_edge) ⇒ Clutter::SnapEdge
The edge of the Clutter::SnapConstraint:source that should be snapped.
Methods inherited from ActorMeta
#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=
Constructor Details
#initialize(source, from_edge, to_edge, offset) ⇒ Clutter::Constraint
Creates a new Clutter::SnapConstraint that will snap a #ClutterActor to the edge of source, with the given offset.
Instance Method Details
#from_edge ⇒ Clutter::SnapEdge
The edge of the Clutter::Actor that should be snapped
#from_edge=(from_edge) ⇒ Clutter::SnapEdge
The edge of the Clutter::Actor that should be snapped
#get_edges(from_edge, to_edge) ⇒ nil
Retrieves the edges used by the constraint
#offset ⇒ Clutter::gfloat
The offset, in pixels, between Clutter::SnapConstraint:from-edge and Clutter::SnapConstraint:to-edge
#offset=(offset) ⇒ Clutter::gfloat
The offset, in pixels, between Clutter::SnapConstraint:from-edge and Clutter::SnapConstraint:to-edge
#set_edges(from_edge, to_edge) ⇒ nil
Sets the edges to be used by the constraint
The from_edge is the edge on the Clutter::Actor to which constraint has been added. The to_edge is the edge of the Clutter::Actor inside the Clutter::SnapConstraint:source property.
#source ⇒ Clutter::Actor
The Clutter::Actor used as the source for the constraint
#source=(source) ⇒ Clutter::Actor
The Clutter::Actor used as the source for the constraint
#to_edge ⇒ Clutter::SnapEdge
The edge of the Clutter::SnapConstraint:source that should be snapped
#to_edge=(to_edge) ⇒ Clutter::SnapEdge
The edge of the Clutter::SnapConstraint:source that should be snapped