예제 #1
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");
        }
예제 #2
0
 internal ButtonTypes(Type iButtonType)
 {
     this.iButtonType                = iButtonType;
     this.textProperty               = ToolbarTypes.getProperty(iButtonType, "Text");
     this.textColorProperty          = ToolbarTypes.getProperty(iButtonType, "TextColor");
     this.texturePathProperty        = ToolbarTypes.getProperty(iButtonType, "TexturePath");
     this.toolTipProperty            = ToolbarTypes.getProperty(iButtonType, "ToolTip");
     this.visibleProperty            = ToolbarTypes.getProperty(iButtonType, "Visible");
     this.visibilityProperty         = ToolbarTypes.getProperty(iButtonType, "Visibility");
     this.effectivelyVisibleProperty = ToolbarTypes.getProperty(iButtonType, "EffectivelyVisible");
     this.enabledProperty            = ToolbarTypes.getProperty(iButtonType, "Enabled");
     this.importantProperty          = ToolbarTypes.getProperty(iButtonType, "Important");
     this.drawableProperty           = ToolbarTypes.getProperty(iButtonType, "Drawable");
     this.onClickEvent               = ToolbarTypes.getEvent(iButtonType, "OnClick");
     this.onMouseEnterEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseEnter");
     this.onMouseLeaveEvent          = ToolbarTypes.getEvent(iButtonType, "OnMouseLeave");
     this.destroyMethod              = ToolbarTypes.getMethod(iButtonType, "Destroy");
 }
예제 #3
0
 private ToolbarManager(object realToolbarManager)
 {
     this.realToolbarManager = realToolbarManager;
     this.addMethod          = ToolbarTypes.getMethod(this.types.iToolbarManagerType, "add");
 }
        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);
        }