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:
@@ -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 <[email protected]>
|
||||
// Caz <[email protected]>
|
||||
// Axel Dörfler <[email protected]>
|
||||
// Description: Global functions and variables for the Interface Kit
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -30,6 +31,7 @@
|
||||
#include <GraphicsDefs.h>
|
||||
#include <InterfaceDefs.h>
|
||||
#include <ServerProtocol.h>
|
||||
#include <ScrollBar.h>
|
||||
#include <Screen.h>
|
||||
#include <PortMessage.h>
|
||||
#include <Roster.h>
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user