Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Public Member Functions | |
GuiViewportTabWidget (GuiViewportToolbar &viewport_toolbar, const int &x, const int &y, const int &w, const int &h) | |
unsigned int | move_tab (const unsigned int ¤t_index, const unsigned int &new_index, bool select_tab=false) override |
void | draw (GuiDc &dc) override |
This is the main drawing method of the widget. | |
bool | is_valid_dnd_data () override |
bool | is_valid_dnd_data_from_external_tab () override |
bool | is_valid_dnd_data_over_tab () override |
int | on_dnd_drag () override |
int | on_dnd_release_from_external_tab (GuiTabWidget &tab_widget) override |
int | on_dnd_release () override |
int | process_event (const CoreString &event_id) override |
This method is called whenever an event happens on this widget. Override this to catch and process them. | |
![]() | |
GuiTabWidget (GuiWidget &parent, const int &x, const int &y, const int &w, const int &h) | |
void | enable_add_tab_button (const bool &enable) |
unsigned int | add_tab (const CoreString &name, GuiWidget *widget=0, const GuiImage *image=0) |
void | set_tab_icon (const unsigned int &index, const GuiImage *icon) |
const GuiImage * | get_tab_icon (const unsigned int &index) const |
void | set_tab_name (const unsigned int &index, const CoreString &name) |
const CoreString & | get_tab_name (const unsigned int &index) const |
void | set_tab_widget (const unsigned int &index, GuiWidget *widget) |
GuiWidget * | get_tab_widget (const unsigned int &index) const |
const bool & | is_tabs_closing () const |
void | enable_tabs_closing (const bool &enabled) |
const bool & | is_tabs_dragndrop () const |
void | enable_tabs_dragndrop (const bool &enabled) |
const bool & | is_tabs_showing () const |
void | enable_tabs_showing (const bool &enabled) |
const bool & | is_tab_enabled (const unsigned int &index) const |
void | set_tab_enabled (const unsigned int &index, const bool &enabled) |
void | set_selected_tab (const unsigned int &index) |
const unsigned int & | get_selected_tab () const |
void | set_minimun_tab_witdh (const unsigned int &witdh) |
const unsigned int & | get_minimun_tab_witdh () const |
const bool & | is_over_add_tab_button () const |
const unsigned int & | get_over_tab_index () const |
const unsigned int & | get_drag_over_tab_index () const |
const unsigned int & | get_clicked_tab_index () const |
void | remove_tab (const unsigned int &index, const bool &detroy_widget=false) |
void | remove_all_tabs () |
const unsigned int & | get_count () const |
virtual void | resize (const int &x, const int &y, const int &w, const int &h) override |
virtual void | show () override |
int | get_tab_height () |
void | set_tab_height (const int &height) |
int | get_client_x () const |
int | get_client_y () const |
int | get_client_width () const |
int | get_client_height () const |
void | refresh_page () |
void | set_draw_decoration (const bool &enable) |
int | get_add_tab_x () |
int | get_add_tab_y () |
int | get_add_tab_width () |
int | get_add_tab_height () |
virtual void * | get_dnd_data (unsigned int index=0) |
void | set_display_focus (const bool &state) |
void | set_display_title_style (const bool &state) |
![]() | |
GuiWidget (GuiWidget &parent, const int &x, const int &y, const int &w, const int &h) | |
GuiWidget (GuiApp &app, const int &x, const int &y, const int &w, const int &h) | |
virtual void | load_settings (const ParserGroup &settings) |
virtual void | save_settings (ParserGroup &settings) |
void | destroy () |
virtual bool | is_shown () const |
bool | is_hidden () const |
bool | is_recursive_destroyed () const |
const bool & | is_destroyed () const |
virtual void | hide () |
virtual GuiWidget * | get_parent () const |
const GuiWindow * | get_root_window () const |
virtual void | set_parent (GuiWidget *parent) |
GuiWindow * | get_window () const |
const int & | get_width () const |
const int & | get_height () const |
const int & | get_x () const |
const int & | get_y () const |
void | set_width (int width) |
void | set_height (int height) |
virtual const GMathVec2i & | get_size () const |
void | set_size (int x, int y, int w, int h) |
void | set_position (const int &x, const int &y, bool origin=true) |
sets position , leave size unchanged. | |
virtual const GMathVec2i & | get_position () const |
void | set_mouse_cursor (const Gui::MouseCursorId &cursor) |
const Gui::MouseCursorId & | get_mouse_cursor () const |
void | set_font (const GuiFont &font) |
GuiFont & | get_font () const |
const CoreString & | get_tooltip () const |
virtual void | set_tooltip (const CoreString &tooltip) |
void | force_tooltip () |
virtual bool | is_enabled () const |
virtual void | enable () |
Activate the widget. | |
virtual void | disable () |
Deativate the widget. | |
bool | is_active () const |
Get the active state of the widget, without taking the parents into account. | |
void | set_enable (bool enable) |
Set the active state of this widget. | |
virtual GuiColorScheme & | get_color_scheme () const |
void | set_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role, const unsigned char &r, const unsigned char &g, const unsigned char &b) |
void | set_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role, const GMathVec3uc &color) |
void | get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role, unsigned char &r, unsigned char &g, unsigned char &b) const |
const GMathVec3uc & | get_color (const GuiColorScheme::Group &group, const GuiColorScheme::Role &role) const |
GMathVec3uc | get_highlighted_color (const GMathVec3uc &, const float &factor=1.2f, const bool &keep_max_gap=true) const |
bool | is_entered () const |
virtual void | set_focus () |
bool | children_has_focus (GuiWidget *widget) const |
bool | has_focus () const |
void | lose_focus () |
bool | is_focus_receiver () const |
void | set_focus_receiver (const bool &receiver) |
bool | is_key_receiver () const |
void | set_key_receiver (const bool &receiver) |
virtual void | redraw () |
This will ask the widget to be drawn again. | |
virtual CtxDraw * | get_draw_ctx () const |
Return the drawing context needed by ModuleTool to draw in the widget. | |
virtual void | widget_update () |
This method is called just before draw() if set_is_dirty() has been called before. | |
void | set_is_dirty (const bool &value=true) |
bool | get_is_dirty () |
returns if widget is dirty or not. | |
void | compute_children_bbox (GMathVec2i &lo, GMathVec2i &hi) const |
const CoreVector< GuiWidget * > & | get_children () const |
GuiApp & | get_application () const |
GuiAction * | register_action (const CoreString &name, GuiAction::Function function, const CoreString &shortcut, const CoreString &tooltip="", void *data=0, const GuiImage *icon=0) |
const CoreVector< GuiAction * > & | get_actions () const |
GuiAction * | get_action (const CoreString &name) const |
void | get_actions_recursively (CoreVector< GuiAction * > &actions) const |
void | remove_action (GuiAction *action, bool delete_it) |
void | remove_all_actions () |
void | register_hotkey (const CoreString &shortcut, const CoreString &tooltip) |
const CoreVector< Hotkey > & | get_hotkeys () const |
void | get_hotkeys_recursively (CoreVector< Hotkey > &hotkeys) const |
const int & | get_top_offset () const |
const int & | get_bottom_offset () const |
const int & | get_left_offset () const |
const int & | get_right_offset () const |
const Constraint & | get_top_constraint () const |
const Constraint & | get_bottom_constraint () const |
const Constraint & | get_left_constraint () const |
const Constraint & | get_right_constraint () const |
virtual void | set_constraints (const Constraint &left, const Constraint &top, const Constraint &right, const Constraint &bottom) |
void | set_active_constraints (const bool &active) |
virtual const bool & | is_active_constraints () const |
void | set_recursive_constraints (const bool &recursive) |
virtual const bool & | is_recursive_constraints () const |
void | disable_clipping () |
void | enable_clipping () |
void | get_clip_region (int &x, int &y, int &w, int &h) const |
virtual void | set_clip_region (const int &x, const int &y, const int &w, const int &h) |
const bool & | is_clipping_enabled () const |
void | bring_to_front () |
void | enable_tab_navigation (const bool &enable) |
const bool & | is_tab_navigation_enabled () const |
virtual bool | is_visible () const |
virtual void | update_color_scheme (const GuiColorScheme &scheme) |
virtual void | paste (const CoreString &clipboard) |
bool | initiate_dnd_event (const CoreVector< CoreBaseObject * > &data) |
Initiate Drag'n drop event. | |
bool | initiate_dnd_event (CoreVector< OfHandle > &data) |
bool | initiate_dnd_event (CoreBaseObject *data) |
See initiate_dnd_event. | |
bool | initiate_dnd_event (OfHandle data) |
virtual GuiWidget * | get_next_focus_widget () const |
virtual GuiWidget * | get_previous_focus_widget () const |
void | give_focus_to_next_widget () |
void | give_focus_to_previous_widget () |
void | get_parent_effective_clip_region (int &x, int &y, int &w, int &h) const |
const bool & | is_widget_visible (GuiWidget &child) const |
const bool & | is_show_children () const |
void | set_show_children (const bool &show_children) |
template<class WidgetType > | |
WidgetType * | get_parent_widget () const |
Return the first occurence of WidgetType* in the widget parent hierarchy, or 0 if not found. | |
virtual size_t | get_memory_size () const override |
![]() | |
EventObject () | |
Constructor. | |
EventObject (const EventObject &src) | |
Copy Constructor. | |
virtual | ~EventObject () override |
Destructor. | |
void | connect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
bool | disconnect_all (EventObject &sender) |
Disconnects from all objects sender was listening on. | |
void | disconnect_all () |
Disconnects from all objects we were listening on. | |
void | remove_all_connection () |
Disconnects object from other objects it is listening to, and also disconnects all objects listening to it. | |
void | raise_event (const CoreString &event_id) const |
sends an event | |
void | raise_event (const EventInfo &event_info) const |
sends an event | |
bool | is_connected (EventObject &sender, const CoreString &event_id, void *data) |
void | set_mute (const bool &mute) |
Asks for object muting. This will increase or decrease the muting counter. Unmuting may not be immediat since it will happen only when counter reaches 0. | |
bool | is_mute () const |
Returns if object is muted. | |
CoreArray< EventObject * > | get_senders () const |
unsigned int | get_sender_count () const |
unsigned int | get_receiver_count () const |
void | connect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Disconnects this from an object for a specific event. | |
![]() | |
CoreCustomData (const CoreCustomData &src) | |
void | add_custom_data (void *key, const bool &data) |
void | add_custom_data (void *key, const int &data) |
void | add_custom_data (void *key, const unsigned int &data) |
void | add_custom_data (void *key, const char *data) |
void | add_custom_data (void *key, const CoreString &data) |
void | add_custom_data (void *key, const double &data) |
void | add_custom_data (void *key, void *data) |
void | remove_custom_data (void *key) |
void | remove_all_custom_data () |
void | set_custom_data (void *key, const bool &data) |
void | set_custom_data (void *key, const int &data) |
void | set_custom_data (void *key, const unsigned int &data) |
void | set_custom_data (void *key, const double &data) |
void | set_custom_data (void *key, const char *data) |
void | set_custom_data (void *key, const CoreString &data) |
void | set_custom_data (void *key, void *data) |
void | get_custom_data (void *key, bool &data) const |
void | get_custom_data (void *key, int &data) const |
void | get_custom_data (void *key, unsigned int &data) const |
void | get_custom_data (void *key, double &data) const |
void | get_custom_data (void *key, CoreString &data) const |
void | get_custom_data (void *key, void *&data) const |
![]() | |
bool | is_kindof (const CoreBaseObject &object) const |
CoreString | get_class_info_name () const |
const unsigned long & | get_class_info_id () const |
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
virtual const CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Static Public Member Functions | |
static void | dnd_release_to_timer (void *data) |
static void | switch_on_over_tab (void *data) |
Protected Member Functions | |
virtual GuiWidget * | get_tab_controled_widget (const unsigned int &index) const |
![]() | |
void | rebuild_layout (const unsigned int &start) |
virtual bool | do_initiate_dnd_event () |
virtual int | on_dnd_enter () |
virtual int | on_dnd_leave () |
void | on_focus_widget_changed (GuiTabWidget &sender, const EventInfo &event, void *data) |
![]() | |
virtual GuiDc & | get_dc () |
GuiWidget (CreateWidget create_widget, GuiWidget &parent, const int &x, const int &y, const int &w, const int &h) | |
GuiWidget (CreateWidget create_widget, GuiApp &app, const int &x, const int &y, const int &w, const int &h) | |
virtual void | widget_redraw () |
virtual Fl_Widget * | get_widget () const |
virtual Fl_Group * | get_group () const |
void | clear_all_children () |
void | damage (const unsigned char &mask) |
const bool | is_damaged (const unsigned char &mask) const |
const unsigned char | get_damage () const |
void | create_delayed_parenting (Fl_Group *group) const |
void | recompute_constraints () |
virtual void | push_clip (const int &x, const int &y, const int &w, const int &h) |
virtual void | pop_clip () |
void | get_text_size (const CoreString &text, int &w, int &h) const |
void | get_text_size (const char *text, int &w, int &h) const |
virtual void | on_add_child (GuiWidget *child) |
virtual void | on_remove_child (GuiWidget *child) |
virtual void | apply_constraints (const int &px, const int &py, const int &pw, const int &ph) |
void | apply_children_constraints (const int &px, const int &py, const int &pw, const int &ph) const |
void | apply_constraints (GuiWidget &child, const int &px, const int &py, const int &pw, const int &ph) const |
virtual void | apply_clipping () |
void | apply_children_clipping () |
void | capture_events (const bool &value) |
virtual bool | process_actions () |
Additional Inherited Members | |
![]() | |
enum | Roundness { ROUNDNESS_NONE = 0, ROUNDNESS_TOP_LEFT = 1, ROUNDNESS_TOP_RIGHT = 2, ROUNDNESS_BOTTOM_LEFT = 4, ROUNDNESS_BOTTOM_RIGHT = 8, ROUNDNESS_LEFT = ROUNDNESS_TOP_LEFT | ROUNDNESS_BOTTOM_LEFT, ROUNDNESS_RIGHT = ROUNDNESS_TOP_RIGHT | ROUNDNESS_BOTTOM_RIGHT, ROUNDNESS_TOP = ROUNDNESS_TOP_LEFT | ROUNDNESS_TOP_RIGHT, ROUNDNESS_BOTTOM = ROUNDNESS_BOTTOM_LEFT | ROUNDNESS_BOTTOM_RIGHT, ROUNDNESS_ALL = ROUNDNESS_TOP | ROUNDNESS_BOTTOM } |
enum | Constraint { CONSTRAINT_LEFT, CONSTRAINT_RIGHT, CONSTRAINT_TOP, CONSTRAINT_BOTTOM, CONSTRAINT_COUNT } |
enum | Justify { JUSTIFY_LEFT, JUSTIFY_RIGHT, JUSTIFY_CENTER, JUSTIFY_COUNT } |
enum | IconPosition { ICON_POSITION_LEFT, ICON_POSITION_RIGHT, ICON_POSITION_COUNT } |
![]() | |
typedef void(* | CreateWidget )(void *inst) |
![]() | |
unsigned int | m_drag_tab_index_to_move |
unsigned int | m_drag_over_tab_index |
bool | m_is_drag_tab |
bool | m_is_drag_over_tab |
|
overridevirtual |
This is the main drawing method of the widget.
dc | The drawing context used to draw stuff. |
Reimplemented from GuiTabWidget.
|
overridevirtual |
This method is called whenever an event happens on this widget. Override this to catch and process them.
event_id | The event name. |
Reimplemented from GuiTabWidget.