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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
/*
* $Id: ctkscrolledwindow.h,v 1.10 2000/07/26 22:31:16 terpstra Exp $
*
* CTK - Console Toolkit
*
* Copyright (C) 1998-2000 Stormix Technologies Inc.
*
* License: LGPL
*
* Authors: Kevin Lindsay, Wesley Terpstra
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __CTKSCROLLEDWINDOW_H__
#define __CTKSCROLLEDWINDOW_H__
#include "ctkadjustment.h"
struct CtkScrolledWindow_S {
CtkBin bin;
CtkAdjustment *hadjustment;
CtkAdjustment *vadjustment;
CtkPolicyType hscrollbar_policy;
CtkPolicyType vscrollbar_policy;
/* These are 0 or 1 (can use in adds) */
gint hscrollbar_shown;
gint vscrollbar_shown;
gboolean locked_vertical;
gboolean locked_horizontal;
};
#define CTK_SCROLLED_WINDOW(obj) CTK_CHECK_CAST((obj),CtkScrolledWindow,CtkTypeScrolledWindow)
typedef struct CtkScrolledWindow_S CtkScrolledWindow;
void ctk_scrolled_window_init(CtkScrolledWindow *scrolledwindow);
void ctk_scrolled_window_scroll(CtkWidget *widget, CtkTypeScroll scroll_type);
CtkWidget *ctk_scrolled_window_new(CtkAdjustment *hadjustment,
CtkAdjustment *vadjustment);
void ctk_scrolled_window_set_policy(CtkScrolledWindow *scrolled_window,
CtkPolicyType hscrollbar_policy,
CtkPolicyType vscrollbar_policy);
void ctk_scrolled_window_set_vadjustment(CtkScrolledWindow *scrolled_window,
CtkAdjustment *vadjustment);
void ctk_scrolled_window_set_hadjustment(CtkScrolledWindow *scrolled_window,
CtkAdjustment *hadjustment);
void ctk_scrolled_window_add_with_viewport(CtkScrolledWindow *scrolled_window,
CtkWidget *child);
#define CTK_SCROLLED_WINDOW(obj) CTK_CHECK_CAST((obj),CtkScrolledWindow,CtkTypeScrolledWindow)
void ctk_scrolled_window_min_size(CtkWidget* widget);
void ctk_scrolled_window_real_size(CtkWidget* widget);
#endif
|