309 {
310
311 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
312 ((ObjectInterface *) clazz->interface)->description =
description;
313
314 ((ViewInterface *) clazz->interface)->applyStyle =
applyStyle;
316 ((ViewInterface *) clazz->interface)->init =
init;
320 ((ViewInterface *) clazz->interface)->sizeThatFits =
sizeThatFits;
321
322 ((TextInterface *) clazz->interface)->initWithText =
initWithText;
323 ((TextInterface *) clazz->interface)->naturalSize =
naturalSize;
324 ((TextInterface *) clazz->interface)->setFont =
setFont;
325 ((TextInterface *) clazz->interface)->setText =
setText;
327}
SDL_Size naturalSize(const CollectionView *self)
CollectionView * init(CollectionView *self, const SDL_Rect *frame)
Initializes this CollectionView with the specified frame and style.
void renderDeviceDidReset(Font *self)
This method should be invoked when the render context is invalidated.
void renderDeviceWillReset(Renderer *self)
This method is invoked when the render device will become reset.
void setTextWithFormat(Text *self, const char *fmt,...)
Sets this Text's text with the given format string.
void setText(Text *self, const char *text)
Sets this Text's text.
void sizeThatFits(const View *self)
void render(View *self, Renderer *renderer)
Renders this View using the given renderer.