Пример #1
0
 /// <summary>
 /// Returns in |color| the color that was explicitly set for |command_id| and
 /// |color_type|. Specify an |index| value of -1 to return the default color in
 /// |color|. If a color was not set then 0 will be returned in |color|. Returns
 /// true (1) on success.
 /// </summary>
 public unsafe virtual bool GetColorAt(int index, CefMenuColorType colorType, ref CefColor color)
 {
     fixed(CefColor *p2 = &color)
     {
         return(SafeCall(NativeInstance->GetColorAt(index, colorType, (cef_color_t *)p2) != 0));
     }
 }
Пример #2
0
 public unsafe int GetColorAt(int index, CefMenuColorType color_type, cef_color_t *color)
 {
     fixed(cef_menu_model_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_menu_model_t *, int, CefMenuColorType, cef_color_t *, int >)get_color_at)(self, index, color_type, color));
     }
 }
Пример #3
0
 public unsafe int SetColor(int command_id, CefMenuColorType color_type, cef_color_t color)
 {
     fixed(cef_menu_model_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_menu_model_t *, int, CefMenuColorType, cef_color_t, int >)set_color)(self, command_id, color_type, color));
     }
 }
        /// <summary>
        /// Returns in |color| the color that was explicitly set for |command_id| and
        /// |color_type|. Specify an |index| value of -1 to return the default color
        /// in |color|. If a color was not set then 0 will be returned in |color|.
        /// Returns true on success.
        /// </summary>
        public bool GetColorAt(int index, CefMenuColorType colorType, out uint color)
        {
            uint n_color;
            var  result = cef_menu_model_t.get_color_at(_self, index, colorType, &n_color) != 0;

            color = n_color;
            return(result);
        }
        /// <summary>
        /// Returns in |color| the color that was explicitly set for |command_id| and
        /// |color_type|. If a color was not set then 0 will be returned in |color|.
        /// Returns true on success.
        /// </summary>
        public bool GetColor(int commandId, CefMenuColorType colorType, out uint color)
        {
            uint n_color;
            var  result = cef_menu_model_t.get_color(_self, commandId, colorType, &n_color) != 0;

            color = n_color;
            return(result);
        }
Пример #6
0
 /// <summary>
 /// Set the explicit color for |command_id| and |index| to |color|. Specify a
 /// |color| value of 0 to remove the explicit color. Specify an |index| value
 /// of -1 to set the default color for items that do not have an explicit color
 /// set. If no explicit color or default color is set for |color_type| then the
 /// system color will be used. Returns true (1) on success.
 /// </summary>
 public unsafe virtual bool SetColorAt(int index, CefMenuColorType colorType, CefColor color)
 {
     return(SafeCall(NativeInstance->SetColorAt(index, colorType, color) != 0));
 }
Пример #7
0
 /// <summary>
 /// Set the explicit color for |command_id| and |color_type| to |color|.
 /// Specify a |color| value of 0 to remove the explicit color. If no explicit
 /// color or default color is set for |color_type| then the system color will
 /// be used. Returns true (1) on success.
 /// </summary>
 public unsafe virtual bool SetColor(int commandId, CefMenuColorType colorType, CefColor color)
 {
     return(SafeCall(NativeInstance->SetColor(commandId, colorType, color) != 0));
 }
 /// <summary>
 /// Set the explicit color for |command_id| and |index| to |color|. Specify a
 /// |color| value of 0 to remove the explicit color. Specify an |index| value
 /// of -1 to set the default color for items that do not have an explicit
 /// color set. If no explicit color or default color is set for |color_type|
 /// then the system color will be used. Returns true on success.
 /// </summary>
 public bool SetColorAt(int index, CefMenuColorType colorType, uint color)
 {
     return(cef_menu_model_t.set_color_at(_self, index, colorType, color) != 0);
 }
 /// <summary>
 /// Set the explicit color for |command_id| and |color_type| to |color|.
 /// Specify a |color| value of 0 to remove the explicit color. If no explicit
 /// color or default color is set for |color_type| then the system color will
 /// be used. Returns true on success.
 /// </summary>
 public bool SetColor(int commandId, CefMenuColorType colorType, uint color)
 {
     return(cef_menu_model_t.set_color(_self, commandId, colorType, color) != 0);
 }
Пример #10
0
 public unsafe extern int GetColorAt(int index, CefMenuColorType color_type, cef_color_t *color);
Пример #11
0
 public unsafe extern int GetColor(int command_id, CefMenuColorType color_type, cef_color_t *color);
Пример #12
0
 /// <summary>
 /// Returns in |color| the color that was explicitly set for |command_id| and
 /// |color_type|. Specify an |index| value of -1 to return the default color in
 /// |color|. If a color was not set then 0 will be returned in |color|. Returns
 /// true on success.
 /// </summary>
 public bool GetColorAt(int index, CefMenuColorType colorType, out CefColor color)
 {
     color = _items[index].Colors[(int)colorType];
     return(color != 0);
 }