internal Button(object realButton, ToolbarTypes types) { this.realButton = realButton; this.types = types; realClickHandler = AttachEventHandler(types.button.onClickEvent, "clicked", realButton); realMouseEnterHandler = AttachEventHandler(types.button.onMouseEnterEvent, "mouseEntered", realButton); realMouseLeaveHandler = AttachEventHandler(types.button.onMouseLeaveEvent, "mouseLeft", realButton); }
internal ButtonTypes(Type iButtonType) { this.iButtonType = iButtonType; textProperty = ToolbarTypes.GetProperty(iButtonType, "Text"); textColorProperty = ToolbarTypes.GetProperty(iButtonType, "TextColor"); texturePathProperty = ToolbarTypes.GetProperty(iButtonType, "TexturePath"); bigTexturePathProperty = ToolbarTypes.GetProperty(iButtonType, "BigTexturePath"); toolTipProperty = ToolbarTypes.GetProperty(iButtonType, "ToolTip"); visibleProperty = ToolbarTypes.GetProperty(iButtonType, "Visible"); visibilityProperty = ToolbarTypes.GetProperty(iButtonType, "Visibility"); effectivelyVisibleProperty = ToolbarTypes.GetProperty(iButtonType, "EffectivelyVisible"); isHoveringProperty = ToolbarTypes.GetProperty(iButtonType, "IsHovering"); enabledProperty = ToolbarTypes.GetProperty(iButtonType, "Enabled"); importantProperty = ToolbarTypes.GetProperty(iButtonType, "Important"); drawableProperty = ToolbarTypes.GetProperty(iButtonType, "Drawable"); onClickEvent = ToolbarTypes.GetEvent(iButtonType, "OnClick"); onMouseEnterEvent = ToolbarTypes.GetEvent(iButtonType, "OnMouseEnter"); onMouseLeaveEvent = ToolbarTypes.GetEvent(iButtonType, "OnMouseLeave"); destroyMethod = ToolbarTypes.GetMethod(iButtonType, "Destroy"); }
private ToolbarManager(object realToolbarManager) { this.realToolbarManager = realToolbarManager; addMethod = ToolbarTypes.getMethod(types.iToolbarManagerType, "add"); }