haxeui/hxWidgets

View on GitHub
src/wx/widgets/MenuItem.hx

Summary

Maintainability
Test Coverage
package wx.widgets;

import cpp.Pointer;
import cpp.RawPointer;

@:include("wx/menu.h")
@:unreflective
@:native("wxMenuItem")
@:structAccess
extern class MenuItem extends Object {
    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    // creation functions
    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    @:native("new wxMenuItem")          private static function _new(parent:RawPointer<Menu>, id:Int = 0, text:WxString = null, helpString:WxString = null, kind:ItemKind = null, subMenu:RawPointer<Menu> = null):RawPointer<MenuItem>;
                                        public static inline function createInstance(parent:RawPointer<Menu>, id:Int = 0, text:WxString = null, helpString:WxString = null, kind:ItemKind = null, subMenu:RawPointer<Menu> = null):Pointer<MenuItem> {
                                            return Pointer.fromRaw(_new(parent, id, text, helpString, kind, subMenu));
                                        }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Instance functions
    //////////////////////////////////////////////////////////////////////////////////////////////////////////
    @:native("Check")                   public function check(check:Bool = true):Void;
    @:native("SetBitmap")               public function setBitmap(bitmap:Bitmap):Void;
    @:native("Enable")                  public function enable(check:Bool = true):Void;
    @:native("IsEnabled")               public function isEnabled():Bool;
    @:native("GetId")                   public function getId():Int;
    @:native("SetItemLabel")            public function setItemLabel(label:WxString):Void;
    @:native("GetItemLabel")            public function getItemLabel():WxString;
}