1960 {
1961
1962 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
1963 ((ObjectInterface *) clazz->interface)->description =
description;
1964
1967 ((ViewInterface *) clazz->interface)->addClassName =
addClassName;
1968 ((ViewInterface *) clazz->interface)->addSubview =
addSubview;
1972 ((ViewInterface *) clazz->interface)->applyTheme =
applyTheme;
1976 ((ViewInterface *) clazz->interface)->awakeWithData =
awakeWithData;
1982 ((ViewInterface *) clazz->interface)->bind =
_bind;
1983 ((ViewInterface *) clazz->interface)->bounds =
bounds;
1985 ((ViewInterface *) clazz->interface)->clearWarnings =
clearWarnings;
1986 ((ViewInterface *) clazz->interface)->clippingFrame =
clippingFrame;
1987 ((ViewInterface *) clazz->interface)->containsPoint =
containsPoint;
1988 ((ViewInterface *) clazz->interface)->depth =
depth;
1991 ((ViewInterface *) clazz->interface)->didMoveToWindow =
didMoveToWindow;
1992 ((ViewInterface *) clazz->interface)->didReceiveEvent =
didReceiveEvent;
1993 ((ViewInterface *) clazz->interface)->draw =
draw;
1994 ((ViewInterface *) clazz->interface)->emitViewEvent =
emitViewEvent;
1995 ((ViewInterface *) clazz->interface)->enumerate =
enumerate;
2004 ((ViewInterface *) clazz->interface)->hasClassName =
hasClassName;
2005 ((ViewInterface *) clazz->interface)->hasOverflow =
hasOverflow;
2006 ((ViewInterface *) clazz->interface)->hitTest =
hitTest;
2007 ((ViewInterface *) clazz->interface)->
init =
init;
2010 ((ViewInterface *) clazz->interface)->isContainer =
isContainer;
2012 ((ViewInterface *) clazz->interface)->isKeyResponder =
isKeyResponder;
2014 ((ViewInterface *) clazz->interface)->isVisible =
isVisible;
2015 ((ViewInterface *) clazz->interface)->layoutIfNeeded =
layoutIfNeeded;
2016 ((ViewInterface *) clazz->interface)->layoutSubviews =
layoutSubviews;
2017 ((ViewInterface *) clazz->interface)->matchesSelector =
matchesSelector;
2018 ((ViewInterface *) clazz->interface)->moveToWindow =
moveToWindow;
2019 ((ViewInterface *) clazz->interface)->path =
path;
2022 ((ViewInterface *) clazz->interface)->removeClassName =
removeClassName;
2024 ((ViewInterface *) clazz->interface)->removeSubview =
removeSubview;
2025 ((ViewInterface *) clazz->interface)->render =
render;
2028 ((ViewInterface *) clazz->interface)->renderFrame =
renderFrame;
2029 ((ViewInterface *) clazz->interface)->replaceSubview =
replaceSubview;
2032 ((ViewInterface *) clazz->interface)->resize =
resize;
2033 ((ViewInterface *) clazz->interface)->resolve =
resolve;
2034 ((ViewInterface *) clazz->interface)->respondToEvent =
respondToEvent;
2035 ((ViewInterface *) clazz->interface)->select =
_select;
2036 ((ViewInterface *) clazz->interface)->selectFirst =
selectFirst;
2037 ((ViewInterface *) clazz->interface)->
size =
size;
2039 ((ViewInterface *) clazz->interface)->sizeThatFills =
sizeThatFills;
2040 ((ViewInterface *) clazz->interface)->sizeThatFits =
sizeThatFits;
2041 ((ViewInterface *) clazz->interface)->sizeToContain =
sizeToContain;
2042 ((ViewInterface *) clazz->interface)->sizeToFill =
sizeToFill;
2043 ((ViewInterface *) clazz->interface)->sizeToFit =
sizeToFit;
2046 ((ViewInterface *) clazz->interface)->viewport =
viewport;
2053 ((ViewInterface *) clazz->interface)->warn =
warn;
2055
2058
2061}
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 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 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 awakeWithCharacters(View *self, const char *chars)
static void removeAllSubviews(View *self)
static SDL_Size sizeThatContains(const View *self)
static void render(View *self, Renderer *renderer)
static void awakeWithResourceName(View *self, const char *name)
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 updateBindings(View *self)
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 updateBindings(View *self)
Updates data bindings, prompting the appropriate layout changes.
void invalidateStyle(View *self)
Invalidates the computed Style for this View and its descendants.
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.
SDL_Size size(const View *self)
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.