This reference page is linked to from the following overview topics: MotionBuilder 2014, Events & callbacks, User Interface, Widgets.
Visual Component base class.
All of the user interface elements available in the SDK derive from this class.
Definition at line 306 of file fbcontrols.h.
#include <fbcontrols.h>
Classes | |
struct | __Border |
Border information structure. More... | |
struct | __Region |
Region information structure. More... | |
Public Member Functions | |
FBVisualComponent (HIObject pObject) | |
Constructor. | |
IObject_Declare (K_IMPLEMENTATION) | |
ICallback_Declare (K_IMPLEMENTATION) | |
virtual HIKtView | GetKtView () |
Get internal toolkit object. | |
QWidget * | GetQWidgetAddress () |
Get internal QWidget. | |
virtual bool | AddChild (FBVisualComponent *pChild, int pId=0) |
Add a child component. | |
virtual FBVisualComponent * | GetChild (int pId=0) |
Get a child component. | |
virtual void | Refresh (bool pNow=false) |
Refresh component. | |
virtual void | ViewExpose () |
Exposed view callback function. | |
virtual void | ViewInput (int pMouseX, int pMouseY, FBInputType pAction, int pButtonKey, int pModifier) |
Input callback function. | |
virtual bool | IsView () |
Is component a view? | |
Public Attributes | |
struct FBVisualComponent::__Region | Region |
struct FBSDK_DLL FBVisualComponent::__Border | Border |
FBPropertyString | Caption |
Property: Widget caption. | |
FBPropertyBool | Visible |
Read Write Property: Is visual component visible? | |
FBPropertyBool | ReadOnly |
Read Write Property: Is visual component read only? | |
FBPropertyBool | Enabled |
Read Write Property: Is visual enabled? | |
FBPropertyString | Hint |
Read Write Property: Hint to show. | |
FBPropertyInt | Left |
Read Write Property: Left coordinate. | |
FBPropertyInt | Top |
Read Write Property: Top coordinate. | |
FBPropertyInt | Width |
Read Write Property: Width. | |
FBPropertyInt | Height |
Read Write Property: Height. | |
FBPropertyEvent | OnEnter |
Event: On mouse enter. | |
FBPropertyEvent | OnExit |
Event: On mouse exit. | |
Protected Member Functions | |
virtual HIKtObject | GetHIKtObject () |
Get internal toolkit object. | |
Friends | |
class | FBLayout |
class | FBRenderer |
FBVisualComponent | ( | HIObject | pObject | ) |
Constructor.
virtual HIKtObject GetHIKtObject | ( | ) | [protected, virtual] |
IObject_Declare | ( | K_IMPLEMENTATION | ) |
ICallback_Declare | ( | K_IMPLEMENTATION | ) |
Reimplemented from FBComponent.
virtual HIKtView GetKtView | ( | ) | [virtual] |
QWidget* GetQWidgetAddress | ( | ) |
virtual bool AddChild | ( | FBVisualComponent * | pChild, |
int | pId = 0 |
||
) | [virtual] |
Add a child component.
pChild | Visual component to add as a child. |
pId | User reference number to associate with pChild(default=0). |
virtual FBVisualComponent* GetChild | ( | int | pId = 0 | ) | [virtual] |
Get a child component.
pId | User reference number to look for child with(default=0). |
virtual void Refresh | ( | bool | pNow = false | ) | [virtual] |
Refresh component.
pNow | Refresh immediately if true (default = false). |
Reimplemented in FBView.
virtual void ViewExpose | ( | ) | [virtual] |
Exposed view callback function.
virtual void ViewInput | ( | int | pMouseX, |
int | pMouseY, | ||
FBInputType | pAction, | ||
int | pButtonKey, | ||
int | pModifier | ||
) | [virtual] |
Input callback function.
pMouseX | Mouse X position. |
pMouseY | Mouse Y position. |
pAction | Mouse action. |
pButtonKey | Keyboard input. |
pModifier | Keyboard input modifier. |
virtual bool IsView | ( | ) | [virtual] |
friend class FBLayout [friend] |
Definition at line 309 of file fbcontrols.h.
friend class FBRenderer [friend] |
Definition at line 310 of file fbcontrols.h.
struct FBSDK_DLL FBVisualComponent::__Border Border |
Property: Widget caption.
Reimplemented in FBSpread, FBProgress, FBPopup, FBFilePopup, and FBFolderPopup.
Definition at line 429 of file fbcontrols.h.
Read Write Property: Is visual component visible?
Definition at line 430 of file fbcontrols.h.
Read Write Property: Is visual component read only?
Definition at line 431 of file fbcontrols.h.
Read Write Property: Is visual enabled?
Definition at line 432 of file fbcontrols.h.
Read Write Property: Hint to show.
Definition at line 433 of file fbcontrols.h.
Read Write Property: Left coordinate.
Definition at line 435 of file fbcontrols.h.
Read Write Property: Top coordinate.
Definition at line 436 of file fbcontrols.h.
Read Write Property: Height.
Definition at line 438 of file fbcontrols.h.