flaw-ui-0.1.0.0

LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Flaw.UI.Metrics

Description

 
Synopsis

Documentation

type Metric = Int Source #

Base type for length values.

type Position = Vec2 Metric Source #

Base type for two-dimensional position values.

type Size = Vec2 Metric Source #

Base type for two-dimensional length values.

type Rect = Vec4 Metric Source #

Base type for rectangle (left, top, right, bottom).

data Metrics Source #

Set of "standard" metrics for UI.

Constructors

Metrics 

Fields

class HasPreferredSize a where Source #

Class of something which has preferred size in metrics.

Methods

preferredSize :: Metrics -> a -> Size Source #

Instances
HasPreferredSize EditBox Source # 
Instance details

Defined in Flaw.UI.EditBox

HasPreferredSize CheckBox Source # 
Instance details

Defined in Flaw.UI.CheckBox

HasPreferredSize Slider Source # 
Instance details

Defined in Flaw.UI.Slider