p->common.color.B = GLCOMPSET_BUTTON_COLOR_B;
p->common.color.A = GLCOMPSET_BUTTON_COLOR_ALPHA;
- p->common.borderType = glBorderSolid;
-
p->common.borderWidth = GLCOMPSET_BUTTON_BEVEL;
p->common.width = w;
glFontVJustifyBottom, glFontVJustifyCenter } glCompVJustify;
typedef enum { glFontHJustifyNone, glFontHJustifyLeft,
glFontHJustifyRight, glFontHJustifyCenter } glCompHJustify;
- typedef enum { glBorderNone, glBorderSolid, glBorderBevel,
- glBorderCustom } glCompBorderType;
typedef enum { glMouseDown, glMouseUp } glCompMouseStatus;
typedef enum { glMouseLeftButton, glMouseRightButton,
glCompPoint refPos; /*calculated pos after anchors and aligns */
GLfloat width, height;
GLfloat borderWidth;
- glCompBorderType borderType;
glCompColor color;
int enabled;
int visible;
child->refPos.y = child->pos.y;
return;
}
- if (parent->borderType == glBorderNone)
- borderWidth = 0.0f;
- else
- borderWidth = parent->borderWidth;
+ borderWidth = parent->borderWidth;
if (child->align != glAlignNone) //if alignment, make sure width and height is no greater than parent
{
if (child->width > parent->width)