/* CTK - The GIMP Toolkit
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * ctkorientable.h
 * Copyright (C) 2008 Imendio AB
 * Contact: Michael Natterer <mitch@imendio.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __CTK_ORIENTABLE_H__
#define __CTK_ORIENTABLE_H__

#if !defined (__CTK_H_INSIDE__) && !defined (CTK_COMPILATION)
#error "Only <ctk/ctk.h> can be included directly."
#endif

#include <ctk/ctkwidget.h>

G_BEGIN_DECLS

#define CTK_TYPE_ORIENTABLE             (ctk_orientable_get_type ())
#define CTK_ORIENTABLE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_ORIENTABLE, CtkOrientable))
#define CTK_ORIENTABLE_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), CTK_TYPE_ORIENTABLE, CtkOrientableIface))
#define CTK_IS_ORIENTABLE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_ORIENTABLE))
#define CTK_IS_ORIENTABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), CTK_TYPE_ORIENTABLE))
#define CTK_ORIENTABLE_GET_IFACE(inst)  (G_TYPE_INSTANCE_GET_INTERFACE ((inst), CTK_TYPE_ORIENTABLE, CtkOrientableIface))


typedef struct _CtkOrientable       CtkOrientable;         /* Dummy typedef */
typedef struct _CtkOrientableIface  CtkOrientableIface;

struct _CtkOrientableIface
{
  GTypeInterface base_iface;
};


CDK_AVAILABLE_IN_ALL
GType          ctk_orientable_get_type        (void) G_GNUC_CONST;

CDK_AVAILABLE_IN_ALL
void           ctk_orientable_set_orientation (CtkOrientable  *orientable,
                                               CtkOrientation  orientation);
CDK_AVAILABLE_IN_ALL
CtkOrientation ctk_orientable_get_orientation (CtkOrientable  *orientable);

G_END_DECLS

#endif /* __CTK_ORIENTABLE_H__ */
