Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public PopupMenuDrawable()
        {
            Type popupMenuDrawableType = ToolbarTypes.GetType("Toolbar.PopupMenuDrawable");

            realPopupMenuDrawable   = Activator.CreateInstance(popupMenuDrawableType, null);
            updateMethod            = ToolbarTypes.GetMethod(popupMenuDrawableType, "Update");
            drawMethod              = ToolbarTypes.GetMethod(popupMenuDrawableType, "Draw");
            addOptionMethod         = ToolbarTypes.GetMethod(popupMenuDrawableType, "AddOption");
            addSeparatorMethod      = ToolbarTypes.GetMethod(popupMenuDrawableType, "AddSeparator");
            destroyMethod           = ToolbarTypes.GetMethod(popupMenuDrawableType, "Destroy");
            onAnyOptionClickedEvent = ToolbarTypes.GetEvent(popupMenuDrawableType, "OnAnyOptionClicked");
        }
Ejemplo n.º 3
0
        internal ButtonTypes(Type iButtonType)
        {
            this.iButtonType = iButtonType;

            textProperty               = ToolbarTypes.GetProperty(iButtonType, "Text");
            textColorProperty          = ToolbarTypes.GetProperty(iButtonType, "TextColor");
            texturePathProperty        = ToolbarTypes.GetProperty(iButtonType, "TexturePath");
            toolTipProperty            = ToolbarTypes.GetProperty(iButtonType, "ToolTip");
            visibleProperty            = ToolbarTypes.GetProperty(iButtonType, "Visible");
            visibilityProperty         = ToolbarTypes.GetProperty(iButtonType, "Visibility");
            effectivelyVisibleProperty = ToolbarTypes.GetProperty(iButtonType, "EffectivelyVisible");
            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");
        }