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
This commit is contained in:
Axel Dörfler
2004-06-27 21:23:25 +00:00
parent 63b2f72c39
commit bb776f87af
+21 -3
View File
@@ -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 // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),
@@ -22,6 +22,7 @@
// File Name: Globals.cpp // File Name: Globals.cpp
// Author: DarkWyrm <[email protected]> // Author: DarkWyrm <[email protected]>
// Caz <[email protected]> // Caz <[email protected]>
// Axel Dörfler <[email protected]>
// Description: Global functions and variables for the Interface Kit // Description: Global functions and variables for the Interface Kit
// //
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@@ -30,6 +31,7 @@
#include <GraphicsDefs.h> #include <GraphicsDefs.h>
#include <InterfaceDefs.h> #include <InterfaceDefs.h>
#include <ServerProtocol.h> #include <ServerProtocol.h>
#include <ScrollBar.h>
#include <Screen.h> #include <Screen.h>
#include <PortMessage.h> #include <PortMessage.h>
#include <Roster.h> #include <Roster.h>
@@ -91,11 +93,27 @@ 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 _IMPEXP_BE status_t
set_scroll_bar_info(scroll_bar_info *info) set_scroll_bar_info(scroll_bar_info *info)
{ {
if(!info) if (info == NULL)
return B_ERROR; return B_BAD_VALUE;
BAppServerLink link; BAppServerLink link;
PortMessage msg; PortMessage msg;