FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::Anchor Class Reference
Inheritance diagram for fge::Anchor:
fge::Object fge::ObjAnimation fge::ObjButton fge::ObjLight fge::ObjRenderMap fge::ObjSelectBox fge::ObjShaderChain fge::ObjShape fge::ObjSlider fge::ObjSprite fge::ObjSpriteBatches fge::ObjSpriteCluster fge::ObjSwitch fge::ObjText fge::ObjTextInputBox fge::ObjTextList fge::ObjTileMap fge::ObjWindow

Public Types

enum class  Types : uint8_t {
  ANCHOR_NONE , ANCHOR_UPLEFT_CORNER , ANCHOR_UPRIGHT_CORNER , ANCHOR_DOWNLEFT_CORNER ,
  ANCHOR_DOWNRIGHT_CORNER
}
 
enum class  Shifts : uint8_t { SHIFT_NONE , SHIFT_POSITIVE_BOUNDS , SHIFT_NEGATIVE_BOUNDS }
 

Public Member Functions

 Anchor (fge::Object *owner)
 
 Anchor (fge::Object *owner, Anchor const &anchor)
 
 Anchor (Anchor const &r)=delete
 
 Anchor (Anchor &&r) noexcept=delete
 
Anchoroperator= (Anchor const &r)
 
Anchoroperator= (Anchor &&r) noexcept=delete
 
void updateAnchor (fge::Vector2f const &customTargetSize={0.0f, 0.0f})
 
void setAnchor (Types type, fge::Vector2< Shifts > const &shift, fge::ObjectSid target=std::numeric_limits< fge::ObjectSid >::max())
 
void setAnchorType (Types type)
 
void setAnchorShift (fge::Vector2< Shifts > const &shift)
 
void setAnchorTarget (fge::ObjectSid target)
 
Types getAnchorType () const
 
fge::Vector2< Shifts > const & getAnchorShift () const
 
fge::ObjectSid getAnchorTarget () const
 
fge::ObjectgetAnchorOwner () const
 
void setAnchorSuccessor (fge::ObjectDataWeak successor)
 
fge::ObjectDataWeak getAnchorSuccessor () const
 
void needAnchorUpdate (bool flag)
 
bool isNeedingAnchorUpdate () const
 

The documentation for this class was generated from the following file: