Style improvements.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25171 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006, Haiku. All rights reserved.
|
* Copyright 2006-2008, Haiku. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,7 @@ class BIconUtils {
|
|||||||
BIconUtils(const BIconUtils&);
|
BIconUtils(const BIconUtils&);
|
||||||
BIconUtils& operator=(const BIconUtils&);
|
BIconUtils& operator=(const BIconUtils&);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Utility function to import an icon from the node that
|
// Utility function to import an icon from the node that
|
||||||
// has either of the provided attribute names. Which icon type
|
// has either of the provided attribute names. Which icon type
|
||||||
@@ -33,8 +33,7 @@ class BIconUtils {
|
|||||||
const char* vectorIconAttrName,
|
const char* vectorIconAttrName,
|
||||||
const char* smallIconAttrName,
|
const char* smallIconAttrName,
|
||||||
const char* largeIconAttrName,
|
const char* largeIconAttrName,
|
||||||
icon_size size,
|
icon_size size, BBitmap* result);
|
||||||
BBitmap* result);
|
|
||||||
|
|
||||||
// Utility functions to import a vector icon in "flat icon"
|
// Utility functions to import a vector icon in "flat icon"
|
||||||
// format from a BNode attribute or from a flat buffer in
|
// format from a BNode attribute or from a flat buffer in
|
||||||
@@ -46,12 +45,10 @@ class BIconUtils {
|
|||||||
// width, the bitmap should have square dimension, or the
|
// width, the bitmap should have square dimension, or the
|
||||||
// icon will be cut off at the bottom (or have room left).
|
// icon will be cut off at the bottom (or have room left).
|
||||||
static status_t GetVectorIcon(BNode* node,
|
static status_t GetVectorIcon(BNode* node,
|
||||||
const char* attrName,
|
const char* attrName, BBitmap* result);
|
||||||
BBitmap* result);
|
|
||||||
|
|
||||||
static status_t GetVectorIcon(const uint8* buffer,
|
static status_t GetVectorIcon(const uint8* buffer,
|
||||||
size_t size,
|
size_t size, BBitmap* result);
|
||||||
BBitmap* result);
|
|
||||||
|
|
||||||
// Utility function to import an "old" BeOS icon in B_CMAP8
|
// Utility function to import an "old" BeOS icon in B_CMAP8
|
||||||
// colorspace from either the small icon attribute or the
|
// colorspace from either the small icon attribute or the
|
||||||
@@ -61,8 +58,7 @@ class BIconUtils {
|
|||||||
static status_t GetCMAP8Icon(BNode* node,
|
static status_t GetCMAP8Icon(BNode* node,
|
||||||
const char* smallIconAttrName,
|
const char* smallIconAttrName,
|
||||||
const char* largeIconAttrName,
|
const char* largeIconAttrName,
|
||||||
icon_size size,
|
icon_size size, BBitmap* icon);
|
||||||
BBitmap* icon);
|
|
||||||
|
|
||||||
// Utility functions to convert from old icon colorspace
|
// Utility functions to convert from old icon colorspace
|
||||||
// into colorspace of BBitmap "result" (should be B_RGBA32
|
// into colorspace of BBitmap "result" (should be B_RGBA32
|
||||||
@@ -72,13 +68,11 @@ class BIconUtils {
|
|||||||
|
|
||||||
static status_t ConvertFromCMAP8(const uint8* data,
|
static status_t ConvertFromCMAP8(const uint8* data,
|
||||||
uint32 width, uint32 height,
|
uint32 width, uint32 height,
|
||||||
uint32 bytesPerRow,
|
uint32 bytesPerRow, BBitmap* result);
|
||||||
BBitmap* result);
|
|
||||||
|
|
||||||
static status_t ConvertToCMAP8(const uint8* data,
|
static status_t ConvertToCMAP8(const uint8* data,
|
||||||
uint32 width, uint32 height,
|
uint32 width, uint32 height,
|
||||||
uint32 bytesPerRow,
|
uint32 bytesPerRow, BBitmap* result);
|
||||||
BBitmap* result);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ICON_UTILS_H
|
#endif // ICON_UTILS_H
|
||||||
|
|||||||
Reference in New Issue
Block a user