CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
UIUtility.hpp File Reference

Go to the source code of this file.

Classes

struct  CeresEngine::UICornerRadius
 
class  CeresEngine::UIDelegate< View, R(Args...)>
 Encapsulates a UI delegate method. More...
 
class  CeresEngine::UIDelegate< View, void(Args...)>
 Encapsulates a UI delegate method. More...
 
struct  CeresEngine::UIUtility
 A set of common and useful functions for implementing UIs. More...
 
struct  CeresEngine::UILayoutUtility
 

Namespaces

namespace  CeresEngine
 

Typedefs

using CeresEngine::UIPoint = Point2
 A type that contains a point in a two-dimensional coordinate system.
 
using CeresEngine::UISize = Size2
 A type that contains width and height values.
 
using CeresEngine::UIRect = Rect2
 A structure that contains the location and dimensions of a rectangle.
 
using CeresEngine::UIEdgeInsets = Rect2Edge
 The inset distances for views.
 
using CeresEngine::UIColor = Color
 

Enumerations

enum class  CeresEngine::UITexturePosition {
  CeresEngine::NoTexture , CeresEngine::TextureOnly , CeresEngine::TextureLeft , CeresEngine::TextureRight ,
  CeresEngine::TextureBelow , CeresEngine::TextureAbove , CeresEngine::TextureOverlaps
}
 Constants for specifying the position of a view texture relative to its title. More...
 
enum class  CeresEngine::UITextureScaling { CeresEngine::None , CeresEngine::ProportionallyDown , CeresEngine::AxesIndependently , CeresEngine::ProportionallyUpOrDown }
 Constants that specify a view's texture scaling behavior. More...
 
enum class  CeresEngine::UITextAlignment { CeresEngine::Left , CeresEngine::Right , CeresEngine::Center , CeresEngine::Justified }
 These constants specify text alignment. More...
 

Functions

template<typename MemberPtr , typename T , typename... Args>
void CeresEngine::broadcast (MemberPtr &&member, const Vector< T > &list, Args &&... args)
 Helper function that calls MemberPtr on all elements in list.
 
template<typename MemberPtr , typename T , typename... Args>
auto CeresEngine::broadcastIf (MemberPtr &&member, const Vector< T > &list, Args &&... args)
 Helper function that calls MemberPtr on all elements in list.
 

Variables

const UIRect CeresEngine::UIRectZero
 A zero UI rectangle.