ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
Views are the fundamental building blocks of ObjectivelyMVC user interfaces. More...
#include <Objectively/Data.h>
#include <Objectively/Enum.h>
#include <Objectively/MutableDictionary.h>
#include <Objectively/MutableArray.h>
#include <Objectively/MutableSet.h>
#include <Objectively/Resource.h>
#include <ObjectivelyMVC/Colors.h>
#include <ObjectivelyMVC/Renderer.h>
#include <ObjectivelyMVC/Theme.h>
#include <ObjectivelyMVC/View+JSON.h>
Go to the source code of this file.
Data Structures | |
struct | View |
Views are the fundamental building blocks of ObjectivelyMVC user interfaces. More... | |
struct | ViewPadding |
Spacing applied to the inside of a View's frame. More... | |
Macros | |
#define | AddPadding(a, b) MakePadding(a.top + b.top, a.right + b.right, a.bottom + b.bottom, a.left + b.left) |
#define | MakePadding(top, right, bottom, left) (ViewPadding) { (top), (right), (bottom), (left) } |
Creates a ViewPadding with the given dimensions. More... | |
#define | ViewAlignmentMaskBottom 0x4 |
#define | ViewAlignmentMaskCenter 0x10 |
#define | ViewAlignmentMaskHorizontal (ViewAlignmentMaskLeft | ViewAlignmentMaskCenter | ViewAlignmentMaskRight) |
#define | ViewAlignmentMaskInternal 0x100 |
#define | ViewAlignmentMaskLeft 0x8 |
#define | ViewAlignmentMaskMiddle 0x2 |
#define | ViewAlignmentMaskRight 0x20 |
#define | ViewAlignmentMaskTop 0x1 |
#define | ViewAlignmentMaskVertical (ViewAlignmentMaskTop | ViewAlignmentMaskMiddle | ViewAlignmentMaskBottom) |
Enumerations | |
enum | ViewAlignment { ViewAlignmentNone , ViewAlignmentTop = ViewAlignmentMaskTop , ViewAlignmentMiddle = ViewAlignmentMaskMiddle , ViewAlignmentBottom = ViewAlignmentMaskBottom , ViewAlignmentLeft = ViewAlignmentMaskLeft , ViewAlignmentCenter = ViewAlignmentMaskCenter , ViewAlignmentRight = ViewAlignmentMaskRight , ViewAlignmentTopLeft = (ViewAlignmentMaskTop | ViewAlignmentMaskLeft) , ViewAlignmentTopCenter = (ViewAlignmentMaskTop | ViewAlignmentMaskCenter) , ViewAlignmentTopRight = (ViewAlignmentMaskTop | ViewAlignmentMaskRight) , ViewAlignmentMiddleLeft = (ViewAlignmentMaskMiddle | ViewAlignmentMaskLeft) , ViewAlignmentMiddleCenter = (ViewAlignmentMaskMiddle | ViewAlignmentMaskCenter) , ViewAlignmentMiddleRight = (ViewAlignmentMaskMiddle | ViewAlignmentMaskRight) , ViewAlignmentBottomLeft = (ViewAlignmentMaskBottom | ViewAlignmentMaskLeft) , ViewAlignmentBottomCenter = (ViewAlignmentMaskBottom | ViewAlignmentMaskCenter) , ViewAlignmentBottomRight = (ViewAlignmentMaskBottom | ViewAlignmentMaskRight) , ViewAlignmentInternal = ViewAlignmentMaskInternal } |
Alignment constants, used to align a View within its superview. More... | |
enum | ViewAutoresizing { ViewAutoresizingNone = 0 , ViewAutoresizingWidth = 0x1 , ViewAutoresizingHeight = 0x2 , ViewAutoresizingFill = 0x3 , ViewAutoresizingFit = 0x4 , ViewAutoresizingContain = 0x8 } |
Auto-resizing constants, which are bitmasked. More... | |
enum | ViewPosition { ViewPositionBefore = -1 , ViewPositionAfter = 1 } |
Relative positioning of subviews within their superview. More... | |
Functions | |
OBJECTIVELYMVC_EXPORT Class * | _View (void) |
Variables | |
OBJECTIVELYMVC_EXPORT const EnumName | ViewAlignmentNames [] |
OBJECTIVELYMVC_EXPORT const EnumName | ViewAutoresizingNames [] |
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
Definition in file View.h.
#define AddPadding | ( | a, | |
b | |||
) | MakePadding(a.top + b.top, a.right + b.right, a.bottom + b.bottom, a.left + b.left) |
a
and b
. #define MakePadding | ( | top, | |
right, | |||
bottom, | |||
left | |||
) | (ViewPadding) { (top), (right), (bottom), (left) } |
Creates a ViewPadding with the given dimensions.
#define ViewAlignmentMaskHorizontal (ViewAlignmentMaskLeft | ViewAlignmentMaskCenter | ViewAlignmentMaskRight) |
#define ViewAlignmentMaskVertical (ViewAlignmentMaskTop | ViewAlignmentMaskMiddle | ViewAlignmentMaskBottom) |
enum ViewAlignment |
Alignment constants, used to align a View within its superview.
Definition at line 60 of file View.h.
enum ViewAutoresizing |
Auto-resizing constants, which are bitmasked.
Enumerator | |
---|---|
ViewAutoresizingNone | |
ViewAutoresizingWidth | |
ViewAutoresizingHeight | |
ViewAutoresizingFill | |
ViewAutoresizingFit | |
ViewAutoresizingContain |
Definition at line 85 of file View.h.
enum ViewPosition |
Relative positioning of subviews within their superview.
Enumerator | |
---|---|
ViewPositionBefore | |
ViewPositionAfter |
Definition at line 118 of file View.h.
OBJECTIVELYMVC_EXPORT Class * _View | ( | void | ) |
Definition at line 1769 of file View.c.
OBJECTIVELYMVC_EXPORT const EnumName ViewAlignmentNames[] |
OBJECTIVELYMVC_EXPORT const EnumName ViewAutoresizingNames[] |