Coconut Data Framework  beta
Defines | Enumerations | Functions
CNAlign.h File Reference

Define CNAlign type. More...

#import <Coconut/Coconut.h>
#import <OpenGL/gltypes.h>

Go to the source code of this file.

Defines

#define CNHolizAlignMask   0x000f
#define CNVertAlignMask   0x00f0

Enumerations

enum  CNAlign {
  CNNoAlign = 0x0000, CNHolizLeftAlign = 0x0000, CNHolizRightAlign = 0x0001, CNHolizCenterAlign = 0x0002,
  CNVertTopAlign = 0x0000, CNVertBottomAlign = 0x0010, CNVertMiddleAlign = 0x0020
}

Functions

static CNAlign CNHolizAlign (CNAlign src)
 Get align attribute for holizontal.
static CNAlign CNVertAlign (CNAlign src)
 Get align attribute for vertical.

Detailed Description

Define CNAlign type.

Copyright
Copyright (C) 2011-2012 Steel Wheels Project

Define Documentation

#define CNHolizAlignMask   0x000f

Mask for holizontal align attribute

Referenced by CNHolizAlign().

#define CNVertAlignMask   0x00f0

Mask for vertical align attribute

Referenced by CNVertAlign().


Enumeration Type Documentation

enum CNAlign

Type to present the kind of alignment

Enumerator:
CNNoAlign 

Default alignment

CNHolizLeftAlign 

Left align attribute

CNHolizRightAlign 

Right align attribute

CNHolizCenterAlign 

Center align attribute

CNVertTopAlign 

Top align attribute

CNVertBottomAlign 

Bottom align attribute

CNVertMiddleAlign 

Middle align attribute


Function Documentation

static CNAlign CNHolizAlign ( CNAlign  src) [inline, static]

Get align attribute for holizontal.

Returns:
Holizontal alignment attribute
Parameters:
srcAlignment attribute

References CNHolizAlignMask.

static CNAlign CNVertAlign ( CNAlign  src) [inline, static]

Get align attribute for vertical.

Returns:
Vertical alignment attribute
Parameters:
srcAlignment attribute

References CNVertAlignMask.