From fb82ea1c5de2d0c5d61f9d4a29fce34759bbe50f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 28 May 2015 20:40:59 -0400 Subject: [PATCH] More thinking about objects. --- redo/objimpl/control.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/redo/objimpl/control.c b/redo/objimpl/control.c index a2cf85e8..b376529b 100644 --- a/redo/objimpl/control.c +++ b/redo/objimpl/control.c @@ -10,7 +10,7 @@ struct controlBase { #define controlBase(c) ((struct controlBase *) (TODO)) -void controlBaseDestroy(uiControl *c) +void uiControlBaseDestroy(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -20,14 +20,14 @@ void controlBaseDestroy(uiControl *c) // TODO free memory } -uiControl *controlBaseParent(uiControl *c) +uiControl *uiControlBaseParent(uiControl *c) { struct controlBase *cb = controlBase(c); return cb->parent; } -void controlBaseSetParent(uiControl *c, uiControl *parent) +void uiControlBaseSetParent(uiControl *c, uiControl *parent) { struct controlBase *cb = controlBase(c); @@ -41,7 +41,7 @@ void controlBaseSetParent(uiControl *c, uiControl *parent) uiControlUpdateState(c); } -int controlBaseContainerVisible(uiControl *c) +int uiControlBaseContainerVisible(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -52,7 +52,7 @@ int controlBaseContainerVisible(uiControl *c) return uiControlContainerVisible(cb->parent); } -void controlBaseShow(uiControl *c) +void uiControlBaseShow(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -60,7 +60,7 @@ void controlBaseShow(uiControl *c) uiControlUpdateState(c); } -void controlBaseHide(uiControl *c) +void uiControlBaseHide(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -68,7 +68,7 @@ void controlBaseHide(uiControl *c) uiControlUpdateState(c); } -int controlBaseContainerEnabled(uiControl *c) +int uiControlBaseContainerEnabled(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -79,7 +79,7 @@ int controlBaseContainerEnabled(uiControl *c) return uiControlContainerEnabled(cb->parent); } -void controlBaseEnable(uiControl *c) +void uiControlBaseEnable(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -87,7 +87,7 @@ void controlBaseEnable(uiControl *c) uiControlUpdateState(c); } -void controlBaseDisable(uiControl *c) +void uiControlBaseDisable(uiControl *c) { struct controlBase *cb = controlBase(c); @@ -95,7 +95,7 @@ void controlBaseDisable(uiControl *c) uiControlUpdateState(c); } -void controlBaseUpdateState(uiControl *c) +void uiControlBaseUpdateState(uiControl *c) { if (uiControlContainerVisible(c)) uiControlCommitShow(c); @@ -108,7 +108,7 @@ void controlBaseUpdateState(uiControl *c) uiControlContainerUpdateState(c); } -void controlBaseContainerUpdateState(uiControl *c) +void uiControlBaseContainerUpdateState(uiControl *c) { - // by default not a contianer; do nothing + // by default not a container; do nothing }