~thalexander/unity/update-fsf-address

« back to all changes in this revision

Viewing changes to unity-shared/TextInput.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-03-07 18:51:47 UTC
  • mfrom: (4080 unity)
  • mto: This revision was merged to the branch mainline in revision 4085.
  • Revision ID: mail@3v1n0.net-20160307185147-0p1m89up4tqfb6w1
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "Introspectable.h"
28
28
#include "IMTextEntry.h"
 
29
#include "RawPixel.h"
29
30
#include "SearchBarSpinner.h"
30
31
 
31
32
namespace nux
57
58
 
58
59
  IMTextEntry* text_entry() const;
59
60
 
 
61
  nux::Property<std::string> activator_icon;
 
62
  nux::Property<RawPixel> activator_icon_size;
 
63
  nux::Property<nux::Color> background_color;
 
64
  nux::Property<nux::Color> border_color;
 
65
  nux::Property<int> border_radius;
60
66
  nux::RWProperty<std::string> input_string;
61
67
  nux::Property<std::string> input_hint;
62
68
  nux::Property<std::string> hint_font_name;
63
69
  nux::Property<int> hint_font_size;
 
70
  nux::Property<nux::Color> hint_color;
64
71
  nux::ROProperty<bool> im_active;
65
72
  nux::ROProperty<bool> im_preedit;
66
73
  nux::Property<bool> show_activator;
67
 
  nux::Property<bool> show_caps_lock;
 
74
  nux::Property<bool> show_lock_warnings;
68
75
  nux::Property<double> scale;
69
76
 
70
77
private:
71
78
  void OnFontChanged();
72
79
  void UpdateHintFont();
 
80
  void UpdateHintColor();
73
81
  void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
74
82
  void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);
75
83
  void UpdateBackground(bool force);
77
85
  void UpdateSize();
78
86
 
79
87
  std::string GetName() const;
80
 
 
81
88
  void AddProperties(debug::IntrospectionData&);
 
89
 
82
90
  bool AcceptKeyNavFocus();
83
 
 
84
91
  bool ShouldBeHighlighted();
85
 
 
86
 
  nux::Geometry GetWaringIconGeometry() const;
87
 
  void CheckIfCapsLockOn();
88
 
 
89
 
  nux::ObjectPtr<nux::BaseTexture> LoadActivatorIcon(int icon_size);
 
92
  void CheckLocks();
 
93
  void OnLockStateChanged(bool);
 
94
 
 
95
  nux::ObjectPtr<nux::BaseTexture> LoadActivatorIcon(std::string const& icon_file, int icon_size);
90
96
  nux::ObjectPtr<nux::BaseTexture> LoadWarningIcon(int icon_size);
91
97
  void LoadWarningTooltip();
92
98
 
117
123
  SearchBarSpinner* spinner_;
118
124
 
119
125
  nux::Property<bool> caps_lock_on;
 
126
  nux::Property<bool> num_lock_on;
120
127
  int last_width_;
121
128
  int last_height_;
122
129