Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Static Public Member Functions | Friends | List of all members
GuiItemDraw Class Reference

Classes

struct  ItemDrawInfo
 

Public Types

enum  NameDisplay {
  NAME,
  FULL_NAME,
  RELATIVE_NAME
}
 
enum  DrawElement {
  DRAW_NAME = 1 << 1,
  DRAW_ICONS = 1 << 2,
  DRAW_FONT = 1 << 3,
  DRAW_TEXT_COLOR = 1 << 4,
  DRAW_STYLE = 1 << 5,
  DRAW_CUSTOM_NAME = 1 << 6,
  DRAW_COLOR_TAG = 1 << 7
}
 

Static Public Member Functions

static void draw_item (GuiWidgetDc &draw_context, const ItemDrawInfo &item_draw_info)
 
static CoreString get_of_item_name (OfConstItemHandle item, const NameDisplay &name_display=NAME, const OfContext *current_context=0, const CoreString error_name="Item removed")
 
static CoreString get_of_item_name (OfConstPlugHandle attr, const NameDisplay &name_display=NAME, const OfContext *current_context=0, const CoreString error_name="Item removed")
 
static void get_of_item_name_font (GuiWidgetDc &draw_context, const OfItem *item)
 
static void get_of_item_name_font (GuiWidgetDc &draw_context, const OfPlugType *attr)
 
static void get_of_item_name_font (const OfItem *item, int &gui_font_weight, int &gui_font_style)
 
static void get_of_item_name_font (const OfPlugType *plug, int &gui_font_weight, int &gui_font_style)
 
static void get_of_item_icon (OfConstItemHandle item, CoreVector< const GuiImage * > &icons, bool &draw_icon_enabled, const ImageIcon::ImageIconSize &icon_size=ImageIcon::IMAGE_ICON_SIZE_16, const bool &widget_enable=true, bool ignore_vizroot=false)
 
static void get_of_item_icon (const OfAttr *attr, CoreVector< const GuiImage * > &icons, bool &draw_icon_enabled, const ImageIcon::ImageIconSize &icon_size=ImageIcon::IMAGE_ICON_SIZE_16, const bool &widget_enable=true)
 
static bool get_of_item_uicolor (const OfItem &item, GMathVec3uc &rgb)
 
static int compare_of_item_uicolor (const OfItem &item1, const OfItem &item2)
 
static int get_color_indicator_width (const GuiWidget &win)
 
static void create_colortag (const CoreString &short_name, const CoreString &long_name, const GMathVec3uc &rgb, double weight)
 
static void clear_colortags ()
 
static bool get_colortag_rgb (const CoreString &short_name, GMathVec3uc &rgb)
 
static bool is_visible_embedded_object (const OfObject &object)
 
static bool is_visible_object (GuiApp &app, const OfObject *obj)
 

Friends

class GuiOfItemMenu