From bb776f87afabfa20593d3e86e92e135262a232c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 27 Jun 2004 21:23:25 +0000 Subject: [PATCH] Added missing function get_scroll_bar_info() - it's not implemented correctly, though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8193 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Globals.cpp | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/Globals.cpp b/src/kits/interface/Globals.cpp index b991011be8..83f75d81d3 100644 --- a/src/kits/interface/Globals.cpp +++ b/src/kits/interface/Globals.cpp @@ -1,5 +1,5 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2001-2002, OpenBeOS +// Copyright (c) 2001-2004, Haiku // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -22,6 +22,7 @@ // File Name: Globals.cpp // Author: DarkWyrm // Caz +// Axel Dörfler // Description: Global functions and variables for the Interface Kit // //------------------------------------------------------------------------------ @@ -30,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -91,12 +93,28 @@ set_screen_space(int32 index, uint32 res, bool stick) } +status_t +get_scroll_bar_info(scroll_bar_info *info) +{ + if (info == NULL) + return B_BAD_VALUE; + + // ToDo: implement get_scroll_bar_info() for real + info->proportional = true; + info->double_arrows = false; + info->knob = 0; + info->min_knob_size = (int32)B_V_SCROLL_BAR_WIDTH; + + return B_ERROR; +} + + _IMPEXP_BE status_t set_scroll_bar_info(scroll_bar_info *info) { - if(!info) - return B_ERROR; - + if (info == NULL) + return B_BAD_VALUE; + BAppServerLink link; PortMessage msg;