Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 76933df631
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (38 sloc) 1.62 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/* $Id: glCompTrackBar.c,v 1.9 2011/01/25 16:30:48 ellson Exp $Revision: */
/* vim:set shiftwidth=4 ts=8: */

/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
#include "glCompTrackBar.h"
#include "glcomptext.h"
#include "memory.h"

glCompTrackBar *glCompTrackBarNew(GLfloat x, GLfloat y, GLfloat w,
GLfloat h, glCompOrientation orientation)
{
    glCompTrackBar *p;
    p = NEW(glCompTrackBar);
    /*default color values for a panel */
    p->color.R = GLCOMPSET_PANEL_COLOR_R;
    p->color.G = GLCOMPSET_PANEL_COLOR_G;
    p->color.B = GLCOMPSET_PANEL_COLOR_B;
    p->color.A = GLCOMPSET_PANEL_COLOR_ALPHA;
    p->shadowcolor.R = GLCOMPSET_PANEL_SHADOW_COLOR_R;
    p->shadowcolor.G = GLCOMPSET_PANEL_SHADOW_COLOR_G;
    p->shadowcolor.B = GLCOMPSET_PANEL_SHADOW_COLOR_B;
    p->shadowcolor.A = GLCOMPSET_PANEL_SHADOW_COLOR_A;
    p->bevel = GLCOMPSET_PANEL_BEVEL;
    p->outerpanel->pos.x = x;
    p->outerpanel->pos.y = y;
    p->outerpanel->width = w;
    p->outerpanel->height = h;
    p->indicator->width = p->outerpanel->width - 2 * GLCOMPSET_DEFAULT_PAD;
    p->indicator->shadowwidth = 0;

    p->font = font_init();
    return NULL;
}
Something went wrong with that request. Please try again.