* First steps towards a more flexible workspaces view handling: the
workspaces view can now be any view in the hierarchy. * Added private view flag kWorkspacesViewFlag that identifies such a view - note though, that you must not remove a view before closing or hiding its window for now (and that you still need to set the kWorkspacesWindowFlag, too). * Fixed Workspaces check for valid screen coordinates; after a crash, it managed to open its window offscreen for me. * Added a ViewLayer method FindView() that finds a view with the specified flags set. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2006, Haiku.
|
||||
* Copyright 2003-2008, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -10,8 +10,6 @@
|
||||
#define VIEW_PRIVATE_H
|
||||
|
||||
|
||||
#include <PortLink.h>
|
||||
|
||||
#include <Font.h>
|
||||
#include <InterfaceDefs.h>
|
||||
#include <Point.h>
|
||||
@@ -20,6 +18,9 @@
|
||||
|
||||
const static uint32 kDeleteReplicant = 'JAHA';
|
||||
|
||||
const static uint32 kWorkspacesViewFlag = 0x40000000UL;
|
||||
// was/is _B_RESERVED1_ in View.h
|
||||
|
||||
enum {
|
||||
B_VIEW_FONT_BIT = 0x00000001,
|
||||
B_VIEW_HIGH_COLOR_BIT = 0x00000002,
|
||||
@@ -48,6 +49,8 @@ enum {
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
class PortLink;
|
||||
|
||||
class ViewState {
|
||||
public:
|
||||
ViewState();
|
||||
|
||||
Reference in New Issue
Block a user