AUGUI Namespace Reference


Classes

class  font_t
class  color_t
class  point_t
class  rect_t
class  property_t
template<class V>
TViewNoCompositingCompatibleCreateForCurrentBundle (const HIRect *inBounds, HIViewRef root)
 These 3 functions are inline duplicates of the members of TViewNoCompositingCompatible.
template<class V>
CFStringRef CopyCanonicalClassID ()
 CopyCanonicalClassID() will use the bundle stored as a static member of the class that you pass as the template argument.
template<class V>
CFStringRef CopyClassIDForBundleID (CFStringRef bundleID)

Typedefs

typedef uint32_t oid_t

Enumerations

enum  property_type_t {
  kInteger, kFloat, kString, kPicture,
  kColor, kPoint, kRect, kFont,
  kBool
}

Functions

oid_t newOid (oid_t parent, int auid)
oid_t newOid ()
oid_t newOid (oid_t parent)
oid_t newPaneOid (oid_t parent)
void HIRectToQDRect (const HIRect *inHIRect, Rect *outQDRect)
TRect RectForCGImage (CGImageRef theImage)
void ConvertWindowPointToGlobal (WindowRef theWindow, Point &thePoint)
 Converts a point from local window coordinates to global coordinates.
void ConvertGlobalToWindowPoint (WindowRef theWindow, Point &thePoint)
 Converts a point from global to local window coordinates.
void SetFontFromFontStyleRec (CGContextRef context, ControlFontStyleRec &rec, ThemeFontID baseThemeFont, ThemeTextColor baseThemeColor)
 Sets the font face, size, style, and color based on the fields and flags of the rec argument.
void * malloc_aligned (UInt32 numBytes, void **realPointer)
 Allocates a block of memory that is 16-byte aligned and zeroed.
float DegreesToRadians (float deg)
 Simple utility to calculate radians from degrees.
template<class V>
void AddPropertyInfo (uint32_t tag, std::string name, std::string label, property_type_t type)


Typedef Documentation

typedef uint32_t AUGUI::oid_t
 


Enumeration Type Documentation

enum AUGUI::property_type_t
 

Enumerator:
kInteger 
kFloat 
kString 
kPicture 
kColor 
kPoint 
kRect 
kFont 
kBool 


Function Documentation

template<class V>
void AUGUI::AddPropertyInfo uint32_t  tag,
std::string  name,
std::string  label,
property_type_t  type
[inline]
 

void AUGUI::ConvertGlobalToWindowPoint WindowRef  theWindow,
Point &  thePoint
 

Converts a point from global to local window coordinates.

This would be easy enough to do by simply calling GlobalToLocal(), but you have to guarantee that the port is properly set. So we have this utility.

void AUGUI::ConvertWindowPointToGlobal WindowRef  theWindow,
Point &  thePoint
 

Converts a point from local window coordinates to global coordinates.

This would be easy enough to do by simply calling LocalToGlobal(), but you have to guarantee that the port is properly set. So we have this utility.

template<class V>
CFStringRef AUGUI::CopyCanonicalClassID  )  [inline]
 

CopyCanonicalClassID() will use the bundle stored as a static member of the class that you pass as the template argument.

template<class V>
CFStringRef AUGUI::CopyClassIDForBundleID CFStringRef  bundleID  )  [inline]
 

template<class V>
TViewNoCompositingCompatible* AUGUI::CreateForCurrentBundle const HIRect *  inBounds,
HIViewRef  root
[inline]
 

These 3 functions are inline duplicates of the members of TViewNoCompositingCompatible.

They are here because they are extremely useful and pulling them out of the class makes them a little easier to use (much less to type).

float AUGUI::DegreesToRadians float  deg  )  [inline]
 

Simple utility to calculate radians from degrees.

Parameters:
deg Input value in degrees, from 0.0 to 360.0
Returns:
The output in radians.

void AUGUI::HIRectToQDRect const HIRect *  inHIRect,
Rect *  outQDRect
 

void * AUGUI::malloc_aligned UInt32  numBytes,
void **  realPointer
 

Allocates a block of memory that is 16-byte aligned and zeroed.

This makes it possible to use Altivec routines on the data in the buffer. The buffer is allocated with malloc() and so must be disposed with free().

Parameters:
numBytes The number of bytes to allocate. The buffer will not necessarily be this size, as it may need to be rounded up.
realPointer On exit, this contains a pointer to the actual buffer that must be passed to free() to be disposed.
Returns:
Pointer to aligned buffer at least numBytes in size.

oid_t AUGUI::newOid oid_t  parent  ) 
 

oid_t AUGUI::newOid  ) 
 

oid_t AUGUI::newOid oid_t  parent,
int  auid
 

oid_t AUGUI::newPaneOid oid_t  parent  ) 
 

TRect AUGUI::RectForCGImage CGImageRef  theImage  ) 
 

void AUGUI::SetFontFromFontStyleRec CGContextRef  context,
ControlFontStyleRec &  rec,
ThemeFontID  baseThemeFont,
ThemeTextColor  themeColor
 

Sets the font face, size, style, and color based on the fields and flags of the rec argument.

This allows you to call the QuickDraw Text routines to measure text since there is no way to measure text in CoreGraphics (unbelievable!). Well, OK. You can draw a string invisibly and subtract, but it's not the same. For one thing, you have to have a context to draw into. You can't pre-compute sizes this way.






Generated on Sat Jul 8 13:11:32 2006 for AUGUI Framework by doxygen1.4.6

hosted on SourceForge.net Logo