1220e1c28a
Review URL: http://codereview.appspot.com/63189 git-svn-id: http://skia.googlecode.com/svn/trunk@209 2bbb7eff-a529-9590-31e7-b0007b416f81
39 lines
837 B
C++
39 lines
837 B
C++
#ifndef SampleCode_DEFINED
|
|
#define SampleCode_DEFINED
|
|
|
|
#include "SkEvent.h"
|
|
|
|
class SampleCode {
|
|
public:
|
|
static bool TitleQ(const SkEvent&);
|
|
static void TitleR(SkEvent*, const char title[]);
|
|
|
|
static bool PrefSizeQ(const SkEvent&);
|
|
static void PrefSizeR(SkEvent*, SkScalar width, SkScalar height);
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
class SkView;
|
|
|
|
typedef SkView* (*SkViewFactory)();
|
|
|
|
class SkViewRegister : SkNoncopyable {
|
|
public:
|
|
explicit SkViewRegister(SkViewFactory);
|
|
|
|
static const SkViewRegister* Head() { return gHead; }
|
|
|
|
SkViewRegister* next() const { return fChain; }
|
|
SkViewFactory factory() const { return fFact; }
|
|
|
|
private:
|
|
SkViewFactory fFact;
|
|
SkViewRegister* fChain;
|
|
|
|
static SkViewRegister* gHead;
|
|
};
|
|
|
|
#endif
|
|
|