ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
StackView.h File Reference

StackViews are containers that manage the arrangement of their subviews. More...

Go to the source code of this file.

Data Structures

struct  StackView
 StackViews are containers that manage the arrangement of their subviews. More...
 

Enumerations

enum  StackViewAxis { StackViewAxisVertical , StackViewAxisHorizontal }
 Axis constants for specifying a StackView's primary layout direction. More...
 
enum  StackViewDistribution { StackViewDistributionDefault , StackViewDistributionFill , StackViewDistributionFillEqually }
 Distribution models for filling a StackView's frame. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _StackView (void)
 

Variables

OBJECTIVELYMVC_EXPORT const EnumName StackViewAxisNames []
 
OBJECTIVELYMVC_EXPORT const EnumName StackViewDistributionNames []
 

Detailed Description

StackViews are containers that manage the arrangement of their subviews.

Definition in file StackView.h.

Enumeration Type Documentation

◆ StackViewAxis

Axis constants for specifying a StackView's primary layout direction.

Enumerator
StackViewAxisVertical 
StackViewAxisHorizontal 

Definition at line 42 of file StackView.h.

42 {
StackViewAxis
Axis constants for specifying a StackView's primary layout direction.
Definition StackView.h:42
@ StackViewAxisHorizontal
Definition StackView.h:44
@ StackViewAxisVertical
Definition StackView.h:43

◆ StackViewDistribution

Distribution models for filling a StackView's frame.

Enumerator
StackViewDistributionDefault 
StackViewDistributionFill 
StackViewDistributionFillEqually 

Definition at line 52 of file StackView.h.

52 {
StackViewDistribution
Distribution models for filling a StackView's frame.
Definition StackView.h:52
@ StackViewDistributionDefault
Definition StackView.h:53
@ StackViewDistributionFillEqually
Definition StackView.h:55
@ StackViewDistributionFill
Definition StackView.h:54

Function Documentation

◆ _StackView()

OBJECTIVELYMVC_EXPORT Class * _StackView ( void  )

Definition at line 287 of file StackView.c.

287 {
288 static Class *clazz;
289 static Once once;
290
291 do_once(&once, {
292 clazz = _initialize(&(const ClassDef) {
293 .name = "StackView",
294 .superclass = _View(),
295 .instanceSize = sizeof(StackView),
296 .interfaceOffset = offsetof(StackView, interface),
297 .interfaceSize = sizeof(StackViewInterface),
299 });
300 });
301
302 return clazz;
303}
static void initialize(Class *clazz)
Definition StackView.c:272
Class * _View(void)
Definition View.c:2067
StackViews are containers that manage the arrangement of their subviews.
Definition StackView.h:68

Variable Documentation

◆ StackViewAxisNames

OBJECTIVELYMVC_EXPORT const EnumName StackViewAxisNames[]

Definition at line 47 of file StackView.h.

◆ StackViewDistributionNames

OBJECTIVELYMVC_EXPORT const EnumName StackViewDistributionNames[]

Definition at line 58 of file StackView.h.