fudadmin wrote on Tue, 28 March 2006 16:34 |
luzr wrote on Tue, 28 March 2006 20:31 |
fudadmin wrote on Tue, 28 March 2006 13:18 |
fudadmin wrote on Tue, 28 March 2006 18:11 | Why Splitter::GetChildCount() is not public???
|
and PosToClient()...
|
Well, over time I have found "keep the interface minimal" a good practice. Sometimes I am wrong about interface, but enriching it is quite easy thing. But the opposite, removing stuff from interface, is much more dangerous bussines (angry users... .
Mirek
|
The users are angry when they find inconsistant interfaces - in some Ctrl's the same methods are public, in some - not. It looks like I will have to maintain my own version of Ultimate++...
|
PosToClient nor GetChildCount is not common public interface....
Mirek
|
/// Return true if specified window is owned by this window
FXbool isOwnerOf(const FXWindow* window) const;
/// Return true if specified window is ancestor of this window
FXbool isChildOf(const FXWindow* window) const;
/// Return true if this window contains child in its subtree
FXbool containsChild(const FXWindow* child) const;
/// Return the child window at specified coordinates
FXWindow* getChildAt(FXint x,FXint y) const;
/// Return the number of child windows for this window
FXint numChildren() const;
/**
* Return the index (starting from zero) of the specified child window,
* or -1 if the window is not a child or NULL
*/
FXint indexOfChild(const FXWindow *window) const;
/**
* Return the child window at specified index,
* or NULL if the index is negative or out of range
*/
FXWindow* childAtIndex(FXint index) const;
/// Return the common ancestor of window a and window b
static FXWindow* commonAncestor(FXWindow* a,FXWindow* b);
]]>