23324ae1c7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
823 lines
22 KiB
Objective-C
823 lines
22 KiB
Objective-C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: gdicmn.h
|
|
// Purpose: documentation for wxRealPoint class
|
|
// Author: wxWidgets team
|
|
// RCS-ID: $Id$
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/**
|
|
@class wxRealPoint
|
|
@wxheader{gdicmn.h}
|
|
|
|
A @b wxRealPoint is a useful data structure for graphics operations.
|
|
It contains floating point @e x and @e y members.
|
|
See also wxPoint for an integer version.
|
|
|
|
@library{wxcore}
|
|
@category{data}
|
|
|
|
@seealso
|
|
wxPoint
|
|
*/
|
|
class wxRealPoint
|
|
{
|
|
public:
|
|
//@{
|
|
/**
|
|
Create a point.
|
|
|
|
double x
|
|
|
|
double y
|
|
|
|
Members of the @b wxRealPoint object.
|
|
*/
|
|
wxRealPoint();
|
|
wxRealPoint(double x, double y);
|
|
//@}
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxRect
|
|
@wxheader{gdicmn.h}
|
|
|
|
A class for manipulating rectangles.
|
|
|
|
@library{wxcore}
|
|
@category{data}
|
|
|
|
@seealso
|
|
wxPoint, wxSize
|
|
*/
|
|
class wxRect
|
|
{
|
|
public:
|
|
//@{
|
|
/**
|
|
Creates a wxRect object from size values at the origin.
|
|
*/
|
|
wxRect();
|
|
wxRect(int x, int y, int width, int height);
|
|
wxRect(const wxPoint& topLeft, const wxPoint& bottomRight);
|
|
wxRect(const wxPoint& pos, const wxSize& size);
|
|
wxRect(const wxSize& size);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Returns the rectangle having the same size as this one but centered relatively
|
|
to the given rectangle @e r. By default, rectangle is centred in both
|
|
directions but if @e dir includes only @c wxVERTICAL or only
|
|
@c wxHORIZONTAL flag, then it is only centered in this direction while
|
|
the other component of its position remains unchanged.
|
|
*/
|
|
wxRect CentreIn(const wxRect& r, int dir = wxBOTH);
|
|
wxRect CenterIn(const wxRect& r, int dir = wxBOTH);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Returns @true if the given rectangle is completely inside this rectangle
|
|
(or touches its boundary) and @false otherwise.
|
|
*/
|
|
bool Contains(int x, int y);
|
|
bool Contains(const wxPoint& pt);
|
|
bool Contains(const wxRect& rect);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Decrease the rectangle size.
|
|
|
|
This method is the opposite from Inflate():
|
|
Deflate(a, b) is equivalent to Inflate(-a, -b).
|
|
Please refer to Inflate() for full description.
|
|
|
|
@sa Inflate()
|
|
*/
|
|
void Deflate(wxCoord dx, wxCoord dy);
|
|
void Deflate(const wxSize& diff);
|
|
void Deflate(wxCoord diff);
|
|
wxRect Deflate(wxCoord dx, wxCoord dy);
|
|
//@}
|
|
|
|
/**
|
|
Gets the bottom point of the rectangle.
|
|
*/
|
|
int GetBottom();
|
|
|
|
/**
|
|
Gets the position of the bottom left corner.
|
|
*/
|
|
wxPoint GetBottomLeft();
|
|
|
|
/**
|
|
Gets the position of the bottom right corner.
|
|
*/
|
|
wxPoint GetBottomRight();
|
|
|
|
/**
|
|
Gets the height member.
|
|
*/
|
|
int GetHeight();
|
|
|
|
/**
|
|
Gets the left point of the rectangle (the same as wxRect::GetX).
|
|
*/
|
|
int GetLeft();
|
|
|
|
/**
|
|
Gets the position.
|
|
*/
|
|
wxPoint GetPosition();
|
|
|
|
/**
|
|
Gets the right point of the rectangle.
|
|
*/
|
|
int GetRight();
|
|
|
|
/**
|
|
Gets the size.
|
|
|
|
@sa SetSize()
|
|
*/
|
|
wxSize GetSize();
|
|
|
|
/**
|
|
Gets the top point of the rectangle (the same as wxRect::GetY).
|
|
*/
|
|
int GetTop();
|
|
|
|
/**
|
|
Gets the position of the top left corner of the rectangle, same as
|
|
GetPosition().
|
|
*/
|
|
wxPoint GetTopLeft();
|
|
|
|
/**
|
|
Gets the position of the top right corner.
|
|
*/
|
|
wxPoint GetTopRight();
|
|
|
|
/**
|
|
Gets the width member.
|
|
*/
|
|
int GetWidth();
|
|
|
|
/**
|
|
Gets the x member.
|
|
*/
|
|
#define int GetX() /* implementation is private */
|
|
|
|
/**
|
|
Gets the y member.
|
|
*/
|
|
#define int GetY() /* implementation is private */
|
|
|
|
//@{
|
|
/**
|
|
Increases the size of the rectangle.
|
|
|
|
The second form uses the same @e diff for both @e dx and @e dy.
|
|
|
|
The first two versions modify the rectangle in place, the last one returns a
|
|
new rectangle leaving this one unchanged.
|
|
|
|
The left border is moved farther left and the right border is moved farther
|
|
right by @e dx. The upper border is moved farther up and the bottom border
|
|
is moved farther down by @e dy. (Note the the width and height of the
|
|
rectangle thus change by 2*@e dx and 2*@e dy, respectively.) If one or
|
|
both of @e dx and @e dy are negative, the opposite happens: the rectangle
|
|
size decreases in the respective direction.
|
|
|
|
Inflating and deflating behaves "naturally''. Defined more precisely, that
|
|
means:
|
|
|
|
"Real'' inflates (that is, @e dx and/or @e dy = 0) are not
|
|
constrained. Thus inflating a rectangle can cause its upper left corner
|
|
to move into the negative numbers. (the versions prior to 2.5.4 forced
|
|
the top left coordinate to not fall below (0, 0), which implied a
|
|
forced move of the rectangle.)
|
|
|
|
Deflates are clamped to not reduce the width or height of the
|
|
rectangle below zero. In such cases, the top-left corner is nonetheless
|
|
handled properly. For example, a rectangle at (10, 10) with size (20,
|
|
40) that is inflated by (-15, -15) will become located at (20, 25) at
|
|
size (0, 10). Finally, observe that the width and height are treated
|
|
independently. In the above example, the width is reduced by 20,
|
|
whereas the height is reduced by the full 30 (rather than also stopping
|
|
at 20, when the width reached zero).
|
|
|
|
@sa Deflate()
|
|
*/
|
|
void Inflate(wxCoord dx, wxCoord dy);
|
|
void Inflate(const wxSize& diff);
|
|
void Inflate(wxCoord diff);
|
|
wxRect Inflate(wxCoord dx, wxCoord dy);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Modifies the rectangle to contain the overlapping box of this rectangle and the
|
|
one passed in as parameter. The const version returns the new rectangle, the
|
|
other one modifies this rectangle in place.
|
|
*/
|
|
wxRect Intersect(const wxRect& rect);
|
|
wxRect Intersect(const wxRect& rect);
|
|
//@}
|
|
|
|
/**
|
|
Returns @true if this rectangle has a non-empty intersection with the
|
|
rectangle @e rect and @false otherwise.
|
|
*/
|
|
bool Intersects(const wxRect& rect);
|
|
|
|
/**
|
|
Returns @true if this rectangle has a width or height less than or equal to
|
|
0 and @false otherwise.
|
|
*/
|
|
bool IsEmpty();
|
|
|
|
//@{
|
|
/**
|
|
Moves the rectangle by the specified offset. If @e dx is positive, the
|
|
rectangle is moved to the right, if @e dy is positive, it is moved to the
|
|
bottom, otherwise it is moved to the left or top respectively.
|
|
*/
|
|
void Offset(wxCoord dx, wxCoord dy);
|
|
void Offset(const wxPoint& pt);
|
|
//@}
|
|
|
|
/**
|
|
Sets the height.
|
|
*/
|
|
void SetHeight(int height);
|
|
|
|
/**
|
|
Sets the size.
|
|
|
|
@sa GetSize()
|
|
*/
|
|
void SetSize(const wxSize& s);
|
|
|
|
/**
|
|
Sets the width.
|
|
*/
|
|
void SetWidth(int width);
|
|
|
|
/**
|
|
Sets the x position.
|
|
*/
|
|
#define void SetX(int x) /* implementation is private */
|
|
|
|
/**
|
|
Sets the y position.
|
|
*/
|
|
#define void SetY(int y) /* implementation is private */
|
|
|
|
//@{
|
|
/**
|
|
Modifies the rectangle to contain the bounding box of this rectangle and the
|
|
one passed in as parameter. The const version returns the new rectangle, the
|
|
other one modifies this rectangle in place.
|
|
*/
|
|
wxRect Union(const wxRect& rect);
|
|
wxRect Union(const wxRect& rect);
|
|
//@}
|
|
|
|
/**
|
|
int height
|
|
|
|
Height member.
|
|
*/
|
|
|
|
|
|
//@{
|
|
/**
|
|
Returns the intersection of two rectangles (which may be empty).
|
|
*/
|
|
bool operator !=(const wxRect& r1, const wxRect& r2);
|
|
wxRect operator +(const wxRect& r1, const wxRect& r2);
|
|
wxRect operator +=(const wxRect& r);
|
|
See also wxRect operator *(const wxRect& r1,
|
|
const wxRect& r2);
|
|
wxRect operator *=(const wxRect& r);
|
|
//@}
|
|
|
|
/**
|
|
Assignment operator.
|
|
*/
|
|
void operator =(const wxRect& rect);
|
|
|
|
/**
|
|
Equality operator.
|
|
*/
|
|
bool operator ==(const wxRect& r1, const wxRect& r2);
|
|
|
|
/**
|
|
int width
|
|
|
|
Width member.
|
|
*/
|
|
|
|
|
|
/**
|
|
int x
|
|
|
|
x coordinate of the top-level corner of the rectangle.
|
|
*/
|
|
|
|
|
|
/**
|
|
int y
|
|
|
|
y coordinate of the top-level corner of the rectangle.
|
|
*/
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxBrushList
|
|
@wxheader{gdicmn.h}
|
|
|
|
A brush list is a list containing all brushes which have been created.
|
|
|
|
@library{wxcore}
|
|
@category{gdi}
|
|
|
|
@seealso
|
|
wxBrush
|
|
*/
|
|
class wxBrushList : public wxList
|
|
{
|
|
public:
|
|
/**
|
|
Constructor. The application should not construct its own brush list:
|
|
use the object pointer @b wxTheBrushList.
|
|
*/
|
|
wxBrushList();
|
|
|
|
/**
|
|
Finds a brush with the specified attributes and returns it, else creates a new
|
|
brush, adds it
|
|
to the brush list, and returns it.
|
|
|
|
@param colour
|
|
Colour object.
|
|
|
|
@param style
|
|
Brush style. See wxBrush::SetStyle for a list of styles.
|
|
*/
|
|
wxBrush * FindOrCreateBrush(const wxColour& colour,
|
|
int style = wxSOLID);
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxPoint
|
|
@wxheader{gdicmn.h}
|
|
|
|
A @b wxPoint is a useful data structure for graphics operations.
|
|
It simply contains integer @e x and @e y members.
|
|
|
|
See also wxRealPoint for a floating point version.
|
|
|
|
@library{wxcore}
|
|
@category{data}
|
|
|
|
@seealso
|
|
wxRealPoint
|
|
*/
|
|
class wxPoint
|
|
{
|
|
public:
|
|
//@{
|
|
/**
|
|
Create a point.
|
|
*/
|
|
wxPoint();
|
|
wxPoint(int x, int y);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Operators for sum and subtraction between a wxPoint object and a
|
|
wxSize object.
|
|
*/
|
|
void operator =(const wxPoint& pt);
|
|
bool operator ==(const wxPoint& p1, const wxPoint& p2);
|
|
bool operator !=(const wxPoint& p1, const wxPoint& p2);
|
|
wxPoint operator +(const wxPoint& p1, const wxPoint& p2);
|
|
wxPoint operator -(const wxPoint& p1, const wxPoint& p2);
|
|
wxPoint operator +=(const wxPoint& pt);
|
|
wxPoint operator -=(const wxPoint& pt);
|
|
wxPoint operator +(const wxPoint& pt, const wxSize& sz);
|
|
wxPoint operator -(const wxPoint& pt, const wxSize& sz);
|
|
wxPoint operator +(const wxSize& sz, const wxPoint& pt);
|
|
wxPoint operator -(const wxSize& sz, const wxPoint& pt);
|
|
wxPoint operator +=(const wxSize& sz);
|
|
wxPoint operator -=(const wxSize& sz);
|
|
//@}
|
|
|
|
/**
|
|
int x
|
|
|
|
x member.
|
|
*/
|
|
|
|
|
|
/**
|
|
int y
|
|
|
|
y member.
|
|
*/
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxColourDatabase
|
|
@wxheader{gdicmn.h}
|
|
|
|
wxWidgets maintains a database of standard RGB colours for a predefined
|
|
set of named colours (such as "BLACK'', "LIGHT GREY''). The
|
|
application may add to this set if desired by using
|
|
wxColourDatabase::AddColour and may use it to look up
|
|
colours by names using wxColourDatabase::Find or find the names
|
|
for the standard colour suing wxColourDatabase::FindName.
|
|
|
|
There is one predefined instance of this class called
|
|
@b wxTheColourDatabase.
|
|
|
|
@library{wxcore}
|
|
@category{FIXME}
|
|
|
|
@seealso
|
|
wxColour
|
|
*/
|
|
class wxColourDatabase
|
|
{
|
|
public:
|
|
/**
|
|
Constructs the colour database. It will be initialized at the first use.
|
|
*/
|
|
wxColourDatabase();
|
|
|
|
//@{
|
|
/**
|
|
Adds a colour to the database. If a colour with the same name already exists,
|
|
it is replaced.
|
|
|
|
Please note that the overload taking a pointer is deprecated and will be
|
|
removed in the next wxWidgets version, please don't use it.
|
|
*/
|
|
void AddColour(const wxString& colourName,
|
|
const wxColour& colour);
|
|
void AddColour(const wxString& colourName, wxColour* colour);
|
|
//@}
|
|
|
|
/**
|
|
Finds a colour given the name. Returns an invalid colour object (that is, such
|
|
that its @ref wxColour::isok Ok method returns @false) if the colour wasn't
|
|
found in the database.
|
|
*/
|
|
wxColour Find(const wxString& colourName);
|
|
|
|
/**
|
|
Finds a colour name given the colour. Returns an empty string if the colour is
|
|
not found in the database.
|
|
*/
|
|
wxString FindName(const wxColour& colour);
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxFontList
|
|
@wxheader{gdicmn.h}
|
|
|
|
A font list is a list containing all fonts which have been created. There
|
|
is only one instance of this class: @b wxTheFontList. Use this object to search
|
|
for a previously created font of the desired type and create it if not already
|
|
found.
|
|
In some windowing systems, the font may be a scarce resource, so it is best to
|
|
reuse old resources if possible. When an application finishes, all fonts will
|
|
be
|
|
deleted and their resources freed, eliminating the possibility of 'memory
|
|
leaks'.
|
|
|
|
@library{wxcore}
|
|
@category{gdi}
|
|
|
|
@seealso
|
|
wxFont
|
|
*/
|
|
class wxFontList : public wxList
|
|
{
|
|
public:
|
|
/**
|
|
Constructor. The application should not construct its own font list:
|
|
use the object pointer @b wxTheFontList.
|
|
*/
|
|
wxFontList();
|
|
|
|
/**
|
|
Finds a font of the given specification, or creates one and adds it to the
|
|
list. See the @ref wxFont::ctor "wxFont constructor" for
|
|
details of the arguments.
|
|
*/
|
|
wxFont * FindOrCreateFont(int point_size, int family, int style,
|
|
int weight,
|
|
bool underline = @false,
|
|
const wxString& facename = @NULL,
|
|
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxSize
|
|
@wxheader{gdicmn.h}
|
|
|
|
A @b wxSize is a useful data structure for graphics operations.
|
|
It simply contains integer @e width and @e height members.
|
|
|
|
wxSize is used throughout wxWidgets as well as wxPoint which, although almost
|
|
equivalent to wxSize, has a different meaning: wxPoint represents a position
|
|
while wxSize - the size.
|
|
|
|
@b wxPython note: wxPython defines aliases for the @c x and @c y members
|
|
named @c width and @c height since it makes much more sense for
|
|
sizes.
|
|
|
|
|
|
@library{wxcore}
|
|
@category{data}
|
|
|
|
@seealso
|
|
wxPoint, wxRealPoint
|
|
*/
|
|
class wxSize
|
|
{
|
|
public:
|
|
//@{
|
|
/**
|
|
Creates a size object.
|
|
*/
|
|
wxSize();
|
|
wxSize(int width, int height);
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Decreases the size in x- and y- directions
|
|
|
|
By @e size.x and @e size.y for the first overload
|
|
By @e dx and @e dy for the second one
|
|
By @e d and @e d for the third one
|
|
|
|
@sa IncBy()
|
|
*/
|
|
void DecBy(const wxSize& size);
|
|
void DecBy(int dx, int dy);
|
|
void DecBy(int d);
|
|
//@}
|
|
|
|
/**
|
|
Decrements this object so that both of its dimensions are not greater than the
|
|
corresponding dimensions of the @e size.
|
|
|
|
@sa IncTo()
|
|
*/
|
|
void DecTo(const wxSize& size);
|
|
|
|
/**
|
|
Gets the height member.
|
|
*/
|
|
int GetHeight();
|
|
|
|
/**
|
|
Gets the width member.
|
|
*/
|
|
int GetWidth();
|
|
|
|
//@{
|
|
/**
|
|
Increases the size in x- and y- directions
|
|
|
|
By @e size.x and @e size.y for the first overload
|
|
By @e dx and @e dy for the second one
|
|
By @e d and @e d for the third one
|
|
|
|
@sa DecBy()
|
|
*/
|
|
void IncBy(const wxSize& size);
|
|
void IncBy(int dx, int dy);
|
|
void IncBy(int d);
|
|
//@}
|
|
|
|
/**
|
|
Increments this object so that both of its dimensions are not less than the
|
|
corresponding dimensions of the @e size.
|
|
|
|
@sa DecTo()
|
|
*/
|
|
void IncTo(const wxSize& size);
|
|
|
|
/**
|
|
Returns @true if neither of the size object components is equal to -1, which
|
|
is used as default for the size values in wxWidgets (hence the predefined
|
|
@c wxDefaultSize has both of its components equal to -1).
|
|
|
|
This method is typically used before calling
|
|
SetDefaults().
|
|
*/
|
|
bool IsFullySpecified();
|
|
|
|
//@{
|
|
/**
|
|
Operators for division and multiplication between a wxSize object and an
|
|
integer.
|
|
*/
|
|
void operator =(const wxSize& sz);
|
|
bool operator ==(const wxSize& s1, const wxSize& s2);
|
|
bool operator !=(const wxSize& s1, const wxSize& s2);
|
|
wxSize operator +(const wxSize& s1, const wxSize& s2);
|
|
wxSize operator -(const wxSize& s1, const wxSize& s2);
|
|
wxSize operator +=(const wxSize& sz);
|
|
wxSize operator -=(const wxSize& sz);
|
|
wxSize operator /(const wxSize& sz, int factor);
|
|
wxSize operator *(const wxSize& sz, int factor);
|
|
wxSize operator *(int factor, const wxSize& sz);
|
|
wxSize operator /=(int factor);
|
|
wxSize operator *=(int factor);
|
|
//@}
|
|
|
|
/**
|
|
Scales the dimensions of this object by the given factors.
|
|
If you want to scale both dimensions by the same factor you can also use
|
|
the @ref operators() "operator *="
|
|
|
|
Returns a reference to this object (so that you can concatenate other
|
|
operations in the same line).
|
|
*/
|
|
wxSize Scale(float xscale, float yscale);
|
|
|
|
/**
|
|
Sets the width and height members.
|
|
*/
|
|
#define void Set(int width, int height) /* implementation is private */
|
|
|
|
/**
|
|
Combine this size object with another one replacing the default (i.e. equal
|
|
to -1) components of this object with those of the other. It is typically
|
|
used like this:
|
|
|
|
@sa IsFullySpecified()
|
|
*/
|
|
void SetDefaults(const wxSize& sizeDefault);
|
|
|
|
/**
|
|
Sets the height.
|
|
*/
|
|
void SetHeight(int height);
|
|
|
|
/**
|
|
Sets the width.
|
|
*/
|
|
void SetWidth(int width);
|
|
};
|
|
|
|
|
|
/**
|
|
@class wxPenList
|
|
@wxheader{gdicmn.h}
|
|
|
|
There is only one instance of this class: @b wxThePenList. Use
|
|
this object to search for a previously created pen of the desired
|
|
type and create it if not already found. In some windowing systems,
|
|
the pen may be a scarce resource, so it can pay to reuse old
|
|
resources if possible. When an application finishes, all pens will
|
|
be deleted and their resources freed, eliminating the possibility of
|
|
'memory leaks'. However, it is best not to rely on this automatic
|
|
cleanup because it can lead to double deletion in some circumstances.
|
|
|
|
There are two mechanisms in recent versions of wxWidgets which make the
|
|
pen list less useful than it once was. Under Windows, scarce resources
|
|
are cleaned up internally if they are not being used. Also, a referencing
|
|
counting mechanism applied to all GDI objects means that some sharing
|
|
of underlying resources is possible. You don't have to keep track of pointers,
|
|
working out when it is safe delete a pen, because the referencing counting does
|
|
it for you. For example, you can set a pen in a device context, and then
|
|
immediately delete the pen you passed, because the pen is 'copied'.
|
|
|
|
So you may find it easier to ignore the pen list, and instead create
|
|
and copy pens as you see fit. If your Windows resource meter suggests
|
|
your application is using too many resources, you can resort to using
|
|
GDI lists to share objects explicitly.
|
|
|
|
The only compelling use for the pen list is for wxWidgets to keep
|
|
track of pens in order to clean them up on exit. It is also kept for
|
|
backward compatibility with earlier versions of wxWidgets.
|
|
|
|
@library{wxcore}
|
|
@category{gdi}
|
|
|
|
@seealso
|
|
wxPen
|
|
*/
|
|
class wxPenList
|
|
{
|
|
public:
|
|
/**
|
|
Constructor. The application should not construct its own pen list:
|
|
use the object pointer @b wxThePenList.
|
|
*/
|
|
wxPenList();
|
|
|
|
//@{
|
|
/**
|
|
Finds a pen with the specified attributes and returns it, else creates a new
|
|
pen, adds it
|
|
to the pen list, and returns it.
|
|
|
|
@param colour
|
|
Colour object.
|
|
|
|
@param colourName
|
|
Colour name, which should be in the colour database.
|
|
|
|
@param width
|
|
Width of pen.
|
|
|
|
@param style
|
|
Pen style. See wxPen::wxPen for a list of styles.
|
|
*/
|
|
wxPen* FindOrCreatePen(const wxColour& colour, int width,
|
|
int style);
|
|
wxPen* FindOrCreatePen(const wxString& colourName, int width,
|
|
int style);
|
|
//@}
|
|
};
|
|
|
|
|
|
// ============================================================================
|
|
// Global functions/macros
|
|
// ============================================================================
|
|
|
|
//@{
|
|
/**
|
|
Returns the dimensions of the work area on the display. On Windows
|
|
this means the area not covered by the taskbar, etc. Other platforms
|
|
are currently defaulting to the whole display until a way is found to
|
|
provide this info for all window managers, etc.
|
|
*/
|
|
void wxClientDisplayRect(int * x, int * y, int * width,
|
|
int * height);
|
|
wxRect wxGetClientDisplayRect();
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Returns the display size in pixels.
|
|
*/
|
|
void wxDisplaySize(int * width, int * height);
|
|
wxSize wxGetDisplaySize();
|
|
//@}
|
|
|
|
//@{
|
|
/**
|
|
Returns the display size in millimeters.
|
|
*/
|
|
void wxDisplaySizeMM(int * width, int * height);
|
|
wxSize wxGetDisplaySizeMM();
|
|
//@}
|
|
|
|
/**
|
|
This macro loads an icon from either application resources (on the platforms
|
|
for which they exist, i.e. Windows and OS2) or from an XPM file. It allows to
|
|
avoid using @c #ifdefs when creating icons.
|
|
|
|
@sa @ref overview_wxbitmapoverview "Bitmaps and icons overview", wxBITMAP
|
|
*/
|
|
#define wxICON() /* implementation is private */
|
|
|
|
/**
|
|
Returns @true if the display is colour, @false otherwise.
|
|
*/
|
|
bool wxColourDisplay();
|
|
|
|
/**
|
|
This macro loads a bitmap from either application resources (on the platforms
|
|
for which they exist, i.e. Windows and OS2) or from an XPM file. It allows to
|
|
avoid using @c #ifdefs when creating bitmaps.
|
|
|
|
@sa @ref overview_wxbitmapoverview "Bitmaps and icons overview", wxICON
|
|
*/
|
|
#define wxBITMAP() /* implementation is private */
|
|
|
|
/**
|
|
Returns the depth of the display (a value of 1 denotes a monochrome display).
|
|
*/
|
|
int wxDisplayDepth();
|
|
|