2222 {
2223
2224 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
2225 ((ObjectInterface *) clazz->interface)->description =
description;
2226
2229 ((ViewInterface *) clazz->interface)->addClassName =
addClassName;
2230 ((ViewInterface *) clazz->interface)->addSubview =
addSubview;
2234 ((ViewInterface *) clazz->interface)->applyTheme =
applyTheme;
2238 ((ViewInterface *) clazz->interface)->awakeWithData =
awakeWithData;
2244 ((ViewInterface *) clazz->interface)->bind =
_bind;
2245 ((ViewInterface *) clazz->interface)->bounds =
bounds;
2247 ((ViewInterface *) clazz->interface)->clearWarnings =
clearWarnings;
2248 ((ViewInterface *) clazz->interface)->clippingFrame =
clippingFrame;
2249 ((ViewInterface *) clazz->interface)->containsPoint =
containsPoint;
2250 ((ViewInterface *) clazz->interface)->depth =
depth;
2253 ((ViewInterface *) clazz->interface)->didMoveToWindow =
didMoveToWindow;
2254 ((ViewInterface *) clazz->interface)->didReceiveEvent =
didReceiveEvent;
2255 ((ViewInterface *) clazz->interface)->draw =
draw;
2256 ((ViewInterface *) clazz->interface)->emitViewEvent =
emitViewEvent;
2257 ((ViewInterface *) clazz->interface)->enumerate =
enumerate;
2266 ((ViewInterface *) clazz->interface)->hasClassName =
hasClassName;
2267 ((ViewInterface *) clazz->interface)->hasOverflow =
hasOverflow;
2268 ((ViewInterface *) clazz->interface)->hitTest =
hitTest;
2269 ((ViewInterface *) clazz->interface)->
init =
init;
2272 ((ViewInterface *) clazz->interface)->isContainer =
isContainer;
2274 ((ViewInterface *) clazz->interface)->isKeyResponder =
isKeyResponder;
2276 ((ViewInterface *) clazz->interface)->isVisible =
isVisible;
2277 ((ViewInterface *) clazz->interface)->layoutIfNeeded =
layoutIfNeeded;
2278 ((ViewInterface *) clazz->interface)->layoutSubviews =
layoutSubviews;
2280 ((ViewInterface *) clazz->interface)->layoutWithSize =
layoutWithSize;
2281 ((ViewInterface *) clazz->interface)->matchesSelector =
matchesSelector;
2282 ((ViewInterface *) clazz->interface)->moveToWindow =
moveToWindow;
2283 ((ViewInterface *) clazz->interface)->path =
path;
2286 ((ViewInterface *) clazz->interface)->removeClassName =
removeClassName;
2288 ((ViewInterface *) clazz->interface)->removeSubview =
removeSubview;
2289 ((ViewInterface *) clazz->interface)->render =
render;
2292 ((ViewInterface *) clazz->interface)->renderFrame =
renderFrame;
2293 ((ViewInterface *) clazz->interface)->replaceSubview =
replaceSubview;
2296 ((ViewInterface *) clazz->interface)->resize =
resize;
2297 ((ViewInterface *) clazz->interface)->resolve =
resolve;
2298 ((ViewInterface *) clazz->interface)->respondToEvent =
respondToEvent;
2299 ((ViewInterface *) clazz->interface)->select =
_select;
2300 ((ViewInterface *) clazz->interface)->selectFirst =
selectFirst;
2303 ((ViewInterface *) clazz->interface)->setNeedsLayout =
setNeedsLayout;
2304 ((ViewInterface *) clazz->interface)->size =
size;
2306 ((ViewInterface *) clazz->interface)->sizeThatFills =
sizeThatFills;
2307 ((ViewInterface *) clazz->interface)->sizeThatFits =
sizeThatFits;
2309 ((ViewInterface *) clazz->interface)->sizeToContain =
sizeToContain;
2310 ((ViewInterface *) clazz->interface)->sizeToFill =
sizeToFill;
2311 ((ViewInterface *) clazz->interface)->sizeToFit =
sizeToFit;
2312 ((ViewInterface *) clazz->interface)->sizeToSatisfy =
sizeToSatisfy;
2315 ((ViewInterface *) clazz->interface)->viewport =
viewport;
2322 ((ViewInterface *) clazz->interface)->warn =
warn;
2324
2327
2330}
static View * viewWithResource(const Resource *resource, Outlet *outlets)
static void removeClassName(View *self, const char *className)
static void addClassName(View *self, const char *className)
static View * selectFirst(View *self, const char *rule)
static bool isContainer(const View *self)
static void didMoveToWindow(View *self, SDL_Window *window)
static bool isDescendantOfView(const View *self, const View *view)
static void becomeKeyResponder(View *self)
static void resize(View *self, const SDL_Size *size)
static SDL_Size sizeThatSatisfies(View *self, ViewConstraint width, ViewConstraint height)
static void detachStylesheet(View *self, SDL_Window *window)
static void layoutIfNeeded(View *self)
static void sizeToContain(View *self)
static bool acceptsKeyResponder(const View *self)
static Set * _select(View *self, const char *rule)
static void enumerateAncestors(const View *self, ViewEnumerator enumerator, ident data)
static SDL_Size sizeThatFills(const View *self)
static void removeAllClassNames(View *self)
static void removeSubview(View *self, View *subview)
static void layoutWithConstraint(View *self, ViewConstraint width, ViewConstraint height)
static View * viewWithResourceName(const char *name, Outlet *outlets)
static void becomeTouchResponder(View *self)
static void respondToEvent(View *self, const SDL_Event *event)
static void replaceSubview(View *self, View *subview, View *replacement)
static bool matchesSelector(const View *self, const SimpleSelector *simpleSelector)
static SDL_Size sizeThatFits(const View *self)
static void bringSubviewToFront(View *self, View *subview)
static bool didReceiveEvent(const View *self, const SDL_Event *event)
static View * subviewWithIdentifier(const View *self, const char *identifier)
static bool hasOverflow(const View *self)
static Array * visibleSubviews(const View *self)
static void sizeToSatisfy(View *self, ViewConstraint width, ViewConstraint height)
static void awakeWithCharacters(View *self, const char *chars)
static void updateBindings(View *self, ident data)
static void removeAllSubviews(View *self)
static SDL_Size sizeThatContains(const View *self)
static void render(View *self, Renderer *renderer)
static void setVisibility(View *self, ViewVisibility visibility)
static void awakeWithResourceName(View *self, const char *name)
static void layoutWithSize(View *self, const SDL_Size *size)
static void addSubview(View *self, View *subview)
static View * viewWithData(const Data *data, Outlet *outlets)
static View * viewWithCharacters(const char *chars, Outlet *outlets)
static bool acceptsTouchResponder(const View *self)
static void renderDeviceWillReset(View *self)
static bool _bind(View *self, const Inlet *inlets, const Dictionary *dictionary)
static void willMoveToWindow(View *self, SDL_Window *window)
Uint32 MVC_NOTIFICATION_EVENT
static void renderDeviceDidReset(View *self)
static void enumerateSuperview(const View *self, ViewEnumerator enumerator, ident data)
static void layoutSubviews(View *self)
static void enumerate(View *self, ViewEnumerator enumerator, ident data)
static void enumerateAdjacent(const View *self, ViewEnumerator enumerator, ident data)
static SDL_Rect viewport(const View *self)
static bool hasClassName(const View *self, const char *className)
static void sizeToFit(View *self)
static void enumerateSiblings(const View *self, ViewEnumerator enumerator, ident data)
static View * viewWithDictionary(const Dictionary *dictionary, Outlet *outlets)
static View * ancestorWithIdentifier(const View *self, const char *identifier)
static void resolve(View *self, Outlet *outlets)
static void emitViewEvent(View *self, ViewEvent code, ident data)
void invalidateStyle(View *self)
Invalidates the computed Style for this View and its descendants.
void setVisibility(View *self, ViewVisibility visibility)
Sets this View's visibility.
View * viewWithResource(const Resource *resource, Outlet *outlets)
Instantiates a View initialized with the JSON data in resource.
Array * visibleSubviews(const View *self)
View * viewWithResourceName(const char *name, Outlet *outlets)
Instantiates a View initialized with the JSON Resource with the specified name.
void applyStyle(View *self, const Style *style)
Applies the given Style to this View.
void detachStylesheet(View *self, SDL_Window *window)
Detaches this View's Stylesheet from the Theme associated with the given window.
void updateBindings(View *self, ident data)
Updates data bindings, prompting the appropriate layout changes.
View * viewWithData(const Data *data, Outlet *outlets)
Instantiates a View initialized with the contents of data.
View * init(View *self)
Initializes this View.
View * initWithFrame(View *self, const SDL_Rect *frame)
Initializes this View with the specified frame.
View * viewWithDictionary(const Dictionary *dictionary, Outlet *outlets)
Instantiates a View initialized with the attributes described in dictionary.