|
| | CRhinoUserInterfaceControl () |
| |
| virtual | ~CRhinoUserInterfaceControl () |
| |
| ON_Color | BackgroundColor () const |
| |
| virtual ON_4fRect | ComputedRect (const CRhinoDisplayPipeline *pipeline, bool logicalPixels) const |
| |
| virtual ON_2fSize | ComputeSize () const |
| |
| void | GetAlignment (ControlHorizontalAlignment &h, ControlVerticalAlignment &v) const |
| |
| void | GetTextAlignment (ControlHorizontalAlignment &h, ControlVerticalAlignment &v) const |
| |
| const ON_wString & | ImageSVG () const |
| |
| ON_2fPoint | Location () const |
| |
| void | SetAlignment (ControlHorizontalAlignment h, ControlVerticalAlignment v) |
| |
| void | SetBackgroundColor (const ON_Color &color) |
| |
| void | SetImageSVG (const wchar_t *svg) |
| |
| void | SetLocation (float x, float y) |
| |
| void | SetLocation (ON_2fPoint location) |
| |
| void | SetLocation (ON_2fPoint location, ControlHorizontalAlignment hAlign, ControlVerticalAlignment vAlign) |
| |
| void | SetSize (const ON_2fSize &size) |
| |
| void | SetSize (float width, float height) |
| |
| void | SetText (const wchar_t *text) |
| |
| void | SetTextAlignment (ControlHorizontalAlignment h, ControlVerticalAlignment v) |
| |
| void | SetTextColor (const ON_Color &color) |
| |
| void | SetTextHeight (float height) |
| |
| void | SetTrackingPoint (const ON_3dPoint &pt) |
| |
| ON_2fSize | Size () const |
| |
| const ON_wString & | Text () const |
| |
| ON_Color | TextColor () const |
| |
| float | TextHeight () const |
| |
| ON_3dPoint | TrackingPoint () const |
| |
| | CRhinoUserInterfaceObject () |
| |
| virtual | ~CRhinoUserInterfaceObject () |
| |
| virtual bool | AcceptsKeyboardFocus () const |
| |
| void | Animate (CRhinoAnimatingDouble &value, double target, double duration, AnimationStyle style, CRhinoDoc *doc) |
| |
| void | BindToActiveViewport (bool on) |
| |
| void | BindToViewport (unsigned int viewport_sn) |
| |
| virtual double | CameraDepth (const ON_Plane &cameraPlane) const |
| |
| int | DisplayOrder () const |
| |
| ON_UUID | DocumentGroupId () const |
| |
| unsigned int | DocumentRuntimeSerialNumber () const |
| |
| virtual void | Draw (CRhinoDisplayPipeline &dp) |
| |
| bool | GetData (const wchar_t *key, bool &value) const |
| |
| bool | GetData (const wchar_t *key, double &value) const |
| |
| bool | GetData (const wchar_t *key, int &value) const |
| |
| bool | GetData (const wchar_t *key, ON_UUID &value) const |
| |
| bool | GetData (const wchar_t *key, ON_wString &value) const |
| |
| bool | HasKeyboardFocus () const |
| |
| bool | HasMouseCapture () const |
| |
| bool | IsBoundToActiveViewport () const |
| |
| unsigned int | IsBoundToViewport () const |
| |
| virtual bool | IsMouseOver (const CRhinoMouseEventArgs &mouse) |
| |
| bool | MoveKeyboardFocusToSibling (bool forward, CRhinoDoc *doc) |
| |
| virtual bool | OnCharacter (unsigned int character, unsigned int flags) |
| |
| virtual void | OnKeyboardFocusChanged (bool hasFocus) |
| |
| virtual bool | OnKeyDown (unsigned int virtualKey, unsigned int flags) |
| |
| virtual void | OnMouseClick (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseDoubleClick (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseDown (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseEnter (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseLeave (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseMove (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseUp (const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnMouseWheel (const CRhinoMouseEventArgs &mouse, int delta) |
| |
| virtual CRhinoCommand::result | OnRunCommand (const CRhinoCommandContext &context, const CRhinoMouseEventArgs &mouse) |
| |
| virtual void | OnTrackpadScroll (const CRhinoMouseEventArgs &mouse, float horizontal, float vertical) |
| |
| CRhinoUserInterfaceObject * | Parent () |
| |
| const CRhinoUserInterfaceObject * | Parent () const |
| |
| bool | ReceivesMouseWheelEvents () const |
| |
| bool | ReceivesTrackpadScrollEvents () const |
| |
| bool | RegisterForAllDocuments () |
| |
| void | RunCommand (const CRhinoMouseEventArgs &mouse) |
| |
| unsigned int | RuntimeSerialNumber () const |
| |
| void | SetCursor (HCURSOR cursor) |
| |
| void | SetData (const wchar_t *key, bool value) |
| |
| void | SetData (const wchar_t *key, const wchar_t *value) |
| |
| void | SetData (const wchar_t *key, double value) |
| |
| void | SetData (const wchar_t *key, int value) |
| |
| void | SetData (const wchar_t *key, ON_UUID value) |
| |
| void | SetDisplayOrder (int order) |
| |
| void | SetReceivesMouseWheelEvents (bool enable) |
| |
| void | SetReceivesTrackpadScrollEvents (bool enable) |
| |
| void | SetTooltip (const wchar_t *tooltip) |
| |
| void | SetVisible (bool visible) |
| |
| bool | UnregisterFromAllDocuments () |
| |
| bool | Visible () const |
| |
Description: Controls are traditional 2d user interface elements that can be drawn and respond to mouse events in a rhino view.
Description: Compute the location and size of this control in the coordinates of the thing that is drawing it. Parameters: pipeline - the display pipeline to compute location and size inside of. The same control can end up in different places in different pipelines, because of how it is aligned or because it is tracking a 3d point. Take the pipeline rather than the view it belongs to: a detail on a layout is drawn by its own nested pipeline whose view is the page view, so a view cannot say which of the two is being drawn. logicalPixels - should the rectangle be return in device or logical pixels
Reimplemented in CRhinoUserInterfaceGrid, CRhinoUserInterfaceDropDown, CRhinoUserInterfaceTextBox, CRhinoUserInterfaceSlider, CRhinoUserInterfaceRadioButton, CRhinoUserInterfaceCheckBox, CRhinoUserInterfaceIcon, CRhinoUserInterfaceButton, and CRhinoUserInterfaceLabel.
| void CRhinoUserInterfaceControl::SetBackgroundColor |
( |
const ON_Color & |
color | ) |
|
Description: Color the control is filled with. What gets filled depends on the control: the face of a button, the track of a slider, the box of a check box or radio button, the field of a text box, the whole rectangle of a label, icon or grid.
The default is ON_UNSET_COLOR, which means the control chooses the right color for the theme that is in use, and follows the theme when it changes between light and dark. Labels and icons draw no background when unset. A grid that is unset fills with the theme's panel color when it is the top level control, and draws no background when it is inside another control, so it shows whatever its parent is filled with. CRhinoUserInterfaceGrid::SetBackgroundOpacity makes a grid's background, theme color or not, see through.
BackgroundColor returns what was set, so ON_UNSET_COLOR when nothing was.