Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
/*
|
2012-03-20 04:30:22 +04:00
|
|
|
* Copyright 2009-2012, Haiku, Inc. All rights reserved.
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _CONTROL_LOOK_H
|
|
|
|
#define _CONTROL_LOOK_H
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
#include <Alignment.h>
|
|
|
|
#include <Font.h>
|
|
|
|
#include <Rect.h>
|
|
|
|
#include <Slider.h>
|
|
|
|
|
|
|
|
|
2013-12-22 05:01:13 +04:00
|
|
|
class BBitmap;
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
class BControl;
|
|
|
|
class BGradientLinear;
|
|
|
|
class BView;
|
|
|
|
|
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
// WARNING! This is experimental API and may change! Be prepared to
|
|
|
|
// recompile your software in a next version of haiku.
|
|
|
|
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
namespace BPrivate {
|
|
|
|
|
|
|
|
|
|
|
|
class BControlLook {
|
|
|
|
public:
|
|
|
|
BControlLook();
|
|
|
|
virtual ~BControlLook();
|
|
|
|
|
2010-04-08 14:03:43 +04:00
|
|
|
// TODO: Probably more convenient to pull these enums into global
|
|
|
|
// namespace and rename them to e.g. "B_CONTROL_LOOK_FOCUSED" instead of
|
|
|
|
// "BControlLook::B_FOCUSED".
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
enum frame_type {
|
|
|
|
B_BUTTON_FRAME,
|
2013-12-22 04:57:36 +04:00
|
|
|
B_GROUP_FRAME,
|
|
|
|
B_MENU_FIELD_FRAME,
|
|
|
|
B_SCROLL_VIEW_FRAME,
|
|
|
|
B_TEXT_CONTROL_FRAME,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
enum background_type {
|
|
|
|
B_BUTTON_BACKGROUND,
|
|
|
|
B_MENU_BACKGROUND,
|
2013-12-22 04:57:36 +04:00
|
|
|
B_MENU_BAR_BACKGROUND,
|
|
|
|
B_MENU_FIELD_BACKGROUND,
|
|
|
|
B_MENU_ITEM_BACKGROUND,
|
|
|
|
B_HORIZONTAL_SCROLL_BAR_BACKGROUND,
|
|
|
|
B_VERTICAL_SCROLL_BAR_BACKGROUND,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
B_LEFT_BORDER = 1 << 0,
|
|
|
|
B_RIGHT_BORDER = 1 << 1,
|
|
|
|
B_TOP_BORDER = 1 << 2,
|
|
|
|
B_BOTTOM_BORDER = 1 << 3,
|
|
|
|
|
|
|
|
B_ALL_BORDERS = B_LEFT_BORDER | B_RIGHT_BORDER
|
|
|
|
| B_TOP_BORDER | B_BOTTOM_BORDER
|
|
|
|
};
|
|
|
|
|
2009-03-21 20:22:56 +03:00
|
|
|
enum {
|
|
|
|
B_LEFT_ARROW = 0,
|
|
|
|
B_RIGHT_ARROW = 1,
|
|
|
|
B_UP_ARROW = 2,
|
2013-04-07 08:34:13 +04:00
|
|
|
B_DOWN_ARROW = 3,
|
|
|
|
B_LEFT_UP_ARROW = 4,
|
|
|
|
B_RIGHT_UP_ARROW = 5,
|
|
|
|
B_RIGHT_DOWN_ARROW = 6,
|
|
|
|
B_LEFT_DOWN_ARROW = 7
|
2009-03-21 20:22:56 +03:00
|
|
|
};
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
enum {
|
2013-12-21 05:06:59 +04:00
|
|
|
B_FOCUSED = 1 << 0,
|
|
|
|
B_CLICKED = 1 << 1, // some controls activate on mouse up
|
|
|
|
B_ACTIVATED = 1 << 2,
|
|
|
|
B_HOVER = 1 << 3,
|
|
|
|
B_DISABLED = 1 << 4,
|
|
|
|
B_DEFAULT_BUTTON = 1 << 5,
|
|
|
|
B_IGNORE_OUTLINE = 1 << 6,
|
|
|
|
B_PARTIALLY_ACTIVATED = 1 << 7, // like B_ACTIVATED, but for tri-state
|
2013-12-29 03:02:35 +04:00
|
|
|
B_FLAT = 1 << 8, // flat look (e.g. button background)
|
2009-03-28 22:37:43 +03:00
|
|
|
|
|
|
|
B_BLEND_FRAME = 1 << 16
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
virtual BAlignment DefaultLabelAlignment() const;
|
|
|
|
virtual float DefaultLabelSpacing() const;
|
2009-10-17 21:01:22 +04:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
// TODO: Make methods virtual before R1 release
|
|
|
|
/*virtual*/ float DefaultItemSpacing() const;
|
2011-06-08 00:40:56 +04:00
|
|
|
|
|
|
|
static float ComposeSpacing(float spacing);
|
2009-10-17 21:01:22 +04:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ uint32 Flags(BControl* control) const;
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2009-02-16 16:57:31 +03:00
|
|
|
virtual void DrawButtonFrame(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
2009-03-26 02:34:19 +03:00
|
|
|
const rgb_color& background,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawButtonFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float radius,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& background,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
/*virtual*/ void DrawButtonFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& background,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawButtonBackground(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawButtonBackground(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float radius,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawButtonBackground(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
2012-03-20 04:30:22 +04:00
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawMenuBarBackground(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
2009-03-18 20:18:06 +03:00
|
|
|
uint32 flags = 0,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2009-02-16 16:57:31 +03:00
|
|
|
virtual void DrawMenuFieldFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
2009-03-26 02:34:19 +03:00
|
|
|
const rgb_color& background,
|
2009-02-16 16:57:31 +03:00
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawMenuFieldFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float radius,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& background,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
/*virtual*/ void DrawMenuFieldFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& background,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
2009-02-16 16:57:31 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawMenuFieldBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, bool popupIndicator,
|
|
|
|
uint32 flags = 0);
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawMenuFieldBackground(BView* view,
|
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
float radius, const rgb_color& base,
|
|
|
|
bool popupIndicator, uint32 flags = 0);
|
|
|
|
/*virtual*/ void DrawMenuFieldBackground(BView* view,
|
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base,
|
|
|
|
bool popupIndicator, uint32 flags = 0);
|
|
|
|
virtual void DrawMenuFieldBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawMenuBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawMenuItemBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawStatusBar(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& barColor,
|
|
|
|
float progressPosition);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawCheckBox(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawRadioButton(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawScrollBarBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect1, BRect& rect2,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawScrollBarBackground(BView* view,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawScrollViewFrame(BView* view,
|
2009-03-23 14:19:31 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
BRect verticalScrollBarFrame,
|
|
|
|
BRect horizontalScrollBarFrame,
|
|
|
|
const rgb_color& base,
|
|
|
|
border_style border,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawArrowShape(BView* view,
|
2009-03-21 20:22:56 +03:00
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 direction,
|
|
|
|
uint32 flags = 0,
|
|
|
|
float tint = B_DARKEN_MAX_TINT);
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
virtual rgb_color SliderBarColor(const rgb_color& base);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawSliderBar(BView* view, BRect rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
rgb_color leftFillColor,
|
|
|
|
rgb_color rightFillColor,
|
|
|
|
float sliderScale, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
virtual void DrawSliderBar(BView* view, BRect rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, rgb_color fillColor,
|
2013-07-09 02:27:55 +04:00
|
|
|
uint32 flags, orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
|
|
|
virtual void DrawSliderThumb(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawSliderTriangle(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
2009-02-24 14:09:27 +03:00
|
|
|
virtual void DrawSliderTriangle(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
const rgb_color& fill, uint32 flags,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
|
|
|
virtual void DrawSliderHashMarks(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, int32 count,
|
|
|
|
hash_mark_location location,
|
2013-07-09 02:27:55 +04:00
|
|
|
uint32 flags, orientation orientation);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawActiveTab(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawInactiveTab(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2009-06-20 19:03:33 +04:00
|
|
|
/*virtual*/ void DrawSplitter(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation,
|
2009-06-20 19:03:33 +04:00
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
// various borders
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawBorder(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
border_style border, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawRaisedBorder(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawGroupFrame(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawTextControlBorder(BView* view, BRect& rect,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
|
|
|
// aligned labels
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawLabel(BView* view, const char* label,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags);
|
2012-03-20 04:30:22 +04:00
|
|
|
virtual void DrawLabel(BView* view, const char* label,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
BRect rect, const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
|
|
|
const BAlignment& alignment);
|
2010-01-23 15:48:18 +03:00
|
|
|
// TODO: Would be nice to have a (non-virtual) version of this method
|
|
|
|
// which takes an array of labels and locations. That would save some
|
|
|
|
// setup with the view graphics state.
|
2012-03-20 04:30:22 +04:00
|
|
|
/*virtual*/ void DrawLabel(BView* view, const char* label,
|
2010-01-23 15:48:18 +03:00
|
|
|
const rgb_color& base, uint32 flags,
|
|
|
|
const BPoint& where);
|
|
|
|
|
2013-12-22 05:01:13 +04:00
|
|
|
void DrawLabel(BView* view, const char* label,
|
|
|
|
const BBitmap* icon, BRect rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags);
|
|
|
|
virtual void DrawLabel(BView* view, const char* label,
|
|
|
|
const BBitmap* icon, BRect rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& base, uint32 flags,
|
|
|
|
const BAlignment& alignment);
|
|
|
|
|
2013-12-22 04:57:36 +04:00
|
|
|
virtual void GetFrameInsets(frame_type frameType,
|
|
|
|
uint32 flags, float& _left, float& _top,
|
|
|
|
float& _right, float& _bottom);
|
|
|
|
virtual void GetBackgroundInsets(
|
|
|
|
background_type backgroundType,
|
|
|
|
uint32 flags, float& _left, float& _top,
|
|
|
|
float& _right, float& _bottom);
|
|
|
|
void GetInsets(frame_type frameType,
|
|
|
|
background_type backgroundType,
|
|
|
|
uint32 flags, float& _left, float& _top,
|
|
|
|
float& _right, float& _bottom);
|
|
|
|
|
2012-02-26 17:58:52 +04:00
|
|
|
void SetBackgroundInfo(
|
|
|
|
const BMessage& backgroundInfo);
|
2012-02-23 04:06:22 +04:00
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
protected:
|
2009-02-16 16:57:31 +03:00
|
|
|
void _DrawButtonFrame(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
2012-03-20 04:30:22 +04:00
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
2009-02-16 16:57:31 +03:00
|
|
|
const rgb_color& base,
|
2009-03-26 02:34:19 +03:00
|
|
|
const rgb_color& background,
|
2009-02-16 16:57:31 +03:00
|
|
|
float contrast, float brightness = 1.0,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
void _DrawOuterResessedFrame(BView* view,
|
|
|
|
BRect& rect, const rgb_color& base,
|
|
|
|
float contrast = 1.0f,
|
|
|
|
float brightness = 1.0f,
|
2009-03-28 22:37:43 +03:00
|
|
|
uint32 flags = 0,
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
|
|
|
void _DrawFrame(BView* view, BRect& rect,
|
|
|
|
const rgb_color& left,
|
|
|
|
const rgb_color& top,
|
|
|
|
const rgb_color& right,
|
|
|
|
const rgb_color& bottom,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
void _DrawFrame(BView* view, BRect& rect,
|
|
|
|
const rgb_color& left,
|
|
|
|
const rgb_color& top,
|
|
|
|
const rgb_color& right,
|
|
|
|
const rgb_color& bottom,
|
|
|
|
const rgb_color& rightTop,
|
|
|
|
const rgb_color& leftBottom,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
void _DrawButtonBackground(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base,
|
|
|
|
uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
2012-03-20 04:30:22 +04:00
|
|
|
|
|
|
|
void _DrawMenuFieldBackgroundOutside(BView* view,
|
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base,
|
|
|
|
bool popupIndicator = false,
|
|
|
|
uint32 flags = 0);
|
|
|
|
|
|
|
|
void _DrawMenuFieldBackgroundInside(BView* view,
|
|
|
|
BRect& rect, const BRect& updateRect,
|
|
|
|
float leftTopRadius,
|
|
|
|
float rightTopRadius,
|
|
|
|
float leftBottomRadius,
|
|
|
|
float rightBottomRadius,
|
|
|
|
const rgb_color& base, uint32 flags = 0,
|
|
|
|
uint32 borders = B_ALL_BORDERS);
|
|
|
|
|
|
|
|
// Rounded corner methods
|
|
|
|
void _DrawRoundCornerLeftTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeColor,
|
|
|
|
const rgb_color& frameColor,
|
|
|
|
const rgb_color& bevelColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerFrameLeftTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeColor,
|
|
|
|
const rgb_color& frameColor);
|
|
|
|
|
|
|
|
void _DrawRoundCornerBackgroundLeftTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& bevelColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerRightTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeTopColor,
|
|
|
|
const rgb_color& edgeRightColor,
|
|
|
|
const rgb_color& frameTopColor,
|
|
|
|
const rgb_color& frameRightColor,
|
|
|
|
const rgb_color& bevelTopColor,
|
|
|
|
const rgb_color& bevelRightColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerFrameRightTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeTopColor,
|
|
|
|
const rgb_color& edgeRightColor,
|
|
|
|
const rgb_color& frameTopColor,
|
|
|
|
const rgb_color& frameRightColor);
|
|
|
|
|
|
|
|
void _DrawRoundCornerBackgroundRightTop(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& bevelTopColor,
|
|
|
|
const rgb_color& bevelRightColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerLeftBottom(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeLeftColor,
|
|
|
|
const rgb_color& edgeBottomColor,
|
|
|
|
const rgb_color& frameLeftColor,
|
|
|
|
const rgb_color& frameBottomColor,
|
|
|
|
const rgb_color& bevelLeftColor,
|
|
|
|
const rgb_color& bevelBottomColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerFrameLeftBottom(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeLeftColor,
|
|
|
|
const rgb_color& edgeBottomColor,
|
|
|
|
const rgb_color& frameLeftColor,
|
|
|
|
const rgb_color& frameBottomColor);
|
|
|
|
|
|
|
|
void _DrawRoundCornerBackgroundLeftBottom(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& bevelLeftColor,
|
|
|
|
const rgb_color& bevelBottomColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerRightBottom(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeColor,
|
|
|
|
const rgb_color& frameColor,
|
|
|
|
const rgb_color& bevelColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundCornerFrameRightBottom(BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& background,
|
|
|
|
const rgb_color& edgeColor,
|
|
|
|
const rgb_color& frameColor);
|
|
|
|
|
|
|
|
void _DrawRoundCornerBackgroundRightBottom(
|
|
|
|
BView* view,
|
|
|
|
BRect& cornerRect, const BRect& updateRect,
|
|
|
|
const rgb_color& bevelColor,
|
|
|
|
const BGradientLinear& fillGradient);
|
|
|
|
|
|
|
|
void _DrawRoundBarCorner(BView* view, BRect& rect,
|
|
|
|
const BRect& updateRect,
|
|
|
|
const rgb_color& edgeLightColor,
|
|
|
|
const rgb_color& edgeShadowColor,
|
|
|
|
const rgb_color& frameLightColor,
|
|
|
|
const rgb_color& frameShadowColor,
|
|
|
|
const rgb_color& fillLightColor,
|
|
|
|
const rgb_color& fillShadowColor,
|
|
|
|
float leftInset, float topInset,
|
|
|
|
float rightInset, float bottomInset,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation);
|
2012-03-20 04:30:22 +04:00
|
|
|
|
|
|
|
// Border color methods
|
|
|
|
rgb_color _EdgeLightColor(const rgb_color& base,
|
|
|
|
float contrast, float brightness,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
rgb_color _EdgeShadowColor(const rgb_color& base,
|
|
|
|
float contrast, float brightness,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
rgb_color _FrameLightColor(const rgb_color& base,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
rgb_color _FrameShadowColor(const rgb_color& base,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
rgb_color _BevelLightColor(const rgb_color& base,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
rgb_color _BevelShadowColor(const rgb_color& base,
|
|
|
|
uint32 flags);
|
|
|
|
|
|
|
|
// Background gradient methods
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
void _FillGradient(BView* view, const BRect& rect,
|
|
|
|
const rgb_color& base, float topTint,
|
|
|
|
float bottomTint,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
|
|
|
void _FillGlossyGradient(BView* view,
|
|
|
|
const BRect& rect, const rgb_color& base,
|
|
|
|
float topTint, float middle1Tint,
|
|
|
|
float middle2Tint, float bottomTint,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL);
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
|
|
|
void _MakeGradient(BGradientLinear& gradient,
|
|
|
|
const BRect& rect, const rgb_color& base,
|
|
|
|
float topTint, float bottomTint,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL) const;
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
|
|
|
void _MakeGlossyGradient(BGradientLinear& gradient,
|
|
|
|
const BRect& rect, const rgb_color& base,
|
|
|
|
float topTint, float middle1Tint,
|
|
|
|
float middle2Tint, float bottomTint,
|
2013-07-09 02:27:55 +04:00
|
|
|
orientation orientation = B_HORIZONTAL) const;
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
void _MakeButtonGradient(BGradientLinear& gradient,
|
|
|
|
BRect& rect, const rgb_color& base,
|
2013-07-09 02:27:55 +04:00
|
|
|
uint32 flags, orientation orientation = B_HORIZONTAL) const;
|
2012-03-20 04:30:22 +04:00
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
bool _RadioButtonAndCheckBoxMarkColor(
|
|
|
|
const rgb_color& base, rgb_color& color,
|
|
|
|
uint32 flags) const;
|
|
|
|
|
2012-02-23 04:06:22 +04:00
|
|
|
private:
|
|
|
|
bool fCachedOutline;
|
|
|
|
int32 fCachedWorkspace;
|
|
|
|
BMessage fBackgroundInfo;
|
2012-02-26 17:58:52 +04:00
|
|
|
|
|
|
|
uint32 _reserved[20];
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
extern BControlLook* be_control_look;
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
using BPrivate::BControlLook;
|
|
|
|
using BPrivate::be_control_look;
|
|
|
|
|
2012-03-20 04:30:22 +04:00
|
|
|
|
Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 21:23:19 +03:00
|
|
|
#endif // _CONTROL_LOOK_H
|